:root {
  --font-main: "Poppins", sans-serif;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --success: #10b981;
  --header-offset: 68px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font-family: var(--font-main);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 600;
}

body :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  a,
  span,
  strong,
  small,
  li,
  label,
  button,
  input,
  textarea,
  select,
  div
) {
  font-family: var(--font-main);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


section {
  padding: 80px 0;
  scroll-margin-top: 90px;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  margin: 0 auto 40px;
  position: relative;
  display: block;
  width: fit-content;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 1.2vw, 14px) 0;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--secondary);
}

.brand-logo {
  display: block;
  width: clamp(108px, 7.2vw, 142px);
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  transition: all 0.4s ease-in-out;
  margin-left: auto;
  gap: clamp(12px, 1.4vw, 24px);
}

.nav-links li {
  margin-left: 0;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.04rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a.is-active {
  color: var(--primary);
}

/* Smooth underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a.is-active::after {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--primary);
  }

  .nav-links a:hover::after {
    width: 100%;
  }
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-links .dropdown-toggle .fa-chevron-down {
  font-size: 0.78em;
  transition: transform 0.3s ease;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1002;
}

.nav-links .dropdown-menu li {
  margin: 0;
}

.nav-links .dropdown-menu a {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links .dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.1);
  }
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
  backface-visibility: hidden;
}

@media (min-width: 769px) and (max-width: 1023px) {
  .header-container {
    padding: 12px 0;
    min-height: 72px;
  }

  .brand-logo {
    width: clamp(112px, 12vw, 148px);
  }

  .nav-links {
    margin-left: auto;
    margin-right: 16px;
    position: static;
    left: auto;
    transform: none;
    justify-content: flex-end;
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 12px 0;
    min-height: 72px;
  }

  .brand-logo {
    width: clamp(120px, 8.2vw, 150px);
  }

  .nav-links {
    margin-left: auto;
    margin-right: 18px;
    position: static;
    left: auto;
    transform: none;
    justify-content: flex-end;
    gap: clamp(14px, 1.4vw, 24px);
  }

  .nav-links a {
    font-size: clamp(0.98rem, 0.82vw, 1.08rem);
    font-weight: 600;
  }

  .dark-mode-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.12rem;
  }

  .nav-links .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 16vh, 160px) 0 clamp(72px, 9vh, 108px);
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.36), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(56, 189, 248, 0.2), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  width: 100%;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding-right: clamp(0px, 3vw, 16px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(30, 41, 59, 0.55);
  color: #dbeafe;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  margin-bottom: 16px;
  line-height: 1.08;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em;
}

.hero-greeting {
  color: #f8fafc;
  text-shadow: 0 0 16px rgba(15, 23, 42, 0.55);
}

.hero-heading .fa-code {
  color: #e2e8f0;
  font-size: 0.9em;
  opacity: 0.92;
  margin-left: 0.06em;
  transform: translateY(-0.02em);
}

.hero-type-name {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
  position: relative;
  display: inline-block;
  min-height: 1.12em;
  min-width: 14ch;
  white-space: nowrap;
}

.hero-type-name::after {
  content: "";
  position: absolute;
  right: -0.08em;
  top: 0.1em;
  width: 0.08em;
  height: 0.88em;
  background: rgba(191, 219, 254, 0.95);
  animation: cursorBlink 0.85s step-end infinite;
}

.hero-type-name.is-done::after {
  animation: none;
  opacity: 0.55;
}

.hero-text h1 .hero-type-name {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-text p {
  margin: 0;
}

.hero-summary {
  position: relative;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: #e2e8f0;
  margin: 0 0 26px;
  max-width: 620px;
  padding: clamp(14px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px) clamp(14px, 2.2vw, 22px)
    clamp(20px, 2.8vw, 30px);
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.34);
  background: linear-gradient(
    140deg,
    rgba(15, 23, 42, 0.76) 0%,
    rgba(30, 64, 175, 0.2) 100%
  );
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(7px);
}

.hero-summary::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa 0%, #38bdf8 100%);
}

.hero-summary strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.74) 0%,
    rgba(30, 64, 175, 0.32) 100%
  );
  border: 1px solid rgba(147, 197, 253, 0.44);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.hero-highlights span i {
  color: #93c5fd;
}

.hero-highlights span:hover {
  transform: translateY(-2px);
  border-color: rgba(186, 230, 253, 0.7);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(37, 99, 235, 0.4) 100%
  );
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.34);
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -6px;
}

.hero-image-shell {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 0.9;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(30, 64, 175, 0.24) 100%
  );
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
  overflow: visible;
  backdrop-filter: blur(2px);
  padding: clamp(10px, 2vw, 18px);
}

.hero-image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.45) 0%, rgba(96, 165, 250, 0) 56%),
    radial-gradient(circle at 16% 84%, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 62%);
  animation: heroPulse 7s ease-in-out infinite;
  z-index: 0;
}

.hero-image-shell::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, 0.24);
  pointer-events: none;
  z-index: 1;
}

.hero-image-square {
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 2px solid rgba(96, 165, 250, 0.46);
  background: linear-gradient(
    145deg,
    rgba(30, 64, 175, 0.1) 0%,
    rgba(59, 130, 246, 0.08) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(191, 219, 254, 0.2),
    0 20px 40px rgba(2, 6, 23, 0.32);
  z-index: 1;
}

.hero-image-figure {
  position: absolute;
  inset: -52px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 22px 10px;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.hero-image img {
  width: clamp(360px, 38vw, 560px);
  max-width: 115%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transform: translateY(14px) scale(1.08);
  transform-origin: center bottom;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.45));
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(191, 219, 254, 0.34);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 4;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 20px rgba(2, 6, 23, 0.28);
  white-space: nowrap;
}

.hero-badge-top {
  top: 18px;
  right: 18px;
}

.hero-badge-bottom {
  left: 18px;
  bottom: 18px;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btns .btn {
  min-width: 178px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 58%, #1e40af 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.social-links {
  display: flex;
  margin-top: 28px;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(191, 219, 254, 0.38);
  color: #eff6ff;
  transition: var(--transition);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.social-links a:hover {
  background: rgba(37, 99, 235, 0.95);
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

/* Impact Data Section */
.impact-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.14), transparent 45%),
    #f1f5ff;
  padding: 56px 0 72px;
}

