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

:root {
  --radius: 0.75rem;
  
  /* OKLCH Dark Theme Colors */
  --background: oklch(0.10 0.03 265);
  --foreground: oklch(0.97 0.01 250);
  --card: oklch(0.14 0.04 265 / 0.5);
  --card-foreground: oklch(0.97 0.01 250);
  --popover: oklch(0.14 0.04 265);
  --popover-foreground: oklch(0.97 0.01 250);
  --primary: oklch(0.78 0.16 250);          /* electric blue */
  --primary-foreground: oklch(0.10 0.03 265);
  --secondary: oklch(0.20 0.05 270);
  --secondary-foreground: oklch(0.97 0.01 250);
  --muted: oklch(0.18 0.04 265);
  --muted-foreground: oklch(0.70 0.04 255);
  --accent: oklch(0.72 0.22 305);           /* neon violet */
  --accent-foreground: oklch(0.10 0.03 265);
  --destructive: oklch(0.65 0.24 25);
  --destructive-foreground: oklch(0.97 0.01 250);
  
  --border: oklch(1 0 0 / 0.08);
  --input: oklch(1 0 0 / 0.08);
  --ring: oklch(0.78 0.16 250);

  /* Neon Atmosphere Variables */
  --neon-blue: oklch(0.82 0.18 235);
  --neon-violet: oklch(0.70 0.25 295);
  --neon-cyan: oklch(0.88 0.15 200);

  /* Ambient Glow System */
  --glow-primary: 0 0 40px oklch(0.78 0.16 250 / 0.55), 0 0 80px oklch(0.78 0.16 250 / 0.25);
  --glow-accent:  0 0 40px oklch(0.72 0.22 305 / 0.55), 0 0 80px oklch(0.72 0.22 305 / 0.25);

  --gradient-hero: radial-gradient(ellipse at top, oklch(0.22 0.10 270 / 0.6), transparent 60%),
                   linear-gradient(180deg, oklch(0.08 0.03 265), oklch(0.10 0.04 270));
  --gradient-text: linear-gradient(135deg, oklch(0.95 0.05 220), oklch(0.78 0.18 250) 50%, oklch(0.70 0.24 300));
  --gradient-bar: linear-gradient(90deg, var(--neon-cyan), var(--primary), var(--accent));
  
  /* Font Stacks */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Animations */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-hero);
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 12px; /* Brutalist Frame Padding */
}

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

button, input, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: oklch(1 0 0 / 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: oklch(1 0 0 / 0.2);
}

