/* =============================================
   AGAM PORTFOLIO - INTERSTELLAR TESSERACT THEME
   Warm Amber/Copper Color Scheme
   ============================================= */

/* ---------------------------------------------
   CSS CUSTOM PROPERTIES
   --------------------------------------------- */
   :root {
    /* Background Colors - Deep Space */
    --bg: #0a0806;
    --bg-secondary: #12100c;
    --bg-card: rgba(20, 16, 12, 0.85);
    --bg-card-hover: rgba(30, 24, 18, 0.9);
    
    /* Text Colors - Warm Tones */
    --text: #f5ebe0;
    --text-secondary: #e6dcd0;
    --text-muted: rgba(245, 235, 224, 0.75);
    --text-subtle: rgba(245, 235, 224, 0.55);
    
    /* Accent Colors - Interstellar Amber/Copper */
    --accent: #d4a574;
    --accent-bright: #e8c49a;
    --accent-hover: #f0d4aa;
    --accent-glow: rgba(212, 165, 116, 0.5);
    --accent-dark: #a67c50;
    
    /* Secondary Accents */
    --copper: #b87333;
    --gold: #ffd700;
    --warm-white: #fff8f0;
    --cool-blue: #4a90a4;
    
    /* Tesseract Colors */
    --tesseract-line: rgba(212, 165, 116, 0.4);
    --tesseract-glow: rgba(232, 196, 154, 0.3);
    --time-stream: rgba(255, 200, 120, 0.15);
    
    /* Border & Line Colors */
    --line: rgba(212, 165, 116, 0.15);
    --line-hover: rgba(212, 165, 116, 0.3);
    
    /* Typography */
    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vh, 150px);
    --container-padding: clamp(20px, 5vw, 80px);
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-indices */
    --z-background: -2;
    --z-overlay: -1;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 500;
    --z-preloader: 9999;
}

/* ---------------------------------------------
   RESET & BASE
   --------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar - Copper Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--copper));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

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

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

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



/* ---------------------------------------------
   TESSERACT BACKGROUND
   --------------------------------------------- */
#tesseract-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    background: radial-gradient(ellipse at center, #1a1410 0%, #0a0806 50%, #050403 100%);
}

#tesseract-container canvas {
    display: block;
}

/* Dust Particles Overlay */
.dust-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-overlay) + 1);
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 220, 180, 0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 200, 150, 0.2), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255, 230, 200, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 210, 170, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 240, 220, 0.25), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 200, 150, 0.15), transparent);
    background-size: 200px 200px;
    animation: dustFloat 60s linear infinite;
    opacity: 0.6;
}

@keyframes dustFloat {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100%) translateX(50px); }
}

/* Film Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-overlay) + 2);
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Vignette Effect */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-overlay) + 3);
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(5, 4, 3, 0.7) 100%);
}

/* ---------------------------------------------
   SCROLL PROGRESS
   --------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: calc(var(--z-nav) + 1);
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--copper), var(--accent), var(--accent-bright));
    transition: width 0.1s linear;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---------------------------------------------
   PRELOADER - INTERSTELLAR THEME
   --------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1410 0%, #0a0806 50%, #050403 100%);
    z-index: var(--z-preloader);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s var(--ease-out), opacity 0.5s ease;
    overflow: hidden;
}

.preloader.finish {
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-content {
    display: flex;
    justify-content: space-between;
    width: min(350px, 85vw);
    margin-bottom: 15px;
    font-family: var(--font-body);
    color: var(--accent-bright);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.loader-bar {
    width: min(350px, 85vw);
    height: 1px;
    background: rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--copper), var(--accent), var(--accent-bright));
    transition: width 0.3s var(--ease-smooth);
    box-shadow: 0 0 20px var(--accent-glow);
}

.loader-quote {
    margin-top: 40px;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ---------------------------------------------
   NAVIGATION
   --------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 8, 6, 0.85);
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    padding: 15px var(--container-padding);
    background: rgba(10, 8, 6, 0.95);
    border-bottom: 1px solid var(--line-hover);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: var(--text);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 30px var(--accent-glow);
}

.reg {
    font-size: 0.55rem;
    vertical-align: top;
    margin-left: 2px;
    color: var(--accent);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: calc(var(--z-nav) + 1);
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text);
    transition: transform 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    background: var(--accent);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    background: var(--accent);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-links a:not(.btn-solid)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-solid):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-bright);
}

.btn-solid {
    background: linear-gradient(135deg, var(--accent), var(--copper));
    color: var(--bg) !important;
    padding: 12px 28px;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

/* ---------------------------------------------
   HERO SECTION
   --------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--container-padding);
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    position: relative;
    z-index: var(--z-content);
}

.label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: 600;
}

h1 {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.9;
    margin-bottom: 35px;
    color: var(--text);
    font-weight: 400;
}

.serif {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-bright);
    display: block;
}

.line-wrap {
    display: block;
    overflow: hidden;
}

.word-up {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1.2s forwards var(--ease-out);
    animation-delay: var(--delay, 0.2s);
}

.line-wrap:nth-child(2) .word-up {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Animate In Class */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards var(--ease-out);
    animation-delay: var(--delay, 0.2s);
}

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

