* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #001005;
  --text-color: white;
  --main-color-rgb: 233, 183, 98;
  --main-color: rgb(var(--main-color-rgb));
  --modal-bg: rgba(15, 23, 42, 0.85);
  --desktop-top-bottom-spacing: 100px;
  --desktop-left-right-spacing: 10%;
  --tablet-top-bottom-spacing: 80px;
  --tablet-left-right-spacing: 5%;
  --mobile-top-bottom-spacing: 60px;
  --mobile-left-right-spacing: 5%;
  --desktop-section-padding: var(--desktop-top-bottom-spacing) var(--desktop-left-right-spacing);
  --tablet-section-padding: var(--tablet-top-bottom-spacing) var(--tablet-left-right-spacing);
  --mobile-section-padding: var(--mobile-top-bottom-spacing) var(--mobile-left-right-spacing);
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --second-bg-color: #f5f5f5;
  --text-color: #333333;
  --nav-bg: rgba(255, 255, 255, 0.3);
  --modal-bg: rgba(255, 255, 255, 0.85);
}

body {
  background: var(--second-bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 2rem var(--mobile-left-right-spacing);
  background: var(--nav-bg, rgba(0, 0, 0, 0.3));
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;

}

.logo {
  font-size: 2.2rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
  margin-right: 30px;
}

.logo:hover {
  transform: scale(1.1);

}

span {
  color: var(--main-color);
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.navbar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(var(--main-color-rgb), 0.4);
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--main-color);
  opacity: 0.3;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.navbar a:hover {
  color: var(--main-color);
}

.navbar a:hover::before {
  width: 100%;
}

.navbar a:hover::after {
  width: 80%;
}

.navbar a.active {
  color: var(--main-color);
}

.navbar a.active::before {
  width: 100%;
}

.navbar a.active::after {
  width: 80%;
}

section {
  min-height: 100vh;
  padding: var(--mobile-section-padding);
}

@media (min-width: 768px) and (max-width: 1024px) {
  section {
    padding: var(--tablet-section-padding);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header {
    padding: 2rem var(--tablet-left-right-spacing);
  }
}

@media (min-width: 1025px) {
  section {
    padding: var(--desktop-section-padding);
  }

  .header {
    padding: 2rem var(--desktop-left-right-spacing);
  }
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--second-bg-color);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.15;
  background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.4), rgba(var(--main-color-rgb), 0.1));
  border: 1px solid rgba(var(--main-color-rgb), 0.2);
  animation: float-shapes 20s infinite ease-in-out;
}

.shape-1 {
  width: 80px;
  height: 80px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 15%;
  left: 10%;
  animation-duration: 18s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: 20%;
  right: 15%;
  animation-duration: 25s;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%;
  top: 60%;
  left: 45%;
  animation-duration: 22s;
  animation-delay: -2s;
}

.shape-4 {
  width: 90px;
  height: 90px;
  border-radius: 24%;
  top: 25%;
  right: 35%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes float-shapes {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-30px) rotate(180deg) scale(1.1);
    opacity: 0.25;
  }

  100% {
    transform: translateY(0) rotate(360deg) scale(1);
  }
}

