/* ─── Narrative Palette: Vibrant Digital Etherealism (Light Mode) ─── */
:root {
    --bg-deep: #F5F6F9;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-gradient-start: #E8EBF5;
    --bg-gradient-mid: #F5F6F9;
    --bg-gradient-end: #EFEFF4;

    --foreground: #0F111A;
    --foreground-muted: #5B5E75;

    /* New User Palette */
    --primary: #ffff66;
    --secondary: #66329e;
    --tertiary: #009865;

    --accent: var(--secondary);
    --accent-rgb: 102, 50, 158;
    --accent-glow: rgba(102, 50, 158, 0.08);

    /* Glass tokens (Light Mode) */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-hover: rgba(0, 0, 0, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.04);
    --glass-blur: 24px;

    --radius: 24px;
    --radius-lg: 40px;

    /* Custom Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-luxury: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ─── Global Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--bg-deep);
    color: var(--foreground);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Atmospheric Noise Texture Overlay (Light Mode optimized) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
    filter: contrast(120%) brightness(100%);
}

.bg-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(79, 70, 229, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(79, 70, 229, 0.02) 1px, transparent 1px);
}

::selection {
    background: var(--primary);
    color: #000;
}

/* ─── Scrollbars (Light Mode) ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ─── Typography & Utilities ─── */
.font-display {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 900;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    font-weight: 900;
    line-height: 1;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-indigo {
    color: var(--accent) !important;
}

.italic {
    font-style: italic;
}

.relative {
    position: relative;
}

.z-index-2 {
    z-index: 2;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* ─── Preloader ─── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s var(--ease-out-expo);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-title {
    font-size: 80px;
    color: var(--foreground);
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: loaderFill 1.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes pulseLogo {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ─── Navigation Header ─── */
.navbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: transparent;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled .navbar-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* Logo */
.logo-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.logo-img-btn {
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(15, 17, 26, 0.5);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

/* Language toggle button */
.lang-switch-container {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 8px;
    margin-left: 4px;
}

.lang-btn {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(15, 17, 26, 0.4);
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .navbar {
        left: auto;
        right: 24px;
        transform: none;
    }
    .nav-links {
        display: none !important;
    }
}

/* ─── Mobile Menu Drawer ─── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
}

.mobile-menu-link {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: rgba(15, 17, 26, 0.4);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #000;
}

.mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 32px;
    border-radius: 100px;
}

.mobile-lang-btn {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.mobile-lang-btn.active {
    color: var(--accent);
}

.mobile-lang-divider {
    color: rgba(0, 0, 0, 0.05);
}

/* ─── Mobile Navigation Tab Bar ─── */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 380px;
}

.mobile-tab-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.mobile-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    min-width: 64px;
    color: rgba(15, 17, 26, 0.5);
    transition: color 0.3s ease;
}

.mobile-tab-btn span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-tab-btn svg {
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-tab-btn.active,
.mobile-tab-btn.menu-active {
    color: var(--accent);
}

.mobile-tab-btn.active svg,
.mobile-tab-btn.menu-active svg {
    opacity: 1;
    transform: scale(1.1);
}

.menu-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .mobile-tab-bar {
        display: block;
    }
}

/* ─── Hero Section ─── */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-deep);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}



.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(99,102,241,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero-title-white {
    color: var(--foreground);
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(15, 17, 26, 0.55);
    max-width: 540px;
    margin: 0 auto;
    letter-spacing: 0.02em;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 100px;
    background: #0f111a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(15, 17, 26, 0.15);
    transition: all 0.3s var(--ease-out-expo);
}

.hero-btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 100px;
    border: 1px solid rgba(15, 17, 26, 0.08);
    background: transparent;
    color: #0f111a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out-expo);
}

.hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(15, 17, 26, 0.4);
    z-index: 10;
    pointer-events: none;
    animation: floatScrollIndicator 2.5s infinite ease-in-out;
}

.hero-scroll-indicator span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(15, 17, 26, 0.2);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheelAnim 1.8s infinite ease-in-out;
}

@keyframes floatScrollIndicator {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -6px); }
}

@keyframes scrollWheelAnim {
    0% { top: 6px; opacity: 0; }
    20% { opacity: 1; }
    80% { top: 18px; opacity: 0; }
    100% { opacity: 0; }
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
    z-index: 12;
}

/* ─── Identity / Bento Grid ─── */
.identity-section {
    position: relative;
    padding: 120px 0;
    background: transparent;
    z-index: 10;
}

.section-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
    pointer-events: none;
}

.section-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
}

.identity-background-canvas-wrap {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    z-index: -1;
}

.css-aurora-waves {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 45%);
    filter: blur(80px);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.05);
}