.impact-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.impact-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.impact-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.impact-intro p {
  color: var(--gray);
}
.impact-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.impact-proof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.impact-proof-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
  filter: brightness(1.03);
}
.impact-proof-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.impact-media {
  position: relative;
  height: 168px;
  background: #0f172a;
  overflow: hidden;
}

.impact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

.impact-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  transform: none;
  transition: none;
  pointer-events: none;
}

.impact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.impact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-125%);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: 2;
}

.impact-card:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
}

.impact-card:hover::after {
  transform: translateX(125%);
}

.impact-card:hover .impact-media img {
  transform: none;
  filter: none;
}

.impact-card:hover .impact-media::after {
  transform: none;
}

.impact-body {
  padding: 18px 20px 20px;
}

.impact-value {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.impact-card p {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 992px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .impact-section {
    padding: 44px 0 54px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .impact-media {
    height: 150px;
  }

  .impact-body {
    padding: 16px 16px 18px;
  }
  .impact-actions {
    margin-top: 16px;
  }
  .impact-proof-btn {
    width: min(100%, 320px);
  }
}

/* About Section */
#about {
  background: linear-gradient(
      135deg,
      rgba(2, 6, 23, 0.78) 0%,
      rgba(2, 6, 23, 0.62) 100%
    ),
    url("https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=1920")
      center center/cover no-repeat;
  background-position: center center;
  color: #fff;
}

#about .section-title {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

#about .section-title::after {
  background: rgba(255, 255, 255, 0.9);
}

