/* ============================================================
   VERDANT SIGNAL — Bhargav's Design Tokens & Typography
   Cross-device, high-performance, responsive styling
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background var(--transition);
  -webkit-text-size-adjust: 100%;
}

/* ============================================================
   CSS VARIABLES — THEMES (Verdant Signal)
   ============================================================ */
:root {
  color-scheme: light;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, monospace;

  /* Brand Primitives */
  --brand-primary: #0F766E;
  --brand-primary-hover: #115E59;
  --brand-primary-soft: #D9F1EC;
  --brand-secondary: #315E67;
  --brand-secondary-soft: #E1ECEC;
  --brand-tertiary-swatch: #C58A2A;
  --brand-tertiary-text-light: #8B5A00;
  --brand-tertiary-soft: #F8E8C6;
  --brand-accent-lilac: #8B83D8;
  --brand-accent-coral: #E58B73;
  --brand-dark-primary: #42946A;
  --brand-dark-secondary: #709686;
  --brand-dark-tertiary: #CFA363;

  /* Semantic Light Mode */
  --color-background: #F6F8F5;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-surface-sunken: #EAF0ED;
  --color-sidebar: #F0F5F2;
  --color-sidebar-border: #D6E1DD;
  --color-text: #193238;
  --color-text-muted: #53666A;
  --color-text-subtle: #5B7072;
  --color-border: #D6E1DD;
  --color-control-border: #7C928C;
  --color-primary: #0F766E;
  --color-primary-hover: #115E59;
  --color-on-primary: #FFFFFF;
  --color-primary-container: #D9F1EC;
  --color-on-primary-container: #124F4A;
  --color-secondary: #315E67;
  --color-secondary-hover: #254B53;
  --color-on-secondary: #FFFFFF;
  --color-secondary-container: #E1ECEC;
  --color-on-secondary-container: #203D43;
  --color-tertiary: #8B5A00;
  --color-tertiary-hover: #744A00;
  --color-on-tertiary: #FFFFFF;
  --color-tertiary-container: #F8E8C6;
  --color-on-tertiary-container: #5D3F0A;
  --color-accent-lilac: #7168C5;
  --color-accent-coral: #A94E36;
  --color-success: #217A50;
  --color-success-bg: #E6F5EC;
  --color-warning: #8B5A00;
  --color-warning-bg: #FFF3D6;
  --color-error: #B42332;
  --color-error-bg: #FCEBEC;
  --color-info: #245FC7;
  --color-info-bg: #EAF2FF;
  --color-focus: #245FC7;
  --color-overlay: rgb(16 38 42 / 48%);
  --shadow-card: 0 6px 24px rgb(25 50 56 / 6%);
  --shadow-popover: 0 12px 32px rgb(25 50 56 / 12%);
  --shadow-primary: 0 8px 24px rgb(15 118 110 / 18%);

  /* Component Aliases */
  --bg: var(--color-background);
  --bg-rgb: 246, 248, 245;
  --bg2: var(--color-surface-sunken);
  --text: var(--color-text);
  --text2: var(--color-text-muted);
  --text-subtle: var(--color-text-subtle);
  --accent: var(--color-primary);
  --accent2: var(--color-secondary);
  --accent-soft: var(--color-primary-container);
  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --control-border: var(--color-control-border);
  --sidebar-bg: var(--color-sidebar);
  --sidebar-border: var(--color-sidebar-border);
  --nav-active: var(--color-primary-container);
  --nav-active-text: var(--color-on-primary-container);
  --skill-bar-bg: var(--color-surface-sunken);
  --tag-bg: var(--color-primary-container);
  --tag-text: var(--color-on-primary-container);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --radius: 12px;
  --radius-button: 10px;

  --shadow-sm: 0 1px 3px rgba(25, 50, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(25, 50, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(25, 50, 56, 0.12);

  --ambient-glow-1: rgb(15 118 110 / 10%);
  --ambient-glow-2: rgb(49 94 103 / 8%);
  --ambient-glow-3: rgb(139 131 216 / 5%);

  --sidebar-w: 272px;
  --transition: 0.22s ease;
  --mobile-nav-h: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Obsidian & Forest — Deep carbon surfaces with restrained forest green accents */
  --color-background: #0E1111;
  --color-surface: #141919;
  --color-surface-raised: #1B2222;
  --color-surface-sunken: #080A0A;
  --color-sidebar: #0A0D0D;
  --color-sidebar-border: #1F2726;

  --color-text: #EAECEB;
  --color-text-muted: #96A09E;
  --color-text-subtle: #6B7674;
  --color-border: #232B2B;
  --color-control-border: #384646;

  --color-primary: #42946A;
  --color-primary-hover: #52A87C;
  --color-on-primary: #FFFFFF;
  --color-primary-container: #122C1F;
  --color-on-primary-container: #A2E0C0;

  --color-secondary: #709686;
  --color-secondary-hover: #7E9F91;
  --color-on-secondary: #0A1411;
  --color-secondary-container: #15241F;
  --color-on-secondary-container: #A8C7BA;

  --color-tertiary: #CFA363;
  --color-tertiary-hover: #DDB476;
  --color-on-tertiary: #1A1407;
  --color-tertiary-container: #2E2413;
  --color-on-tertiary-container: #ECD3A8;

  --color-accent-lilac: #9F9BD4;
  --color-accent-coral: #E28B75;
  --color-success: #5EAA7C;
  --color-success-bg: #10251B;
  --color-warning: #D6A756;
  --color-warning-bg: #2A210F;
  --color-error: #E57373;
  --color-error-bg: #2B1618;
  --color-info: #7AA2D6;
  --color-info-bg: #122030;
  --color-focus: #42946A;

  --color-overlay: rgb(0 0 0 / 75%);
  --shadow-card: 0 8px 28px rgb(0 0 0 / 45%);
  --shadow-popover: 0 14px 36px rgb(0 0 0 / 60%);
  --shadow-primary: 0 8px 26px rgb(66 148 106 / 26%);

  --bg: var(--color-background);
  --bg-rgb: 14, 17, 17;
  --bg2: var(--color-surface-sunken);
  --text: var(--color-text);
  --text2: var(--color-text-muted);
  --text-subtle: var(--color-text-subtle);
  --accent: var(--color-primary);
  --accent2: var(--color-secondary);
  --accent-soft: var(--color-primary-container);
  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --control-border: var(--color-control-border);
  --sidebar-bg: var(--color-sidebar);
  --sidebar-border: var(--color-sidebar-border);
  --nav-active: var(--color-primary-container);
  --nav-active-text: var(--color-on-primary-container);
  --skill-bar-bg: var(--color-surface-raised);
  --tag-bg: var(--color-primary-container);
  --tag-text: var(--color-on-primary-container);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: var(--shadow-popover);
  --ambient-glow-1: rgb(66 148 106 / 12%);
  --ambient-glow-2: rgb(50 115 80 / 9%);
  --ambient-glow-3: rgb(207 163 99 / 5%);
}

/* ============================================================
   BASE
   ============================================================ */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}

.ambient-gradient {
  position: fixed;
  inset: -25vmax;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;

  transform: rotate(var(--ambient-rotation, 0deg)) scale(1.1);
  transform-origin: center;
  will-change: transform;

  background:
    conic-gradient(
      from 0deg,
      rgba(15, 118, 110, 0.12),
      rgba(49, 94, 103, 0.09),
      rgba(139, 131, 216, 0.07),
      rgba(197, 138, 42, 0.06),
      rgba(15, 118, 110, 0.12)
    ),
    radial-gradient(circle at 25% 30%, var(--ambient-glow-1), transparent 45%),
    radial-gradient(circle at 75% 25%, var(--ambient-glow-2), transparent 40%),
    radial-gradient(circle at 50% 80%, var(--ambient-glow-3), transparent 50%);

  filter: blur(80px) saturate(120%);
}

@keyframes ambientFloat {
  0% {
    transform: rotate(var(--ambient-rotation, 0deg)) scale(1.1) translateY(0px);
  }
  50% {
    transform: rotate(calc(var(--ambient-rotation, 0deg) + 4deg)) scale(1.12)
      translateY(-16px);
  }
  100% {
    transform: rotate(var(--ambient-rotation, 0deg)) scale(1.1) translateY(0px);
  }
}

.ambient-gradient {
  animation: ambientFloat 20s ease-in-out infinite;
}

/* ============================================================
   3D FLOWING LIGHT RIBBONS CANVAS (Dual Theme & Seamless Masking)
   - Active in both dark (Obsidian & Forest) and light (Verdant Signal)
   - Organic edge diffusion mask ensuring ribbons fade naturally beyond viewport
   - Zero hard borders, zero rectangular clipping
   ============================================================ */
.ambient-gradient {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--color-background);
  filter: none;
  opacity: 1;
  animation: none;
  transform: none;
  contain: strict;
}