.col-span-3 { grid-column: span 3; }
.col-span-6 { grid-column: span 6; }
.lg-col-span-2 { grid-column: span 2; }

@media (min-width: 1024px) {
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-3 { grid-column: span 3; }
}

@media (max-width: 1023px) {
    .bento-card {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .bento-card {
        grid-column: span 6;
    }
}

/* Card 1: Experience Specifics */
.card-exp {
    align-items: center;
    justify-content: center;
}

.card-exp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.exp-circle-svg-wrap {
    position: relative;
    width: 224px;
    height: 96px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-circle-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.exp-circle-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawOval 2.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes drawOval {
    to { stroke-dashoffset: 0; }
}

.exp-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--foreground);
    position: relative;
    z-index: 2;
}

.exp-title {
    margin-top: 24px;
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
}

/* Card General layout */
.card-icon-circle {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
}

.card-icon-circle::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.015);
}

.card-icon {
    color: var(--accent);
}

.card-body {
    text-align: center;
}

.card-headline {
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: var(--foreground-muted);
    line-height: 1.5;
}

/* Card 3: Consistent Growth graph styling */
.card-graph-wrap {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.growth-graph-svg {
    width: 100%;
    max-width: 320px;
    color: rgba(99, 102, 241, 0.03);
}

.growth-graph-svg path {
    stroke: var(--accent);
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawGraph 3s forwards ease-in-out;
}

@keyframes drawGraph {
    to { stroke-dashoffset: 0; }
}

/* Card 4 & 5: Split graphic look */
.card-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.card-split-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-split-content .card-icon-circle {
    width: 48px;
    height: 48px;
    margin: 0 0 24px 0;
}

.card-split-content .card-icon-circle::before {
    display: none;
}

.card-body-bottom {
    margin-top: auto;
}

.card-body-bottom .card-headline {
    text-align: left;
}

.card-body-bottom .card-desc {
    text-align: left;
}

.card-split-graphic {
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    background: rgba(0, 0, 0, 0.003);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Windows Dots Graphic */
.bg-dots {
    padding: 24px 24px 48px 24px;
}

.graphic-dots-header {
    position: absolute;
    top: 10px;
    left: 12px;
    display: flex;
    gap: 4px;
}

.dot-win {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

.engineering-graph-svg {
    width: 120%;
    transform: translate(10%, 15%);
    color: rgba(99, 102, 241, 0.02);
}

.engineering-graph-svg path {
    stroke: rgba(99, 102, 241, 0.08);
}

/* Bubbles Graphic */
.bubbles-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 24px;
}

.bubble-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.bubble-1 {
    transform: translateX(10%);
}

.bubble-2 {
    transform: translateX(35%);
}

.bubble-3 {
    transform: translateX(20%);
}

.bubble-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--foreground-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #FFFFFF;
    padding: 4px 10px;
    border-radius: 6px;
}

.bubble-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.bc-indigo { background: rgba(102, 50, 158, 0.06); border-color: rgba(102, 50, 158, 0.2); }
.bc-blue { background: rgba(255, 255, 102, 0.15); border-color: rgba(255, 255, 102, 0.4); }
.bc-purple { background: rgba(0, 152, 101, 0.06); border-color: rgba(0, 152, 101, 0.2); }

@media (max-width: 640px) {
    .card-split {
        grid-template-columns: 1fr;
    }
    .card-split-graphic {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        height: 200px;
    }
    .engineering-graph-svg {
        width: 100%;
        transform: translate(0, 10%);
    }
}

/* ─── Philosophy / Approach ─── */
.philosophy-section {
    position: relative;
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.philosophy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 80px;
}

.philosophy-left {
    width: 33.333%;
    position: sticky;
    top: 160px;
    height: fit-content;
}

.section-badge {
    color: var(--accent);
    font-weight: 950;
    font-size: 10px;
    letter-spacing: 0.6em;
    margin-bottom: 32px;
}

.philosophy-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 0.95;
    color: var(--foreground);
}

.philosophy-right {
    width: 66.666%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.philosophy-headline {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--foreground);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.philosophy-sub-badge {
    color: rgba(99, 102, 241, 0.5);
    font-weight: 950;
    font-size: 8px;
    letter-spacing: 0.6em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.philosophy-text {
    font-size: 18px;
    color: var(--foreground-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Marquee Block */
.marquee-card {
    background: rgba(0, 0, 0, 0.002);
    padding: 8px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.marquee-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.02), transparent);
    pointer-events: none;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 32px 0;
}

.marquee-content {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeSlide 30s linear infinite;
}

@keyframes marqueeSlide {
    to { transform: translateX(-50%); }
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.005);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(15, 17, 26, 0.6);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.05);
    color: var(--accent);
}