/* ==========================================================================
   UTILITY CLASSES (Glass, Grid-BG, Glow, Text-Gradient)
   ========================================================================== */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.glass {
    background: linear-gradient(135deg, oklch(1 0 0 / 0.06), oklch(1 0 0 / 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.glow-primary {
    box-shadow: var(--glow-primary);
}

.glow-accent {
    box-shadow: var(--glow-accent);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
      linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   ATMOSPHERE PRIMITIVES (Glow Orbs & Floats)
   ========================================================================== */
.absolute-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    -webkit-filter: blur(100px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

.orb-primary {
    top: 20%;
    left: 20%;
    width: 18rem;
    height: 18rem;
    background: oklch(0.78 0.16 250 / 0.25);
    filter: blur(100px);
}

.orb-accent {
    bottom: 20%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: oklch(0.72 0.22 305 / 0.2);
    filter: blur(120px);
}

.orb-cyan {
    top: 45%;
    right: 5%;
    width: 16rem;
    height: 16rem;
    background: oklch(0.88 0.15 200 / 0.15);
    filter: blur(100px);
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(25px, -35px) scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px oklch(0.78 0.16 250/0.4), 0 0 60px oklch(0.78 0.16 250/0.15); }
  50%     { box-shadow: 0 0 50px oklch(0.78 0.16 250/0.75), 0 0 100px oklch(0.78 0.16 250/0.35); }
}

/* ==========================================================================
   PRELOADER (Full Screen Loading)
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--background);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-bg-orb {
    position: absolute;
    width: 24rem;
    height: 24rem;
    background: oklch(0.78 0.16 250 / 0.35);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader-title {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    display: flex;
    gap: 4px;
    padding-left: 0.3em; /* Balance tracking */
}

.preloader-letter {
    display: inline-block;
    color: var(--foreground);
    opacity: 0;
    transform: translateY(30px);
}

.preloader-bar-outer {
    width: 280px;
    height: 2px;
    background: oklch(1 0 0 / 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-inner {
    height: 100%;
    background: var(--gradient-bar);
    width: 0%; /* Animating with GSAP */
    box-shadow: 0 0 20px oklch(0.78 0.16 250 / 0.8);
    border-radius: 2px;
}

.preloader-percentage {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

/* ==========================================================================
   FLOATING NAVBAR (Centered Glass Pane)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--foreground);
    cursor: default;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.mobile-nav-toggle {
    display: none;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--foreground);
}

/* Top Meta (Absolute positioned in Hero) */
.top-meta-container {
    position: absolute;
    top: 120px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse-cyan 1.8s infinite ease-in-out;
}

/* ==========================================================================
   BUTTONS (Primary Glowing, Ghost, and Icon outlines)
   ========================================================================== */
/* Primary Glowing CTA */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: oklch(0.78 0.16 250 / 0.1);
    border: 1px solid oklch(0.78 0.16 250 / 0.4);
    color: var(--foreground);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-primary);
    cursor: pointer;
}

.pulse-dot-primary {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    animation: button-pulse 1.8s infinite;
}

@keyframes button-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.btn-primary:hover {
    transform: scale(1.05);
    border-color: oklch(0.78 0.16 250 / 0.7);
    background: oklch(0.78 0.16 250 / 0.15);
}

/* Secondary outline button */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(1 0 0 / 0.1);
    background: oklch(1 0 0 / 0.05);
    color: var(--foreground);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: oklch(1 0 0 / 0.1);
    border-color: oklch(1 0 0 / 0.2);
    transform: translateY(-2px);
}

/* Submit button with glow-primary style */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: oklch(0.78 0.16 250 / 0.1);
    border: 1px solid oklch(0.78 0.16 250 / 0.4);
    color: var(--foreground);
    box-shadow: var(--glow-primary);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
    align-self: flex-start;
}

.btn-submit:hover {
    transform: scale(1.03);
    background: oklch(0.78 0.16 250 / 0.18);
    border-color: oklch(0.78 0.16 250 / 0.6);
}

/* Icon / Close / Navigation buttons */
.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid oklch(1 0 0 / 0.1);
    background: oklch(1 0 0 / 0.05);
    color: var(--foreground);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    border-color: oklch(0.78 0.16 250 / 0.4);
    background: oklch(0.78 0.16 250 / 0.1);
    box-shadow: 0 0 20px oklch(0.78 0.16 250 / 0.4);
}

/* ==========================================================================
   HERO SECTION (OKLCH Styled Dark Layout)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    border-radius: 2rem;
    padding: 180px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 5;
    border: 1px solid var(--border);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Headline bold style */
.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.8rem, 12vw, 9rem);
    font-weight: 700; /* bold */
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-top: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    white-space: nowrap;
}

.hero-title span {
    display: inline-block;
}

/* Portrait Wrapper Glass shape */
.portrait-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 4;
}

.portrait-card {
    position: relative;
    aspect-ratio: 0.76;
    overflow: visible;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    background: #000000; /* Solid background to prevent glow from bleeding through */
    border-radius: 1.5rem;
}

/* The rotating neon border */
.portrait-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--primary), var(--accent), var(--neon-cyan));
    background-size: 400% 400%;
    z-index: 2;
    border-radius: 1.6rem;
    animation: neon-gradient-shift 8s linear infinite;
    pointer-events: none;
    opacity: 0.85;
}

