/* ==========================================================================
   CENTRALIZED DESIGN SYSTEM & MASTER STYLESHEET
   Ritesh Mallick — Personal Developer Portfolio
   Obsidian Dark Futuristic Theme (#03050B / #050817 + #7C3AED / #2563EB)
   ========================================================================== */

:root {
  /* Core Backgrounds */
  --bg-primary: #03050B;
  --bg-secondary: #050817;
  --bg-card: rgba(8, 12, 28, 0.65);
  --bg-card-hover: rgba(12, 18, 38, 0.75);
  --bg-glass-nav: rgba(3, 5, 15, 0.65);
  --bg-input: rgba(8, 12, 28, 0.55);
  --bg-social-btn: rgba(8, 12, 28, 0.55);

  /* Borders */
  --border-subtle: 1px solid rgba(130, 100, 255, 0.15);
  --border-card: 1px solid rgba(130, 100, 255, 0.12);
  --border-hover: 1px solid rgba(124, 58, 237, 0.45);
  --border-focus: 1px solid #7C3AED;

  /* Accent Colors */
  --purple: #7C3AED;
  --purple-neon: #a855f7;
  --blue: #2563EB;
  --blue-neon: #38bdf8;
  --emerald: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --gradient-primary-hover: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
  --gradient-text: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
  --gradient-halo: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(37, 99, 235, 0.3) 100%);

  /* Typography */
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Glows & Shadows */
  --glow-purple: 0 8px 24px rgba(124, 58, 237, 0.45);
  --glow-subtle: 0 0 20px rgba(124, 58, 237, 0.18);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Light Theme Variables */
[data-theme="light"], .theme-light {
  /* Core Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass-nav: rgba(255, 255, 255, 0.92);
  --bg-input: #f8fafc;
  --bg-social-btn: #ffffff;

  /* Borders */
  --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
  --border-card: 1px solid rgba(0, 0, 0, 0.08);
  --border-hover: 1px solid rgba(124, 58, 237, 0.45);
  --border-focus: 1px solid #7c3aed;

  /* Accent Colors tailored for Light Theme */
  --purple: #7c3aed;
  --purple-neon: #6d28d9;
  --blue: #2563eb;
  --blue-neon: #0284c7;
  --emerald: #059669;

  /* Gradients tailored for Light Theme (High Contrast & Rich Vibrancy) */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-primary-hover: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
  --gradient-text: linear-gradient(135deg, #6d28d9 0%, #2563eb 50%, #0284c7 100%);
  --gradient-halo: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(37, 99, 235, 0.12) 100%);

  /* Typography */
  --text-white: #0f172a;
  --text-gray: #475569;
  --text-muted: #64748b;

  /* Glows & Shadows */
  --glow-purple: 0 8px 24px rgba(124, 58, 237, 0.22);
  --glow-subtle: 0 4px 18px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

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

button, input, textarea, select {
  font-family: inherit;
}

/* ==========================================================================
   Futuristic Backdrop (16:9 Ambient Image + Soft Glows with Parallax)
   ========================================================================== */
.site-glow-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: url('../images/portfolio-background.svg') center center / cover no-repeat;
  background-attachment: fixed;
  transform: translate3d(0, var(--parallax-bg, 0px), 0);
  will-change: transform;
}

[data-theme="light"] .site-glow-backdrop {
  background: radial-gradient(at 15% 15%, rgba(124, 58, 237, 0.04) 0px, transparent 55%),
              radial-gradient(at 85% 25%, rgba(37, 99, 235, 0.035) 0px, transparent 50%),
              radial-gradient(at 50% 85%, rgba(168, 85, 247, 0.03) 0px, transparent 50%),
              #f8fafc;
}

[data-theme="light"] .glow-orb {
  opacity: 0.03;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  will-change: transform;
}

.orb-purple { 
  top: -10%; 
  left: 20%; 
  width: 550px; 
  height: 550px; 
  background: #7C3AED; 
  transform: translate3d(0, var(--parallax-orb-purple, 0px), 0);
}

.orb-blue { 
  top: 45%; 
  right: -5%; 
  width: 500px; 
  height: 500px; 
  background: #2563EB; 
  transform: translate3d(0, var(--parallax-orb-blue, 0px), 0);
}

