/* ============================================
   PORTFOLIO — Design System
   Apple-inspired clean minimal with sidebar nav
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-bg: #FAFAF9;
  --color-bg-alt: #F2F1EF;
  --color-bg-card: #FFFFFF;
  --color-sidebar: #FFFFFF;
  --color-text: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-muted: #9B9B9F;
  --color-accent: #2A7F8B;
  --color-accent-light: #3A9DAB;
  --color-accent-subtle: rgba(42, 127, 139, 0.08);
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-hover: rgba(0, 0, 0, 0.12);
  --color-shadow: rgba(0, 0, 0, 0.04);
  --color-shadow-hover: rgba(0, 0, 0, 0.08);
  --color-hero-gradient-start: #FAFAF9;
  --color-hero-gradient-end: #F2F1EF;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Font Sizes — fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.125rem);
  --text-xl: clamp(1.1875rem, 1.1rem + 0.5vw, 1.3125rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 4vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(5rem, 4rem + 5vw, 8rem);

  /* Layout */
  --sidebar-width: 260px;
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ── Dark Mode Variables ── */
[data-theme="dark"] {
  --color-bg: #0F0F11;
  --color-bg-alt: #18181B;
  --color-bg-card: #1E1E22;
  --color-sidebar: #141416;
  --color-text: #F0F0F2;
  --color-text-secondary: #A1A1AA;
  --color-text-muted: #71717A;
  --color-accent: #3DD1E0;
  --color-accent-light: #5DE0EC;
  --color-accent-subtle: rgba(61, 209, 224, 0.1);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-shadow: rgba(0, 0, 0, 0.2);
  --color-shadow-hover: rgba(0, 0, 0, 0.35);
  --color-hero-gradient-start: #0F0F11;
  --color-hero-gradient-end: #18181B;
  color-scheme: dark;
}

[data-theme="dark"] .mobile-header {
  background: rgba(15, 15, 17, 0.9);
}

[data-theme="dark"] .nav-toggle span {
  background: var(--color-text);
}

[data-theme="dark"] .nav-mobile {
  background: var(--color-bg);
}