/* The blurred neon glow projected behind */
.portrait-card::after {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--primary), var(--accent), var(--neon-cyan));
    background-size: 400% 400%;
    z-index: 1;
    border-radius: 2rem;
    filter: blur(28px);
    opacity: 0.65; /* slightly softer by default */
    animation: neon-gradient-shift 8s linear infinite;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Intensify glow on hover */
.portrait-card:hover::after {
    opacity: 0.9;
}

.portrait-img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 1; /* Fully opaque to prevent neon backlight from bleeding through face */
    transition: var(--transition-smooth);
}

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

@keyframes neon-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulse-cyan {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 6px var(--neon-cyan); }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--neon-cyan); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 6px var(--neon-cyan); }
}

/* Hero Bottom Details */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

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

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5em; /* Eyebrow spacing */
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

.hero-desc {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc strong {
    font-weight: 500;
    color: var(--foreground);
}

.focus-desc {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    max-width: 380px;
    text-align: right;
    margin-left: auto;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border);
    padding-top: 36px;
    margin-top: 60px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item:nth-child(2) {
    align-items: center;
    text-align: center;
}

.stat-item:nth-child(3) {
    align-items: flex-end;
    text-align: right;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 200; /* extralight numbers */
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5em; /* Eyebrow text labels */
    color: var(--muted-foreground);
    text-transform: uppercase;
}

/* ==========================================================================
   SCROLL SECTION FRAME
   ========================================================================== */
.scroll-section {
    position: relative;
    padding: 140px 40px;
    border-radius: 2rem;
    background-color: var(--background);
    margin-top: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.section-num {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 200; /* extralight headers */
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.about-visual {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-portrait-cylinder {
    position: relative;
    width: 100%;
    aspect-ratio: 0.67;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    z-index: 2;
    background: linear-gradient(135deg, oklch(1 0 0 / 0.08), oklch(1 0 0 / 0.03));
}

.about-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

.about-portrait-cylinder:hover .about-portrait-img {
    transform: scale(1.04);
}

.about-glow-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--primary) 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.45;
    filter: blur(50px);
    z-index: 1;
    border-radius: 9999px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.about-visual:hover .about-glow-element {
    opacity: 0.65;
    width: 100%;
    height: 100%;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--muted-foreground);
    max-width: 440px;
    line-height: 1.5;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* Capabilities (Glass Stagger Cards) */
.subsection-title {
    font-size: 1.3rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 40px;
    text-align: center;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.capability-card {
    padding: 32px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.capability-card:hover {
    transform: scale(1.05) translateY(-4px);
    border-color: oklch(0.78 0.16 250 / 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.cap-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.cap-name {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.cap-desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 300;
}

.cap-bar-outer {
    height: 2px;
    background: oklch(1 0 0 / 0.08);
    border-radius: 1px;
    width: 100%;
    overflow: hidden;
}

.cap-bar-inner {
    height: 100%;
    background: var(--gradient-bar);
    border-radius: 1px;
    width: 0%; /* Animated via script */
    box-shadow: 0 0 10px oklch(0.78 0.16 250 / 0.6);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

/* Filter buttons */
.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 40px;
    border: 1px solid oklch(1 0 0 / 0.06);
    background: oklch(1 0 0 / 0.03);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: oklch(1 0 0 / 0.15);
    color: var(--foreground);
}

.filter-btn.active {
    background: oklch(0.78 0.16 250 / 0.1);
    border-color: oklch(0.78 0.16 250 / 0.4);
    color: var(--foreground);
    box-shadow: 0 0 15px oklch(0.78 0.16 250 / 0.2);
}

/* Projects card layout and image reveals */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
 
.view-all-projects-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 100px;
    position: relative;
    z-index: 5;
}

.project-card {
    padding: 12px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: oklch(0.78 0.16 250 / 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.project-img-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1.45;
    background: oklch(1 0 0 / 0.02);
    margin-bottom: 24px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-view-btn {
    background: var(--foreground);
    color: var(--background);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 14px 28px;
    border-radius: 40px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover scales and overlays */
.project-card:hover .project-img {
    transform: scale(1.05);
    opacity: 1;
}

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

.project-card:hover .project-view-btn {
    transform: translateY(0);
}

.project-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 8px 8px 8px;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--foreground);
    grid-column: 1 / span 2;
    margin-top: 4px;
}

.project-year {
    font-size: 1rem;
    font-weight: 300;
    grid-row: 1;
    grid-column: 3;
}

/* ==========================================================================
   CONTACT SECTION & GLASS FORM
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    margin-bottom: 48px;
    max-width: 400px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5em; /* Eyebrow detail labels */
    color: var(--muted-foreground);
}

.detail-value {
    font-size: 1.15rem;
    font-weight: 300;
}

.text-link {
    display: inline-block;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-text);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Social link buttons */
.social-links {
    display: flex;
    gap: 16px;
}

/* GSAP Glass Form Panel */
.contact-form-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    padding: 56px 40px 40px 40px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 5;
}

.form-group {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

/* Contact Field Base */
.contact-field {
    width: 100%;
    background-color: oklch(1 0 0 / 0.05);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 0.75rem; /* radius 0.75rem */
    padding: 16px 20px;
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition-fast);
}

.form-textarea {
    resize: none;
    height: auto;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,255,255,0.4)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 48px;
}

/* Floating labels */
.form-label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 300;
    pointer-events: none;
    transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
    transform-origin: left top;
}

/* Focus and active field label transforms */
.contact-field:focus ~ .form-label,
.contact-field:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-30px) scale(0.8);
    color: var(--primary);
    font-weight: 400;
}

/* Specific handler for selects with actual values selected */
.contact-field.form-select:valid ~ .form-label,
.contact-field.form-select:focus ~ .form-label {
    transform: translateY(-30px) scale(0.8);
    color: var(--primary);
    font-weight: 400;
}

.contact-field:focus {
    border-color: oklch(0.78 0.16 250 / 0.6);
    box-shadow: 0 0 30px oklch(0.78 0.16 250 / 0.3);
}

/* Validation warning styles */
.form-group.has-error .contact-field {
    border-color: var(--destructive);
    box-shadow: 0 0 20px oklch(0.65 0.24 25 / 0.25);
}

.form-group.has-error .form-label {
    color: var(--destructive);
}

.error-msg {
    position: absolute;
    bottom: -20px;
    left: 10px;
    font-size: 0.7rem;
    color: var(--destructive);
    font-weight: 400;
    opacity: 0;
    transform: translateY(-4px);
    transition: var(--transition-fast);
}

.form-group.has-error .error-msg {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FOOTER PARTICLES & ALIGNMENT
   ========================================================================== */
.main-footer {
    position: relative;
    padding: 60px 40px;
    border-radius: 2rem;
    background-color: var(--background);
    margin-top: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 5;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    color: var(--foreground);
    transition: var(--transition-fast);
}

.back-to-top:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Footer particles primitives styling */
.footer-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    pointer-events: none;
    opacity: 0.3;
}

/* Floating particles setup */
.particle-1  { top: 20%; left: 10%; opacity: 0.15; }
.particle-2  { top: 50%; left: 22%; opacity: 0.25; }
.particle-3  { top: 75%; left: 8%;  opacity: 0.1;  }
.particle-4  { top: 30%; left: 40%; opacity: 0.35; }
.particle-5  { top: 80%; left: 35%; opacity: 0.2;  }
.particle-6  { top: 15%; left: 55%; opacity: 0.15; }
.particle-7  { top: 60%; left: 63%; opacity: 0.3;  }
.particle-8  { top: 85%; left: 72%; opacity: 0.18; }
.particle-9  { top: 25%; left: 80%; opacity: 0.25; }
.particle-10 { top: 70%; left: 88%; opacity: 0.1;  }
.particle-11 { top: 40%; left: 92%; opacity: 0.3;  }
.particle-12 { top: 10%; left: 30%; opacity: 0.2;  }

/* ==========================================================================
   PROJECT DETAIL MODAL (Glass Overlay)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.96) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-backdrop.open .modal-wrapper {
    transform: scale(1) translateY(0);
}

.modal-content {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    overflow-y: auto;
}

.modal-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: #000000;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.modal-text-wrapper {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 2.1rem;
    font-weight: 200; /* extralight modal title */
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.modal-desc {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 36px;
    font-weight: 300;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid oklch(1 0 0 / 0.03);
    padding-bottom: 8px;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 400;
}

/* ==========================================================================
   TOAST NOTIFICATION ENGINE
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: oklch(0.14 0.04 265);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(20px);
    opacity: 0;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.removing {
    animation: toastOut 0.4s ease forwards;
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.toast-msg {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@keyframes toastIn {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateY(-10px); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .focus-desc {
        text-align: left;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero-grid {
        gap: 30px;
    }
    
    .scroll-section {
        padding: 100px 24px;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-img-wrapper {
        min-height: 300px;
        height: 300px;
    }
    
    .modal-text-wrapper {
        padding: 32px;
    }

    /* Shifted Mobile Menu & Navigation Drawer up to 1024px breakpoint */
    .navbar {
        padding: 0 24px;
        height: 65px;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .mobile-nav-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
        color: var(--foreground);
        cursor: pointer;
        z-index: 1100;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: linear-gradient(135deg, oklch(1 0 0 / 0.08), oklch(1 0 0 / 0.03));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: var(--transition-fast);
    }

    .mobile-nav-toggle:hover {
        border-color: oklch(0.78 0.16 250 / 0.5);
        box-shadow: 0 0 15px oklch(0.78 0.16 250 / 0.3);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, oklch(0.12 0.04 265 / 0.96), oklch(0.08 0.03 265 / 0.98));
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 40px;
    }

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

    .nav-link {
        font-size: 1.1rem;
        font-weight: 400;
        letter-spacing: 0.18em;
        padding: 8px 0;
    }

    /* Hero Vertical Gap Fix for mobile/tablet */
    .hero-section {
        min-height: auto;
        padding: 120px 24px 40px 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 6px;
    }

    .top-meta-container {
        top: 100px;
        left: 20px;
        right: 20px;
    }

    .hero-section {
        border-radius: 1.5rem;
        padding: 110px 20px 30px 20px;
    }

    .hero-title {
        margin-top: 20px;
        margin-bottom: 15px;
        white-space: normal;
    }

    .portrait-wrapper {
        max-width: 310px;
        margin: 0 auto 30px auto;
    }

    .hero-grid {
        gap: 20px;
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding-top: 20px;
        margin-top: 30px;
    }

    .stat-item {
        align-items: flex-start;
        text-align: left;
    }

    .stat-item:nth-child(2) {
        align-items: center;
        text-align: center;
    }

    .stat-item:nth-child(3) {
        align-items: flex-end;
        text-align: right;
    }

    .stat-number {
        font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    }

    .stat-label {
        font-size: 0.52rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
    }

    .scroll-section, .main-footer {
        border-radius: 1.5rem;
        padding: 80px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-header-row {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filter-controls {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
    
    .social-btn {
        width: 100%;
        text-align: center;
    }
    
    .navbar {
        padding: 0 20px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .view-all-projects-wrapper {
        margin-top: 60px;
    }

    .stats-bar {
        gap: 6px;
        padding-top: 16px;
        margin-top: 24px;
    }

    .stat-number {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .stat-label {
        font-size: 0.46rem;
        letter-spacing: 0.08em;
    }
}