/* Role Carousel */
.role-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.static-text {
    color: var(--text-muted);
}

.role-window {
    height: 1.5em;
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.role-list {
    animation: slideRoles 10s var(--ease-smooth) infinite;
}

.role-item {
    height: 1.5em;
    display: flex;
    align-items: center;
    color: var(--accent-bright);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes slideRoles {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.5em); }
    50%, 70% { transform: translateY(-3em); }
    75%, 95% { transform: translateY(-4.5em); }
    100% { transform: translateY(-6em); }
}

.hero-sub {
    max-width: 550px;
    margin: 0 auto 50px;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-subtle);
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--accent-bright);
}

.scroll-indicator:hover .scroll-line {
    background: linear-gradient(to bottom, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-subtle), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* Kinetic Text */
.interactive-text {
    display: inline-block;
    white-space: nowrap;
}

.char {
    display: inline-block;
    transition: transform 0.2s var(--ease-smooth), opacity 0.2s ease;
    transform-origin: center center;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.char.affected {
    opacity: 0.8;
    filter: blur(1px);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* =============================================
   DOWNLOAD RESUME BUTTON
   ============================================= */

   .resume-action {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Main Resume Button */
.resume-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(184, 115, 51, 0.1));
    border: 1px solid var(--accent);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 196, 154, 0.2), transparent);
    transition: left 0.6s ease;
}

.resume-btn:hover::before {
    left: 100%;
}

.resume-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(184, 115, 51, 0.15));
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 165, 116, 0.3);
}

/* Resume Frame */
.resume-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.resume-frame .frame-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    transition: all 0.4s ease;
}

.resume-frame .frame-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.resume-frame .frame-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.resume-frame .frame-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.resume-frame .frame-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.resume-btn:hover .resume-frame .frame-corner {
    width: 18px;
    height: 18px;
    border-color: var(--accent-bright);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Resume Glow */
.resume-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.resume-btn:hover .resume-glow {
    opacity: 0.3;
}

/* Resume Icon */
.resume-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn:hover .resume-icon {
    transform: translateY(3px);
    animation: downloadBounce 0.6s ease infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(3px); }
    50% { transform: translateY(6px); }
}

/* Resume Text */
.resume-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.resume-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    transition: color 0.3s ease;
}

.resume-btn:hover .resume-label {
    color: var(--accent-bright);
}

.resume-size {
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Resume Arrow */
.resume-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn:hover .resume-arrow {
    transform: translateX(5px);
}

/* Preview Button */
.resume-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.resume-preview svg {
    width: 20px;
    height: 20px;
}

.resume-preview span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.resume-preview:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

/* Download Animation */
@keyframes downloadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 165, 116, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
    }
}

.resume-btn.downloading {
    animation: downloadPulse 1.5s ease infinite;
}

.resume-btn.downloading .resume-icon svg {
    animation: downloadSpin 1s linear infinite;
}

@keyframes downloadSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success State */
.resume-btn.downloaded {
    border-color: #5fe85a;
    background: rgba(95, 232, 90, 0.1);
}

.resume-btn.downloaded .resume-icon {
    color: #5fe85a;
}

.resume-btn.downloaded .resume-label::after {
    content: ' ✓';
    color: #5fe85a;
}

