/* ========================================
   PREMIUM DESIGN SYSTEM v2.0
   Dark-first Minimal Portfolio
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Core palette */
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent: #3b82f6;

  /* Surfaces */
  --bg: #050816;
  --bg-elevated: #0a0e1a;
  --surface: #0f172a;
  --surface-hover: #1a2338;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(148, 163, 184, 0.08);
  --card-border-hover: rgba(148, 163, 184, 0.18);

  /* Text */
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  /* Glass */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(148, 163, 184, 0.1);
  --glass-blur: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-py: 120px;
  --section-py-mobile: 72px;
  --container: 1200px;
  --container-narrow: 960px;

  /* Header */
  --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  will-change: opacity;
}

[data-theme="light"] body::before {
  background-image: url("https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=1920&q=80");
  opacity: 0.06;
}

::selection {
  background: var(--primary);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---------- Section ---------- */
section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Header / Nav ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#header.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  --brand-logo-width: clamp(168px, 11vw, 210px);
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  justify-content: flex-start;
  width: var(--brand-logo-width);
  height: calc(var(--brand-logo-width) * 92 / 451);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: calc(var(--brand-logo-width) * 612 / 451);
  height: auto;
  object-fit: contain;
  opacity: 1;
  max-width: none;
  transform: translate(-10.3%, -35.5%);
  transition: opacity 0.3s var(--ease);
}

.brand-logo:hover {
  opacity: 0.85;
}

[data-theme="dark"] .logo,
[data-theme="dark"] .footer-logo {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 5px #fff, 0 12px 26px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .brand-logo,
[data-theme="dark"] .footer-brand-logo {
  filter: none;
  opacity: 1;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-links > li > a,
.nav-links .dropdown-toggle {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.is-active,
.nav-links .dropdown-toggle:hover {
  color: var(--text);
}

.nav-links > li > a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: left;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  pointer-events: none;
}

.nav-links > li > a:hover::before,
.nav-links > li > a.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links > li > a.is-active {
  color: var(--primary-hover);
  text-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

#header.scrolled .nav-links > li > a:hover::before,
#header.scrolled .nav-links > li > a.is-active::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
}

/* Pill indicator for active nav link */
.nav-links > li > a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
  animation: pillGlow 2s var(--ease-in-out) infinite;
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); }
}

/* Remove old dot indicator */
.nav-links > li > a.is-active::before {
  display: none;
}

/* Nav underline animation on hover (not active) */
.nav-links > li > a:not(.is-active)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav-links > li > a:not(.is-active):hover::after {
  width: 60%;
  left: 20%;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  position: relative;
}

/* Dropdown */
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 100;
}

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

.nav-links .dropdown.dropdown-click-hidden .dropdown-menu,
.nav-links .dropdown.dropdown-click-hidden:hover .dropdown-menu,
.nav-links .dropdown.dropdown-click-hidden:focus-within .dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
}

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

.nav-links .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-links .dropdown-menu a:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links .dropdown:hover .dropdown-menu,
  .nav-links .dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links .dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
  }

  .nav-links .dropdown.dropdown-click-hidden:hover .dropdown-toggle .fa-chevron-down {
    transform: none;
  }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  width: 56px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark-mode-toggle__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.dark-mode-toggle__sun,
.dark-mode-toggle__moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
  pointer-events: none;
}

.dark-mode-toggle__sun { right: 8px; color: var(--text-tertiary); opacity: 0.5; }
.dark-mode-toggle__moon { left: 8px; color: var(--text); opacity: 1; }

.dark-mode-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s var(--spring);
}

