/* ==========================================================================
   MUMTAJ ALI — PROFESSIONAL PORTFOLIO STYLESHEET
   Full Stack Developer & UI Designer
   Modern CSS Architecture • Responsive • Accessible • High-Performance
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES (DARK & LIGHT COLOR SCHEME)
   -------------------------------------------------------------------------- */
:root {
  /* Color Scheme Hint */
  color-scheme: light dark;

  /* Brand Palette (Dark Default) */
  --bg-primary: #090a10;
  --bg-surface: #10121c;
  --bg-surface-elevated: #171a28;
  --bg-surface-translucent: rgba(16, 18, 28, 0.75);
  --bg-surface-glass: rgba(14, 16, 26, 0.65);
  --bg-input: rgba(18, 22, 36, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(45, 212, 191, 0.35);

  --glass-bevel-top: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  --glass-bevel-bottom: inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090a10;

  /* Accent Colors */
  --primary: #2dd4bf;         /* Modern Electric Teal */
  --primary-hover: #14b8a6;
  --primary-glow: rgba(45, 212, 191, 0.22);

  --secondary: #38bdf8;       /* Electric Sky Blue */
  --secondary-glow: rgba(56, 189, 248, 0.2);

  --accent-warm: #f59e0b;      /* Amber / Warm Accent */
  --accent-warm-glow: rgba(245, 158, 11, 0.2);

  --success: #10b981;
  --error: #f43f5e;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px var(--primary-glow);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout & Geometry */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms var(--ease-smooth);
  --transition-slow: 400ms var(--ease-smooth);

  /* Navbar */
  --nav-height: 76px;

  /* Safe Area Insets (iOS Notch & Dynamic Island) */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* Light Theme Variables */
:root[data-theme="light"] {
  color-scheme: light;

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-translucent: rgba(255, 255, 255, 0.82);
  --bg-surface-glass: rgba(255, 255, 255, 0.72);
  --bg-input: rgba(255, 255, 255, 0.85);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.12);
  --border-accent: rgba(13, 148, 136, 0.35);

  --glass-bevel-top: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --glass-bevel-bottom: inset 0 -1px 1px 0 rgba(0, 0, 0, 0.06);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-glow: rgba(13, 148, 136, 0.18);

  --secondary: #0284c7;
  --secondary-glow: rgba(2, 132, 199, 0.16);

  --accent-warm: #d97706;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px -10px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.14);
}

/* Light Mode Surface Adaptations & High-Contrast Frosted Glass Refinements */
:root[data-theme="light"] .card-surface {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.84) 100%
  ), rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    0 10px 30px -10px rgba(15, 23, 42, 0.07),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .card-surface:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow:
    0 18px 42px -12px rgba(15, 23, 42, 0.12),
    0 0 24px var(--primary-glow),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .card-surface::before {
  background: radial-gradient(
    520px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(13, 148, 136, 0.09),
    rgba(2, 132, 199, 0.04) 35%,
    transparent 70%
  );
}

:root[data-theme="light"] .card-surface::after {
  background: radial-gradient(
    320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.95),
    rgba(13, 148, 136, 0.2) 30%,
    transparent 65%
  );
}

/* Navbar in Light Mode */
:root[data-theme="light"] .nav-container {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.84) 100%
  ), rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    0 10px 30px -8px rgba(15, 23, 42, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .navbar.scrolled .nav-container {
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.12),
    0 0 20px var(--primary-glow),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(13, 148, 136, 0.35);
}

:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

:root[data-theme="light"] .ambient-glow {
  opacity: 0.18;
}

/* Theme Toggle Button in Light Mode */
:root[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Section 1: Hero Section in Light Mode */
:root[data-theme="light"] .hero-badge {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 245, 249, 0.9) 100%
  ), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .hero-badge-text {
  color: #334155;
  font-weight: 600;
}

:root[data-theme="light"] .hero-cred-strip {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 252, 0.9) 100%
  ), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 8px 24px -6px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .cred-icon {
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
}

:root[data-theme="light"] .cred-text strong {
  color: #0f172a;
}