/* Responsive */
@media (max-width: 768px) {
    .resume-action {
        flex-direction: column;
        width: 100%;
    }

    .resume-btn {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .resume-btn {
        padding: 18px 20px;
        gap: 15px;
    }

    .resume-icon {
        width: 20px;
        height: 20px;
    }

    .resume-label {
        font-size: 0.9rem;
    }

    .resume-size {
        font-size: 0.7rem;
    }
}

/* ---------------------------------------------
   SECTIONS - GENERAL
   --------------------------------------------- */
.section {
    padding: var(--section-padding) var(--container-padding);
    border-top: 1px solid var(--line);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.section-number {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 600;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    text-align: right;
}

/* ---------------------------------------------
   PROJECTS SECTION
   --------------------------------------------- */
.work-section {
    padding-bottom: 60px;
}

/* =============================================
   TESSERACT PROJECTS GRID
   Inspired by Interstellar's Tesseract
   ============================================= */

   .work-section {
    padding-bottom: 80px;
    overflow: hidden;
}

/* Container */
.tesseract-grid-container {
    position: relative;
    width: 100%;
    margin-top: 60px;
}

/* Connection Lines Canvas */
.connection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Dimensional Overlay */
.dimensional-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    transition: opacity 0.5s ease;
}

.dimensional-overlay.active {
    opacity: 0.3;
}

/* Main Grid */
.tesseract-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, minmax(250px, auto));
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Project Card Base */
.tesseract-project {
    position: relative;
    overflow: visible;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease,
                filter 0.5s ease;
}

/* Grid Sizes */
.tesseract-project[data-size="large"] {
    grid-column: span 6;
    grid-row: span 2;
}

.tesseract-project[data-size="medium"] {
    grid-column: span 4;
    grid-row: span 1;
}

.tesseract-project[data-size="small"] {
    grid-column: span 3;
    grid-row: span 1;
}

/* Shifting States */
.tesseract-project.shifting {
    z-index: 100;
    filter: brightness(1.2);
}

.tesseract-project.shifting .project-glow {
    opacity: 1;
}

.tesseract-project.shifting .project-frame .frame-line {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-glow);
}

.tesseract-project.shifting .project-frame .frame-corner {
    transform: scale(1.5);
    box-shadow: 0 0 30px var(--accent);
}

.tesseract-project.ghost {
    opacity: 0.3;
    filter: blur(5px) brightness(0.7);
    pointer-events: none;
}

/* Project Inner */
.project-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: var(--bg-card);
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth),
                box-shadow 0.4s ease;
}

.tesseract-project[data-size="large"] .project-inner {
    min-height: 520px;
}

.tesseract-project[data-size="medium"] .project-inner {
    min-height: 280px;
}

.tesseract-project[data-size="small"] .project-inner {
    min-height: 250px;
}

.project-inner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
                0 0 80px var(--accent-glow);
}

/* Project Frame (Tesseract-style borders) */
.project-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    transition: all 0.4s ease;
    z-index: 2;
}

.frame-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.frame-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--tesseract-line), transparent);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.frame-line.top,
.frame-line.bottom {
    left: 25px;
    right: 25px;
    height: 1px;
}

.frame-line.top {
    top: 0;
}

.frame-line.bottom {
    bottom: 0;
}

.frame-line.left,
.frame-line.right {
    top: 25px;
    bottom: 25px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--tesseract-line), transparent);
}

.frame-line.left {
    left: 0;
}

.frame-line.right {
    right: 0;
}

/* =============================================
   SKILLS/ARSENAL SECTION
   Interstellar Tesseract Theme
   ============================================= */

   .toolkit-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

/* Skills Navigation */
.skills-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.skill-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tab:hover::before {
    left: 100%;
}

.skill-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.skill-tab.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(184, 115, 51, 0.1));
    border-color: var(--accent);
    color: var(--accent-bright);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.tab-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.skill-tab:hover .tab-icon,
.skill-tab.active .tab-icon {
    transform: rotate(45deg);
}

/* Mastery Stats */
.mastery-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-orb {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--line);
    stroke-width: 3;
}