.orb-violet { 
  bottom: -5%; 
  left: 10%; 
  width: 500px; 
  height: 500px; 
  background: #a855f7; 
  transform: translate3d(0, var(--parallax-orb-violet, 0px), 0);
}

/* ==========================================================================
   LIQUID GLASS NAVBAR (Ultra-Refractive Liquid Glassmorphism)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.4rem);
  max-width: 1240px;
  z-index: 100;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.09) 0%, 
    rgba(13, 17, 38, 0.45) 35%, 
    rgba(8, 12, 28, 0.6) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) contrast(105%);
  -webkit-backdrop-filter: blur(28px) saturate(200%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(130, 100, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  box-shadow: 
    0 16px 36px -8px rgba(0, 0, 0, 0.65), 
    0 0 24px rgba(124, 58, 237, 0.18), 
    inset 0 1px 2px rgba(255, 255, 255, 0.25), 
    inset 0 -1px 2px rgba(124, 58, 237, 0.15);
  position: fixed;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Liquid Sheen Highlight Sweep */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.06) 45%, 
    rgba(130, 100, 255, 0.14) 55%, 
    transparent 100%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
  animation: liquid-sheen 9s infinite ease-in-out;
}

@keyframes liquid-sheen {
  0% { left: -100%; }
  45%, 100% { left: 100%; }
}

.site-header:hover {
  border-top-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 20px 42px -6px rgba(0, 0, 0, 0.75), 
    0 0 32px rgba(124, 58, 237, 0.28), 
    inset 0 1px 3px rgba(255, 255, 255, 0.35), 
    inset 0 -1px 2px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .site-header:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .site-header::before {
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(124, 58, 237, 0.05) 50%, 
    transparent 100%
  );
}

.header-inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* RM Logo in Navbar */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-symbol-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .logo-symbol-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.85));
}

/* Navigation Links */
.nav-pill-wrapper {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  position: relative;
  padding: 0.15rem;
}

/* Cursor-Following Liquid Glass Highlight Pill */
.nav-cursor-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 34px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(37, 99, 235, 0.22) 100%);
  border: 1px solid rgba(147, 51, 234, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 0 16px rgba(124, 58, 237, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 1;
  transform: translateY(-50%) translate3d(var(--nav-pill-x, 0px), 0, 0);
  width: var(--nav-pill-w, 0px);
  opacity: var(--nav-pill-opacity, 0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

[data-theme="light"] .nav-cursor-pill {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.nav-link {
  position: relative;
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-full);
  color: var(--text-gray);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.25s ease;
  z-index: 2;
  display: block;
}

.nav-link:hover {
  color: #ffffff;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
}

/* Active Nav state */
.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

[data-theme="light"] .nav-link.active {
  color: #7c3aed;
  font-weight: 700;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-subtle);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .icon-action-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.icon-action-btn:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--purple-neon);
}

[data-theme="light"] .icon-action-btn:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}
.icon-action-btn svg, .icon-action-btn i { width: 16px; height: 16px; }

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

/* Let's Connect Filled Gradient Button (With Fluid Color Flow) */
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #9333ea 100%);
  background-size: 220% auto;
  background-position: 0% 50%;
  color: #ffffff;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--glow-purple);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-connect:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.7), 0 0 18px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-connect svg, .btn-connect i { width: 15px; height: 15px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-white); cursor: pointer; }

/* ==========================================================================
   BUTTON SYSTEM (Animated Color Fill & Fluid Gradient Effects)
   ========================================================================== */
/* Primary: Fluid Flowing Gradient Fill */
.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #9333ea 100%);
  background-size: 220% auto;
  background-position: 0% 50%;
  color: #ffffff;
  padding: 0.78rem 1.65rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--glow-purple);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.btn-primary-gradient:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.7), 0 0 22px rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  color: #ffffff;
}

.btn-primary-gradient:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-primary-gradient svg, .btn-primary-gradient i { width: 16px; height: 16px; }

/* Secondary: Dynamic Expanding Liquid Color Fill on Hover */
.btn-outline-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(8, 12, 28, 0.55);
  border: 1px solid rgba(130, 100, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-white);
  padding: 0.78rem 1.65rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanding Gradient Color Fill Layer */