#about .education-section h4,
#about .certificates-section h4,
#about .education-details,
#about .education-details strong,
#about .education-details p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: none;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray); 
}

#about .education-section,
#about .certificates-section {
  width: 100%;
}

#about .education-section {
  margin-top: 24px;
}

#about .education-title {
  margin-bottom: 12px;
}

#about .education-title i {
  color: #6c63ff;
}

#about .education-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(30, 41, 59, 0.42) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

#about .education-logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
}

#about .education-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

#about .education-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
}

#about .education-details {
  min-width: 0;
  display: grid;
  gap: 6px;
  line-height: 1.35;
}

#about .education-details strong {
  font-size: clamp(1.12rem, 2.3vw, 1.52rem);
  line-height: 1.25;
}

#about .education-degree {
  margin: 0;
  font-size: clamp(1rem, 1.95vw, 1.22rem);
  opacity: 0.96;
}

#about .education-college {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.96);
}

#about .education-year {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.98);
}

#about .education-year span {
  color: #c7d2fe;
  font-weight: 700;
}

#about .certificates-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: initial;
}

#about .certificate-item {
  width: 100% !important;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 52%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  box-sizing: border-box;
  overflow: hidden;
}

#about .certificate-item img {
  width: 100%;
  height: 118px !important;
  border: 2px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
}

@media (max-width: 900px) {
  #about .about-content {
    gap: 26px !important;
  }

  #about .about-image {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  #about .education-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  #about .education-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 16px 14px;
  }

  #about .education-logo-wrap {
    width: 80px;
    height: 80px;
  }

  #about .education-logo {
    width: 66px;
    height: 66px;
  }

  #about .education-details {
    justify-items: center;
    gap: 5px;
  }

  #about .education-logo {
    margin-right: 0 !important;
  }

  #about .certificates-gallery {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  #about .certificates-gallery {
    grid-template-columns: 1fr;
  }

  #about .certificate-item img {
    height: 160px !important;
  }
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.skill-chip {
  background-color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-chip:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Experience Section */
#experience {
  background-color: #f8fafc;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-company {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.timeline-description {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Projects Section */
#projects {
  background-color: white;
  scroll-margin-top: calc(var(--header-offset, 74px) + 12px);
}

#projects-home {
  scroll-margin-top: calc(var(--header-offset, 74px) + 12px);
}

.projects-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.projects-slider {
  flex: 1;
  overflow: hidden;
}
.projects-slider-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-slider-btn:disabled {
  background: var(--light-gray);
  color: var(--gray);
  cursor: not-allowed;
}
.projects-grid {
  display: flex;
  transition: all 0.3s;
  gap: 30px;
  width: 100%;
}
.project-card {
  min-width: 320px;
  max-width: 370px;
  flex: 1 0 0;
}

/* Responsive adjustments for slider */
@media (max-width: 992px) {
  .projects-grid {
    gap: 18px;
  }
  .project-card {
    min-width: 260px;
    max-width: 1fr;
  }
}
@media (max-width: 768px) {
  .projects-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .project-card {
    min-width: 220px;
  }
}
@media (max-width: 576px) {
  .projects-slider-wrapper {
    gap: 4px;
  }
  .projects-grid {
    gap: 8px;
  }
  .project-card {
    min-width: 90vw;
    max-width: 98vw;
  }
}