:root[data-theme="light"] .cred-text span {
  color: #475569;
}

:root[data-theme="light"] .profile-frame {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.85));
  box-shadow:
    0 20px 48px -12px rgba(15, 23, 42, 0.15),
    0 0 28px var(--primary-glow),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .profile-glare {
  background: linear-gradient(180deg, transparent 65%, rgba(248, 250, 252, 0.75) 100%);
}

:root[data-theme="light"] .floating-tag {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 252, 0.92) 100%
  ), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 12px 28px -6px rgba(15, 23, 42, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .floating-tag strong {
  color: #0f172a;
}

:root[data-theme="light"] .floating-tag span {
  color: #475569;
}

:root[data-theme="light"] .social-icon-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .social-icon-btn:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}

:root[data-theme="light"] .btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 245, 249, 0.9) 100%
  ), #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), inset 0 1px 1px #ffffff;
}

:root[data-theme="light"] .btn-secondary:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.18), inset 0 1px 1px #ffffff;
}

:root[data-theme="light"] .btn-outline {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
}

:root[data-theme="light"] .btn-outline:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}

/* Section 2: About Section in Light Mode */
:root[data-theme="light"] .pillar-icon {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
  color: var(--primary);
}

:root[data-theme="light"] .stat-box {
  color: var(--text-primary);
}

/* Section 3: Experience & Education in Light Mode */
:root[data-theme="light"] .featured-timeline-card {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow:
    0 14px 36px -10px rgba(15, 23, 42, 0.12),
    0 0 24px var(--primary-glow),
    inset 0 1px 1px #ffffff;
}

:root[data-theme="light"] .timeline-badge {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
  color: var(--primary);
}

:root[data-theme="light"] .tag-pill {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .cert-icon-wrap {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Section 4: Projects Section in Light Mode */
:root[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
}

:root[data-theme="light"] .filter-btn:hover {
  color: #0f172a;
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.08);
}

:root[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
}

:root[data-theme="light"] .project-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow:
    0 18px 44px -10px rgba(15, 23, 42, 0.14),
    0 0 26px var(--primary-glow),
    inset 0 1px 1px #ffffff;
}

:root[data-theme="light"] .project-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .tech-tag {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

:root[data-theme="light"] .btn-ghost {
  color: #475569;
}

:root[data-theme="light"] .btn-ghost:hover {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.1);
}

/* Section 5: Skills Matrix in Light Mode */
:root[data-theme="light"] .category-icon {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
  color: var(--primary);
}

:root[data-theme="light"] .skill-chip {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 245, 249, 0.9) 100%
  ), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
}

:root[data-theme="light"] .skill-chip:hover {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Section 6: Services & Process in Light Mode */
:root[data-theme="light"] .service-icon-wrap {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
  color: var(--primary);
}

:root[data-theme="light"] .step-num {
  color: var(--primary);
}

/* Section 7: Contact Section & Form in Light Mode */
:root[data-theme="light"] .contact-method-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .method-icon {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.28);
  color: var(--primary);
}

:root[data-theme="light"] .copy-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

:root[data-theme="light"] .copy-btn:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

:root[data-theme="light"] .whatsapp-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.05)), #ffffff;
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .whatsapp-content strong {
  color: #0f172a;
}

:root[data-theme="light"] .whatsapp-content span {
  color: #475569;
}

:root[data-theme="light"] .social-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .social-pill:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