[data-theme="dark"] .social-link {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

[data-theme="dark"] .social-link:hover {
  background: var(--color-accent);
  color: #0F0F11;
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 2px 8px rgba(61, 209, 224, 0.2);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(61, 209, 224, 0.3);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

[data-theme="dark"] .about-image {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .highlight-card {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .tech-tag {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .project-card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .project-image {
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .timeline-dot {
  border-color: var(--color-bg-alt);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--color-text-muted);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

[data-theme="dark"] .footer {
  border-top-color: var(--color-border);
}

/* Geo shapes in dark mode — brighter accent */
[data-theme="dark"] .geo-circle-lg {
  border-color: var(--color-accent);
  opacity: 0.15;
}

[data-theme="dark"] .geo-circle-sm {
  background: var(--color-accent);
  opacity: 0.4;
}

[data-theme="dark"] .geo-dots {
  background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2px);
  opacity: 0.1;
}

[data-theme="dark"] .geo-line-1,
[data-theme="dark"] .geo-line-2 {
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

[data-theme="dark"] .geo-square {
  border-color: var(--color-accent);
}

[data-theme="dark"] .geo-triangle {
  border-bottom-color: var(--color-accent);
}

[data-theme="dark"] .geo-cross::before,
[data-theme="dark"] .geo-cross::after {
  background: var(--color-accent);
}

[data-theme="dark"] .geo-dot-accent {
  background: var(--color-accent);
}

[data-theme="dark"] .geo-ring {
  border-color: var(--color-accent);
}

[data-theme="dark"] .geo-arc {
  border-top-color: var(--color-accent);
}


/* ── Theme Toggle Button ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-accent);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(42, 127, 139, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
  color: #0F0F11;
  box-shadow: 0 4px 12px rgba(61, 209, 224, 0.3);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Sun icon hidden in light mode, moon hidden in dark */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }


/* ── Smooth theme transition ── */
body,
body *,
body *::before,
body *::after {
  transition-property: background-color, border-color, color, box-shadow, fill, stroke;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Don't override existing animation transitions */
.reveal,
.hero-greeting,
.hero-name,
.hero-title,
.hero-cta,
.hero-social,
.geo-shape {
  transition-property: opacity, transform, background-color, border-color, color, box-shadow, fill, stroke;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
}

.section-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.section-header {
  margin-bottom: var(--space-3xl);
}


/* ── Scroll Reveal Animations (HNG-style dramatic) ── */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }
.reveal-delay-5 { transition-delay: 0.65s; }


/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar {
  display: none;
}

/* Mobile top bar */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.mobile-header .nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.mobile-header .nav-logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  padding-top: calc(64px + var(--space-3xl));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  opacity: 1;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

/* Main content - mobile default */
.main-content {
  padding-top: 64px;
}


/* ============================================
   SIDEBAR — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-sidebar);
    border-right: 1px solid var(--color-border);
    padding: var(--space-2xl) var(--space-xl);
    z-index: 100;
    overflow-y: auto;
  }

  .sidebar-logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
  }

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

  .sidebar-title {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-3xl);
    line-height: 1.4;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
  }

  .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    position: relative;
  }

  .sidebar-nav a::before {
    content: '';
    width: 3px;
    height: 0;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: height var(--transition-base);
  }

  .sidebar-nav a:hover {
    color: var(--color-text);
    background: var(--color-accent-subtle);
  }

  .sidebar-nav a.active {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    font-weight: 600;
  }

  .sidebar-nav a.active::before {
    height: 20px;
  }

  .sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
  }

  .sidebar-nav a:hover .nav-icon,
  .sidebar-nav a.active .nav-icon {
    opacity: 1;
  }

  .sidebar-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-lg) 0;
  }

  .sidebar-social {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .sidebar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    transition: all var(--transition-base);
  }

  .sidebar-social a:hover {
    background: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
  }

  .sidebar-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    padding-top: 0;
  }
}


/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--color-hero-gradient-start) 0%, var(--color-hero-gradient-end) 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fadein 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fadein 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name .accent {
  color: var(--color-accent);
}

.hero-title {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fadein 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fadein 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(42, 127, 139, 0.25);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(42, 127, 139, 0.35);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fadein 0.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(42, 127, 139, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes hero-fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Hero Geometric Art (right side) ── */
.hero-art {
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 60%;
  height: 400px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash-draw {
  to { stroke-dashoffset: 0; }
}

.geo-shape {
  position: absolute;
  border-radius: 0;
  pointer-events: none;
}

/* Large teal circle outline */
.geo-circle-lg {
  width: 220px;
  height: 220px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  top: 20px;
  right: 40px;
  opacity: 0.2;
  animation: float 8s ease-in-out infinite;
}

/* Small solid accent circle */
.geo-circle-sm {
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  top: 60px;
  right: 280px;
  opacity: 0.5;
  animation: float-reverse 6s ease-in-out infinite;
}

/* Dot grid */
.geo-dots {
  top: 180px;
  right: 20px;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2px);
  background-size: 20px 20px;
  animation: float-reverse 10s ease-in-out infinite;
}

/* Diagonal line 1 */
.geo-line-1 {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  top: 100px;
  right: 60px;
  transform: rotate(-35deg);
  opacity: 0.2;
  animation: float 7s ease-in-out infinite;
}

/* Diagonal line 2 */
.geo-line-2 {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent));
  top: 300px;
  right: 150px;
  transform: rotate(20deg);
  opacity: 0.15;
  animation: float-reverse 9s ease-in-out infinite;
}

/* Small square rotated */
.geo-square {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-accent);
  top: 280px;
  right: 60px;
  transform: rotate(45deg);
  opacity: 0.18;
  animation: float 9s ease-in-out infinite 1s;
}

/* Triangle - CSS only */
.geo-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid var(--color-accent);
  top: 40px;
  right: 200px;
  opacity: 0.08;
  animation: float-reverse 8s ease-in-out infinite 0.5s;
}

/* Cross/plus shape */
.geo-cross {
  top: 350px;
  right: 240px;
  width: 28px;
  height: 28px;
  opacity: 0.25;
}

.geo-cross::before,
.geo-cross::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
  border-radius: 1px;
}

.geo-cross::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.geo-cross::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

/* Small dot accent */
.geo-dot-accent {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  top: 160px;
  right: 300px;
  opacity: 0.35;
  animation: float 5s ease-in-out infinite;
}

/* Ring */
.geo-ring {
  width: 80px;
  height: 80px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  top: 350px;
  right: 30px;
  opacity: 0.12;
  animation: spin-slow 30s linear infinite;
}

/* Semi-circle arc */
.geo-arc {
  width: 140px;
  height: 70px;
  border-top: 2px solid var(--color-accent);
  border-radius: 140px 140px 0 0;
  top: 220px;
  right: 180px;
  opacity: 0.1;
  animation: float 11s ease-in-out infinite;
}