.ambient-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
  /* Organic elliptical vignette mask so ribbon tips dissolve naturally beyond all edges */
  mask-image: radial-gradient(ellipse 92% 88% at 50% 48%, black 55%, rgba(0, 0, 0, 0.7) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 48%, black 55%, rgba(0, 0, 0, 0.7) 75%, transparent 100%);
}

[data-theme="dark"] .ambient-canvas {
  /* Crystal-clear 3D light ribbon fidelity with subtle optical bloom */
  filter: drop-shadow(0 0 24px rgba(66, 148, 106, 0.28)) saturate(118%);
  opacity: 0.98;
}

[data-theme="light"] .ambient-canvas {
  /* Botanical sage & conifer diffusion on warm parchment */
  filter: drop-shadow(0 0 18px rgba(34, 120, 80, 0.15)) saturate(108%);
  opacity: 0.88;
}

@media (max-width: 768px) {
  [data-theme="dark"] .ambient-canvas {
    filter: drop-shadow(0 0 16px rgba(66, 148, 106, 0.22)) saturate(112%);
    opacity: 0.92;
  }
  [data-theme="light"] .ambient-canvas {
    filter: drop-shadow(0 0 12px rgba(34, 120, 80, 0.12)) saturate(104%);
    opacity: 0.84;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-canvas {
    filter: blur(12px);
  }
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 28px;
  z-index: 100;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.sidebar-profile {
  text-align: center;
}

.profile-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.sidebar-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: var(--sidebar-border);
}

.sidebar-nav {
  width: 100%;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

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

.sidebar-bottom {
  margin-top: auto;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: rgba(var(--bg-rgb, 248, 250, 252), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 200;
  transition: background var(--transition);
}

.mobile-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.mobile-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-profile-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-name {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text);
}

.mobile-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger-btn:hover {
  background: var(--accent-soft);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-dropdown {
  display: none;
  position: fixed;
  top: var(--mobile-nav-h);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  z-index: 190;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}

.mobile-dropdown a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-dropdown a:hover,
.mobile-dropdown a.active {
  background: var(--nav-active);
  color: var(--nav-active-text);
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
section {
  padding: 80px 60px;
  max-width: none;
  width: 100%;
}

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section-title span {
  color: var(--accent);
}

.section-line {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  margin-top: 12px;
}

.section-subtext {
  margin-top: 12px;
  color: var(--text2);
  font-size: 14px;
  max-width: 560px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-photo-glow {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   HERO SECTION (Editorial Developer Portfolio)
   ============================================================ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 60px 60px;
  background: transparent;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1.2;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-container);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-on-primary-container);
  margin-bottom: 24px;
  transition: border-color var(--motion-fast);
}

[data-theme="dark"] .hero-badge {
  background: rgba(18, 44, 31, 0.65);
  border-color: rgba(66, 148, 106, 0.3);
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-heading {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-greeting {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.hero-heading .name {
  display: inline-block;
  font-size: clamp(2.6rem, 5.8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 45%, #132422 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-heading .name {
  /* background: linear-gradient(135deg, #0F766E 0%, #115E59 45%, #132422 90%); */
  background: linear-gradient(135deg, #163630 15%, #0F766E 65%, #2D8A74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .hero-heading .name {
  background: linear-gradient(135deg, #EAECEB 20%, #42946A 75%, #709686 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(66, 148, 106, 0.22));
}

.hero-typing {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text2);
  margin-bottom: 22px;
  min-height: 32px;
  font-weight: 400;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-typing .role {
  color: var(--color-primary);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--color-primary);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

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

.hero-desc {
  font-size: clamp(15px, 1.1vw, 16.5px);
  color: var(--text2);
  line-height: 1.68;
  max-width: 520px;
  margin-bottom: 34px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-hover, var(--brand-primary-hover));
  color: var(--color-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.38);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 6px 18px rgba(66, 148, 106, 0.32);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 10px 24px rgba(66, 148, 106, 0.44);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--control-border, var(--color-border));
  cursor: pointer;
  transition: transform var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast);
}

[data-theme="dark"] .btn-outline {
  background: rgba(20, 25, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

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

.btn-primary svg,
.btn-outline svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================================
   HERO PROFILE PHOTOGRAPH (Integrated Editorial Portrait)
   ============================================================ */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-glow {
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: portraitAuraPulse 7s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-photo-glow {
  background:
    radial-gradient(circle at center, rgba(66, 148, 106, 0.40) 0%, rgba(40, 105, 72, 0.24) 40%, rgba(66, 148, 106, 0.08) 62%, transparent 76%),
    radial-gradient(circle at 65% 32%, rgba(147, 220, 178, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 35% 72%, rgba(207, 163, 99, 0.10) 0%, transparent 55%);
  opacity: 0.92;
}

[data-theme="light"] .hero-photo-glow {
  display: block;
  background:
    radial-gradient(circle at center, rgba(34, 120, 80, 0.24) 0%, rgba(66, 148, 106, 0.14) 42%, rgba(34, 120, 80, 0.04) 62%, transparent 76%),
    radial-gradient(circle at 65% 32%, rgba(110, 231, 183, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 35% 72%, rgba(197, 138, 42, 0.08) 0%, transparent 52%);
  opacity: 0.85;
}

.hero-photo-wrap:hover .hero-photo-glow {
  opacity: 1;
  transform: scale(1.08);
}

.hero-photo {
  width: clamp(260px, 24vw, 300px);
  height: clamp(260px, 24vw, 300px);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform var(--motion-standard), box-shadow var(--motion-standard);
}

[data-theme="dark"] .hero-photo {
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  /* Multi-stop elevated ambient shadow stack */
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.40),
    0 16px 36px -8px rgba(0, 0, 0, 0.65),
    0 32px 64px -16px rgba(0, 0, 0, 0.80),
    0 0 0 1px rgba(66, 148, 106, 0.25);
}

[data-theme="dark"] .hero-photo-wrap:hover .hero-photo {
  transform: translateY(-5px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 24px 48px -8px rgba(0, 0, 0, 0.75),
    0 40px 80px -16px rgba(0, 0, 0, 0.90),
    0 0 0 1px rgba(66, 148, 106, 0.42);
}

[data-theme="light"] .hero-photo {
  border: 2px solid rgba(34, 120, 80, 0.20);
  background: var(--color-surface);
  /* Soft floating botanical shadow stack */
  box-shadow:
    0 4px 14px rgba(20, 50, 35, 0.08),
    0 16px 36px -6px rgba(20, 50, 35, 0.14),
    0 28px 56px -12px rgba(20, 50, 35, 0.12),
    0 0 0 1px rgba(34, 120, 80, 0.15);
}

[data-theme="light"] .hero-photo-wrap:hover .hero-photo {
  transform: translateY(-5px);
  box-shadow:
    0 8px 20px rgba(20, 50, 35, 0.10),
    0 24px 48px -6px rgba(20, 50, 35, 0.18),
    0 36px 72px -12px rgba(20, 50, 35, 0.16),
    0 0 0 1px rgba(34, 120, 80, 0.30);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-initials {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 800;
  color: #fff;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: transparent;
}

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

.about-text p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-img-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-soft),
    rgba(59, 130, 246, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
}

/* ============================================================
   EXPERIENCE / TIMELINE SECTION
   ============================================================ */
#experience {
  background: transparent;
}

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

.experience-col-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 9px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text2);
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--color-primary-container);
}

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

.timeline-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.timeline-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.badge-edu {
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
}
.badge-work {
  background: rgba(33, 122, 80, 0.14);
  color: var(--color-success);
}

.badge-internship {
  background: var(--color-tertiary-container);
  color: var(--color-tertiary);
}

.badge-freelance {
  background: var(--color-secondary-container);
  color: var(--color-secondary);
}

[data-theme="dark"] .badge-edu {
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
}
[data-theme="dark"] .badge-work {
  background: rgba(94, 170, 124, 0.16);
  color: var(--color-success);
}
[data-theme="dark"] .badge-internship {
  background: var(--color-tertiary-container);
  color: var(--color-tertiary);
}
[data-theme="dark"] .badge-freelance {
  background: var(--color-secondary-container);
  color: var(--color-secondary);
}

.timeline-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-date svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.timeline-points {
  margin-top: 6px;
  padding-left: 20px;
  list-style: disc;
  list-style-position: outside;
  color: var(--text2);
}

.timeline-points li {
  display: list-item;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

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

/* ============================================================
   SKILLS SECTION
   ============================================================ */
/* #skills {
  background: var(--bg2);
} */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.skill-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.skill-tech {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 12px;
}

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

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  background: transparent;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

/* Dual-theme project card screenshots */
.project-img-theme.project-img-light {
  display: block;
}

.project-img-theme.project-img-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project-img-theme.project-img-light {
    display: none;
  }
  :root:not([data-theme="light"]) .project-img-theme.project-img-dark {
    display: block;
  }
}

[data-theme="dark"] .project-img-theme.project-img-light {
  display: none !important;
}

[data-theme="dark"] .project-img-theme.project-img-dark {
  display: block !important;
}

[data-theme="light"] .project-img-theme.project-img-dark {
  display: none !important;
}

[data-theme="light"] .project-img-theme.project-img-light {
  display: block !important;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.proj-1 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.proj-2 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.proj-3 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-body {
  padding: 20px;
}

.project-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.project-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}

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

.tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

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

.project-link:hover {
  gap: 8px;
}
.project-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
#certifications {
  background: transparent;
}

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

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cert-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cert-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cert-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cert-issuer {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.cert-date {
  font-size: 12px;
  color: var(--text2);
}

.cert-exp {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.cert-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text2);
  background: var(--bg2);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  letter-spacing: 0.3px;
  word-break: break-all;
  width: fit-content;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-btn-secondary {
  border-color: var(--card-border);
  color: var(--text2);
}

.cert-btn-secondary:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.cert-btn:hover {
  background: var(--accent);
  color: #fff;
}
.cert-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: transparent;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.contact-value a {
  color: var(--accent);
  transition: opacity var(--transition);
}
.contact-value a:hover {
  opacity: 0.8;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 280px;
  display: block;
}

/* ============================================================
   PDF MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border);
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  color: var(--text2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 18px;
}

.modal-close:hover {
  background: #ef4444;
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 300px;
}

.modal-placeholder {
  display: none;
  text-align: center;
}

.modal-placeholder.open {
  display: block;
}

.modal-pdf {
  display: none;
  width: 100%;
  height: calc(90vh - 120px);
  border: none;
  border-radius: 0;
  background: var(--bg);
  touch-action: manipulation;
}

.modal-pdf.open {
  display: block;
}

.modal-image-wrap {
  display: none;
  width: 100%;
  height: calc(90vh - 120px);
  background: var(--bg);
  overflow: auto;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.modal-image-wrap.open {
  display: flex;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-placeholder svg {
  width: 60px;
  height: 60px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
}

.modal-placeholder h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-placeholder p {
  font-size: 14px;
  color: var(--text2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 60px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
  background: var(--bg2);
}

/* availability status */

.footer .footer-status {
  font-size: 12px;

  font-weight: 600;

  color: var(--color-success);

  display: flex;
  align-items: center;
  gap: 6px;
}

/* animated status dot */

.footer .footer-status .dot {
  width: 8px;
  height: 8px;

  background: var(--color-success);

  border-radius: 50%;

  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 170, 124, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(94, 170, 124, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(94, 170, 124, 0);
  }
}

.footer a {
  color: var(--accent);
}
/* ============================================================
   MODERN TECH FOOTER
   ============================================================ */

/* .modern-footer {
  background: linear-gradient(
    to top,
    rgba(var(--bg-rgb), 0.9),
    rgba(var(--bg-rgb), 0.6)
  );

  backdrop-filter: blur(10px);

  border-top: 1px solid var(--card-border);

  position: relative;
  overflow: hidden;
} */

/* subtle glow line */
/* .modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--accent), transparent);

  opacity: 0.5;
} */

/* .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  max-width: 1100px;
  margin: auto;
} */

/* left side layout */

/* .footer-left {
  display: flex;
  align-items: center;

  gap: 14px;

  flex-wrap: wrap;
} */

/* built with section */

/* .footer-built {
  display: flex;
  align-items: center;
  gap: 8px;

  flex-wrap: wrap;
} */

/* coffee text aligned nicely */

/* .coffee {
  white-space: nowrap;

  font-family: monospace;

  opacity: 0.7;
} */

/* right side */

/* .footer-right {
  display: flex;
  align-items: center;

  gap: 18px;

  white-space: nowrap;
} */

/* responsive fix */

/* @media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
} */

/* tech stack badges */

/* .footer-built {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
} */

/* .tech {
  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;

  border-radius: 20px;

  background: var(--accent-soft);

  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: 0.3s;
} */

/* hover glow */
/* .tech:hover {
  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
} */

/* coffee text */

/* .coffee {
  opacity: 0.7;

  font-family: monospace;
} */

/* right side */

/* .footer-right {
  display: flex;
  gap: 18px;
  align-items: center;
} */

/* copyright */

/* .footer-copy {
  opacity: 0.6;

  font-size: 12px;
} */
/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================================
   LOADING SCREEN (Verdant Signal Theme Structure)
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  color: var(--color-text);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#loader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

#loader.grain {
  position: fixed;
}

#loader.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

#loader .glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    60% 60% at 50% 0%,
    rgba(15, 118, 110, 0.22),
    rgba(139, 131, 216, 0.08) 45%,
    transparent 70%
  );
  z-index: 1;
}

[data-theme="dark"] #loader .glow-bg {
  background-image: radial-gradient(
    60% 60% at 50% 0%,
    rgba(66, 148, 106, 0.24),
    rgba(108, 143, 128, 0.10) 45%,
    transparent 70%
  );
}

#loader .loader-chars {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  z-index: 2;
  text-align: center;
}

.loader-word {
  display: inline-flex;
}

.loader-spacer {
  display: inline-block;
  width: 0.35em;
}

.loader-char {
  display: inline-block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 7.5vw, 4.6rem);
  line-height: 1;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  animation: loaderCharIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-word-accent .loader-char {
  color: var(--color-primary);
  text-shadow: 0 0 24px rgba(15, 118, 110, 0.35);
}

[data-theme="dark"] .loader-word-accent .loader-char {
  color: var(--color-primary);
  text-shadow: 0 0 28px rgba(66, 148, 106, 0.38);
}

@keyframes loaderCharIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

#loader .loader-progress-wrap {
  position: relative;
  margin-top: 2rem;
  display: flex;
  width: min(78vw, 22rem);
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

#loader .loader-track {
  height: 2px;
  flex: 1;
  overflow: hidden;
  background-color: var(--color-border);
  border-radius: 999px;
}

#loader-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent-lilac));
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.5);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

[data-theme="dark"] #loader-bar {
  background: linear-gradient(90deg, #42946A, #709686);
  box-shadow: 0 0 12px rgba(66, 148, 106, 0.50);
}

#loader-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  font-weight: 600;
}

#loader .loader-subtitle {
  position: relative;
  margin-top: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .loader-char {
    animation-duration: 0.01ms !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  #loader {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE & MOBILE PERFORMANCE
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
    padding-top: env(safe-area-inset-top, 0);
  }
  .main-content {
    margin-left: 0;
  }
  section {
    padding: 70px 20px 50px;
  }
  section:first-child,
  #home {
    padding-top: calc(var(--mobile-nav-h) + env(safe-area-inset-top, 0px) + 30px);
  }
  .footer {
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .ambient-gradient {
    filter: blur(45px);
    opacity: 0.7;
    animation: none;
    will-change: auto;
  }
  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
    text-align: center;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-photo {
    width: 180px;
    height: 180px;
  }
  .hero-photo-decoration {
    display: none;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-img-col {
    display: none;
  }
  .about-details {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .theme-btn,
  .hamburger-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tabs {
    width: 100%;
    display: flex;
  }
  .tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }
}