[data-theme="dark"] .dark-mode-toggle__track {
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .dark-mode-toggle__thumb {
  transform: translateX(24px);
  background: #fff;
}

[data-theme="dark"] .dark-mode-toggle__sun { color: #fff; opacity: 1; }
[data-theme="dark"] .dark-mode-toggle__moon { color: rgba(255,255,255,0.5); opacity: 0.6; }

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger div {
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

/* Scroll Progress */
#scrollProgress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-secondary);
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.5s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card);
}

/* ---------- Tags / Chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.06);
  transition: all 0.3s var(--ease);
}

.tag:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-hover);
  border-color: rgba(37, 99, 235, 0.15);
}

.tag-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-hover);
  border-color: rgba(37, 99, 235, 0.15);
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* Reveal bottom — children pop in from below */
.reveal-bottom {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax hero image */
.parallax-slow {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-left, .fade-in-right, .fade-in-up, .scale-in, .reveal-bottom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--header-h) 0 0;
}

#hero + #social-proof {
  padding: 48px 0;
}

/* Animated gradient background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.06);
  top: -10%;
  right: -5%;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.04);
  bottom: -15%;
  left: -10%;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  position: relative;
}

.hero-text > .hero-kicker {
  display: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.hero-kicker-image {
  position: absolute;
  top: -88px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  width: max-content;
  max-width: min(100%, calc(100vw - 32px));
  margin: 0;
  transform: translateX(-50%);
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}

.hero-heading {
  margin-bottom: 20px;
}

.hero-intro-card {
  display: block;
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-name-code {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-type-name {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  position: relative;
  display: inline-block;
  min-height: 1.12em;
  min-width: 12ch;
}

.hero-type-name::after {
  content: '';
  position: absolute;
  right: -0.06em;
  top: 0.08em;
  width: 3px;
  height: 0.82em;
  background: var(--primary);
  border-radius: 2px;
  animation: cursorBlink 0.9s step-end infinite;
}

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

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

.hero-name-code .fa-code {
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.6;
}

.hero-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-summary strong {
  color: var(--text);
  font-weight: 600;
}

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

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
}

.hero-highlights span:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-highlights span i {
  color: var(--primary-hover);
}

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

.hero-btns .btn {
  min-width: 170px;
}

/* Social links */
.hero-social {
  display: flex;
  gap: 10px;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}

.hero-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 96px;
}

.hero-image-wrapper {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1;
}

.hero-image-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.15) 30%, transparent 70%);
  animation: glowPulse 4s var(--ease-in-out) infinite;
  opacity: 0.6;
  will-change: transform, opacity;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.08) rotate(2deg); }
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--glass-border),
    inset 0 0 60px rgba(37, 99, 235, 0.03);
  transform-style: preserve-3d;
}

.hero-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-image-frame:hover img {
  transform: scale(1.04);
}

.hero-image-wrapper {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  perspective: 800px;
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: calc(var(--radius-2xl) + 3px);
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(37, 99, 235, 0.35) 60deg,
    transparent 120deg,
    rgba(59, 130, 246, 0.25) 180deg,
    transparent 240deg,
    rgba(37, 99, 235, 0.35) 300deg,
    transparent 360deg
  );
  animation: borderSpin 6s linear infinite;
  pointer-events: none;
}

@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

/* Hero badges */
.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

.hero-badge:hover {
  transform: scale(1.04);
  border-color: rgba(148, 163, 184, 0.2);
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero-badge-top {
  top: -14px;
  left: auto;
  right: 18px;
  transform: none;
}

.hero-badge-top i { color: #22c55e; }

.hero-badge-top:hover {
  transform: scale(1.04);
}

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

.hero-badge-bottom i { color: var(--primary-hover); }

/* Trust badges / floating tech */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero-trust-item strong {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
}

/* ---------- Social Proof ---------- */
#social-proof {
  padding: 80px 0;
  position: relative;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(148, 163, 184, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
}

.proof-item {
  text-align: center;
  padding: 24px 16px;
}

.proof-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.proof-value .suffix {
  font-size: 0.6em;
  color: var(--primary-hover);
  font-weight: 600;
}

.proof-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-item.is-counted .proof-value {
  animation: countPulse 0.5s var(--ease-out);
}

@keyframes countPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); color: var(--primary-hover); }
  100% { transform: scale(1); }
}

/* ---------- About Section ---------- */
#about {
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-visual .floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.about-visual .floating-shape-1 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  top: -30px;
  left: -40px;
  animation: orbFloat 12s ease-in-out infinite;
}