.ring-progress {
    fill: none;
    stroke: url(#skillGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.stat-orb.animated .ring-progress {
    stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
}

.stat-content {
    text-align: center;
    z-index: 2;
}

.stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--accent-bright);
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* SVG Gradient Definition - Add this to your HTML */
.toolkit-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* Skill Card */
.skill-card {
    position: relative;
    background: var(--bg-card);
    padding: 30px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.skill-card:hover::before {
    opacity: 0.15;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(212, 165, 116, 0.15);
}

.skill-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

.skill-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

/* Card Frame (Tesseract Style) */
.skill-card .card-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.skill-card .frame-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.skill-card .frame-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.skill-card .frame-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.skill-card .frame-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.skill-card .frame-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.skill-card:hover .frame-corner {
    width: 25px;
    height: 25px;
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Skill Glow */
.skill-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-card:hover .skill-glow {
    opacity: 0.3;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--accent), var(--copper));
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

.skill-card.featured {
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(184, 115, 51, 0.05));
}

.skill-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
}

/* Skill Icon */
.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card:hover .skill-icon svg {
    filter: drop-shadow(0 10px 30px rgba(212, 165, 116, 0.4));
}

/* Skill Info */
.skill-info {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.skill-name {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-name {
    color: var(--accent-bright);
}

.skill-category {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Skill Level Bar */
.skill-level {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.level-bar {
    flex: 1;
    height: 4px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--copper), var(--accent), var(--accent-bright));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px var(--accent-glow);
}

.level-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: levelShine 2s ease-in-out infinite;
}

@keyframes levelShine {
    0%, 100% { opacity: 0; transform: translateX(-20px); }
    50% { opacity: 1; transform: translateX(0); }
}

.skill-card.in-view .level-fill {
    width: var(--level);
}

.level-text {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 70px;
    text-align: right;
}

/* Skill Years */
.skill-years {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-years::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--line-hover);
}

/* Floating Particles */
.skill-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    animation: particleFloat 10s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.15;
    }
    25% { 
        transform: translateY(-20px) rotate(10deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-10px) rotate(-5deg); 
        opacity: 0.2;
    }
    75% { 
        transform: translateY(-30px) rotate(5deg); 
        opacity: 0.25;
    }
}

/* Hover Effects */
.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.skill-card:hover::after {
    left: 150%;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .mastery-stats {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .skills-nav {
        gap: 8px;
    }
    
    .skill-tab {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
    
    .tab-text {
        display: none;
    }
    
    .skill-tab .tab-icon {
        font-size: 1rem;
    }
    
    .mastery-stats {
        gap: 30px;
    }
    
    .stat-orb {
        width: 100px;
        height: 100px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
    }
    
    .skill-name {
        font-size: 1.2rem;
    }
    
    .mastery-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-orb {
        width: 90px;
        height: 90px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .particle {
        display: none;
    }
}

@media (max-width: 480px) {
    .skills-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .skill-tab {
        padding: 10px 15px;
        flex-shrink: 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .skill-card:hover {
        transform: translateY(-5px);
    }
    
    .mastery-stats {
        gap: 20px;
    }
    
    .stat-orb {
        width: 80px;
        height: 80px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .skill-card,
    .skill-icon,
    .level-fill,
    .ring-progress,
    .particle {
        animation: none;
        transition: none;
    }
    
    .level-fill::after {
        display: none;
    }
}

.project-inner:hover .frame-corner {
    width: 30px;
    height: 30px;
    border-color: var(--accent-bright);
    box-shadow: 0 0 15px var(--accent-glow);
}

.project-inner:hover .frame-line {
    opacity: 0.6;
}

/* Dimension Lines (Moving lines inside card) */
.project-dimension-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.project-dimension-lines::before,
.project-dimension-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-dimension-lines::before {
    top: 30%;
    left: 0;
    width: 100%;
    height: 1px;
    animation: dimensionLineH 8s linear infinite;
}

.project-dimension-lines::after {
    top: 0;
    left: 40%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-glow), transparent);
    animation: dimensionLineV 10s linear infinite;
}

.project-inner:hover .project-dimension-lines::before,
.project-inner:hover .project-dimension-lines::after {
    opacity: 0.4;
}

@keyframes dimensionLineH {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(calc(100% + 200px)); }
}

@keyframes dimensionLineV {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100% + 200px)); }
}

/* Project Image */
.project-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) brightness(0.85) saturate(0.9);
    transition: all 0.6s var(--ease-smooth);
}