.tech-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

@media (max-width: 768px) {
    .philosophy-container {
        flex-direction: column;
        gap: 48px;
    }
    .philosophy-left {
        width: 100%;
        position: relative;
        top: 0;
    }
    .philosophy-right {
        width: 100%;
    }
}

/* ─── Projects Showcase ─── */
.projects-section {
    position: relative;
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.projects-header-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.005);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.projects-title {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 0.95;
    color: var(--foreground);
    margin-bottom: 32px;
}

.projects-desc {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--foreground-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.projects-cta-wrap {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
}

.projects-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 100px;
    background: #0F111A;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(15, 17, 26, 0.15);
    transition: all 0.3s ease;
}

.projects-btn-primary:hover {
    transform: scale(1.02);
}

.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.projects-btn-primary:hover .arrow-icon {
    transform: translate(2px, -2px);
}

.projects-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--foreground);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.projects-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .text-center-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .projects-cta-wrap {
        justify-content: center;
        width: 100%;
    }
}

.projects-bg-glow-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
}

.proj-glow-1 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(160px);
    border-radius: 50%;
}

.proj-glow-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: #ec4899;
    filter: blur(140px);
    border-radius: 50%;
}

/* 3D Stacked Cards Slider */
.projects-slider-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.slider-monitor {
    position: relative;
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #F3F4F7 0%, #E7EAF4 100%);
    border: 8px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    border-radius: 40px;
    overflow: hidden;
}

.slider-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-size: 30px 30px;
    background-image: linear-gradient(to right, #000 1px, transparent 1px),
                      linear-gradient(to bottom, #000 1px, transparent 1px);
    mask-image: radial-gradient(circle, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, #000, transparent 80%);
}

.slider-grid-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15vw;
    font-weight: 900;
    font-style: italic;
    color: rgba(0, 0, 0, 0.015);
    letter-spacing: -0.05em;
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
}

.cards-stack-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(80px);
}

/* 3D Stacked Card Design */
.project-stacked-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 32px;
    width: 480px;
    height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 48px rgba(0,0,0,0.05);
    cursor: pointer;
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.3s ease;
}

.project-stacked-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.stacked-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stacked-card-title {
    font-size: 32px;
    font-style: italic;
    font-weight: 900;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.stacked-card-desc {
    font-size: 14px;
    color: var(--foreground-muted);
    line-height: 1.5;
    font-weight: 500;
}

/* Stacked Card Image Container */
.stacked-card-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 16px;
}

.stacked-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.project-stacked-card:hover .stacked-card-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.stacked-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
}

.stacked-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    margin-top: auto;
}

.stacked-card-role {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
}

.stacked-card-line {
    width: 32px;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
}

@media (max-width: 640px) {
    .project-stacked-card {
        width: 310px;
        height: 380px;
        padding: 24px;
    }
    .stacked-card-img-box {
        height: 140px;
    }
    .stacked-card-title {
        font-size: 24px;
    }
    .slider-monitor {
        height: 420px;
    }
    .cards-stack-wrapper {
        transform: translateY(60px);
    }
}

/* ─── Contact / Footer Section ─── */
.contact-section {
    position: relative;
    height: 100vh;
    background: transparent;
    clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
}

.contact-ground-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.ground-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.contact-ground-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 2;
}

.contact-container {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 24px 40px 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 24px;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: badgePulse 2s infinite;
}

.contact-status span:last-child {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.contact-badge {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* Call to Action */
.contact-cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto 0;
}

.contact-title {
    font-size: clamp(50px, 12vw, 160px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.85;
    margin-bottom: 40px;
}

.contact-link {
    display: inline-block;
    position: relative;
    color: var(--foreground);
    transition: color 0.5s ease;
}

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

.contact-line {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 6px;
    background: var(--accent);
    transition: width 0.7s var(--ease-out-expo);
}

.contact-title:hover .contact-line {
    width: 80%;
}

.contact-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 48px;
    width: 100%;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--foreground-muted);
    transition: color 0.3s ease;
}

.social-item:hover {
    color: #000;
}

.social-icon-box {
    padding: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-item:hover .social-icon-box {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.social-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .social-label {
        display: none;
    }
}

.contact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 32px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

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

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .contact-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .contact-cta-block {
        margin-top: 40px;
    }
}

/* ─── Project Preview Modal ─── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(245, 246, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-container {
    width: 100%;
    max-width: 1180px;
    height: 85vh;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    height: 100%;
    border-radius: 40px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Details Section (Left) */
.modal-details-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 48px;
}