.about-visual .floating-shape-2 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  bottom: 40px;
  right: -30px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.about-visual .floating-shape-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  top: 50%;
  left: -20px;
  animation: orbFloat 10s ease-in-out infinite 2s;
}

.about-image-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--surface);
  z-index: 1;
  transition: border-radius 1s var(--ease-out);
}

.about-image-stack:hover {
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
}

.about-image-stack::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(124, 58, 237, 0.4) 60deg,
    transparent 120deg,
    rgba(37, 99, 235, 0.3) 180deg,
    transparent 240deg,
    rgba(124, 58, 237, 0.4) 300deg,
    transparent 360deg
  );
  animation: borderSpin 10s linear infinite;
  pointer-events: none;
}

.about-image-stack img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  overflow: hidden;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px var(--primary-glow);
  z-index: 2;
}

.about-experience-badge strong {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge span {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-bio p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* Education card */
.education-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s var(--ease);
}

.education-card:hover {
  border-color: var(--card-border-hover);
}

.education-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.education-logo-wrap img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.education-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.education-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Certificate gallery */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cert-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

.cert-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* ---------- Skills Section ---------- */
#skills {
  position: relative;
}

.skills-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.skill-tab {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.skill-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}

.skill-tab.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.skill-category {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.skill-category:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover .category-title i {
  transform: scale(1.15);
  color: var(--primary-hover);
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.category-title i {
  color: var(--primary-hover);
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.category-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Skill chip stagger via nth-child when parent is visible */
.skill-category.is-visible .skill-chip,
.skill-category.fade-in-up.is-visible .skill-chip {
  opacity: 1;
  transform: translateY(0);
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: var(--radius-sm);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: default;
  opacity: 0;
  transform: translateY(12px);
}

.skill-chip:nth-child(1) { transition-delay: 0.02s; }
.skill-chip:nth-child(2) { transition-delay: 0.06s; }
.skill-chip:nth-child(3) { transition-delay: 0.10s; }
.skill-chip:nth-child(4) { transition-delay: 0.14s; }
.skill-chip:nth-child(5) { transition-delay: 0.18s; }
.skill-chip:nth-child(6) { transition-delay: 0.22s; }
.skill-chip:nth-child(7) { transition-delay: 0.26s; }
.skill-chip:nth-child(8) { transition-delay: 0.30s; }

.skill-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-3px) scale(1.02);
}

.skill-chip i,
.skill-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  font-size: 0.95rem;
}

.skill-chip img {
  filter: brightness(0.9);
}

/* ---------- Experience Section ---------- */
#experience {
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-hover), transparent);
  opacity: 0.25;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 32px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(2).is-visible { transition-delay: 0.1s; }
.timeline-item:nth-child(3).is-visible { transition-delay: 0.2s; }
.timeline-item:nth-child(4).is-visible { transition-delay: 0.3s; }
.timeline-item:nth-child(5).is-visible { transition-delay: 0.4s; }

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

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
  z-index: 1;
  transition: box-shadow 0.4s var(--ease);
}

.timeline-item.is-visible .timeline-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), 0 0 20px rgba(37, 99, 235, 0.15);
  animation: dotPulse 2s var(--ease-in-out) infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), 0 0 20px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15), 0 0 30px rgba(37, 99, 235, 0.08); }
}

.timeline-card {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease);
}

.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--card-border-hover);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.06);
  white-space: nowrap;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.timeline-badge {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-hover);
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
  position: relative;
}

.timeline-desc.expanded {
  max-height: 1000px;
}

.timeline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.timeline-map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--glass-border);
}

.timeline-map iframe {
  display: block;
  width: 100%;
  height: 180px;
}

/* ---------- Services Section ---------- */
#services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-hover);
  transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

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

.service-card .btn {
  margin-top: 20px;
}

/* ---------- Projects Section ---------- */
#projects {
  position: relative;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(148, 163, 184, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  max-width: 100%;
}