.view-all-projects-btn {
  display: block;
  margin: 30px auto 0 auto;
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.view-all-projects-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-description {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tag {
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  display: flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-link i {
  margin-right: 5px;
}

.project-link:hover {
  color: var(--primary-dark);
}

/* Contact Section */
#contact {
  background-color: #f8fafc;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand-logo {
  width: auto;
  height: clamp(34px, 2.6vw, 46px);
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(15, 23, 42, 0.28));
}

.footer-links {
  display: flex;
  list-style: none;
  margin-bottom: 30px;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

.fade-only {
  opacity: 0;
  transform: none !important;
  transition: opacity 0.72s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.fade-only.is-visible {
  opacity: 1;
}

.scroll-animate {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}

.scroll-animate.from-left {
  transform: translate3d(-44px, 24px, 0);
}

.scroll-animate.from-right {
  transform: translate3d(44px, 24px, 0);
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

.delay-3 {
  transition-delay: 360ms;
}

.delay-4 {
  transition-delay: 480ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-image-figure,
  .hero-image-shell::before {
    animation: none;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  #hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }

  .hero-image {
    order: -1;
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .hero-text {
    order: 2;
    padding-right: 0;
    margin-top: 0;
  }

  .hero-kicker,
  .hero-text h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    justify-content: center;
  }

  .hero-type-name {
    min-width: 12.5ch;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-image-shell {
    width: min(460px, 95vw);
    aspect-ratio: 1 / 0.88;
    padding: 12px;
  }

  .hero-image-figure {
    inset: -36px 0 0;
    padding: 0 14px 10px;
  }

  .hero-image img {
    width: min(410px, 100%);
    transform: translateY(10px) scale(1.04);
  }

  .hero-badge-top {
    top: 10px;
    right: 14px;
  }

  .hero-badge-bottom {
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
  }

  .hero-badge {
    max-width: calc(100% - 28px);
    justify-content: center;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .left::after,
  .right::after {
    left: 21px;
  }

  .right {
    left: 0;
  }

  .contact-container {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-offset, 74px);
    right: 0;
    left: auto;
    transform: translateX(calc(100% + 14px));
    width: min(230px, calc(100vw - 24px));
    max-width: none;
    height: calc(100dvh - var(--header-offset, 74px));
    padding: 54px 14px 24px;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 255, 0.82)),
      url("https://images.pexels.com/photos/1779487/pexels-photo-1779487.jpeg?auto=compress&cs=tinysrgb&w=1200")
        center center/cover no-repeat;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    box-shadow: -20px 0 45px rgba(15, 23, 42, 0.22);
    border-radius: 0;
    border-left: 1px solid rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(5px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2100;
    isolation: isolate;
  }

  .nav-links::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.46) 0%,
      rgba(226, 232, 240, 0.22) 100%
    );
    z-index: -1;
  }

  .nav-links.active {
    transform: translateX(0); /* smooth slide in */
  }

  .nav-links li {
    width: 100%;
    margin: 7px 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    text-align: left;
  }

  .nav-links li:first-child {
    margin-top: 2px;
  }

  .nav-links a,
  .nav-links .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 6px;
    white-space: nowrap;
  }

  .nav-links .dropdown {
    width: 100%;
  }

  .nav-links .dropdown-toggle {
    justify-content: flex-start;
  }

  .nav-links .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 0 10px;
    border-radius: 10px;
    box-shadow: none;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  .nav-links .dropdown.active .dropdown-menu {
    display: block !important;
    max-height: 320px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-links .dropdown.active .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
  }

  .nav-links .dropdown-menu a {
    justify-content: flex-start;
    padding: 9px 12px;
  }

  /* animate each item when active */
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* optional stagger effect */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }

  /* Hamburger show on mobile */
  .hamburger {
    display: block;
    position: relative;
  }

  /* Hamburger animation */
  .hamburger.active div:nth-child(1) {
    transform: translateY(5.6px) rotate(45deg);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: translateY(-5.6px) rotate(-45deg);
  }

  /* Optional: dark overlay when menu opens */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    backdrop-filter: none;
    transition: opacity 0.3s ease;
  }

  body.menu-open #arrowTopBtn {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 576px) {
  #hero {
    padding-top: 102px;
    padding-bottom: 46px;
  }

  .container {
    padding: 0 14px;
  }

  .nav-links {
    padding-top: 48px;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .hero-text {
    order: 2;
    padding-right: 0;
    margin-top: 0;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
    margin-bottom: 12px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    justify-content: center;
  }

  .hero-type-name {
    min-width: 11ch;
  }

  .hero-summary {
    font-size: 0.98rem;
    margin-bottom: 20px;
    max-width: 100%;
    padding: 14px 14px 14px 20px;
    line-height: 1.66;
    text-align: justify;
  }

  .hero-summary::before {
    left: 8px;
    top: 12px;
    bottom: 12px;
  }

  .hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
  }

  .hero-highlights {
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .hero-highlights span {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .hero-image {
    order: 1;
    margin-top: 0;
    margin-bottom: 12px;
    width: 100%;
    height: auto;
  }

  .hero-image-shell {
    width: min(360px, 100%);
    border-radius: 24px;
    aspect-ratio: 1 / 0.92;
    padding: 12px;
  }

  .hero-image-figure {
    inset: -24px 0 0;
    padding: 0 8px 10px;
  }

  .hero-image-shell::after {
    inset: 10px;
    border-radius: 18px;
  }

  .hero-image-square {
    inset: 12px;
    border-radius: 20px;
  }

  .hero-image img {
    width: min(320px, 100%);
    transform: translateY(8px) scale(1.05);
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 10px;
    gap: 6px;
  }

  .hero-badge-top {
    top: 12px;
    right: 12px;
  }

  .hero-badge-bottom {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .social-links {
    gap: 10px;
    margin-top: 16px;
  }

  .about-content {
    flex-direction: column;
    gap: 25px;
  }

  .about-image img {
    border-radius: 12px;
  }

  .about-text h3 {
    font-size: 1.rem;
    margin-bottom: 12px;
  }
  
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    justify-content: center;
  }

  .skill-chip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .timeline {
    max-width: 100%;
    padding: 0 0;
  }

  .timeline-item {
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-content {
    padding: 12px;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-company {
    font-size: 0.95rem;
  }

  .timeline-description {
    font-size: 0.85rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-image {
    height: 120px;
  }

  .project-info {
    padding: 12px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  .project-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .contact-container {
    flex-direction: column;
    gap: 25px;
  }

  .contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .contact-details {
    gap: 10px;
  }

  .contact-item {
    gap: 8px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group label {
    margin-bottom: 5px;
    font-size: 0.95rem;
  }

  .form-control {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  textarea.form-control {
    min-height: 80px;
  }

  .footer-container {
    padding: 0 8px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-brand-logo {
    height: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-social {
    gap: 8px;
    margin-bottom: 18px;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* Extra small devices (≤400px) */
@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .hero-text h1 {
    font-size: 1.65rem;
  }

  .hero-type-name {
    min-width: 10ch;
  }
  .hero-image-shell {
    width: min(320px, 100%);
    aspect-ratio: 1 / 0.94;
  }
  .hero-image-figure {
    inset: -18px 0 0;
  }
  .hero-image img {
    width: min(285px, 100%);
    transform: translateY(6px) scale(1.03);
  }
  .hero-badge {
    font-size: 0.68rem;
    padding: 5px 8px;
  }
  .btn {
    font-size: 0.85rem;
    padding: 8px 0;
  }
  .footer-logo {
    font-size: 1rem;
  }
}

/* Responsive and centered GitHub button for projects section */
.projects-github-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

@media (max-width: 576px) {
  .projects-github-btn-wrapper {
    margin-top: 24px;
  }
  .projects-github-btn-wrapper .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.2s;
}
.img-modal-content {
  display: block;
  margin: 5vh auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 8px;
  animation: floatModal 0.4s;
}
.img-modal-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 8px #000;
  transition: color 0.2s;
}
.img-modal-close:hover {
  color: #ff4d4f;
}
@keyframes floatModal {
  0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Freelance Client Work Gallery */
.client-proof-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.client-proof-item {
  flex: 1 1 220px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.client-proof-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s;
  cursor: pointer;
}
.client-proof-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
}
@media (max-width: 768px) {
  .client-proof-gallery {
    gap: 12px;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .client-proof-item {
    flex: 0 0 92vw !important;
    min-width: 92vw !important;
    max-width: 92vw !important;
    aspect-ratio: auto;
    margin-inline: auto;
    scroll-snap-align: start;
  }
  .client-proof-item img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #0f172a;
  }
}
@media (max-width: 576px) {
  .client-proof-gallery {
    gap: 10px;
    justify-content: flex-start !important;
  }
  .client-proof-item {
    flex: 0 0 94vw !important;
    min-width: 94vw !important;
    max-width: 94vw !important;
  }
  .client-proof-item img {
    max-height: none;
  }
}

/* Hero Section Custom Background and Text */
.hero-bg {
  background: url("https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&w=1920") center
    center/cover no-repeat;
  background-position: center center;
  color: #fff;
  position: relative;
  isolation: isolate;
  will-change: background-position;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    104deg,
    rgba(2, 6, 23, 0.83) 0%,
    rgba(2, 6, 23, 0.52) 48%,
    rgba(2, 6, 23, 0.78) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-bg > .container {
  position: relative;
  z-index: 1;
}

.hero-bg .hero-text h1,
.hero-bg .hero-summary,
.hero-bg .hero-kicker,
.hero-bg .btn-outline,
.hero-bg .btn-outline:visited {
  color: #f8fbff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-bg .hero-highlights span {
  color: #dbeafe;
  border-color: rgba(191, 219, 254, 0.48);
}

.hero-bg .hero-summary {
  border-color: rgba(186, 230, 253, 0.4);
  background: linear-gradient(
    140deg,
    rgba(2, 6, 23, 0.68) 0%,
    rgba(30, 64, 175, 0.26) 100%
  );
}

.hero-bg .hero-summary strong {
  color: #ffffff;
}

.hero-bg .btn-outline,
.hero-bg .btn-outline:visited {
  border-color: rgba(147, 197, 253, 0.75);
  background: rgba(15, 23, 42, 0.36);
}
.hero-bg .btn-outline:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

/* Experience Section Custom Background */
.experience-bg {
  background: url("https://images.ctfassets.net/5uvqefs8jmoh/3QlF5tUM6RUjIzIPjdR5qH/267309e0e39c79998e72d05328161acc/softwaredeveloper.jpg?w=1440&q=75")
    center center/cover no-repeat;
  color: #fff;
}
.experience-bg .section-title,
.experience-bg .timeline-content,
.experience-bg .timeline-date,
.experience-bg .timeline-title,
.experience-bg .timeline-company,
.experience-bg .timeline-description {
  color: #fff;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 10px;
}
.experience-bg .timeline-content {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Freelance Client Work Section Custom Background */
.client-work-bg {
  background: url("https://img.freepik.com/free-vector/background-realistic-abstract-technology-particle_23-2148431735.jpg?semt=ais_hybrid&w=740")
    center center/cover no-repeat;
  color: #fff;
}
.client-work-bg .section-title,
.client-work-bg p {
  color: #fff;
  text-shadow: 0 2px 8px #00000044;
}

.client-work-bg .container > p {
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.65;
  text-align: justify;
  padding: 0 12px;
}
.client-work-bg .client-proof-item {
  background: rgba(255, 255, 255, 0.85);
}
.client-work-bg .client-proof-item img {
  border: 2px solid #fff;
}

.wrapper {
  width: 1170px;
  margin: auto;
}

#services {
  background: url("https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&w=1920") center
    center/cover no-repeat;
  background-position: center center;
  color: #fff;
}

#services .wrapper h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#services .line {
  background: rgba(255, 255, 255, 0.9);
}

.wrapper h2 {
  text-transform: none;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: black;
  margin: 0 auto;
}
.single-service {
  position: relative;
  width: 31%;
  height: auto;
  min-height: 440px;
  background: #151f32; 
  box-sizing: border-box;
  padding: 0 15px;
  transition: 0.5s;
  overflow: hidden;
  float: left;
  margin: 0 10px 45px 10px; /* increased bottom margin */
  text-align: center;
  border-radius: 8px; /* optional: soft rounded corners */
}

.single-service .service-card-image {
  display: block;
  width: calc(100% + 30px);
  height: 125px;
  margin: 0 -15px 16px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.line {
  width: 150px;
  height: 3px;
  background: black;
  margin: 0 auto 60px auto;
}
.single-service p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 6px 8px;
}
.single-service h3 {
  font-size: 25px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  color: #ffffff;
}

.see-more-btn,
#sendBtn,
.experience-carousel-btn {
  background: var(--primary) !important;
  color: #fff !important;
}

.see-more-btn:hover,
#sendBtn:hover,
.experience-carousel-btn:hover {
  background: var(--primary-dark) !important;
}
.social {
  width: 60px;
  height: 60px;
  background: #262626;
  border-radius: 50%;
  margin: 18px auto 14px;
}
.social i {
  font-size: 30px;
  padding: 15px;
  color: #fff;
}
.single-service:hover {
  box-shadow: 0 30px 35px rgba(255, 255, 255, 0.7);
}
.single-service span {
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transition: 0.7s;
  transform: skewX(10deg);
}
.single-service:hover span {
  left: 110%;
}

@media (max-width: 1000px) {
  .wrapper {
    width: 100%;
  }
  .single-service {
    width: 95%;
    margin-bottom: 30px;
    min-height: 0;
    padding-bottom: 22px;
  }

  .single-service .service-card-image {
    height: 150px;
  }
  .wrapper h2 {
    font-size: 30px;
  }
  .single-service p {
    font-size: 12px;
  }
}

.dark-mode-toggle {
  background: transparent;
  border: 2px solid #6c63ff;
  color: #6c63ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
  margin-left: 0;
  order: 2;
}

.dark-mode-toggle:hover {
  background: #6c63ff;
  color: #fff;
  transform: rotate(20deg);
}

body.dark-mode .dark-mode-toggle {
  border-color: #ffd700;
  color: #ffd700;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #ffd700;
  color: #1a1a2e;
}

.hamburger {
  order: 3;
  margin-left: 0;
}

@media (min-width: 769px) {
  .dark-mode-toggle {
    margin-left: 0;
    order: 2;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    min-height: 72px;
    justify-content: flex-start;
  }

  .logo {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    max-width: calc(100% - 98px);
    overflow: visible;
    padding-left: 2px;
  }

  .brand-logo {
    width: auto;
    max-height: 52px;
    height: auto;
    max-width: 100%;
  }

  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.08rem;
    margin: 0 6px 0 auto;
    order: 2;
    flex: 0 0 auto;
    position: static;
    transform: none;
  }

  .hamburger {
    order: 3;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 1;
    visibility: visible;
    z-index: 1003;
    position: static;
    transform: none;
    color: var(--dark);
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }

  .hamburger:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.28);
  }

  .hamburger::before {
    content: none;
  }

  .hamburger div {
    display: block;
    width: 20px;
    height: 2.4px;
    margin: 3px 0;
    background-color: currentColor;
    border-radius: 999px;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, width 0.25s ease;
    transform-origin: center;
  }

  .hamburger.active {
    transform: rotate(90deg);
  }

  .hamburger.active div:nth-child(1) {
    transform: translateY(5.4px) rotate(45deg);
    width: 20px;
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
  }

  .hamburger.active div:nth-child(3) {
    transform: translateY(-5.4px) rotate(-45deg);
    width: 20px;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-top: 0;
    margin-bottom: 12px;
  }

  .hero-text h1 {
    max-width: max-content;
    font-size: clamp(1.32rem, 6vw, 2rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.08em 0.2em;
  }

  .hero-greeting {
    flex: 0 0 100%;
    line-height: 1.05;
  }

  .hero-type-name {
    min-width: 0;
    white-space: nowrap;
  }

  .hero-heading .fa-code {
    font-size: 0.88em;
  }

  .hero-image-shell {
    width: min(470px, 100%);
    aspect-ratio: 1 / 0.84;
  }

  .hero-image-figure {
    inset: -42px 0 0;
    z-index: 6;
  }

  .hero-image img {
    width: min(430px, 108%);
    max-width: 108%;
    transform: translateY(12px) scale(1.08);
  }

  .hero-badge {
    max-width: calc(100% - 6px);
  }

  .hero-badge-top {
    top: 12px;
    right: -8px;
    z-index: 5;
  }

  .hero-badge-bottom {
    z-index: 7;
  }

  .hero-badge {
    font-size: clamp(0.68rem, 2.9vw, 0.8rem);
    max-width: calc(100% - 6px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    min-height: 66px;
    gap: 6px;
  }

  .logo {
    max-width: calc(100% - 84px);
    padding-left: 1px;
  }

  .brand-logo {
    max-height: 46px;
    height: auto;
  }

  .dark-mode-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    margin-right: 4px;
  }

  .hamburger {
    width: 32px;
    height: 32px;
  }

  .hamburger div {
    width: 18px;
    height: 2.2px;
    margin: 2.6px 0;
  }

  .hero-image-shell {
    width: min(430px, 100%);
    aspect-ratio: 1 / 0.82;
  }

  .hero-text h1 {
    font-size: clamp(1.15rem, 7.2vw, 1.55rem);
    max-width: max-content;
  }

  .hero-heading {
    gap: 0.06em 0.18em;
  }

  .hero-greeting {
    line-height: 1.03;
  }

  .hero-image-figure {
    inset: -36px 0 0;
  }

  .hero-image img {
    width: min(380px, 110%);
    max-width: 110%;
    transform: translateY(10px) scale(1.07);
  }

  .hero-badge {
    font-size: 0.68rem;
  }

  .hero-badge-top {
    right: -6px;
  }
}

@media (max-width: 360px) {
  .header-container {
    gap: 5px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .brand-logo {
    max-height: 42px;
  }

  .dark-mode-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    margin-right: 3px;
  }

  .hamburger {
    width: 30px;
    height: 30px;
  }

  .hamburger div {
    width: 16px;
    height: 2.1px;
    margin: 2.4px 0;
  }
}

/* Mobile spacing normalization */
@media (max-width: 768px) {
  #services {
    padding-top: 30px !important;
    padding-bottom: 18px !important;
  }

  #services .line {
    margin-bottom: 28px !important;
  }

  #services .single-service {
    margin-bottom: 18px !important;
  }

  #services .services-inquire-wrap {
    margin-top: 8px !important;
  }

  #projects-home {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  #projects-home .projects-section {
    padding-top: 2.35rem !important;
    padding-bottom: 2rem !important;
  }

  #client-work {
    padding-top: 30px !important;
    padding-bottom: 24px !important;
  }

  #client-work .client-proof-actions {
    margin-top: 10px !important;
  }

  #contact {
    padding-top: 28px !important;
    padding-bottom: 30px !important;
  }
}

@media (max-width: 480px) {
  #services {
    padding-top: 24px !important;
    padding-bottom: 14px !important;
  }

  #services .single-service .service-card-image {
    height: 130px;
  }

  #projects-home {
    padding-top: 20px !important;
  }

  #contact {
    padding-top: 22px !important;
  }
}

/* Mobile overflow safety */
@media (max-width: 768px) {
  .about-content,
  .contact-container,
  .experience-carousel-wrapper,
  .experience-carousel,
  .experience-slider,
  .skills-section,
  .skills-grid,
  .client-proof-gallery {
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-image,
  .about-text,
  .contact-info,
  .contact-form {
    min-width: 0 !important;
    width: 100% !important;
  }
}