:root[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .form-control::placeholder {
  color: #94a3b8;
}

:root[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px var(--primary-glow),
    inset 0 1px 1px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] select.form-control option {
  background: #ffffff;
  color: #0f172a;
}

/* Section 8: Project Modal in Light Mode */
:root[data-theme="light"] .project-modal {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 24px 64px -12px rgba(15, 23, 42, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .project-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

:root[data-theme="light"] .modal-close-btn {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

:root[data-theme="light"] .modal-hero-img {
  border-color: rgba(15, 23, 42, 0.1);
}

/* Section 9: Footer & Utilities in Light Mode */
:root[data-theme="light"] .footer {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .footer-social-row a {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

:root[data-theme="light"] .footer-social-row a:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

:root[data-theme="light"] .back-to-top-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
   2. CSS RESET & GLOBAL BASICS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--sab);
}

/* Touch-friendly defaults & manipulation on interactive controls */
button,
a,
input,
select,
textarea,
.btn,
.filter-btn,
.skill-chip,
.copy-btn,
.project-card,
.social-icon-btn,
.theme-toggle-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Base Identity Transformations for All Buttons (Modern Web Guidance: prevents stacking context shifts) */
.btn,
.filter-btn,
.social-icon-btn,
.theme-toggle-btn,
.copy-btn,
.modal-close-btn,
.back-to-top-btn,
.floating-whatsapp-btn,
.mobile-dock-btn {
  translate: 0 0;
  scale: 1;
  rotate: 0deg;
  will-change: translate, scale, box-shadow;
}

/* Tactile Micro-Interactions on Icons */
button i,
a i,
.btn i,
.mobile-dock-btn i,
.theme-toggle-btn i,
.modal-close-btn i,
.copy-btn i {
  pointer-events: none;
  display: inline-block;
  translate: 0 0;
  scale: 1;
  rotate: 0deg;
  transition: translate var(--transition-fast), scale var(--transition-fast), rotate var(--transition-fast);
}

/* Tactile Active States for Touch and Click */
.btn:active,
.filter-btn:active,
.social-icon-btn:active,
.floating-whatsapp-btn:active,
.back-to-top-btn:active,
.copy-btn:active,
.theme-toggle-btn:active,
.modal-close-btn:active,
.mobile-dock-btn:active {
  scale: 0.94 !important;
  translate: 0 0 !important;
  filter: brightness(1.16);
  transition-duration: 75ms !important;
}

.card-surface:active,
.project-card:active {
  transform: scale(0.99);
  transition-duration: 100ms;
}

/* Accessibility: Focus visible outline */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Skip link for screen readers & keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

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

/* Common Section Layout */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Common Card Surface (Liquid Glassmorphism) */
.card-surface {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.04) 100%
  ), rgba(14, 16, 26, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.55),
    0 20px 40px -15px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.card-surface > * {
  position: relative;
  z-index: 3;
}

/* Liquid Refractive Glare that follows pointer */
.card-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(45, 212, 191, 0.14),
    rgba(56, 189, 248, 0.05) 35%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

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

/* Prismatic Liquid Edge Highlight */
.card-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    320px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.5),
    rgba(45, 212, 191, 0.3) 30%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.card-surface:hover::after {
  opacity: 1;
}

.card-surface:hover {
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow:
    0 16px 48px -10px rgba(0, 0, 0, 0.65),
    0 0 30px var(--primary-glow),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
}

.text-accent {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   3. BACKGROUND AMBIENT & 3D CANVAS LAYER (LIQUID GLASS BLOBS)
   -------------------------------------------------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Liquid Morphing Ambient Orbs */
.ambient-glow {
  position: absolute;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.32;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: liquid-morph 20s ease-in-out infinite alternate;
  will-change: transform, border-radius;
}

@keyframes liquid-morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    transform: translate(45px, -35px) rotate(110deg) scale(1.1);
  }
  66% {
    border-radius: 30% 70% 70% 30% / 50% 30% 70% 50%;
    transform: translate(-35px, 45px) rotate(220deg) scale(0.94);
  }
  100% {
    border-radius: 58% 42% 35% 65% / 60% 35% 65% 40%;
    transform: translate(25px, 15px) rotate(360deg) scale(1.05);
  }
}

.glow-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle at 35% 35%, rgba(45, 212, 191, 0.6), rgba(20, 184, 166, 0.22) 50%, transparent 75%);
  top: -140px;
  left: -140px;
  animation-duration: 22s;
}

.glow-2 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.58), rgba(99, 102, 241, 0.25) 52%, transparent 75%);
  top: 35%;
  right: -180px;
  animation-duration: 26s;
  animation-delay: -5s;
}