.filter-bar.is-fixed {
  position: fixed;
  top: var(--fixed-top, calc(var(--header-h) + 10px));
  left: var(--fixed-left, 0);
  width: var(--fixed-width, 100%);
  z-index: 990;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: rgba(5, 8, 22, 0.86);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-md);
}

.filter-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}

.filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.filter-btn.active:hover {
  color: #fff;
  background: var(--primary-hover);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease-out);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 22, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  gap: 10px;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay a {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--ease);
}

.project-card-overlay a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags .tag {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.project-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 26px var(--primary-glow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease);
}

.project-view-details:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px var(--primary-glow);
}

/* GitHub CTA */
.github-cta {
  text-align: center;
  padding: 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
  max-width: 640px;
  margin: 0 auto;
}

.github-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.github-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- Webinar Section ---------- */
#webinar {
  position: relative;
}

.webinar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.webinar-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--surface);
}

.webinar-media .main-image {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out);
}

.webinar-media:hover .main-image {
  transform: scale(1.03);
}

.webinar-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--glass-border);
}

.webinar-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

.webinar-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.webinar-gallery img:nth-child(2) {
  transform: scale(1.06);
  z-index: 1;
  border-color: rgba(37, 99, 235, 0.2);
}

.webinar-gallery img:nth-child(2):hover {
  transform: scale(1.1);
}

.webinar-text {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
}

.webinar-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-hover));
  border-radius: 0 4px 4px 0;
}

.webinar-text p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.webinar-text p::before {
  content: "\f178";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ---------- Client Work ---------- */
#client-work {
  position: relative;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(148, 163, 184, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.04);
}

.client-proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.client-proof-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

.client-proof-item:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

.client-proof-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynamic-content {
  display: none;
}

.dynamic-content.visible {
  display: block;
}

/* ---------- Contact Section ---------- */
#contact {
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  padding: 36px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-detail-item:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

.contact-detail-item i {
  width: 20px;
  color: var(--primary-hover);
  font-size: 1rem;
}

.contact-detail-item .detail-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.contact-detail-item .detail-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.contact-detail-item a.detail-value:hover {
  color: var(--primary-hover);
}

/* Contact Form */
.contact-form {
  padding: 36px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--glass-blur));
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  --footer-logo-width: clamp(170px, 12vw, 230px);
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: var(--footer-logo-width);
  height: calc(var(--footer-logo-width) * 92 / 451);
  overflow: hidden;
}

.footer-brand-logo {
  width: calc(var(--footer-logo-width) * 612 / 451);
  height: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transform: translate(-10.3%, -35.5%);
  transition: opacity 0.3s var(--ease);
}

.footer-brand-logo:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.footer-bottom {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-extra {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-extra a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease);
}

.footer-extra a:hover {
  color: var(--text);
}

/* ---------- Arrow Top ---------- */
#arrowTopBtn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  display: none;
  opacity: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px var(--primary-glow);
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}

#arrowTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* ---------- Modal ---------- */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.2s var(--ease);
}

.img-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.img-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 10001;
  line-height: 1;
}