/* Scroll-Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  opacity: 0.8;
  transform: translateX(-50%) scale(1.05);
}

.scroll-down .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  position: relative;
  opacity: 0.7;
}

.scroll-down .mouse .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--main-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite ease-out;
}

.scroll-down .arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down .arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--text-color);
  border-right: 2px solid var(--text-color);
  transform: rotate(45deg);
  animation: scroll-arrow 1.6s infinite ease-in-out;
  opacity: 0.7;
}

.scroll-down .arrow span:nth-child(2) {
  animation-delay: 0.2s;
  margin-top: -3px;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  50% {
    top: 18px;
    opacity: 0.1;
  }

  100% {
    top: 6px;
    opacity: 1;
  }
}

@keyframes scroll-arrow {
  0% {
    opacity: 0;
    transform: translateY(-4px) rotate(45deg);
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(4px) rotate(45deg);
  }
}

@media (max-height: 600px) {
  .scroll-down {
    display: none;
  }
}

.home-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
}

@media (min-width: 1025px) {
  .home-wrapper {
    max-width: 1400px;
    margin: 0 auto;
  }
}

.home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--main-color-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--main-color-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: slideLeft 1s ease forwards;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1;
  color: var(--text-color);
}

.home-content h1 span {
  color: var(--main-color);
  display: inline-block;
  position: relative;
}

.home-content h2 {
  font-size: 3rem;
  margin: 0.5rem 0 1rem 0;
  color: var(--text-color);
  font-weight: 500;
}

.home-content h2 span,
.home-content .role-heading #typed-role {
  color: var(--main-color);
  font-weight: 600;
}

.typed-cursor {
  color: var(--main-color);
  font-weight: 600;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

.home-content p {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.home-content p b {
  color: var(--main-color);
  font-weight: 600;
}

.home-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideRight 1s ease forwards;
  z-index: 1;
  flex: 1;
  max-width: 500px;
}

.home-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  border: 3px solid var(--main-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.home-img::after {
  content: '';
  position: absolute;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  max-width: 430px;
  max-height: 430px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite 0.5s;
}

.home-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--main-color);
  box-shadow: 0 15px 50px rgba(var(--main-color-rgb), 0.4),
    0 0 80px rgba(var(--main-color-rgb), 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.home-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(var(--main-color-rgb), 0.5),
    0 0 100px rgba(var(--main-color-rgb), 0.3);
}

.home-content .social-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  width: fit-content;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  width: 55px;
  height: 55px;
  background: rgba(var(--main-color-rgb), 0.1);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--main-color);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.social-icons a:hover::before {
  width: 100%;
  height: 100%;
}

.social-icons a:hover {
  color: var(--bg-color);
  background-color: var(--main-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.4);
  border-color: var(--main-color);
}

.social-icons a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icons a:hover i {
  transform: scale(1.1);
}

[data-theme="light"] .social-icons a {
  background: #ffffff;
}

[data-theme="light"] .social-icons a:hover {
  color: var(--bg-color);
  background-color: var(--main-color);
}

.home-content .btn-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0;
  width: fit-content;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
    0 0 0px var(--main-color);
}

.btn-group a:nth-of-type(2) {
  background-color: var(--second-bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

[data-theme="light"] .btn-group a:nth-of-type(2) {
  background-color: #ffffff;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

[data-theme="light"] .btn-group a:nth-of-type(2):hover {
  color: var(--bg-color);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--second-bg-color);
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  max-width: 1400px;
  width: 100%;
  align-items: center;
  height: 100%;
}

.about-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideLeft 1s ease forwards;
}

.about-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 320px;
  border: 3px solid var(--main-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

.about-img::after {
  content: '';
  position: absolute;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  max-width: 340px;
  max-height: 340px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite 0.5s;
}

.about-img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--main-color);
  box-shadow: 0 10px 40px rgba(var(--main-color-rgb), 0.3),
    0 0 60px rgba(var(--main-color-rgb), 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(var(--main-color-rgb), 0.5),
    0 0 80px rgba(var(--main-color-rgb), 0.3);
}

.about-content {
  animation: slideRight 1s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-content h2 {
  font-size: 4.5rem;
  text-align: left;
  position: relative;
  display: inline-block;
  /* width: fit-content; */
  cursor: pointer;
  transition: color 0.3s ease;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  padding: 0;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content h2:hover {
  color: var(--main-color);
}

.about-content h2:hover::after {
  width: 40%;
}

.about-content p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.8rem;
  opacity: 0.9;
}

.about-content p b {
  color: var(--main-color);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 15px;
  border: 2px solid rgba(var(--main-color-rgb), 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-stats:hover {
  border-color: rgba(var(--main-color-rgb), 1);
  box-shadow: 0 8px 30px rgba(var(--main-color-rgb), 0.2);
}

.about-stat {
  text-align: center;
  padding: 0.8rem;
  transition: transform 0.3s ease;
}

.about-stat:hover {
  transform: translateY(-3px);
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-color);
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.about-stat-label {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: 500;
}

.about-content .btn {
  margin: 1.5rem 0 0 0;
  display: inline-block;
  align-self: flex-start;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

.services {
  background: var(--second-bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin-top: 4rem;
}

.service-card {
  background: var(--bg-color);
  border: 2px solid rgba(var(--main-color-rgb), 0.3);
  border-radius: 20px;
  padding: 4.5rem 3rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(var(--main-color-rgb), 0.15) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::before {
  left: 150%;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--main-color);
  box-shadow: 0 15px 35px rgba(var(--main-color-rgb), 0.25);
}

.service-card i {
  font-size: 5rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.15);
}

.service-card h3 {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--main-color);
}

.service-card p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
  }
}

@media (max-width: 600px) {
  .services {
    min-height: auto;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .service-card {
    padding: 3.5rem 2rem;
  }

  .service-card h3 {
    font-size: 1.9rem;
  }

  .service-card p {
    font-size: 1.3rem;
    line-height: 1.6;
  }
}

.experience {
  background-color: var(--second-bg-color);
  min-height: 100vh;
  position: relative;
}

.experience-wrapper {
  max-width: 1000px;
  margin: 4rem auto 0;
  position: relative;
}

.experience-timeline {
  position: relative;
  padding-left: 4rem;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(var(--main-color-rgb), 0.15);
  border-radius: 3px;
}

.experience-timeline .timeline-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, var(--main-color) 0%, rgba(var(--main-color-rgb), 0.8) 50%, var(--main-color) 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.8),
    0 0 20px rgba(var(--main-color-rgb), 0.4);
  z-index: 1;
  transition: height 0.1s ease-out;
}

.exp-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.exp-item:nth-child(1) {
  animation-delay: 0.2s;
}

.exp-item:nth-child(2) {
  animation-delay: 0.4s;
}