.btn-outline-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  z-index: -1;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .btn-outline-glass {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline-glass:hover {
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.55), 0 0 18px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
  color: #ffffff;
}

[data-theme="light"] .btn-outline-glass:hover {
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.btn-outline-glass:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn-outline-glass svg, .btn-outline-glass i { width: 16px; height: 16px; }

/* Small Outline Button with Color Fill */
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 12, 28, 0.55);
  border: var(--border-subtle);
  color: var(--text-gray);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.25s ease;
}

.btn-outline-sm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.28s ease;
}

[data-theme="light"] .btn-outline-sm {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-outline-sm:hover {
  color: #ffffff;
  border-color: var(--purple-neon);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-outline-sm:hover {
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.btn-outline-sm:hover::before {
  transform: scale(1);
}

.btn-outline-sm svg, .btn-outline-sm i { width: 14px; height: 14px; }

/* ==========================================================================
   SOCIAL ICON BUTTONS (Expanding Radial Color Fill Effect)
   ========================================================================== */
.social-square-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-social-btn);
  border: 1px solid rgba(130, 100, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-square-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  z-index: -1;
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .social-square-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.social-square-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.social-square-btn.sm svg, .social-square-btn.sm i { width: 16px; height: 16px; }

.social-square-btn:hover {
  border-color: rgba(168, 85, 247, 0.8);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55), 0 0 14px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

[data-theme="light"] .social-square-btn:hover {
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.social-square-btn:hover::before {
  transform: scale(1);
}

.social-square-btn svg, .social-square-btn i {
  width: 19px;
  height: 19px;
  stroke-width: 2px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   MAIN CONTENT & CONTINUOUS CARDS
   ========================================================================== */
.site-main-content {
  max-width: 1240px;
  margin: 6.5rem auto 3.5rem;
  padding: 0 1.2rem;
  position: relative;
  z-index: 1;
}

.sections-stack-container {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Unified Glassmorphism Card Styling with Paint Containment */
.section-card {
  background: var(--bg-card);
  border: var(--border-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1px 480px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-section {
  content-visibility: visible !important;
}

.section-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 18px 42px -10px rgba(0, 0, 0, 0.75), var(--glow-subtle);
}

[data-theme="light"] .section-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .section-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 14px 36px -5px rgba(124, 58, 237, 0.12);
}

/* Section Header Typography (Requirement 12 & 13) */
.section-header-block {
  margin-bottom: 2.2rem;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-neon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.section-heading-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.heading-accent-line {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #38bdf8);
  border-radius: 2px;
  margin-top: 0.55rem;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

/* ==========================================================================
   1. HERO SECTION & PORTRAIT INTEGRATION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.72) 0%, rgba(14, 20, 48, 0.55) 50%, rgba(8, 12, 28, 0.7) 100%);
  border: 1px solid rgba(130, 100, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 0 35px rgba(124, 58, 237, 0.18);
  padding: 3.2rem;
}

[data-theme="light"] .hero-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.06);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
}

.hero-welcome-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-neon);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.hero-main-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.hero-greeting {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
}

/* Gradient Text (Requirement 14) */
.name-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-role-badge {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
}

[data-theme="light"] .hero-role-badge { color: #334155; }

.hero-description-text {
  font-size: 1.02rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.hero-socials-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.find-me-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Floating Animation for Hero Portrait Card */
@keyframes float-hero-portrait {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes halo-glow-pulse {
  0%, 100% {
    opacity: 0.72;
    filter: blur(32px);
  }
  50% {
    opacity: 1;
    filter: blur(42px);
  }
}

.hero-left-content {
  transform: translate3d(0, var(--parallax-hero-text, 0px), 0);
  will-change: transform;
}

/* Profile Image Integrated with Rim Light & Halo (Requirement 9 & Scroll Parallax) */
.hero-right-visual {
  display: flex;
  justify-content: center;
  position: relative;
  transform: translate3d(0, var(--parallax-hero-visual, 0px), 0);
  will-change: transform;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 350px;
  animation: float-hero-portrait 5s ease-in-out infinite;
}

/* Glowing Halo Ring Behind Portrait (With Optical Depth Parallax) */
.portrait-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, calc(-50% + var(--parallax-halo, 0px)), 0);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, rgba(37, 99, 235, 0.35) 50%, transparent 75%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
  animation: halo-glow-pulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}

[data-theme="light"] .portrait-halo-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 75%);
  filter: blur(28px);
}

.hero-portrait-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(130, 100, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .hero-portrait-image {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* Floating Status Badge */
.floating-status-pill {
  position: absolute;
  bottom: -12px;
  right: -8px;
  z-index: 2;
  background: rgba(8, 12, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(130, 100, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .floating-status-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

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

.status-label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

[data-theme="light"] .status-label-text {
  color: #0f172a;
}

.status-sparkle {
  font-size: 0.9rem;
  color: var(--purple-neon);
}

/* ==========================================================================
   2. ABOUT SECTION
   ========================================================================== */
.about-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.8rem;
  align-items: center;
}

.about-bio-paragraph {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

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

[data-theme="light"] .about-bio-paragraph {
  color: #475569;
}

[data-theme="light"] .about-bio-paragraph strong {
  color: #0f172a;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--border-card);
  background: #07070d;
}

[data-theme="light"] .about-image-card {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.about-workspace-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.about-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 75% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
}

[data-theme="light"] .about-card-glow {
  background: radial-gradient(circle at 75% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

/* ==========================================================================
   3. SKILLS SECTION (Premium Expand-On-Hover Tray System)
   ========================================================================== */
.skills-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.4rem;
  align-items: start;
}

.skill-card-item {
  background: rgba(8, 12, 28, 0.65);
  border: 1px solid rgba(130, 100, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .skill-card-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Ambient Flare on Hover */
.skill-card-ambient-glow {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.skill-card-item:hover, .skill-card-item.expanded {
  background: rgba(14, 20, 52, 0.9);
  border-color: rgba(124, 58, 237, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 32px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .skill-card-item:hover,
[data-theme="light"] .skill-card-item.expanded {
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.skill-card-item:hover .skill-card-ambient-glow,
.skill-card-item.expanded .skill-card-ambient-glow {
  opacity: 1;
  transform: scale(1.3);
}

/* Resting Main Header (Always Visible) */
.skill-main-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.skill-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card-item:hover .skill-icon-badge,
.skill-card-item.expanded .skill-icon-badge {
  transform: scale(1.12) rotate(6deg);
}

.skill-title-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
  min-width: 0;
}

.skill-category-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-neon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="light"] .skill-category-pill {
  color: #6d28d9;
}

.skill-label-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

[data-theme="light"] .skill-label-name {
  color: #0f172a;
}

.skill-card-item:hover .skill-label-name,
.skill-card-item.expanded .skill-label-name {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

[data-theme="light"] .skill-card-item:hover .skill-label-name,
[data-theme="light"] .skill-card-item.expanded .skill-label-name {
  color: #7c3aed;
  text-shadow: none;
}

/* Interactive Expand Indicator Chevron */
.skill-expand-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .skill-expand-indicator {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.skill-expand-indicator svg, .skill-expand-indicator i {
  width: 15px;
  height: 15px;
  transition: transform 0.35s ease;
}

.skill-card-item:hover .skill-expand-indicator,
.skill-card-item.expanded .skill-expand-indicator {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--purple-neon);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
  transform: rotate(180deg);
}

[data-theme="light"] .skill-card-item:hover .skill-expand-indicator,
[data-theme="light"] .skill-card-item.expanded .skill-expand-indicator {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Expandable Bottom Tray with 60fps CSS Grid Expansion */
.skill-expand-tray {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease;
  opacity: 0;
  margin-top: 0;
  width: 100%;
}

.skill-card-item:hover .skill-expand-tray,
.skill-card-item.expanded .skill-expand-tray {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1.1rem;
}

.skill-expand-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .skill-expand-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.skill-desc-text {
  font-size: 0.86rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

[data-theme="light"] .skill-desc-text {
  color: #475569;
}

/* Tech / Capability Mini Tags inside Expanded Tray */
.skill-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-mini-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(124, 58, 237, 0.12);
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .skill-mini-tag {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.skill-card-item:hover .skill-mini-tag {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .skill-card-item:hover .skill-mini-tag {
  background: #ddd6fe;
  border-color: #c4b5fd;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.1);
}

/* Custom Themed Badges */
.badge-ai { background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(56, 189, 248, 0.35)); border: 1px solid #a855f7; box-shadow: 0 0 16px rgba(168, 85, 247, 0.4); }
.badge-web { background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(56, 189, 248, 0.35)); border: 1px solid #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, 0.4); }
.badge-genai { background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.35)); border: 1px solid #c084fc; box-shadow: 0 0 16px rgba(192, 132, 252, 0.4); }
.badge-agentic { background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(124, 58, 237, 0.35)); border: 1px solid #818cf8; box-shadow: 0 0 16px rgba(129, 140, 248, 0.4); }
.badge-design { background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(244, 114, 182, 0.35)); border: 1px solid #f472b6; box-shadow: 0 0 16px rgba(244, 114, 182, 0.4); }
.badge-api { background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(251, 191, 36, 0.35)); border: 1px solid #fbbf24; box-shadow: 0 0 16px rgba(251, 191, 36, 0.4); }
.badge-ads { background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(56, 189, 248, 0.35)); border: 1px solid #34d399; box-shadow: 0 0 16px rgba(52, 211, 153, 0.4); }
.badge-n8n { background: linear-gradient(135deg, rgba(234, 88, 12, 0.4), rgba(249, 115, 22, 0.35)); border: 1px solid #fb923c; box-shadow: 0 0 16px rgba(249, 115, 22, 0.4); }
.badge-custom { background: var(--gradient-primary); border: 1px solid var(--purple-neon); }

[data-theme="light"] .badge-ai { background: linear-gradient(135deg, #ede9fe, #e0f2fe); border: 1px solid #c084fc; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15); }
[data-theme="light"] .badge-web { background: linear-gradient(135deg, #dbeafe, #e0f2fe); border: 1px solid #7dd3fc; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }
[data-theme="light"] .badge-genai { background: linear-gradient(135deg, #fae8ff, #fce7f3); border: 1px solid #f0abfc; box-shadow: 0 4px 12px rgba(192, 132, 252, 0.15); }
[data-theme="light"] .badge-agentic { background: linear-gradient(135deg, #e0e7ff, #ede9fe); border: 1px solid #a5b4fc; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); }
[data-theme="light"] .badge-design { background: linear-gradient(135deg, #fce7f3, #ffe4e6); border: 1px solid #f9a8d4; box-shadow: 0 4px 12px rgba(244, 114, 182, 0.15); }
[data-theme="light"] .badge-api { background: linear-gradient(135deg, #fef3c7, #fef9c3); border: 1px solid #fde047; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15); }
[data-theme="light"] .badge-ads { background: linear-gradient(135deg, #d1fae5, #e0f2fe); border: 1px solid #6ee7b7; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); }
[data-theme="light"] .badge-n8n { background: linear-gradient(135deg, #ffedd5, #fed7aa); border: 1px solid #fdba74; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15); }

/* ==========================================================================
   4. PROJECTS SECTION
   ========================================================================== */
.project-filter-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project-filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid rgba(130, 100, 255, 0.2);
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.project-filter-btn:hover {
  color: #ffffff;
  border-color: var(--purple-neon);
}

.project-filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--glow-purple);
}

[data-theme="light"] .project-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .project-filter-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #ede9fe;
}

[data-theme="light"] .project-filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.projects-empty-card {
  border: 2px dashed rgba(130, 100, 255, 0.2);
  background: rgba(8, 12, 28, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

[data-theme="light"] .projects-empty-card {
  background: #f8fafc;
  border: 2px dashed rgba(124, 58, 237, 0.25);
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--purple-neon);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .empty-state-icon {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
}

.empty-state-icon svg, .empty-state-icon i { width: 28px; height: 28px; }
.empty-state-title { font-size: 1.3rem; font-weight: 700; color: var(--text-white); }
[data-theme="light"] .empty-state-title { color: #0f172a; }
.empty-state-desc { font-size: 0.92rem; color: var(--text-muted); max-width: 460px; line-height: 1.6; }
[data-theme="light"] .empty-state-desc { color: #64748b; }

/* Active Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.project-card-item {
  background: rgba(8, 12, 28, 0.55);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
}

[data-theme="light"] .project-card-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.project-card-item:hover {
  border-color: var(--purple-neon);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .project-card-item:hover {
  border-color: #7c3aed;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.15);
}

.project-card-thumb {
  width: 100%;
  height: 185px;
  background: #06060a;
  overflow: hidden;
}

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

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.45rem;
}

[data-theme="light"] .project-card-title {
  color: #0f172a;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
}

[data-theme="light"] .project-card-desc {
  color: #475569;
}

.project-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.project-tag {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #c7d2fe;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

[data-theme="light"] .project-tag {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
}

/* ==========================================================================
   5. CONTACT SECTION
   ========================================================================== */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.8rem;
  align-items: start;
}

.contact-heading-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.contact-subtitle-text {
  font-size: 0.98rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-detail-card {
  background: rgba(8, 12, 28, 0.55);
  border: var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .contact-detail-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.contact-detail-card:hover {
  background: rgba(12, 18, 38, 0.75);
  border-color: var(--purple-neon);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .contact-detail-card:hover {
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--purple-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon-box {
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
}

.contact-icon-box svg, .contact-icon-box i { width: 19px; height: 19px; }

.contact-detail-text {
  display: flex;
  flex-direction: column;
}

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

[data-theme="light"] .detail-label {
  color: #64748b;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

[data-theme="light"] .detail-value {
  color: #0f172a;
}

.detail-value:hover { color: var(--blue-neon); }
[data-theme="light"] .detail-value:hover { color: #2563eb; }

/* Contact Form */
.contact-form-card {
  background: rgba(8, 12, 28, 0.75);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

[data-theme="light"] .contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.public-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

[data-theme="light"] .form-field-label { color: #334155; }

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

.input-with-icon svg, .input-with-icon i {
  position: absolute;
  left: 1rem;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-text-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: var(--bg-input);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .form-text-input {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.form-textarea-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 110px;
  transition: all 0.2s ease;
}

[data-theme="light"] .form-textarea-input {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.form-text-input:focus, .form-textarea-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .form-text-input:focus,
[data-theme="light"] .form-textarea-input:focus {
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .form-text-input::placeholder,
[data-theme="light"] .form-textarea-input::placeholder {
  color: #94a3b8;
}

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

.btn-send-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #9333ea 100%);
  background-size: 220% auto;
  background-position: 0% 50%;
  color: #ffffff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--glow-purple);
  border: none;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-send-message::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.btn-send-message:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.7), 0 0 22px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-send-message:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-send-message svg, .btn-send-message i { width: 16px; height: 16px; }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
  border-top: var(--border-subtle);
  background: rgba(3, 5, 15, 0.75);
  padding: 2.8rem 1.5rem 2.2rem;
}

[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

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

.footer-nav-links a:hover { color: var(--purple-neon); }

[data-theme="light"] .footer-nav-links a {
  color: #64748b;
}

[data-theme="light"] .footer-nav-links a:hover {
  color: #7c3aed;
}

.footer-social-icons {
  display: flex;
  gap: 0.6rem;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

[data-theme="light"] .footer-bottom-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

.footer-admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  margin-left: 0.35rem;
}

.footer-admin-link:hover {
  color: var(--purple-neon);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

[data-theme="light"] .footer-admin-link {
  color: #94a3b8;
}

[data-theme="light"] .footer-admin-link:hover {
  color: #7c3aed;
  text-shadow: none;
}

.btn-scroll-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 12, 28, 0.6);
  border: var(--border-subtle);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.25s ease;
}

[data-theme="light"] .btn-scroll-top {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}

.btn-scroll-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.28s ease;
}

.btn-scroll-top:hover {
  color: #ffffff;
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-scroll-top:hover {
  color: #ffffff;
}

.btn-scroll-top:hover::before {
  transform: scale(1);
}

.btn-scroll-top svg, .btn-scroll-top i { width: 16px; height: 16px; }

/* ==========================================================================
   AGENCY FOUNDER BADGE & LINKS
   ========================================================================== */
.agency-founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(130, 100, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.1rem;
  font-size: 0.86rem;
  color: #e2e8f0;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(124, 58, 237, 0.15);
  transition: all 0.3s ease;
}

[data-theme="light"] .agency-founder-badge {
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #5b21b6;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.1);
}

.agency-founder-badge:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28) 0%, rgba(37, 99, 235, 0.25) 100%);
  border-color: var(--purple-neon);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="light"] .agency-founder-badge:hover {
  background: #ddd6fe;
  border-color: #a78bfa;
  color: #4c1d95;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
}

.agency-badge-sparkle {
  color: var(--purple-neon);
  font-size: 0.85rem;
}

.agency-highlight-link {
  color: #a855f7;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.agency-highlight-link:hover {
  color: #38bdf8;
}

[data-theme="light"] .agency-highlight-link {
  color: #7c3aed;
}

[data-theme="light"] .agency-highlight-link:hover {
  color: #2563eb;
}

/* ==========================================================================
   EXPERIENCE TIMELINE SYSTEM
   ========================================================================== */
.experience-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 0.5rem;
}

.experience-timeline-card {
  display: flex;
  gap: 1.4rem;
  position: relative;
}

.exp-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-neon);
  border: 3px solid rgba(8, 12, 28, 0.9);
  box-shadow: 0 0 12px var(--purple-neon);
  flex-shrink: 0;
  margin-top: 1.4rem;
}

[data-theme="light"] .exp-timeline-dot {
  background: #7c3aed;
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.exp-card-inner {
  background: rgba(8, 12, 28, 0.55);
  border: var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  flex: 1;
  transition: all 0.25s ease;
}

[data-theme="light"] .exp-card-inner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.exp-card-inner:hover {
  background: rgba(14, 20, 48, 0.75);
  border-color: var(--purple-neon);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.22);
  transform: translateY(-2px);
}

[data-theme="light"] .exp-card-inner:hover {
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.exp-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.exp-role-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

[data-theme="light"] .exp-role-title {
  color: #0f172a;
}

.exp-company-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--purple-neon);
  transition: color 0.2s ease;
}

[data-theme="light"] .exp-company-link {
  color: #6d28d9;
}

.exp-company-link:hover {
  color: var(--blue-neon);
}

[data-theme="light"] .exp-company-link:hover {
  color: #2563eb;
}

.exp-company-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--purple-neon);
}

[data-theme="light"] .exp-company-name {
  color: #6d28d9;
}

.exp-period-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="light"] .exp-period-pill {
  color: #6d28d9;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
}

.exp-desc-text {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.65;
}

[data-theme="light"] .exp-desc-text {
  color: #475569;
}

/* ==========================================================================
   Lightboxes & Modals
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 3, 7, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.project-modal-backdrop.open { display: flex; }

.project-modal-card {
  background: #090d1f;
  border: 1px solid rgba(130, 100, 255, 0.25);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .project-modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.modal-close-trigger {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .modal-close-trigger {
  background: #f1f5f9;
  color: #475569;
}

.modal-close-trigger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

[data-theme="light"] .modal-close-trigger:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* ==========================================================================
   MASTER MULTI-DEVICE & SCREEN-SIZE RESPONSIVE SUITE
   Optimized for Android, iOS, Windows, macOS, Mobile, Tablet, Laptop, Desktop & 4K
   ========================================================================== */

/* Base Device Settings & Safe Areas */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Touch Device Universal Optimizations */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn-primary-gradient,
  .btn-outline-glass,
  .btn-outline-sm,
  .btn-send-message,
  .social-square-btn,
  .project-filter-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* ==========================================================================
   1. LAPTOPS & LARGE TABLETS (≤ 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .site-main-content {
    max-width: 96%;
    padding: 0 1rem;
  }
  
  .about-split-grid {
    gap: 2rem;
  }
  
  .skills-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* ==========================================================================
   2. TABLETS & IPADS (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description-text {
    margin: 0 auto 1.8rem;
    max-width: 580px;
  }

  .hero-cta-buttons,
  .hero-socials-row {
    justify-content: center;
  }

  .hero-portrait-card {
    margin: 0 auto;
    max-width: 320px;
  }

  .hero-portrait-image {
    height: 350px;
  }

  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-bio-side {
    order: 1;
  }

  .about-image-side {
    order: 2;
    max-width: 520px;
    margin: 0 auto;
  }

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

  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   3. MOBILE PHONES & PHABLETS (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    top: 0.6rem;
    width: calc(100% - 1.2rem);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-lg);
    overflow: visible;
  }

  .nav-pill-wrapper {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(8, 12, 28, 0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(130, 100, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(124, 58, 237, 0.25);
    z-index: 100;
  }

  .nav-pill-wrapper.active {
    display: block;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  [data-theme="light"] .nav-pill-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-cursor-pill {
    display: none;
  }

  .nav-link {
    padding: 0.75rem 1.2rem;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(124, 58, 237, 0.2);
    color: #ffffff;
  }

  [data-theme="light"] .nav-link:hover,
  [data-theme="light"] .nav-link.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: var(--border-subtle);
    color: var(--text-white);
    cursor: pointer;
  }

  [data-theme="light"] .mobile-menu-btn {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
  }

  .btn-connect {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .site-main-content {
    margin-top: 5rem;
    padding: 0 0.75rem;
  }

  .section-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .hero-section {
    padding: 2.2rem 1.25rem;
  }

  .hero-greeting-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section-heading-title {
    font-size: 1.65rem;
  }

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

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

  .project-card-thumb {
    height: 190px;
  }

  /* Prevent iOS Safari 16px auto-zoom on input focus */
  .form-text-input,
  .form-textarea-input {
    font-size: 16px !important;
  }

  .contact-form-card {
    padding: 1.5rem 1.2rem;
  }

  .exp-timeline-card {
    gap: 0.9rem;
  }

  .exp-card-inner {
    padding: 1.3rem 1.2rem;
  }

  .footer-top-row {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  /* Modal Mobile Optimization */
  .project-modal-backdrop {
    padding: 0.8rem;
  }

  .project-modal-card {
    padding: 1.5rem 1.2rem;
    max-height: 88dvh;
    border-radius: 18px;
  }

  .modal-hero-cover {
    height: 190px;
    margin-bottom: 1.2rem;
  }

  .modal-close-trigger {
    top: 0.8rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   4. COMPACT SMARTPHONES (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-welcome-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-portrait-card {
    max-width: 260px;
  }

  .hero-portrait-image {
    height: 290px;
  }

  .portrait-halo-glow {
    width: 270px;
    height: 270px;
  }

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

  .hero-cta-buttons .btn-primary-gradient,
  .hero-cta-buttons .btn-outline-glass {
    width: 100%;
    justify-content: center;
  }

  .hero-socials-row {
    gap: 0.5rem;
  }

  .social-square-btn {
    width: 38px;
    height: 38px;
  }

  .floating-status-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.76rem;
    bottom: -8px;
    right: 0;
  }

  .skill-card-item {
    padding: 1.1rem 1.1rem;
  }

  .skill-icon-badge {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .skill-label-name {
    font-size: 1.02rem;
  }

  .about-cta-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .about-cta-wrapper a {
    width: 100%;
    justify-content: center;
  }

  .contact-detail-card {
    padding: 0.9rem 1rem;
  }
}

/* ==========================================================================
   5. ULTRA-COMPACT PHONES (≤ 360px - iPhone SE, Galaxy Fold outer)
   ========================================================================== */
@media (max-width: 360px) {
  .section-card {
    padding: 1.6rem 0.9rem;
  }

  .hero-section {
    padding: 1.8rem 0.9rem;
  }

  .hero-greeting-title {
    font-size: 1.85rem;
  }

  .section-heading-title {
    font-size: 1.45rem;
  }

  .project-filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   6. ULTRA-WIDE & 4K MONITORS (≥ 1600px)
   ========================================================================== */
@media (min-width: 1600px) {
  .site-main-content {
    max-width: 1380px;
  }

  .hero-section {
    padding: 4rem;
  }

  .hero-greeting-title {
    font-size: 3.8rem;
  }

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