.modal-details-inner {
    max-width: 600px;
}

.modal-header {
    margin-bottom: 48px;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-badge-year {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 4px 12px;
    border-radius: 100px;
}

.modal-meta-line {
    width: 32px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.modal-meta-role {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.modal-project-title {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--foreground);
    margin-bottom: 16px;
}

.modal-project-tagline {
    font-size: 18px;
    color: rgba(15, 17, 26, 0.6);
    line-height: 1.5;
    font-weight: 500;
}

/* Detail Grids */
.modal-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.highlight-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--accent);
}

.h-box-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.4);
}

.h-box-desc {
    font-size: 13px;
    color: rgba(15, 17, 26, 0.6);
    line-height: 1.5;
    font-weight: 500;
}

/* Features pills */
.modal-features-section {
    margin-bottom: 48px;
}

.features-headline {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-pill {
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 12px;
    font-weight: 500;
    color: rgba(15, 17, 26, 0.7);
}

/* Modal Footer CTA */
.modal-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.modal-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0F111A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(15, 17, 26, 0.15);
    transition: transform 0.3s ease;
}

.modal-link-btn:hover {
    transform: scale(1.02);
}

.modal-link-btn svg {
    transition: transform 0.3s ease;
}

.modal-link-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Right Preview Side (Desktop) */
.modal-preview-side {
    flex: 1;
    background: rgba(0, 0, 0, 0.002);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-device-wrap {
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: 580px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 48px rgba(0,0,0,0.06);
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-device-screen {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.preview-iframe-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.iframe-scroll-animator {
    width: 100%;
    height: 200%;
    position: relative;
    animation: iframeAutoscroll 45s linear infinite;
}

@keyframes iframeAutoscroll {
    0% { transform: translateY(0%); }
    50% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    opacity: 0.85;
}

.preview-glass-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.badge-text-left .badge-sub {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 2px;
}

.badge-text-left .badge-main {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
}

.badge-action-btn {
    background: #0F111A;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.badge-action-btn:hover {
    transform: scale(1.1);
}

/* Preview side glows */
.preview-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: rgba(99, 102, 241, 0.04);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.preview-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.03);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .modal-preview-side {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .modal-card {
        border-radius: 24px;
    }
    .modal-details-scroll {
        padding: 24px;
    }
    .modal-highlights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─── Project Archive Page Specifics ─── */
.archive-main {
    padding-top: 120px;
    padding-bottom: 120px;
}

.archive-hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.archive-hero-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.04);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.archive-hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.02);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
}

.archive-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.archive-badge-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.archive-badge-line {
    width: 48px;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
}

.archive-badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.archive-title {
    font-size: clamp(40px, 8vw, 88px);
    color: var(--foreground);
    line-height: 0.85;
    letter-spacing: -0.04em;
}

/* Back Link */
.archive-back-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.archive-back-link:hover .back-circle {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.03);
}

.arrow-left-icon {
    transition: transform 0.3s ease;
    color: var(--foreground);
}

.archive-back-link:hover .arrow-left-icon {
    transform: translateX(-4px);
}

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

.back-sub {
    font-size: 10px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.15em;
}

.back-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
}

/* Bio Row & Stats */
.archive-bio-row {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 48px;
}

.archive-bio {
    max-width: 600px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(15, 17, 26, 0.6);
    line-height: 1.6;
}

.archive-stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.archive-stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 900;
}

.stat-label {
    font-size: 9px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.15em;
    margin-top: 4px;
}

.archive-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .archive-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .archive-bio-row {
        flex-direction: column;
        gap: 32px;
    }
}

/* Archive Projects Grid */
.archive-grid-section {
    padding: 40px 0;
}

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

@media (max-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Archive Card Design */
.archive-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 16px 40px rgba(0,0,0,0.03);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.archive-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.06);
}

.archive-card-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.archive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-card:hover .archive-card-img {
    transform: scale(1.06);
}

.archive-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    opacity: 0.4;
}

.archive-card-year-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.archive-badge-year-text {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.8);
}

.archive-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.archive-card-title {
    font-size: 28px;
    font-style: italic;
    font-weight: 900;
    color: var(--foreground);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.archive-card:hover .archive-card-title {
    color: var(--accent);
}

.archive-card-arrow-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 17, 26, 0.8);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.archive-card:hover .archive-card-arrow-box {
    background: var(--accent);
    color: #fff;
}

.archive-card-desc {
    font-size: 14px;
    color: var(--foreground-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
    font-weight: 500;
}

.archive-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 24px;
    margin-top: auto;
}

.archive-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(15, 17, 26, 0.5);
    text-transform: uppercase;
}