.glow-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 60%, rgba(245, 158, 11, 0.42), rgba(244, 63, 94, 0.18) 55%, transparent 75%);
  bottom: -120px;
  left: 25%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.glow-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.38), rgba(59, 130, 246, 0.16) 55%, transparent 75%);
  top: 70%;
  right: 25%;
  animation-duration: 24s;
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (LIQUID FROSTED GLASS)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: max(16px, var(--sat));
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 max(20px, var(--sar));
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
  will-change: transform, opacity;
}

/* Hide on Scroll Down */
.navbar.nav-hidden {
  transform: translateY(calc(-100% - max(28px, var(--sat))));
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  max-width: 880px;
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 16px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(12, 14, 24, 0.72);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  box-shadow:
    0 12px 36px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.navbar.scrolled .nav-container {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.7),
    0 0 25px var(--primary-glow),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(45, 212, 191, 0.4);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}

/* Nav Actions: Theme Toggle Only */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px currentColor;
  }
  50% {
    opacity: 0.62;
    transform: scale(0.92);
    box-shadow: 0 0 3px currentColor;
  }
}

/* Modern Theme Switcher */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    translate var(--transition-fast),
    scale var(--transition-fast),
    rotate var(--transition-fast),
    border-color var(--transition-normal),
    background var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  translate: 0 -2px;
  scale: 1.08;
  rotate: 15deg;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.theme-toggle-btn i {
  display: inline-block;
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--transition-normal);
}

.theme-toggle-btn:hover .moon-icon {
  transform: rotate(-25deg) scale(1.1);
}

.theme-toggle-btn:hover .sun-icon {
  transform: rotate(45deg) scale(1.15);
}