.project-inner:hover .project-image-wrap img {
    transform: scale(1.1);
    filter: sepia(10%) brightness(1) saturate(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 8, 6, 0.3) 0%,
        rgba(10, 8, 6, 0.1) 40%,
        rgba(10, 8, 6, 0.8) 80%,
        rgba(10, 8, 6, 0.95) 100%
    );
    transition: opacity 0.4s ease;
}

/* Project Content */
.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 5;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.project-inner:hover .project-content {
    transform: translateY(0);
    opacity: 1;
}

.project-index {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.index-current {
    color: var(--accent-bright);
    font-weight: 700;
    font-size: 1.2rem;
}

.index-divider {
    color: var(--text-subtle);
}

.index-total {
    color: var(--text-subtle);
}

.project-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-inner:hover .project-title {
    color: var(--accent-bright);
}

.project-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.project-year {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* Project Glow (Active during shift) */
.project-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    box-shadow: 
        inset 0 0 50px var(--accent-glow),
        0 0 50px var(--accent-glow);
}

/* Shift Indicator */
.shift-indicator {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.shift-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-subtle);
    text-transform: uppercase;
}

.shift-countdown {
    font-size: 1rem;
    color: var(--accent-bright);
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.shift-progress {
    width: 200px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.shift-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Control Button */
.shift-control {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.shift-control:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    background: rgba(212, 165, 116, 0.1);
}

.shift-control.paused {
    border-color: var(--accent);
    color: var(--accent-bright);
}

.shift-control.paused .control-text::after {
    content: 'RESUME SHIFT';
}

.shift-control.paused .control-text {
    font-size: 0;
}

.control-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.shift-control:hover .control-icon svg {
    transform: rotate(45deg);
}

.shift-control.paused .control-icon svg {
    transform: rotate(0deg);
}

/* Shifting Animation States */
@keyframes shiftPulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--accent-glow);
        border-color: var(--accent);
    }
    50% { 
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(212, 165, 116, 0.3);
        border-color: var(--accent-bright);
    }
}

.tesseract-project.shifting .project-inner {
    animation: shiftPulse 0.5s ease infinite;
}

/* Dimensional Warp Effect */
@keyframes dimensionalWarp {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
    25% {
        transform: perspective(1000px) rotateY(15deg) scale(0.95);
    }
    50% {
        transform: perspective(1000px) rotateY(0deg) scale(0.9);
    }
    75% {
        transform: perspective(1000px) rotateY(-15deg) scale(0.95);
    }
    100% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
}

.tesseract-project.warping {
    animation: dimensionalWarp 0.8s ease;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .tesseract-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .tesseract-project[data-size="large"] {
        grid-column: span 6;
        grid-row: span 1;
    }
    
    .tesseract-project[data-size="medium"] {
        grid-column: span 3;
    }
    
    .tesseract-project[data-size="small"] {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .tesseract-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tesseract-project[data-size="large"],
    .tesseract-project[data-size="medium"],
    .tesseract-project[data-size="small"] {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .project-inner {
        min-height: 300px !important;
    }
    
    .tesseract-project[data-size="large"] .project-inner {
        min-height: 350px !important;
    }
    
    .shift-indicator {
        bottom: -50px;
    }
    
    .shift-control {
        top: -40px;
        padding: 8px 15px;
        font-size: 0.6rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .frame-corner {
        width: 15px;
        height: 15px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tesseract-project {
        transition: none;
    }
    
    .tesseract-project.shifting,
    .tesseract-project.warping {
        animation: none;
    }
    
    .project-dimension-lines::before,
    .project-dimension-lines::after {
        animation: none;
    }
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 30px;
    color: var(--text-subtle);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-hint svg {
    color: var(--accent);
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ---------------------------------------------
   SKILLS SECTION
   --------------------------------------------- */
.prism-container {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 8px;
    margin-top: 50px;
}

.prism-card {
    position: relative;
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.prism-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--brand-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.prism-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prism-code {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.5s ease;
    font-weight: 600;
}

.prism-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    white-space: nowrap;
}

.prism-details h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 8px;
    color: var(--text);
}

.prism-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.prism-card:hover,
.prism-card:focus {
    flex: 3;
    border-color: var(--brand-color);
    box-shadow: 0 0 50px rgba(212, 165, 116, 0.15);
}

.prism-card:hover .prism-bg,
.prism-card:focus .prism-bg {
    opacity: 0.2;
}

.prism-card:hover .prism-code,
.prism-card:focus .prism-code {
    color: var(--brand-color);
    transform: translateY(-10px);
    text-shadow: 0 0 30px var(--brand-color);
}

.prism-card:hover .prism-details,
.prism-card:focus .prism-details {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------
   PROCESS SECTION
   --------------------------------------------- */
.phase-container {
    display: flex;
    height: 550px;
    gap: 2px;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-card);
    margin-top: 50px;
    overflow: hidden;
}

.phase-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 25px;
    border-right: 1px solid var(--line);
    transition: flex 0.6s var(--ease-out), background 0.3s ease;
    overflow: hidden;
    cursor: crosshair;
}

.phase-card:last-child {
    border-right: none;
}

.phase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.phase-num {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-hover);
    padding-bottom: 10px;
    width: fit-content;
    font-weight: 600;
}

.phase-content h3 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 15px;
    color: var(--text);
    white-space: nowrap;
    transform-origin: left;
    transition: all 0.5s ease;
}

.phase-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    max-width: 280px;
}

/* Phase Icons */
.phase-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    transition: all 0.6s ease;
}