.exp-item:nth-child(3) {
  animation-delay: 0.6s;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -4.5rem;
  top: 1rem;
  width: 18px;
  height: 18px;
  background: var(--main-color);
  border: 4px solid var(--second-bg-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--main-color),
    0 0 20px rgba(var(--main-color-rgb), 0.6);
  z-index: 2;
}

.exp-year {
  position: absolute;
  left: -8rem;
  top: 0.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--main-color);
  opacity: 0.6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.2rem;
}

.exp-content {
  background: var(--bg-color);
  border-left: 4px solid var(--main-color);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.exp-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--main-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.exp-item:hover .exp-content {
  transform: translateX(10px);
  box-shadow: 0 12px 40px rgba(var(--main-color-rgb), 0.25);
  border-left-color: var(--main-color);
}

.exp-item:hover .exp-content::before {
  transform: scaleY(1);
}

.exp-role-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-color), rgba(var(--main-color-rgb), 0.8));
  color: var(--bg-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
}

.exp-role-badge.intern {
  background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.3), rgba(var(--main-color-rgb), 0.2));
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.exp-position {
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--main-color), var(--text-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.exp-item:hover .exp-position {
  background: linear-gradient(135deg, var(--main-color), var(--main-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exp-company {
  font-size: 1.9rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
}

.exp-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.exp-location,
.exp-period {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--text-color);
  opacity: 0.8;
}

.exp-location i,
.exp-period i {
  color: var(--main-color);
  font-size: 1.6rem;
}

.exp-description {
  margin-bottom: 2rem;
}

.exp-description p {
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.8;
  opacity: 0.9;
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-tag {
  background: rgba(var(--main-color-rgb), 0.1);
  color: var(--main-color);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 500;
  border: 1px solid rgba(var(--main-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Experience Section */
@media (max-width: 1024px) {
  .exp-year {
    font-size: 2rem;
    left: -7rem;
  }
}

@media (max-width: 768px) {
  .experience-timeline {
    padding-left: 3rem;
  }

  .experience-timeline::before {
    left: -1rem;
  }

  .experience-timeline .timeline-progress-bar {
    left: -1rem;
  }

  .exp-item::before {
    left: -3.5rem;
  }

  .exp-year {
    display: none;
  }

  .exp-content {
    padding: 2rem;
  }

  .exp-position {
    font-size: 2.2rem;
  }

  .exp-company {
    font-size: 1.6rem;
  }

  .exp-meta {
    gap: 1.5rem;
  }

  .exp-location,
  .exp-period {
    font-size: 1.3rem;
  }

  .exp-description p {
    font-size: 1.4rem;
  }

  .skill-tag {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .experience-wrapper {
    margin-top: 3rem;
  }

  .experience-timeline {
    padding-left: 2.5rem;
  }

  .experience-timeline::before {
    left: -0.5rem;
    width: 2px;
  }

  .experience-timeline .timeline-progress-bar {
    left: -0.5rem;
    width: 2px;
  }

  .exp-item {
    margin-bottom: 3rem;
  }

  .exp-item::before {
    left: -3rem;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .exp-content {
    padding: 1.5rem;
    border-left-width: 3px;
  }

  .exp-role-badge {
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1rem;
  }

  .exp-position {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
  }

  .exp-company {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .exp-meta {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .exp-location,
  .exp-period {
    font-size: 1.2rem;
  }

  .exp-description {
    margin-bottom: 1.5rem;
  }

  .exp-description p {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .exp-skills {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .skill-tag {
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
  }
}

.education {
  background-color: var(--second-bg-color);
}

.timeline-items {
  max-width: 1050px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: rgba(var(--main-color-rgb), 0.15);
  left: calc(50% - 1px);
}

.timeline-items .timeline-progress-bar {
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 5px;
  height: 0%;
  background-color: var(--main-color);
  box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.8),
    0 0 20px rgba(var(--main-color-rgb), 0.4);
  z-index: 1;
  transition: height 0.1s ease-out;
}

.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);

}

.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color),
    0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10%;
}

.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: var(--main-color);
  margin: 6px 0 15px;

}

.timeline-content {
  background-color: var(--bg-color);
  border: 1px solid var(--main-color);
  padding: 30px 50px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
  font-size: 25px;
  color: var(--text-color);
  margin: 0 0 10px;
  font-weight: 500;
  word-wrap: break-word;
}

.timeline-content p {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  word-wrap: break-word;
}

.timeline-content ul {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  word-wrap: break-word;
  margin-top: 1rem;
}

.timeline-content ul li {
  margin-bottom: 0.8rem;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);

}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

.skills {
  background: var(--second-bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 0.5s ease forwards;
  border: 2px solid rgba(var(--main-color-rgb), 0.5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(var(--main-color-rgb), 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--main-color);
  box-shadow: 0 15px 30px rgba(var(--main-color-rgb), 0.3),
    0 0 20px rgba(var(--main-color-rgb), 0.2),
    0 0 40px rgba(var(--main-color-rgb), 0.1);
}

.skill-card:hover::before {
  transform: translateX(100%);
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

.skill-card:nth-child(5) {
  animation-delay: 0.5s;
}

.skill-card:nth-child(6) {
  animation-delay: 0.6s;
}

.skill-card:nth-child(7) {
  animation-delay: 0.7s;
}

.skill-card:nth-child(8) {
  animation-delay: 0.8s;
}

.skill-card:nth-child(9) {
  animation-delay: 0.9s;
}

.skill-card:nth-child(10) {
  animation-delay: 1s;
}

.skill-card:nth-child(11) {
  animation-delay: 1.1s;
}

.skill-card:nth-child(12) {
  animation-delay: 1.2s;
}

.skill-card:nth-child(13) {
  animation-delay: 1.3s;
}

.skill-card:nth-child(14) {
  animation-delay: 1.4s;
}

.skill-card:nth-child(15) {
  animation-delay: 1.5s;
}

.skill-card i {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover i {
  transform: scale(1.2);
  color: var(--text-color);
}

.skill-card h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  transition: 0.3s ease;
}

.skill-card:hover h3 {
  color: var(--main-color);
  transform: scale(1.1);
}

.skill-level {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: var(--second-bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--main-color);
  border-radius: 10px;
  transition: width 1s ease-in-out;
  animation: progressAnimation 1.5s ease-in-out forwards;
}

.skill-level span {
  font-size: 1.4rem;
  color: var(--text-color);
  font-weight: 600;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressAnimation {
  from {
    width: 0;
  }
}

/* Responsive Design for Skills */
@media screen and (max-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .skills-container {
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-card i {
    font-size: 3rem;
  }

  .skill-card h3 {
    font-size: 1.5rem;
  }
}

.professional {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.box {
  position: relative;
  margin: 10px 0;
  flex: 1 1 15rem;
}

.box .text {
  text-align: center;
  font-size: 1rem;
  color: #fff;
}

.box .text big {
  font: 400;
  letter-spacing: 1px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.box .text .small {
  display: block;
  font-weight: 600;

}

.circle {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
}

.circle .points {
  width: 2px;
  height: 10px;
  background-color: var(--main-color);
  position: absolute;
  border-radius: 3px;
  transform: rotate(calc(var(--i)*var(--rot))) translateY(-45px);

}

.points.marked {
  animation: glow 0.04s linear forwards;
  animation-delay: calc(var(--i)*0.05s);

}

@keyframes glow {
  0% {
    background: var(--main-color);
    box-shadow: none;
  }

  100% {
    background: var(--text-color);
    box-shadow: var(--main-color);

  }
}

.services {
  /* display: flex; */
  background-color: var(--second-bg-color);
  color: black;
}

.services h2 {
  color: var(--text-color);

}

.services-container {
  /* display: flex; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2.5rem;

}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 500px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}

.service-box:hover {
  background-color: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.service-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;

}

.service-info i {
  font-size: 8rem;
}

.service-info h4 {
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;

}

.service-info p {
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.8;

}

.contact {
  background-color: var(--second-bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Contact Social Links */
.contact-social-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.contact-social-box {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.contact-social-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--main-color);
  border-color: var(--main-color);
}

.contact-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-social-link:hover {
  color: var(--main-color);
}

.contact-social-link i {
  font-size: 3rem;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.contact-social-link:hover i {
  transform: scale(1.2);
  color: var(--main-color);
}

.contact-social-link span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-social-link:hover span {
  color: var(--main-color);
}


/* Contact Social Links Responsive */
@media (max-width: 1024px) {
  .contact-social-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .contact-social-box {
    padding: 1.5rem;
  }

  .contact-social-link i {
    font-size: 2.5rem;
  }

  .contact-social-link span {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .contact-social-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .contact-social-box {
    padding: 1rem;
  }

  .contact-social-link i {
    font-size: 2rem;
  }

  .contact-social-link span {
    font-size: 1rem;
  }
}

@media (min-width: 1440px) {
  .contact form {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    flex-direction: row;
  }

  .contact form .input-group {
    width: 50%;
    flex: 1;
  }

  .contact form .input-group-2 {
    width: 50%;
    flex: 1;
  }
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-status {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  text-align: center;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  background: var(--bg-color);
  color: var(--text-color);
}

.form-status--success {
  color: var(--main-color);
}

.form-status--error {
  border-color: #e74c3c;
  color: #e74c3c;
}

.contact-fallback {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 auto 2rem;
  max-width: 1200px;
  color: var(--text-color);
  opacity: 0.9;
}

.contact-fallback a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: underline;
}

.form-field {
  width: 100%;
  text-align: left;
}

.form-field--full {
  width: 100%;
}

.field-error {
  display: block;
  min-height: 1.6rem;
  font-size: 1.3rem;
  color: #e74c3c;
  text-align: left;
  margin-top: 0.3rem;
}

.contact form .input-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.35);
}

.contact form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact form {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;
  animation: fadeIn 1s ease forwards;
  flex-direction: row;
  max-width: 1200px;
  margin-inline: auto;
}

.contact form .input-group,
.contact form .input-group-2 {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;

}

.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
  animation: slideUp 1s ease forwards;
}

.footer .social-icons {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer .social-icons a {
  margin: 0;
}

.footer ul {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 0;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: var(--text-color);
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: var(--text-color);
}

.footer .copyright span {
  color: var(--main-color);
}

@media(max-width:1024px) {
  #menu-icon {
    display: block;
    font-size: 2.8rem;
  }

  /* #menu-icon{
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    right: 5%;
    display: none;
    cursor: pointer;
  } */
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background-color: var(--nav-bg, rgba(0, 0, 0, 0.8));
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    border-bottom-left-radius: 2rem;
    display: none;


  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--text-color);
  }

  .navbar.active {
    display: block;

  }

  .home {
    min-height: auto;
  }

  .home-wrapper {
    flex-direction: column-reverse;
    gap: 4rem;
  }

  .home::before,
  .home::after {
    display: none;
  }

  .home-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0.8rem;
  }

  .home-content h2 {
    font-size: 2.5rem;
    margin: 0.4rem 0 1.2rem 0;
  }

  .home-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .home-content .social-icons {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .home-content .btn-group {
    justify-content: center;
  }

  .home-img {
    max-width: 350px;
  }

  .home-img img {
    max-width: 300px;
  }

  .home-img::before,
  .home-img::after {
    max-width: 300px;
    max-height: 300px;
  }

  .home-img::after {
    max-width: 330px;
    max-height: 330px;
  }

  .about {
    min-height: 100vh;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }

  .about-img {
    order: 1;
  }

  .about-img img {
    max-width: 280px;
  }

  .about-img::before,
  .about-img::after {
    max-width: 280px;
    max-height: 280px;
  }

  .about-img::after {
    max-width: 300px;
    max-height: 300px;
  }

  .about-content {
    order: 2;
    text-align: center;
  }

  .about-content h2 {
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 3.5rem;
  }

  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content h2:hover::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content p {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.2rem;
    margin: 1.2rem 0;
  }

  .about-stat-number {
    font-size: 2.2rem;
  }

  .about-stat-label {
    font-size: 1.1rem;
  }

  .about-content .btn {
    align-self: center;
  }

  .experience {
    display: block;
    /* padding: 2px; */
  }

  .education {
    display: block;
    /* padding: 2px; */
  }

  .services {
    grid-template-columns: 1fr;
  }

  .skill-main {
    grid-template-columns: 1fr;
  }

  .about-img img {
    max-width: 220px;
  }

  .about-img::before,
  .about-img::after {
    max-width: 220px;
    max-height: 220px;
  }

  .about-img::after {
    max-width: 240px;
    max-height: 240px;
  }

  .about-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
  }

  .about-stat-number {
    font-size: 2rem;
  }

  .about-stat-label {
    font-size: 1rem;
  }

}

@media (max-width:768px) {
  .contact form {
    flex-direction: column;
  }
}

/* Projects Section */
.projects {
  background-color: var(--second-bg-color);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 1200px;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-color);
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--main-color);
  color: var(--bg-color);
}

.project-box.filter-hidden {
  display: none;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.project-box {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-color);
  transition: 0.3s ease-in-out;
  border: 2px solid var(--main-color);
  transform-origin: center;
  opacity: 1;
  box-shadow: none;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 2rem 1.5rem;
  box-sizing: border-box;
}

.project-box:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px var(--main-color);
  border-color: var(--main-color);
}

.project-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  background: var(--bg-color);
  transition: 0.4s ease;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.project-info h3 {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 0.8rem;
}

.project-info p {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
  justify-content: center;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--main-color);
  color: var(--bg-color);
  border-radius: 50%;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid var(--main-color);
}

.project-links a:hover {
  background: transparent;
  color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--main-color-rgb), 0.3);
}

.project-links i {
  font-size: 1.8rem;
  transition: 0.3s ease;
}

.project-links a:hover i {
  transform: scale(1.1);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.2rem 0 1.2rem 0;
}

.project-tags span {
  font-size: 1rem;
  padding: 0.25em 0.8em;
  background: rgba(255, 255, 255, 0.07);
  color: var(--main-color);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  border: 2px solid var(--main-color);
  box-sizing: border-box;
  border-radius: 50px;
}

.project-tags span:hover {
  background: var(--main-color);
  color: var(--bg-color);
}

[data-theme="light"] .project-box {
  background: #fff;
}

[data-theme="dark"] .project-box {
  background: #080808;
}

/* General Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-left {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideLeft 1s ease forwards;
}

.slide-right {
  opacity: 0;
  transform: translateX(100px);
  animation: slideRight 1s ease forwards;
}

.pop-in {
  opacity: 0;
  transform: scale(0.5);
  animation: popIn 0.8s ease forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Home Section */
.home-content {
  animation: slideLeft 1s ease forwards;
}

.home-img {
  animation: slideRight 1s ease forwards;
}

/* About Section */
.about-img {
  animation: slideLeft 1s ease forwards;
}

.about-content {
  animation: slideRight 1s ease forwards;
}

/* Experience & Education Section */
.timeline-item {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

/* Skills Section */
.skill-card i {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover i {
  transform: scale(1.2);
  color: var(--text-color);
}

.skill-card h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  transition: 0.3s ease;
}

.skill-card:hover h3 {
  color: var(--main-color);
  transform: scale(1.1);
}

/* Projects Section */
.project-box {
  opacity: 0;
  animation: popIn 0.8s ease forwards;
}

.project-box:nth-child(1) {
  animation-delay: 0.2s;
}

.project-box:nth-child(2) {
  animation-delay: 0.4s;
}

.project-box:nth-child(3) {
  animation-delay: 0.6s;
}

/* Contact Section */
.contact form {
  animation: fadeIn 1s ease forwards;
}

/* Footer */
.footer {
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* New Animations */
@keyframes borderRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientMove {
  0% {
    transform: translateX(-100%) rotate(0deg);
  }

  100% {
    transform: translateX(100%) rotate(360deg);
  }
}

@keyframes lineGrow {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--main-color-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(var(--main-color-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--main-color-rgb), 0);
  }
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: color 0.3s ease;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.heading:hover {
  color: var(--main-color);
}

.heading:hover::after {
  width: 100%;
}

.skills h2,
.projects h2,
.experience h2,
.education h2,
.contact h2 {
  text-align: center;
  font-size: 5rem;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: color 0.3s ease;
}

.skills h2::after,
.projects h2::after,
.experience h2::after,
.education h2::after,
.contact h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills h2:hover,
.projects h2:hover,
.experience h2:hover,
.education h2:hover,
.contact h2:hover {
  color: var(--main-color);
}

.skills h2:hover::after,
.projects h2:hover::after,
.experience h2:hover::after,
.education h2:hover::after,
.contact h2:hover::after {
  width: 100%;
}

@media (max-width: 900px) {

  .heading,
  .skills h2,
  .projects h2,
  .experience h2,
  .education h2,
  .contact h2 {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {

  .heading,
  .skills h2,
  .projects h2,
  .experience h2,
  .education h2,
  .contact h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
}

.footer ul li:nth-child(3) {
  display: none;
}

@media (max-width: 768px) {
  .timeline-items::before {
    left: 10px;
    transform: none;
  }

  .timeline-items .timeline-progress-bar {
    left: 10px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 4.5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 3px;
    transform: none;
  }

  .timeline-content {
    padding: 20px 24px;
  }

  .timeline-content h3 {
    font-size: 20px;
  }

  .timeline-content p {
    font-size: 14px;
    line-height: 20px;
  }

  .timeline-content ul {
    font-size: 13px;
    line-height: 18px;
    padding-left: 1.5rem;
  }

  .timeline-content ul li {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 480px) {
  .timeline-items::before {
    left: 8px;
  }

  .timeline-items .timeline-progress-bar {
    left: 8px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 3.5rem;
  }

  .timeline-dot {
    width: 16px;
    height: 16px;
    left: 3px;
  }

  .timeline-content {
    padding: 15px 18px;
    border-radius: 2rem;
  }

  .timeline-content h3 {
    font-size: 18px;
  }

  .timeline-content p {
    font-size: 13px;
    line-height: 18px;
  }

  .timeline-content ul {
    font-size: 12px;
    line-height: 16px;
    padding-left: 1.2rem;
  }

  .timeline-content ul li {
    margin-bottom: 0.5rem;
  }

  .timeline-date {
    font-size: 16px;
  }
}

.accent-picker-container {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.accent-toggle {
  background: var(--main-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.accent-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--main-color);
}

.accent-toggle i {
  font-size: 1.8rem;
  color: var(--bg-color);
  transition: transform 0.3s ease;
}

.accent-toggle:hover i {
  transform: rotate(30deg);
}

.accent-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 20px;
  padding: 0.8rem;
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 101;
  animation: slideDownFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accent-menu[hidden] {
  display: none !important;
}

.accent-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.accent-dot:hover {
  transform: scale(1.25);
}

.accent-dot.active {
  border-color: var(--text-color);
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--main-color);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .accent-toggle {
    width: 35px;
    height: 35px;
    margin-left: 0.5rem;
  }

  .accent-toggle i {
    font-size: 1.6rem;
  }

  .accent-menu {
    top: 45px;
  }

  .accent-dot {
    width: 20px;
    height: 20px;
  }
}

.theme-toggle {
  position: relative;
  background: var(--main-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-left: 1rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--main-color);
}

.theme-toggle i {
  font-size: 2rem;
  color: var(--bg-color);
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .theme-toggle {
    width: 35px;
    height: 35px;
    margin-left: 0.5rem;
  }

  .theme-toggle i {
    font-size: 1.8rem;
  }

  #menu-icon {
    display: block;
    font-size: 2.8rem;
    margin-left: 0.5rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background-color: var(--nav-bg, rgba(0, 0, 0, 0.8));
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    border-bottom-left-radius: 2rem;
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 2rem 0;
    color: var(--text-color);
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 30px;
    height: 30px;
  }

  .theme-toggle i {
    font-size: 1.5rem;
  }

  #menu-icon {
    font-size: 2.4rem;
  }
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .nav-icons {
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .nav-icons {
    gap: 0.2rem;
  }
}

.logo-chevron {
  color: var(--main-color);
  font-weight: 900;
  font-size: 1em;
  margin: 0 0.05em;
}

.logo-slash {
  color: var(--main-color);
  font-weight: 900;
  font-size: 1.1em;
  vertical-align: middle;
  margin: 0 0.05em;
}

.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 99;
  width: 4.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 50%;
  background: var(--main-color);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(var(--main-color-rgb), 0.45);
}

.back-to-top i {
  font-size: 2.4rem;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
  }

  .back-to-top i {
    font-size: 2rem;
  }
}

.mini-projects {
  background: var(--second-bg-color);
}

.mini-projects .heading {
  text-align: center;
  font-size: 5rem;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mini-projects .heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-projects .heading:hover {
  color: var(--main-color);
}

.mini-projects .heading:hover::after {
  width: 100%;
}

.mini-underline {
  width: 120px;
  height: 6px;
  background: var(--main-color);
  margin: 0 auto 3rem auto;
  border-radius: 3px;
}

.mini-projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .mini-projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mini-project-box {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 1.2rem 0.3rem 1.2rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}

.mini-project-box:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px var(--main-color);
  border-color: var(--main-color);
}

.mini-project-box img {
  width: 95%;
  max-width: 95%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0.7rem;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}

.mini-project-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.7rem 1rem 0.7rem 1rem;
  box-sizing: border-box;
}

.mini-project-info h3 {
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mini-project-info p {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.mini-btn-group {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  justify-content: center;
}

.mini-btn {
  background: var(--main-color);
  color: var(--bg-color);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4em 1.1em;
  border-radius: 2em;
  border: 2px solid transparent;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  display: inline-block;
  min-width: 60px;
  box-sizing: border-box;
}

.mini-btn:hover {
  background: var(--main-color);
  color: black;
  border: 2px solid transparent;
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color), 0 0 0px var(--main-color);
}

[data-theme="light"] .mini-btn:hover {
  color: var(--bg-color);
}

@media (max-width: 900px) {
  .mini-projects .heading {
    font-size: 3rem;
  }

  .mini-project-box img {
    max-width: 100%;
    height: 140px;
  }

  .certifications .heading {
    font-size: 3rem;
  }

  .certifications-container {
    grid-template-columns: 1fr;
  }

  .certification-card img {
    max-width: 100%;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .mini-projects .heading {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .mini-project-box {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
    min-height: 120px;
  }

  .mini-project-info {
    padding: 0.4rem 0.5rem 0.4rem 0.5rem;
  }

  .mini-btn {
    font-size: 0.85rem;
    padding: 0.25em 0.7em;
    min-width: 40px;
  }

  .certifications .heading {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .certifications-container {
    gap: 1rem;
  }

  .certification-card {
    padding: 0.3rem 0.1rem 0.3rem 0.1rem;
    min-height: 70px;
  }

  .certification-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.7rem 1rem 0.7rem 1rem;
    box-sizing: border-box;
  }

  .certification-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .certification-info p {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }

  .cert-btn {
    font-size: 0.85rem;
    padding: 0.25em 0.7em;
    min-width: 40px;
  }
}

.certifications {
  background: var(--second-bg-color);
}

.certifications .heading {
  text-align: center;
  font-size: 5rem;
  margin: 0 auto 2.5rem;
  color: var(--text-color);
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: color 0.3s ease;
}

.certifications .heading::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--main-color);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certifications .heading:hover {
  color: var(--main-color);
}

.certifications .heading:hover::after {
  width: 100%;
}

.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.certification-card {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0.7rem 0.3rem 0.7rem 0.3rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.certification-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(var(--main-color-rgb), 0.3),
    0 0 30px rgba(var(--main-color-rgb), 0.2);
  border-color: var(--main-color);
}

.certification-card:hover::before {
  opacity: 1;
}

.certification-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.7rem 1rem 0.7rem 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.certification-card:hover .certification-info {
  transform: none;
}

.certification-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.certification-card:hover .certification-info h3 {
  color: var(--main-color);
}

.certification-info p {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  transition: opacity 0.3s ease;
}

.cert-btn {
  background: var(--main-color);
  color: var(--bg-color);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4em 1.1em;
  border-radius: 2em;
  border: 2px solid transparent;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  display: inline-block;
  min-width: 60px;
  box-sizing: border-box;
}

.cert-btn {
  position: relative;
  z-index: 2;
}

.cert-btn:hover {
  background: var(--main-color);
  color: black;
  border: 2px solid transparent;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 5px 20px rgba(var(--main-color-rgb), 0.5),
    0 0 15px rgba(var(--main-color-rgb), 0.3);
}

[data-theme="light"] .cert-btn:hover {
  color: var(--bg-color);
}

@media (max-width: 900px) {
  .certifications .heading {
    font-size: 3rem;
  }

  .certifications-container {
    grid-template-columns: 1fr;
  }

  .certification-card img {
    max-width: 100%;
    height: 60px;
  }
}

@media (max-width: 600px) {

  .mini-projects-container,
  .certifications-container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .about-content h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .about {
    min-height: auto;
  }

  .about-wrapper {
    gap: 2.5rem;
  }

  .about-img img {
    max-width: 200px;
  }

  .about-img::before,
  .about-img::after {
    max-width: 200px;
    max-height: 200px;
  }

  .about-img::after {
    max-width: 220px;
    max-height: 220px;
  }

  .about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .about-content p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    margin: 1rem 0;
  }

  .about-stat {
    padding: 0.5rem;
  }

  .about-stat-number {
    font-size: 1.8rem;
  }

  .about-stat-label {
    font-size: 0.95rem;
  }

  .about-content .btn {
    margin: 1rem 0 0 0;
    padding: 0.8rem 2rem;
    font-size: 1.5rem;
  }

  .mini-projects-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .skills-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact form .input-box input,
  .contact form textarea {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .about {
    min-height: auto;
  }

  .about-wrapper {
    gap: 2rem;
  }

  .about-img img {
    max-width: 180px;
  }

  .about-img::before,
  .about-img::after {
    max-width: 180px;
    max-height: 180px;
  }

  .about-img::after {
    max-width: 200px;
    max-height: 200px;
  }

  .about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.8rem;
    margin: 0.8rem 0;
  }

  .about-stat {
    padding: 0.4rem;
  }

  .about-stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .about-stat-label {
    font-size: 0.85rem;
  }

  .about-content .btn {
    margin: 0.8rem 0 0 0;
    padding: 0.7rem 1.8rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .home-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .home-wrapper {
    gap: 3rem;
  }

  .home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.6rem;
  }

  .home-content h2 {
    font-size: 2rem;
    margin: 0.3rem 0 1rem 0;
  }

  .home-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .home-content .social-icons {
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: fit-content;
  }

  .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 2.2rem;
  }

  .home-content .btn-group {
    gap: 1rem;
    width: fit-content;
    max-width: calc(4 * 50px + 3 * 1rem);
  }

  .home-content .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    box-sizing: border-box;
  }

  .home-img {
    max-width: 280px;
    margin-top: 30px;
  }

  .home-img img {
    max-width: 250px;
  }

  .home-img::before,
  .home-img::after {
    max-width: 250px;
    max-height: 250px;
  }

  .home-img::after {
    max-width: 270px;
    max-height: 270px;
  }
}

@media (max-width: 480px) {
  .home-wrapper {
    gap: 2.5rem;
  }

  .home-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
  }

  .home-content h2 {
    font-size: 1.7rem;
    margin: 0.2rem 0 0.8rem 0;
  }

  .home-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  .home-content .social-icons {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    width: fit-content;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .home-content .btn-group {
    width: fit-content;
    max-width: calc(4 * 45px + 3 * 0.8rem);
  }

  .home-content .btn {
    padding: 0.9rem 1.8rem;
    font-size: 1.5rem;
    box-sizing: border-box;
  }

  .home-img {
    max-width: 220px;
  }

  .home-img img {
    max-width: 200px;
  }

  .home-img::before,
  .home-img::after {
    max-width: 200px;
    max-height: 200px;
  }

  .home-img::after {
    max-width: 220px;
    max-height: 220px;
  }
}

@media (max-width: 320px) {
  .logo {
    font-size: 1.8rem;
  }

  .home-content h1 {
    font-size: 2.4rem;
  }

  .home-content h2 {
    font-size: 1.5rem;
  }

  .home-content p {
    font-size: 1.1rem;
  }
}

/* Glassmorphic Modal overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--main-color-rgb), 0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 4rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(var(--main-color-rgb), 0.15);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-color);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 3.5rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--main-color);
  transform: scale(1.1) rotate(90deg);
}

.modal-content h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(var(--main-color-rgb), 0.2);
  padding-bottom: 1rem;
}

.modal-content h2 span {
  color: var(--main-color);
}

.modal-body {
  font-size: 1.6rem;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 1.8rem;
  opacity: 0.9;
}

.modal-body h3 {
  font-size: 2rem;
  color: var(--main-color);
  margin: 2.5rem 0 1rem 0;
  font-weight: 600;
}

.modal-body ul {
  margin-bottom: 1.8rem;
  padding-left: 2rem;
  list-style-type: none;
}

.modal-body ul li {
  position: relative;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.modal-body ul li::before {
  content: '✓';
  color: var(--main-color);
  position: absolute;
  left: -2rem;
  font-weight: bold;
}

/* Customize vertical scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(var(--main-color-rgb), 0.4);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--main-color);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 2.5rem 2rem;
    max-height: 90vh;
  }

  .modal-content h2 {
    font-size: 2.4rem;
  }

  .modal-body {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .modal-body h3 {
    font-size: 1.7rem;
  }
}