/* Theme Icon Display Convention */
/* Dark Mode (Default): Show Sun to activate light mode */
.theme-toggle-btn .sun-icon {
  display: block;
  color: #f59e0b;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
.theme-toggle-btn .moon-icon {
  display: none;
  color: #38bdf8;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.theme-toggle-btn:hover .sun-icon {
  transform: rotate(30deg) scale(1.1);
}
.theme-toggle-btn:hover .moon-icon {
  transform: rotate(-15deg) scale(1.1);
}

/* Light Mode: Show Moon to activate dark mode */
:root[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
:root[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
  color: #0284c7;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & UI CONTROLS (ANIMATED LIQUID GLASS BUTTONS)
   -------------------------------------------------------------------------- */
/* Button Keyframe Animations */
@keyframes btn-shimmer {
  0% {
    left: -120%;
  }
  25%, 100% {
    left: 130%;
  }
}

@keyframes whatsapp-beacon {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0);
  }
}

@keyframes bounce-up {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@keyframes dock-beacon {
  0%, 100% {
    box-shadow:
      0 10px 26px rgba(45, 212, 191, 0.6),
      0 0 22px rgba(245, 158, 11, 0.35),
      0 0 0 0 rgba(45, 212, 191, 0.45),
      inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(45, 212, 191, 0.75),
      0 0 26px rgba(245, 158, 11, 0.5),
      0 0 0 6px rgba(45, 212, 191, 0),
      inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    color var(--transition-normal);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 18px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 5s infinite ease-in-out;
  pointer-events: none;
}

.btn-primary:hover::before {
  animation: none;
  left: 130%;
  transition: left 0.65s ease;
}

.btn-primary:hover {
  translate: 0 -3px;
  scale: 1.02;
  box-shadow:
    0 10px 30px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.btn-primary:hover i.fa-arrow-right,
.footer-cta-btn:hover i.fa-arrow-right {
  translate: 4px 0;
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(20, 24, 38, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--primary);
  translate: 0 -3px;
  scale: 1.02;
  box-shadow:
    0 8px 24px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover i.fa-envelope,
.btn-secondary:hover i.fa-comments {
  scale: 1.18;
  rotate: -10deg;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: var(--primary);
  color: var(--primary);
  translate: 0 -2px;
  scale: 1.02;
  box-shadow:
    0 8px 24px var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-outline:hover i {
  translate: 3px 0;
  scale: 1.1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-glow);
  translate: 0 -2px;
  scale: 1.03;
}

.btn-ghost:hover i {
  translate: 3px 0;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  color: #090a10;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 18px rgba(37, 211, 102, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae06f 0%, #15803d 100%);
  translate: 0 -3px;
  scale: 1.03;
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.btn-whatsapp:hover i {
  scale: 1.15;
  rotate: 10deg;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + max(36px, var(--sat)));
  padding-bottom: max(60px, var(--sab));
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(18, 22, 36, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-greeting {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-bottom: 4px;
}

.hero-name {
  display: block;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.hero-typed-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 2.2em;
}

.hero-typed-prefix {
  color: var(--text-muted);
}

.typing {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  min-height: 1.2em;
  display: inline-block;
}

.typed-cursor {
  color: var(--primary);
  font-weight: 300;
  opacity: 1;
  display: inline-block;
  margin-left: 2px;
}

.hero-bio {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

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

/* Hero Credibility Strip */
.hero-cred-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(14, 17, 28, 0.65);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-top: 4px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cred-icon {
  font-size: 1.25rem;
  color: var(--primary);
  background: var(--primary-glow);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cred-text {
  display: flex;
  flex-direction: column;
}

.cred-text strong {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.cred-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
  transition:
    translate var(--transition-fast),
    rotate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.social-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
  translate: 0 -4px;
  scale: 1.14;
  rotate: 6deg;
  box-shadow: 0 8px 22px var(--primary-glow);
}

.social-icon-btn:hover i {
  scale: 1.12;
}

/* Hero Visual / Avatar Card */
.hero-visual-content {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.08;
}

.profile-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 35px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: contrast(1.03) saturate(1.02);
  transition: transform var(--transition-slow);
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
}

.profile-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(9, 10, 16, 0.75) 100%);
  pointer-events: none;
}

/* Floating Status Tags (Liquid Glass) */
.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 100%
  ), rgba(14, 17, 28, 0.75);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.floating-tag i {
  font-size: 1.25rem;
  color: var(--primary);
}

.floating-tag strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.floating-tag span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-top {
  top: 24px;
  left: -28px;
  animation-delay: 0s;
}

.tag-bottom {
  bottom: 24px;
  right: -24px;
  animation-delay: 3s;
}

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

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.about-bio-card {
  padding: 40px;
}

.about-bio-card .card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bio-paragraph {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.bio-paragraph strong {
  color: var(--text-primary);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Pillars */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-card {
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. EXPERIENCE & EDUCATION SECTION
   -------------------------------------------------------------------------- */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.column-header i {
  color: var(--primary);
  font-size: 1.25rem;
}

.column-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-card {
  padding: 32px;
  position: relative;
  margin-bottom: 24px;
}

.featured-timeline-card {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 24px var(--primary-glow);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.timeline-badge-current {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: var(--text-inverse);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-top: 6px;
}

.timeline-meta {
  margin-bottom: 14px;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}

.timeline-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Certifications Card */
.certification-card {
  padding: 28px;
  margin-top: 12px;
}

.column-header-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.column-header-sub i {
  color: var(--accent-warm);
}

.column-header-sub h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cert-details {
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. PROJECTS / PORTFOLIO SECTION
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.filter-btn:hover:not(.active) {
  color: var(--text-primary);
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.1);
  translate: 0 -2px;
  scale: 1.03;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 18px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  translate: 0 0;
  scale: 1;
}

.filter-btn.active:hover {
  translate: 0 -2px;
  scale: 1.03;
  box-shadow:
    0 8px 24px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.7),
    0 0 32px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.project-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-slow);
}

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

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   10. SKILLS MATRIX SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  padding: 32px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.category-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-summary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(18, 22, 36, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all var(--transition-fast);
}

.skill-chip i {
  color: var(--primary);
}

.skill-chip:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.15);
  box-shadow: 0 0 18px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. SERVICES & PROCESS SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.service-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.service-features li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* Working Process Strip */
.process-strip {
  padding: 44px;
}

.process-heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px auto;
}

.process-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.process-heading h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.85;
  margin-bottom: 10px;
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. CONTACT SECTION & INTERACTIVE FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card {
  padding: 36px;
}

.contact-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.method-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.method-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.method-value:hover {
  color: var(--primary);
}

.method-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.copy-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
  translate: 0 -2px;
  scale: 1.12;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* WhatsApp Banner */
.whatsapp-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.04));
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.whatsapp-big-icon {
  font-size: 2rem;
  color: #25d366;
}

.whatsapp-content strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.whatsapp-content span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.contact-social-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-section-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
}

/* Contact Form Styling */
.contact-form-card {
  padding: 36px;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required-indicator {
  color: var(--error);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--bg-input);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: rgba(22, 27, 44, 0.85);
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.textarea-wrapper .input-icon {
  top: 16px;
}

textarea.form-control {
  padding: 14px 16px 14px 44px;
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Modern Accessible Form Validation (:user-valid and :user-invalid with fallback) */
.form-control:user-invalid,
.form-control.user-invalid-fallback {
  border-color: var(--error);
  background-color: rgba(244, 63, 94, 0.05);
}

.form-control:user-valid,
.form-control.user-valid-fallback {
  border-color: var(--success);
}

.field-feedback {
  font-size: 0.75rem;
  color: var(--error);
  display: none;
}

.form-field:has(.form-control:user-invalid) .field-feedback,
.form-field:has(.form-control.user-invalid-fallback) .field-feedback {
  display: block;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.form-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  justify-content: center;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   13. ACCESSIBLE PROJECT MODAL DIALOG
   -------------------------------------------------------------------------- */
.project-modal {
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ), rgba(12, 15, 26, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  color: var(--text-primary);
  max-width: 720px;
  width: 90vw;
  max-height: 85vh;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.8),
    0 0 40px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.project-modal::backdrop {
  background: rgba(9, 10, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  rotate: 0deg;
  scale: 1;
  transition:
    rotate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
  rotate: 90deg;
  scale: 1.12;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

.modal-body {
  overflow-y: auto;
  padding: 32px;
}

.modal-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-highlights {
  margin-bottom: 24px;
}

.modal-highlights h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-highlights li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modal-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px 0;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-social-row a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-links li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-contact-info i {
  color: var(--primary);
  font-size: 0.875rem;
  width: 16px;
}

.footer-contact-info a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. FLOATING QUICK ACTION UTILITIES
   -------------------------------------------------------------------------- */
.floating-utilities {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 990;
}

.floating-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(22, 163, 74, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #090a10;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 26px rgba(37, 211, 102, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  animation: whatsapp-beacon 3.2s infinite ease-in-out;
  translate: 0 0;
  scale: 1;
  transition:
    translate var(--transition-fast),
    scale var(--transition-fast),
    box-shadow var(--transition-normal);
}

.floating-whatsapp-btn i {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  translate: 0 -3px;
  scale: 1.05;
  box-shadow:
    0 12px 34px rgba(37, 211, 102, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.floating-whatsapp-btn:hover i {
  rotate: 12deg;
  scale: 1.15;
}

.back-to-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 22, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  scale: 0.95;
  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal),
    translate var(--transition-normal),
    scale var(--transition-normal),
    background var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  scale: 1;
}

.back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #090a10;
  translate: 0 -4px;
  scale: 1.1;
  box-shadow:
    0 10px 28px var(--primary-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.back-to-top-btn:hover i {
  animation: bounce-up 0.8s infinite ease-in-out;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   15.1 FLOATING LIQUID GLASS MOBILE BOTTOM DOCK (MOBILE APP DOCK)
   -------------------------------------------------------------------------- */
.mobile-glass-dock {
  display: none; /* Hidden by default on desktop/laptops */
  position: fixed;
  bottom: max(16px, var(--sab));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1040;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.mobile-dock-surface {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 100%
  ), rgba(12, 14, 24, 0.62);
  backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  box-shadow:
    0 18px 44px -8px rgba(0, 0, 0, 0.7),
    0 4px 14px -2px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(45, 212, 191, 0.14),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1.5px 1.5px 0 rgba(0, 0, 0, 0.45);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.mobile-dock-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    transparent 100%
  );
  pointer-events: none;
}

/* Light Theme Real Liquid Frosted Glass (Translucent with Refractive Specular Highlight) */
:root[data-theme="light"] .mobile-dock-surface {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.32) 100%
  ), rgba(248, 250, 252, 0.42);
  backdrop-filter: blur(26px) saturate(190%) contrast(108%);
  -webkit-backdrop-filter: blur(26px) saturate(190%) contrast(108%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 16px 38px -6px rgba(15, 23, 42, 0.15),
    0 4px 14px -2px rgba(15, 23, 42, 0.08),
    0 0 22px rgba(13, 148, 136, 0.12),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 1.5px 0 rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .mobile-dock-surface::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.15rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
  translate: 0 0;
  scale: 1;
  transition:
    color var(--transition-fast),
    translate var(--transition-fast),
    scale var(--transition-fast),
    background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:root[data-theme="light"] .mobile-dock-btn {
  color: #334155; /* High contrast over frosted translucent glass */
}

.mobile-dock-btn:hover,
.mobile-dock-btn.active {
  color: var(--primary) !important;
}

.mobile-dock-btn:hover {
  scale: 1.08;
}

.mobile-dock-btn:hover i {
  translate: 0 -2px;
}

.mobile-dock-btn:active {
  scale: 0.9 !important;
}

.mobile-dock-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Active indicator dot */
.mobile-dock-btn.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

/* Center Highlighted Radiant Button (Elevated Lens Effect) */
.mobile-dock-btn.mobile-dock-center {
  width: 54px;
  height: 54px;
  margin-top: -16px;
  color: #ffffff !important;
  z-index: 2;
}

.mobile-dock-btn.mobile-dock-center::after {
  display: none;
}

.center-btn-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, #2dd4bf 0%, #10b981 44%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: dock-beacon 3.2s infinite ease-in-out;
  translate: 0 0;
  scale: 1;
  transition: translate var(--transition-fast), scale var(--transition-fast), box-shadow var(--transition-normal);
  will-change: transform, box-shadow;
}

.mobile-dock-btn.mobile-dock-center:hover .center-btn-disc,
.mobile-dock-btn.mobile-dock-center.active .center-btn-disc {
  translate: 0 -3px;
  scale: 1.08;
  box-shadow:
    0 14px 34px rgba(45, 212, 191, 0.75),
    0 0 28px rgba(245, 158, 11, 0.5),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95);
}

.mobile-dock-btn.mobile-dock-center:active .center-btn-disc {
  scale: 0.92 !important;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE MEDIA QUERIES (COMPREHENSIVE MULTI-DEVICE SUPPORT)
   -------------------------------------------------------------------------- */
/* Large Desktops / Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text-content {
    align-items: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-bio {
    margin: 0 auto;
  }

  .hero-cta-group,
  .hero-social-links,
  .hero-typed-wrapper {
    justify-content: center;
  }

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

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

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

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets & Mobile (<= 768px) — Android & iOS */
@media (max-width: 768px) {
  :root {
    --nav-height: 66px;
  }

  /* Stop GPU compositing thrash & backdrop-filter flickering on mobile devices */
  .ambient-glow {
    animation: none !important;
    filter: blur(45px) !important;
    opacity: 0.22;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Display Mobile Glass Bottom Dock with dedicated hardware composited layer */
  .mobile-glass-dock {
    display: block;
    transform: translate3d(-50%, 0, 0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  /* Stabilize text wrapping to prevent vertical jumping/blinking in mobile view */
  .hero-typed-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 3.4em;
  }

  .typing {
    display: inline-block;
    text-align: center;
    min-height: 1.5em;
  }

  body {
    padding-bottom: calc(var(--sab) + 96px) !important;
  }

  /* Reposition floating quick action utilities cleanly above the bottom dock */
  .floating-utilities {
    bottom: calc(max(16px, var(--sab)) + 76px) !important;
    right: max(16px, var(--sar)) !important;
  }

  /* Position toast notification above the mobile dock */
  .toast-notification {
    bottom: calc(max(16px, var(--sab)) + 86px) !important;
    z-index: 10001;
  }

  /* Prevent auto-zoom on iOS Safari when focusing form fields */
  input,
  textarea,
  select,
  .form-control {
    font-size: 16px !important;
  }

  .container {
    padding-left: max(16px, var(--sal));
    padding-right: max(16px, var(--sar));
  }

  .navbar {
    top: max(16px, var(--sat));
    left: auto;
    right: max(16px, var(--sar));
    padding: 0;
    width: auto;
    pointer-events: none;
  }

  .nav-container {
    height: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }

  .theme-toggle-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  :root[data-theme="light"] .theme-toggle-btn {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  }

  .section {
    padding: 68px 0;
  }

  .hero-section {
    padding-top: calc(max(20px, var(--sat)) + 48px);
    padding-bottom: max(48px, var(--sab));
  }

  .profile-card {
    max-width: 300px;
    margin: 0 auto;
  }

  .tag-top {
    left: -8px;
    top: 8px;
    padding: 8px 12px;
  }

  .tag-bottom {
    right: -8px;
    bottom: 8px;
    padding: 8px 12px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

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

  .project-filters {
    gap: 6px;
    margin-bottom: 28px;
  }

  .filter-btn {
    padding: 7px 15px;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .process-strip {
    padding: 28px 18px;
  }

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

  .contact-method-item {
    padding: 12px 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .floating-label {
    display: none;
  }

  .floating-whatsapp-btn {
    padding: 14px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .back-to-top-btn {
    width: 44px;
    height: 44px;
  }
}

/* Small Mobile Screens (<= 480px — iPhone, Samsung Galaxy, Pixel) */
@media (max-width: 480px) {
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

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

  .hero-typed-wrapper {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    min-height: 3.6em; /* Fully locks height for small mobile screens so no jitter occurs */
  }

  .hero-bio {
    font-size: 0.95rem;
  }

  .hero-cred-strip {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .about-bio-card,
  .timeline-card,
  .skill-category-card,
  .service-card,
  .contact-info-card,
  .contact-form-card {
    padding: 20px 16px;
  }

  .profile-card {
    max-width: 260px;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .project-footer {
    flex-direction: column;
    gap: 10px;
  }

  .project-footer .btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Ultra-Compact / Foldable Screens (<= 360px — Galaxy Fold Cover) */
@media (max-width: 360px) {
  .mobile-glass-dock {
    width: calc(100vw - 16px);
  }

  .mobile-dock-surface {
    padding: 6px 6px;
  }

  .mobile-dock-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .mobile-dock-btn.mobile-dock-center {
    width: 48px;
    height: 48px;
    margin-top: -12px;
  }

  .center-btn-disc {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .brand-monogram {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .brand-name {
    font-size: 0.9375rem;
  }

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

  .stat-box {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-box:last-child {
    border-bottom: none;
  }

  .floating-tag {
    padding: 6px 10px;
    gap: 6px;
  }

  .floating-tag i {
    font-size: 1rem;
  }

  .floating-tag strong {
    font-size: 0.6875rem;
  }

  .floating-tag span {
    font-size: 0.625rem;
  }
}

/* Landscape Mode on Phones (<= 520px height) */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --nav-height: 54px;
  }

  .navbar {
    top: max(8px, var(--sat));
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 32px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
    text-align: left;
    gap: 24px;
  }

  .hero-text-content {
    align-items: flex-start;
  }

  .hero-cta-group,
  .hero-social-links,
  .hero-typed-wrapper {
    justify-content: flex-start;
  }

  .profile-card {
    max-width: 200px;
    aspect-ratio: 1 / 1;
  }

  .project-modal {
    max-height: 94dvh;
  }

  .modal-body {
    padding: 16px;
  }
}

/* Reduced Motion Preference (Accessibility) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