.icon-shape {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    position: relative;
}

.circle-pulse {
    border-radius: 50%;
    animation: pulse 3s infinite;
    box-shadow: 0 0 20px var(--accent-glow);
}

.square-spin {
    animation: spin 10s infinite linear;
}

.star-morph {
    background: transparent;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: var(--accent);
    animation: morph 4s infinite alternate;
}

.orbit-ring {
    border-radius: 50%;
    border: 2px dashed var(--accent);
    animation: rotateRingIcon 8s infinite linear;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-bright);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-glow);
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes morph {
    0% {
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        background: var(--accent);
    }
    100% {
        clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
        background: var(--copper);
    }
}

@keyframes rotateRingIcon {
    to { transform: rotate(360deg); }
}

.phase-card:hover,
.phase-card:focus {
    flex: 3;
    background: rgba(212, 165, 116, 0.05);
}

.phase-card:hover .phase-bg,
.phase-card:focus .phase-bg {
    opacity: 1;
}

.phase-card:hover .phase-icon,
.phase-card:focus .phase-icon {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.3);
}

.phase-card:hover .phase-content p,
.phase-card:focus .phase-content p {
    opacity: 1;
    transform: translateY(0);
}

.phase-card:hover .phase-content h3,
.phase-card:focus .phase-content h3 {
    color: var(--accent-bright);
    transform: scale(1.05) translateX(5px);
}

.phase-card:hover .phase-num,
.phase-card:focus .phase-num {
    color: var(--accent-bright);
}

/* ---------------------------------------------
   PROFILE SECTION
   --------------------------------------------- */
.bio-terminal {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: clamp(30px, 5vw, 60px);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.bio-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.bio-terminal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at bottom left, rgba(184, 115, 51, 0.15), transparent 70%);
    pointer-events: none;
}

.terminal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:first-child { background: #e85a4f; }
.terminal-dots span:nth-child(2) { background: #e8b44f; }
.terminal-dots span:last-child { background: #5fe85a; }

.id-badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 3px;
}

.status-light {
    width: 10px;
    height: 10px;
    background: var(--accent-bright);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 10px var(--accent-glow); }
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.bio-intro {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text);
}

.highlight {
    color: var(--accent-bright);
    font-style: italic;
}

.trigger-name {
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 10;
    border-bottom: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.trigger-name:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 30px var(--accent-glow);
}

.bio-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.bio-stats {
    display: flex;
    gap: 50px;
}

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

.stat-number {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--accent-bright);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.bio-right {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.data-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 2px solid var(--line-hover);
    padding-left: 20px;
    transition: border-color 0.3s ease;
}

.data-row:hover {
    border-color: var(--accent);
}

.data-label {
    font-size: 0.7rem;
    color: var(--text-subtle);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.data-value {
    font-size: 1.4rem;
    font-family: var(--font-head);
    color: var(--text);
    font-weight: 400;
}

.data-sub {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: var(--font-body);
}

/* Profile Float Image */
.profile-float-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 300px;
    pointer-events: none;
    z-index: var(--z-modal);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-5deg);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-bounce);
    border: 2px solid var(--accent);
    background: var(--bg);
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 80px var(--accent-glow);
}