.img-modal-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-summary {
    max-width: 100%;
  }

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

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

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

  .hero-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-stack {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1024px) {
  :root {
    --section-py: var(--section-py-mobile);
  }

  .logo {
    --brand-logo-width: min(152px, 36vw);
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 24px 24px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 1000;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links > li > a,
  .nav-links .dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
  }

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

  .nav-links .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 4px 0 0;
    box-shadow: none;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--radius);
    padding: 0 10px;
    background: rgba(37, 99, 235, 0.05);
    opacity: 0;
    transform: none;
    pointer-events: none;
  }

  .nav-links .dropdown:not(.active):hover .dropdown-menu,
  .nav-links .dropdown:not(.active):focus-within .dropdown-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 8px;
    pointer-events: auto;
  }

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

  .nav-links .dropdown-menu a {
    padding: 10px 12px;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

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

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

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

  section {
    padding: var(--section-py-mobile) 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-type-name {
    min-width: 0;
    max-width: 100%;
    font-size: 2.6rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .hero-name-code {
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-name-code .fa-code {
    font-size: 1.55rem;
  }

  .hero-text,
  .hero-image,
  .hero-content {
    min-width: 0;
    max-width: 100%;
  }

  .hero-image {
    padding-top: 88px;
  }

  .hero-image-wrapper {
    width: min(360px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .hero-text > .hero-kicker {
    display: none;
  }

  .hero-kicker-image {
    position: absolute;
    top: -78px;
    left: 50%;
    z-index: 4;
    display: inline-flex;
    width: max-content;
    max-width: calc(100% - 28px);
    margin: 0;
    transform: translateX(-50%);
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
  }

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

  .hero-badge-top {
    top: -14px;
    left: auto;  
    right: 16px;
    bottom: auto;
    transform: none;
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .hero-badge-top:hover {
    transform: scale(1.04);
  }

  .hero-badge-bottom {
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    max-width: min(220px, calc(100vw - 48px));
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
  }

  .hero-badge-bottom:hover {
    transform: scale(1.04);
  }

  .hero-intro-card {
    padding: 26px 18px 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
  }

  .hero-summary {
    text-align: justify;
    text-align-last: left;
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    hyphens: auto;
  }

  [data-theme="dark"] .hero-intro-card {
    background: #050816;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  [data-theme="dark"] .hero-intro-card .hero-greeting,
  [data-theme="dark"] .hero-intro-card .hero-type-name,
  [data-theme="dark"] .hero-intro-card .hero-summary,
  [data-theme="dark"] .hero-intro-card .hero-summary strong {
    color: #fff;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

  .cert-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: -18px;
    width: 12px;
    height: 12px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .about-experience-badge {
    width: 90px;
    height: 90px;
    right: -10px;
    bottom: -10px;
  }

  .about-experience-badge strong {
    font-size: 1.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }

  .fade-in-left,
  .fade-in-right {
    transform: translateY(24px);
  }

  .fade-in-left.is-visible,
  .fade-in-right.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .logo {
    --brand-logo-width: min(132px, 37vw);
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #hero {
    overflow-x: clip;
  }

  .hero-type-name {
    font-size: 1.82rem;
  }

  .hero-name-code {
    gap: 4px;
  }

  .hero-name-code .fa-code {
    font-size: 1.2rem;
  }

  .hero-greeting {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    width: min(340px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .hero-kicker-image {
    top: -78px;
    padding: 6px 12px;
    font-size: 0.68rem;
    letter-spacing: 1.25px;
  }

  .hero-badge {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  .hero-badge-top {
    top: -14px;
    left: auto;
    right: 14px;
    bottom: auto;
    transform: none;
  }

  .hero-badge-bottom {
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    max-width: min(200px, calc(100vw - 44px));
    padding: 8px 11px;
    text-align: center;
    white-space: nowrap;
  }

  .project-view-details {
    width: 100%;
    margin-top: 16px;
  }

  .hero-intro-card {
    width: 100%;
    padding: 22px 14px 20px;
  }

  .hero-heading {
    margin-bottom: 16px;
  }

  .hero-summary {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
  }

  .hero-trust-item {
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .hero-trust-item strong {
    font-size: 1.05rem;
  }

  .hero-btns {
    flex-direction: column;
  }

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

  .filter-bar {
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar.is-fixed {
    padding: 6px;
    border-radius: var(--radius);
    scrollbar-width: none;
  }

  .filter-bar.is-fixed::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .footer-logo {
    --footer-logo-width: 170px;
  }

  .client-proof-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #arrowTopBtn {
    right: 18px;
    bottom: 72px;
  }
}

@media (max-width: 360px) {
  .logo {
    --brand-logo-width: min(118px, 36vw);
  }

  .hero-type-name {
    font-size: 1.66rem;
  }

  .hero-name-code .fa-code {
    font-size: 1.3rem;
  }

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

  .hero-kicker-image {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }

  .hero-summary {
    font-size: 0.88rem;
  }
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.12);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] #hero {
  background: linear-gradient(180deg, #eef2ff 0%, #f1f5f9 40%, #f8fafc 100%);
}

[data-theme="light"] #header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .brand-logo,
[data-theme="light"] .footer-brand-logo {
  filter: none;
}

[data-theme="light"] .nav-links > li > a {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-links > li > a:hover,
[data-theme="light"] .nav-links > li > a.is-active {
  color: var(--primary);
}

[data-theme="light"] .nav-links .dropdown-menu {
  background: var(--surface);
  border-color: var(--glass-border);
}

[data-theme="light"] .hero-kicker {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .hero-highlights span {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-highlights span:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .hero-social a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .hero-social a:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="light"] .hero-trust {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #social-proof {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .section-label {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .timeline::before {
  opacity: 0.15;
}

[data-theme="light"] .timeline-card {
  background: var(--card-bg);
}

[data-theme="light"] .service-card {
  background: var(--card-bg);
}

[data-theme="light"] .service-icon {
  background: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .project-card {
  background: var(--surface);
}

[data-theme="light"] .project-card-image {
  background: #e2e8f0;
}

[data-theme="light"] .github-cta {
  background: var(--card-bg);
}

[data-theme="light"] #projects {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form {
  background: var(--card-bg);
}

[data-theme="light"] .contact-detail-item {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .contact-detail-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
}

[data-theme="light"] #client-work {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-links a {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-links a:hover {
  color: var(--text);
}

[data-theme="light"] .footer-social a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

[data-theme="light"] .skill-category {
  background: var(--card-bg);
}

[data-theme="light"] .skill-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .skill-chip:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .skill-chip img {
  filter: none;
}

[data-theme="light"] .education-card {
  background: var(--card-bg);
}

[data-theme="light"] .education-logo-wrap {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .about-experience-badge {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

[data-theme="light"] .btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

[data-theme="light"] .tag {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .tag-primary {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .skill-tab {
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill-tab:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}

[data-theme="light"] .filter-btn {
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}

[data-theme="light"] .filter-bar.is-fixed {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn.active:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

[data-theme="light"] .dark-mode-toggle__track {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .dark-mode-toggle__thumb {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .dark-mode-toggle__moon {
  color: #94a3b8;
  opacity: 0.5;
}

[data-theme="light"] .dark-mode-toggle__sun {
  color: #f59e0b;
  opacity: 1;
}

[data-theme="light"] .webinar-media,
[data-theme="light"] .about-image-stack {
  background: var(--surface);
}

[data-theme="light"] .webinar-gallery {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .webinar-text {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #scrollProgress {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

[data-theme="light"] .hero-orb-1 {
  background: rgba(37, 99, 235, 0.04);
}

[data-theme="light"] .hero-orb-2 {
  background: rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .cert-gallery img {
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .timeline-badge {
  background: rgba(37, 99, 235, 0.06);
}

[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

[data-theme="light"] .hero-image-frame {
  background: #ffffff;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 0 60px rgba(37, 99, 235, 0.02);
}

[data-theme="light"] .hero-summary {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-summary strong {
  color: var(--text);
}

[data-theme="light"] .proof-value {
  color: var(--text);
}

[data-theme="light"] .about-bio p {
  color: var(--text-secondary);
}

[data-theme="light"] .webinar-text p {
  color: var(--text-secondary);
}

[data-theme="light"] .timeline-company {
  color: var(--primary);
}

[data-theme="light"] .service-card h3 {
  color: var(--text);
}

[data-theme="light"] .service-card p {
  color: var(--text-secondary);
}

[data-theme="light"] .contact-info-card h3 {
  color: var(--text);
}

[data-theme="light"] .contact-info-card p {
  color: var(--text-secondary);
}

[data-theme="light"] .form-group label {
  color: var(--text);
}

[data-theme="light"] #arrowTopBtn {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

/* Fix section backgrounds for light mode */
[data-theme="light"] #about,
[data-theme="light"] #experience,
[data-theme="light"] #services,
[data-theme="light"] #webinar,
[data-theme="light"] #contact {
  background: var(--bg);
}

[data-theme="light"] ::selection {
  background: var(--primary);
  color: #fff;
}