/* ── About Section ── */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px var(--color-shadow-hover);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.highlight-card {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.highlight-card:nth-child(1) {
  background: #E8FAF8;
}

.highlight-card:nth-child(2) {
  background: #F2EDFB;
}

.highlight-card:nth-child(3) {
  background: #E8F4FC;
}

.highlight-card:nth-child(4) {
  background: #FFF5E9;
}

[data-theme="dark"] .highlight-card:nth-child(1) {
  background: rgba(61, 209, 224, 0.1);
}

[data-theme="dark"] .highlight-card:nth-child(2) {
  background: rgba(147, 97, 218, 0.1);
}

[data-theme="dark"] .highlight-card:nth-child(3) {
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .highlight-card:nth-child(4) {
  background: rgba(251, 191, 36, 0.1);
}

.highlight-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px var(--color-shadow);
}

.highlight-card .number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  display: block;
  line-height: 1;
}

.highlight-card .label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: var(--space-sm);
  display: block;
}


/* ── Tech Stack Section ── */
.tech-stack {
  background: var(--color-bg-alt);
}

.tech-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.tech-category h3 {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-base);
  cursor: default;
}

.tech-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.tech-tag .tech-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
}


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

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--color-shadow-hover);
  border-color: var(--color-border-hover);
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-image-wrapper {
  overflow: hidden;
}

.project-body {
  padding: var(--space-xl);
}

.project-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.project-tag {
  padding: 4px 12px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: var(--space-md);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.project-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* ── Experience Section (HNG Journey Style) ── */
.experience {
  background: var(--color-bg-alt);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(42, 127, 139, 0.15));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: var(--space-3xl);
}

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

/* Colored journey card background per position */
.timeline-item:nth-child(1) .timeline-card {
  background: #E8FAF8;
  border-left: 4px solid #2A9DAB;
}

.timeline-item:nth-child(2) .timeline-card {
  background: #EDE8FB;
  border-left: 4px solid #7C5DC7;
}

.timeline-item:nth-child(3) .timeline-card {
  background: #E8F4FC;
  border-left: 4px solid #3B82F6;
}

.timeline-item:nth-child(4) .timeline-card {
  background: #FFF5E9;
  border-left: 4px solid #F59E0B;
}

.timeline-item:nth-child(5) .timeline-card {
  background: #F0FDF4;
  border-left: 4px solid #22C55E;
}

.timeline-item:nth-child(6) .timeline-card {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
}

[data-theme="dark"] .timeline-item:nth-child(1) .timeline-card {
  background: rgba(61, 209, 224, 0.08);
  border-left-color: #3DD1E0;
}

[data-theme="dark"] .timeline-item:nth-child(2) .timeline-card {
  background: rgba(147, 97, 218, 0.08);
  border-left-color: #9361DA;
}

[data-theme="dark"] .timeline-item:nth-child(3) .timeline-card {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #3B82F6;
}

[data-theme="dark"] .timeline-item:nth-child(4) .timeline-card {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #F59E0B;
}

[data-theme="dark"] .timeline-item:nth-child(5) .timeline-card {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: #22C55E;
}

[data-theme="dark"] .timeline-item:nth-child(6) .timeline-card {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #EF4444;
}

.timeline-card {
  padding: var(--space-xl) var(--space-xl);
  border-radius: var(--border-radius);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow);
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 4px solid var(--color-bg-alt);
  box-shadow: 0 0 0 3px var(--color-accent);
  z-index: 2;
}

.timeline-date {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  padding: 4px 14px;
  background: var(--color-accent);
  border-radius: 50px;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.timeline-company {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.timeline-company .location {
  color: var(--color-text-muted);
  font-weight: 400;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}


/* ── Contact Section ── */
.contact {
  background: var(--color-bg);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.contact-link-item:hover {
  color: var(--color-accent);
}

.contact-link-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}


/* ── Form Success Overlay ── */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  animation: success-fadein 0.6s ease forwards;
}

@keyframes success-fadein {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-xl);
}

.checkmark-svg {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #22C55E;
  animation: checkmark-circle-draw 0.6s ease-in-out forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #22C55E;
  animation: checkmark-check-draw 0.4s 0.4s ease-in-out forwards;
}

@keyframes checkmark-circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check-draw {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.success-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 320px;
}

/* Submit button styles */
#contact-submit-btn {
  align-self: flex-start !important;
  width: max-content !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Submit loading state */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── Footer ── */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}


/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-2xl);
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 450px;
    opacity: 0.5;
    z-index: auto;
    pointer-events: none;
  }

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-4xl);
  }

  .about-image-wrapper {
    margin: 0;
  }

  .tech-categories {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 320px 1fr;
  }

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


/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-greeting,
  .hero-name,
  .hero-title,
  .hero-cta,
  .hero-social {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .geo-shape {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Project Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--space-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}

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

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-accent);
  color: white;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-image-container {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-details {
  padding: var(--space-xl);
}

.modal-details .project-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.modal-details .project-desc {
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.project-card {
  cursor: pointer;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
  .modal-image-container {
    flex: 1;
    max-height: none;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }
  .modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