.profile-float-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(15%);
}

/* ---------------------------------------------
   FOOTER
   --------------------------------------------- */
.footer {
    padding-bottom: 50px;
}

.footer-cta {
    margin-bottom: 80px;
}

.cta-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text-subtle);
}

.giant-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    font-family: var(--font-head);
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--text);
    line-height: 1;
    transition: all 0.4s ease;
}

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

.giant-link:hover .link-text {
    letter-spacing: 0.05em;
    text-shadow: 0 0 60px var(--accent-glow);
}

.link-arrow {
    font-size: 0.5em;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.giant-link:hover .link-arrow {
    transform: translate(20px, -20px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 20px;
}

.socials {
    display: flex;
    gap: 30px;
}

.socials a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.socials a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transition: width 0.3s ease;
}

.socials a:hover {
    color: var(--accent-bright);
}

.socials a:hover::after {
    width: 100%;
}

/* ---------------------------------------------
   RESPONSIVE STYLES
   --------------------------------------------- */
@media (max-width: 1024px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-desc {
        text-align: left;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(350px, 100vw);
        height: 100vh;
        background: rgba(10, 8, 6, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        border-left: 1px solid var(--line);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .prism-container {
        flex-direction: column;
        height: auto;
    }
    
    .prism-card {
        height: 100px;
        flex-direction: row;
        align-items: center;
        gap: 25px;
        padding: 25px 30px;
    }
    
    .prism-card:hover,
    .prism-card:focus {
        flex: 1;
    }
    
    .prism-details {
        opacity: 1;
        transform: translateY(0);
    }
    
    .prism-code {
        font-size: 2.5rem;
        min-width: 60px;
    }
    
    .phase-container {
        flex-direction: column;
        height: auto;
    }
    
    .phase-card {
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    
    .phase-card:last-child {
        border-bottom: none;
    }
    
    .phase-card:hover,
    .phase-card:focus {
        flex: 1;
    }
    
    .phase-icon {
        left: auto;
        right: 30px;
        transform: translateY(-50%);
    }
    
    .phase-card:hover .phase-icon,
    .phase-card:focus .phase-icon {
        transform: translateY(-50%) scale(1.2);
    }
    
    .phase-content p {
        opacity: 1;
        transform: translateY(0);
        max-width: 70%;
    }
    
    .profile-float-image {
        display: none !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .socials {
        justify-content: center;
    }
    
    .dust-overlay {
        opacity: 0.3;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }
    
    h1 {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 120px;
    }
    
    .project-card {
        width: 90vw;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .bio-intro {
        font-size: 2rem;
    }
    
    .bio-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .giant-link {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .link-arrow {
        font-size: 1.5rem;
    }
    
    .prism-card {
        height: 90px;
        padding: 20px 25px;
    }
    
    .prism-code {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .prism-details h3 {
        font-size: 1.1rem;
    }
    
    .phase-card {
        height: 180px;
        padding: 25px 20px;
    }
    
    .icon-shape {
        width: 50px;
        height: 50px;
    }
}

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

/* Utility Classes */
.no-scroll {
    overflow: hidden;
}


   /* =============================================
   CONTACT SECTION - SIMPLIFIED & CLEAN
   ============================================= */

.contact-section {
    padding-bottom: 80px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 60px;
    align-items: start;
}

/* Left Side - CTA */
.contact-cta {
    position: sticky;
    top: 120px;
}

.cta-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Direct Links */
.direct-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.direct-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.direct-link:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.direct-link .link-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.direct-link .link-text {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.5px;
}

.direct-link:hover .link-text {
    color: var(--accent-bright);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Right Side - Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 50px;
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--accent), var(--accent-bright));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Form Group */
.form-group {
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 20px 0 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapper label {
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label,
.input-wrapper select:focus ~ label,
.input-wrapper select:valid ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transition: width 0.4s ease;
}

.input-wrapper input:focus ~ .input-border,
.input-wrapper select:focus ~ .input-border,
.input-wrapper textarea:focus ~ .input-border {
    width: 100%;
}

/* Select Arrow */
.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.select-wrapper select:focus ~ .select-arrow {
    color: var(--accent);
    transform: translateY(-50%) rotate(180deg);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--accent), var(--copper));
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

.btn-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bg);
    text-transform: uppercase;
}

.btn-icon {
    width: 20px;
    height: 20px;
    color: var(--bg);
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translate(5px, -5px);
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--bg);
    font-weight: 600;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.submit-btn.loading {
    pointer-events: none;
}

/* Form Status */
.form-status {
    text-align: center;
    font-size: 0.9rem;
    min-height: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    color: #e85a4f;
}

.form-status.success {
    color: #5fe85a;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 6, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    padding: 60px;
    max-width: 450px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--accent-bright);
}

.success-icon svg {
    width: 100%;
    height: 100%;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.8s ease forwards 0.2s;
}

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

.success-content h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.success-close {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Footer */
.footer {
    padding: 80px var(--container-padding) 40px;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

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

.footer-socials {
    display: flex;
    gap: 30px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-cta {
        position: static;
    }

    .contact-form-wrapper {
        padding: 35px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 25px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .direct-link {
        padding: 15px 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .submit-btn {
        padding: 18px 30px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================
   INSPIRATION MODAL - BEHIND THE DESIGN
   ============================================= */

/* Floating Trigger Button */
.inspiration-trigger {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(20, 16, 12, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
}

.inspiration-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--copper));
    transition: width 0.4s ease;
}

.inspiration-trigger:hover::before {
    width: 100%;
    opacity: 0.1;
}

.inspiration-trigger:hover {
    border-color: var(--accent);
    transform: translateX(-5px);
    box-shadow: 0 10px 40px rgba(212, 165, 116, 0.2);
}

.trigger-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-text {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.inspiration-trigger:hover .trigger-text {
    color: var(--accent);
}

/* Modal */
.inspiration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.inspiration-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    padding: 60px;
    overflow-y: auto;
    transform: scale(0.9) translateY(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(212, 165, 116, 0.3);
}

.inspiration-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Header */
.modal-header {
    margin-bottom: 40px;
    text-align: center;
}

.modal-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid var(--accent);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    font-weight: 400;
    line-height: 1.2;
}

/* Modal Body */
.modal-body {
    position: relative;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Visual Section */
.inspiration-visual {
    position: sticky;
    top: 20px;
}

.visual-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.visual-frame .frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}

.visual-frame .frame-corner.tl {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.visual-frame .frame-corner.tr {
    top: -10px;
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.visual-frame .frame-corner.bl {
    bottom: -10px;
    left: -10px;
    border-right: none;
    border-top: none;
}

.visual-frame .frame-corner.br {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.inspiration-visual img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: sepia(20%) brightness(0.8);
    transition: filter 0.3s ease;
}

.inspiration-visual:hover img {
    filter: sepia(10%) brightness(1);
}

.visual-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-align: center;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Story Section */
.inspiration-story {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.story-section {
    position: relative;
}

.story-heading {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--accent-bright);
    margin-bottom: 15px;
    font-weight: 400;
}

.story-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.story-text em {
    color: var(--accent);
    font-style: italic;
}

/* Parallels List */
.parallels-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.parallel-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-left: 10px;
}

.parallel-icon {
    color: var(--accent);
    font-size: 0.6rem;
    margin-top: 8px;
    flex-shrink: 0;
}

.parallel-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.parallel-text strong {
    color: var(--text);
    font-weight: 600;
}

/* Quote */
.story-quote {
    position: relative;
    padding: 30px 40px;
    background: rgba(212, 165, 116, 0.05);
    border-left: 3px solid var(--accent);
    margin: 20px 0;
}

.quote-mark {
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.story-quote blockquote {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.story-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--accent);
    font-style: normal;
    letter-spacing: 1px;
}

/* Story Footer */
.story-footer {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.story-note {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .inspiration-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .inspiration-visual {
        position: static;
    }

    .modal-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .inspiration-trigger {
        position: relative;
        margin-bottom: 30px;
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .story-quote {
        padding: 20px 25px;
    }

    .story-quote blockquote {
        font-size: 1rem;
    }

    .quote-mark {
        font-size: 3rem;
        top: -5px;
        left: 10px;
    }
}

@media (max-width: 600px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .parallels-list {
        gap: 12px;
    }

    .parallel-item {
        gap: 12px;
    }

    .parallel-text {
        font-size: 0.9rem;
    }
}

/* Animation for Modal Entrance */
@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}