@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;500;600;700&family=Crimson+Pro:wght@300;400;600&family=Eater&family=Creepster&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
    /* Elite Charcoal Design System (Mode-1) - Enhanced */
    --bg-color: #0B0D10; /* Industry-grade elite charcoal */
    --text-primary: #EDEDED;
    --text-secondary: #B5B8BC;
    --text-muted: #8F9499;
    --text-eyebrow: #9AA0A6;
    --signature-color: #8B8F94;

    /* Enhanced Accent Colors */
    --accent-teal: #14B8A6;
    --accent-teal-light: #5EEAD4;
    --accent-amber: #F59E0B;
    --accent-amber-light: #FCD34D;

    /* Elevation System */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.20), 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-glow-teal: 0 4px 24px rgba(20, 184, 166, 0.15);

    /* Typography - Fluid Scaling */
    --font-heading: clamp(48px, 6vw, 88px);
    --font-subheading: clamp(16px, 1.6vw, 18px);
    --font-eyebrow: clamp(11px, 1vw, 13px);
    --font-body: 16px;
    --font-small: 13px;
    --font-tiny: 12px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: cubic-bezier(0.4, 0, 0.2, 1);
}

body.premium-mode {
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-border-hover: 1px solid rgba(20, 184, 166, 0.2);
    --card-glow: 0 0 32px rgba(20, 184, 166, 0.08);
    background-color: #0B0D10; /* Pure elite charcoal */
}

/* Optional subtle elevation for Premium mode */
body.premium-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top center,
        rgba(110, 140, 170, 0.06),
        #0B0D10 70%
    );
    pointer-events: none;
    z-index: 0;
}

body.mystic-mode {
    /* Mystic (Ritualistic Horror) Mode */
    --bg-color: #020203; /* Canonical abyss black */
    --text-primary: #a1a1a1;
    --text-secondary: #525252;
    --accent-color: #4a0404;
    /* Very dark dried blood */
    --card-bg: #050505;
    --font-main: 'Crimson Pro', serif;
    --font-heading: 'Eater', serif;
    --font-horror: 'Creepster', system-ui;
    --card-border: 1px solid rgba(74, 4, 4, 0.2);
    background-color: #020203; /* Pure abyss - light-absorbing darkness */
}

/* Ritual Pulse - Barely Detectable Atmospheric Layer */
body.mystic-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(60, 10, 15, 0.02),
        #020203 68%
    );
    pointer-events: none;
    z-index: 0;
}

/* Ensure all sections float above background in Mystic mode */
body.mystic-mode #header,
body.mystic-mode .header-text,
body.mystic-mode #mystic-hero,
body.mystic-mode #about,
body.mystic-mode #services,
body.mystic-mode #portfolio,
body.mystic-mode #contact {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Remove all section-specific pseudo-element backgrounds in Mystic mode */
body.mystic-mode #header::before,
body.mystic-mode #header::after,
body.mystic-mode .header-text::before,
body.mystic-mode .header-text::after,
body.mystic-mode #mystic-hero::before,
body.mystic-mode #mystic-hero::after,
body.mystic-mode #about::before,
body.mystic-mode #about::after,
body.mystic-mode #services::before,
body.mystic-mode #services::after,
body.mystic-mode #portfolio::before,
body.mystic-mode #portfolio::after,
body.mystic-mode #contact::before,
body.mystic-mode #contact::after {
    display: none !important;
}

/* ===================================
   MYSTIC MODE: CINEMATIC HERO SECTION
   Ritualistic, Silent, Psychologically Present
   =================================== */

body.mystic-mode .mystic-cinematic-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 5%;
}

body.mystic-mode .mystic-hero-content {
    max-width: 900px;
    text-align: center;
}

/* Identity Line - Modern, Controlled, Human */
body.mystic-mode .mystic-identity {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #E6E6E6; /* Bone White */
    margin: 0 0 32px 0;
    opacity: 0;
    animation: identityAppear 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes identityAppear {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Anchor Line - Quieter, Static */
body.mystic-mode .mystic-anchor {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    color: #9A9A9A; /* Ash Gray */
    margin: 0 0 10px 0;
    opacity: 0;
    animation: anchorFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

@keyframes anchorFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.78;
    }
}

/* Rotating Haunted Statements - Ritual Serif */
body.mystic-mode .mystic-rotating {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #CFCFCF; /* Spectral Ivory */
    margin: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    filter: blur(8px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: rotatingAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rotatingAppear {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Rotating text transition states - Applied via JavaScript */
body.mystic-mode .mystic-rotating.fade-out {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-3px) translateX(1px);
}

body.mystic-mode .mystic-rotating.fade-in {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) translateX(0);
}

/* Hide Services Section in Mystic Mode */
body.mystic-mode #services {
    display: none;
}

/* Hide in Premium Mode */
body.premium-mode .mystic-cinematic-hero {
    display: none;
}

/* ===================================
   MYSTIC MODE: RITUAL DISCLOSURE (ABOUT SECTION)
   Elite Horror, Chilling, Unsettling, Ritualistic
   =================================== */

/* Hide/Show based on mode */
body.mystic-mode .premium-about-section {
    display: none;
}

body.premium-mode .mystic-about-section {
    display: none;
}

body.mystic-mode .mystic-about-section {
    display: block;
    padding: 80px 0;
    position: relative;
}

/* Disclosure Header */
.mystic-disclosure-header {
    text-align: center;
    margin-bottom: 60px;
}

.mystic-disclosure-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #E6E6E6;
    margin: 0 0 16px 0;
    text-transform: lowercase;
}

.mystic-disclosure-intro {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 300;
    color: #9A9A9A;
    margin: 0;
    opacity: 0.7;
}

/* Disclosure Blocks */
.mystic-disclosure-block {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    border-top: 1px solid rgba(207, 207, 207, 0.08);
    padding-top: 50px;
}

.mystic-disclosure-block:last-child {
    margin-bottom: 0;
}

/* Block Header */
.mystic-block-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
}

.mystic-block-number {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #7A1622; /* Blood red - rare accent */
    opacity: 0.6;
}

.mystic-block-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #CFCFCF;
    margin: 0;
    text-transform: lowercase;
}

/* The Arsenal - Instruments Grid */
.mystic-instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: rgba(207, 207, 207, 0.05);
    border: 1px solid rgba(207, 207, 207, 0.08);
}

.mystic-instrument {
    background: #020203;
    padding: 32px 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
}

.mystic-instrument::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: #7A1622; /* Blood red */
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mystic-instrument:hover::before {
    height: 100%;
}

.mystic-instrument:hover {
    background: rgba(122, 22, 34, 0.03);
}

.mystic-instrument-name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #E6E6E6;
    margin-bottom: 8px;
}

.mystic-instrument-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #9A9A9A;
    opacity: 0.6;
    text-transform: lowercase;
}

/* Timeline - Field Work & The Becoming */
.mystic-timeline {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.mystic-timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(207, 207, 207, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mystic-timeline-item:hover {
    border-bottom-color: rgba(122, 22, 34, 0.2);
}

.mystic-timeline-period {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #7A1622; /* Blood red */
    opacity: 0.7;
    padding-top: 4px;
}

.mystic-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mystic-timeline-role {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #E6E6E6;
}

.mystic-timeline-org {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #CFCFCF;
    opacity: 0.7;
}

.mystic-timeline-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: #9A9A9A;
    opacity: 0.8;
    margin-top: 8px;
}

/* Parallel Layout Container for Field Work & The Becoming */
.mystic-parallel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 80px;
}

.mystic-parallel-container .mystic-disclosure-block {
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mystic-disclosure-block {
        margin-bottom: 80px;
    }

    .mystic-block-header {
        gap: 16px;
    }

    .mystic-instruments-grid {
        grid-template-columns: 1fr;
    }

    .mystic-timeline-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mystic-timeline-period {
        padding-top: 0;
    }

    /* Stack parallel layout vertically on mobile */
    .mystic-parallel-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    line-height: 1.6;
}

/* Background Layer - Hidden in both modes (using pure backgrounds) */
body.premium-mode .mesh-gradient,
body.mystic-mode .mesh-gradient {
    display: none;
}

@keyframes meshAmbience {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.1) translateY(-20px);
    }
}

/* Very subtle grain overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/60-lines.png");
    opacity: 0.025;
    /* 2.5% opacity */
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: overlay;
}

body.mystic-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 10002;
    animation: static-flicker 0.1s infinite;
}

@keyframes static-flicker {
    0% {
        opacity: 0.03;
    }

    50% {
        opacity: 0.06;
    }

    100% {
        opacity: 0.04;
    }
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-color);
    z-index: 10003;
    transition: width 0.1s ease-out;
}

/* --- Systems Architect Overhaul (Mode-1) --- */
#tech-grid-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

body.premium-mode #tech-grid-overlay {
    display: block;
}

.metadata-tokens {
    display: none;
    position: fixed;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    padding: 30px;
    z-index: 10005;
    opacity: 0.5;
    pointer-events: none;
    text-transform: uppercase;
}

body.premium-mode .metadata-tokens {
    display: block;
    animation: scanner-sweep 5s infinite ease-in-out;
}

@keyframes scanner-sweep {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.1;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

body.premium-mode::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    height: 100px;
    z-index: 10002;
    pointer-events: none;
    animation: tech-scan 6s infinite linear;
}

@keyframes tech-scan {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

.t-left {
    top: 0;
    left: 0;
}

.t-right {
    top: 0;
    right: 0;
}

.b-left {
    bottom: 0;
    left: 0;
}

.b-right {
    bottom: 0;
    right: 0;
}

body.premium-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.02) 50.1%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10001;
    opacity: 0.1;
}


/* --- Extreme Horror Overhaul --- */
#blood-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(139, 0, 0, 0.4) 100%),
        linear-gradient(rgba(139, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 100% 3px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

body.mystic-mode #blood-screen-overlay {
    opacity: 0.3; /* Reduced intensity */
    background: radial-gradient(circle, transparent 50%, rgba(20, 0, 0, 0.4) 100%);
    /* animation: vignette-pulse 10s infinite alternate, screen-contract 15s infinite alternate ease-in-out; */ /* Disabled to prevent shaking */
}

@keyframes vignette-pulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes screen-contract {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(0.5);
    }
}

#sigil-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/4/4b/Men-of-Letters-Sigil.svg') no-repeat center;
    background-size: contain;
    z-index: 10005;
    pointer-events: none;
    filter: invert(1) drop-shadow(0 0 20px #ff0000);
    opacity: 0;
}

#sigil-container.flash {
    animation: sigil-jump 0.5s ease-out forwards;
}

@keyframes sigil-jump {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }

    40% {
        opacity: 0.4;
        filter: hue-rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

#shadow-stalker {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1), opacity 2s;
}

body.mystic-mode #shadow-stalker {
    display: block;
}

#jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10006;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jumpscare-overlay.active {
    animation: nightmarish-flash 0.15s steps(2) forwards;
}

@keyframes nightmarish-flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        background-size: cover;
        filter: invert(1);
    }

    100% {
        opacity: 0;
    }
}

.ui-decay {
    animation: ui-jitter 0.2s infinite, visceral-decay 0.3s infinite;
}

@keyframes ui-jitter {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(-4px, 4px) rotate(0.5deg);
    }

    50% {
        transform: translate(4px, -4px) rotate(-0.5deg);
        filter: hue-rotate(180deg) invert(1);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes visceral-decay {
    0% {
        clip-path: inset(0 0 0 0);
    }

    20% {
        clip-path: inset(20% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(10% 0 70% 0);
    }

    80% {
        clip-path: inset(80% 0 5% 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Chromatic Aberration for Reality Distortion - DISABLED */
body.mystic-mode {
    /* animation: reality-distort 8s infinite; */ /* Disabled to prevent shaking */
}

@keyframes reality-distort {

    0%,
    90%,
    100% {
        filter: none;
    }

    91% {
        filter: contrast(2) saturate(2) drop-shadow(4px 0 0 #f00) drop-shadow(-4px 0 0 #0ff);
        opacity: 0.8;
    }

    93% {
        filter: invert(1) grayscale(1) contrast(3);
        transform: scale(1.02) rotate(0.5deg);
    }

    95% {
        filter: none;
    }

    97% {
        filter: brightness(2) contrast(1.5) drop-shadow(0 0 20px #f00);
        transform: translateX(5px);
    }
}

/* --- Premium Design Utilities - Enhanced Glassmorphism --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(20, 184, 166, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
    background: rgba(255, 255, 255, 0.05);
}

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

body.premium-mode .glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20),
                0 4px 12px rgba(0, 0, 0, 0.12),
                0 0 32px rgba(20, 184, 166, 0.12);
}

body.mystic-mode .glass-card {
    background: rgba(74, 4, 4, 0.08);
    border-color: rgba(139, 0, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.mystic-mode .glass-card:hover {
    border-color: rgba(139, 0, 0, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
                0 0 32px rgba(139, 0, 0, 0.15);
}

/* --- Custom Cursor --- */
#custom-cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.6s, transform 0.1s ease-out;
    transform: translate(-50%, -50%);
    display: none;
    /* Hidden by default, shown only in mystic-mode */
}

body.mystic-mode #custom-cursor {
    display: block;
    /* Shown only in horror mode */
    background: transparent;
    box-shadow: none;
    mix-blend-mode: normal;
    width: 30px;
    height: 40px;
}

/* The Ghost Body */
body.mystic-mode #custom-cursor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(224, 213, 213, 0.6);
    /* Text primary color but semi-transparent */
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 15px rgba(224, 213, 213, 0.4);
    animation: ghost-float 2s ease-in-out infinite;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 85% 90%, 75% 100%, 50% 90%, 25% 100%, 15% 90%, 0% 100%);
}

/* The Ghost Eyes */
body.mystic-mode #custom-cursor::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 15%;
    width: 70%;
    height: 4px;
    background: transparent;
    display: flex;
    justify-content: space-around;
    z-index: 10001;
}

body.mystic-mode #custom-cursor::after {
    background: radial-gradient(circle, #ff0000 2px, transparent 2px);
    background-size: 10px 10px;
    background-repeat: space;
    animation: ghost-eyes-flicker 3s infinite;
}

@keyframes ghost-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

@keyframes ghost-eyes-flicker {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    92%,
    98% {
        opacity: 0.2;
    }
}

#custom-cursor.active {
    width: 50px;
    height: 70px;
    opacity: 0.8;
}

#custom-cursor.active::before {
    background: rgba(139, 0, 0, 0.4);
    /* Shifts to a faint red when active */
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
}

/* --- Horror Animations for Titles --- */
@keyframes horror-glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 red, -2px 0 blue;
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: -2px 0 red, 2px 0 blue;
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: 2px 0 red, -2px 0 blue;
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 red, 2px 0 blue;
    }

    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

@keyframes blood-pulse {
    0% {
        text-shadow: 0 0 0px #ff0000;
    }

    50% {
        text-shadow: 0 0 20px #ff0000, 0 0 40px #8b0000;
    }

    100% {
        text-shadow: 0 0 0px #ff0000;
    }
}

/* --- Ghostly Mystic Title Effects --- */
body.mystic-mode .section-title {
    font-family: var(--font-horror);
    color: #2a2a2a !important;
    text-shadow: 0 0 10px rgba(74, 4, 4, 0.5), 0 0 20px #000;
    letter-spacing: 4px;
    position: relative;
    animation: shadow-text-pulse 4s infinite alternate ease-in-out !important;
}

body.mystic-mode #hero-title {
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(0, 0, 0, 0.9);
    animation: ghost-drift 6s infinite ease-in-out !important;
    letter-spacing: 4px;
    opacity: 1 !important;
}

@keyframes ghost-drift {

    0%,
    100% {
        transform: translate(0, 0) skew(0deg);
        opacity: 0.95;
        filter: blur(0px);
    }

    25% {
        transform: translate(-1px, 1px) skew(0.2deg);
        opacity: 0.7;
        filter: blur(0.5px);
    }

    50% {
        transform: translate(1px, -1px) skew(-0.2deg);
        opacity: 0.9;
        filter: blur(0px);
    }

    75% {
        transform: translate(-1px, 0.5px) skew(0.1deg);
        opacity: 0.6;
        filter: blur(0.8px);
    }
}

@keyframes shadow-text-pulse {
    0% {
        text-shadow: 0 0 2px #000;
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 10px #000, 2px 2px 5px #4a0404;
        transform: scale(1.01);
    }
}

body.mystic-mode .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #4a0404 1px, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
    mask-image: linear-gradient(to right,
            #000 0%, #000 1%, transparent 1%, transparent 4%,
            #000 4%, #000 5%, transparent 5%, transparent 10%);
    animation: ink-drip-flow 12s infinite ease-in;
}

@keyframes ink-drip-flow {
    0% {
        transform: scaleY(0.1);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    100% {
        transform: scaleY(1.5);
        opacity: 0;
    }
}

body.mystic-mode .section-title.glitch {
    animation: horror-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite, blood-pulse 3s infinite ease-in-out;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s var(--transition-smooth), opacity 1s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Card 3D Setup --- */
.service-card,
.work {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease;
    display: none; /* Disabled to prevent page shaking */
}

body.mystic-mode #particle-canvas {
    display: none; /* Keep disabled in Mystic mode */
}

/* --- Transition Overlay --- */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
}

#transition-overlay.glitch-flash {
    animation: flash-animation 1s forwards;
}

@keyframes flash-animation {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
        background: white;
    }

    40% {
        opacity: 0.8;
        background: #ff0000;
    }

    60% {
        opacity: 1;
        background: white;
    }

    100% {
        opacity: 0;
    }
}

/* --- Navigation --- */
/* --- Top Navigation Bar --- */
/* --- Navigation (Horizontal Pill) --- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    pointer-events: none;
}

.navbar-container>* {
    pointer-events: auto;
}

.logo-group .nav-logo {
    width: 35px;
    height: auto;
    filter: brightness(1.2);
}

/* --- Navigation - Apple Premium Style --- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    pointer-events: none;
}

.navbar-container>* {
    pointer-events: auto;
}

.logo-group .nav-logo {
    width: 35px;
    height: auto;
    filter: brightness(1.2);
}

/* Premium Glassmorphic Navigation Pill */
body.premium-mode .nav-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 10px 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

body.premium-mode .nav-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(94, 234, 212, 0.3) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.premium-mode .nav-pill:hover::before {
    opacity: 1;
}

.nav-pill ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

body.premium-mode .nav-pill li a {
    text-decoration: none;
    color: rgba(237, 237, 237, 0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

body.premium-mode .nav-pill li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-light));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.premium-mode .nav-pill li a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

body.premium-mode .nav-pill li a:hover::after,
body.premium-mode .nav-pill li a.active::after {
    transform: scaleX(1);
}

body.premium-mode .nav-pill li a.active {
    color: #FFFFFF;
}

/* Mystic Mode Navigation (Keep existing dark style) */
body.mystic-mode .nav-pill {
    background: #050505;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 100px;
    padding: 12px 40px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 1);
}

body.mystic-mode .nav-pill li a {
    text-decoration: none;
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: block;
}

body.mystic-mode .nav-pill li a:hover,
body.mystic-mode .nav-pill li a.active {
    color: rgba(185, 28, 28, 0.9);
}

/* Right CTA - The "Get In Touch" Button */
.nav-cta {
    text-decoration: none;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;

    /* The Glow Effect */
    border: 1px solid rgba(40, 60, 255, 0.3);
    box-shadow: 0 0 15px rgba(20, 40, 100, 0.3), inset 0 0 10px rgba(20, 40, 100, 0.2);
}

.nav-cta:hover {
    border-color: rgba(60, 80, 255, 0.6);
    box-shadow: 0 0 25px rgba(30, 60, 200, 0.5), inset 0 0 15px rgba(30, 60, 200, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* Premium Theme Toggle Button - Apple Style */
body.premium-mode .nav-theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(237, 237, 237, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

body.premium-mode .nav-theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

body.premium-mode .nav-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 4px 16px rgba(20, 184, 166, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.premium-mode .nav-theme-toggle:hover::before {
    width: 100px;
    height: 100px;
}

body.premium-mode .nav-theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

body.premium-mode .nav-theme-toggle i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Mystic Mode Theme Toggle */
body.mystic-mode .nav-theme-toggle {
    background: rgba(74, 4, 4, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(185, 28, 28, 0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.4);
}

body.mystic-mode .nav-theme-toggle:hover {
    background: rgba(139, 0, 0, 0.3);
    color: rgba(220, 38, 38, 1);
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

/* ===================================
   NAVIGATION ACTION BUTTONS (PREMIUM MODE)
   Glassmorphic Resume & GitHub buttons
   =================================== */

/* Container Spacing */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Premium Mode Action Buttons */
body.premium-mode .nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(237, 237, 237, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Hover Glow Effect */
body.premium-mode .nav-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

body.premium-mode .nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 4px 16px rgba(20, 184, 166, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.premium-mode .nav-action-btn:hover::before {
    width: 100px;
    height: 100px;
}

body.premium-mode .nav-action-btn:active {
    transform: translateY(0) scale(0.95);
}

body.premium-mode .nav-action-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Hide in Mystic Mode */
body.mystic-mode .nav-action-btn {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }

    body.premium-mode .nav-action-btn {
        width: 40px;
        height: 40px;
    }

    body.premium-mode .nav-action-btn i {
        font-size: 16px;
    }
}

/* ===================================
   MYSTIC MODE: HORIZONTAL RITUAL NAVIGATION
   Compact, Premium, Elite Horror
   =================================== */

/* Hide standard nav in Mystic mode, show in Premium */
body.mystic-mode .nav-pill {
    display: none;
}

body.premium-mode .mystic-horizontal-nav {
    display: none;
}

/* Horizontal Navigation Container */
.mystic-horizontal-nav {
    display: none;
    position: fixed;
    top: 30px;
    right: 160px; /* Positioned left of theme toggle */
    z-index: 10004;
}

body.mystic-mode .mystic-horizontal-nav {
    display: block;
}

/* Ritual Trigger (Compact Sigil) */
.ritual-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 18, 21, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(122, 22, 34, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ritual-trigger:hover {
    background: rgba(17, 18, 21, 0.4);
    border-color: rgba(122, 22, 34, 0.5);
    transform: scale(1.05);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(122, 22, 34, 0.2);
}

.ritual-trigger.active {
    background: rgba(122, 22, 34, 0.15);
    border-color: rgba(122, 22, 34, 0.6);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.7),
        0 0 24px rgba(122, 22, 34, 0.3),
        inset 0 0 12px rgba(122, 22, 34, 0.1);
}

/* Ritual Sigil */
.ritual-sigil {
    font-size: 18px;
    color: #9A9A9A;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(122, 22, 34, 0.3));
}

.ritual-trigger:hover .ritual-sigil {
    color: #CFCFCF;
    transform: rotate(90deg);
    filter: drop-shadow(0 0 12px rgba(122, 22, 34, 0.5));
}

.ritual-trigger.active .ritual-sigil {
    color: rgba(122, 22, 34, 0.9);
    transform: rotate(180deg);
    filter: drop-shadow(0 0 16px rgba(122, 22, 34, 0.6));
}

/* Horizontal Menu Bar (Expands to Right) */
.ritual-horizontal-bar {
    position: absolute;
    top: 0;
    right: 54px; /* Start from right of trigger */
    height: 44px;
    width: 0;
    overflow: hidden;
    background: rgba(17, 18, 21, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(122, 22, 34, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}

.ritual-horizontal-bar.expanded {
    width: 480px;
    opacity: 1;
    pointer-events: auto;
}

/* Navigation Items Container */
.ritual-nav-items {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 0;
}

/* Individual Navigation Links */
.ritual-nav-link {
    position: relative;
    text-decoration: none;
    padding: 8px 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered fade-in when expanded */
.ritual-nav-link[data-index="0"] {
    transition-delay: 0.1s;
}

.ritual-nav-link[data-index="1"] {
    transition-delay: 0.2s;
}

.ritual-nav-link[data-index="2"] {
    transition-delay: 0.3s;
}

.ritual-nav-link[data-index="3"] {
    transition-delay: 0.4s;
}

.ritual-horizontal-bar.expanded .ritual-nav-link {
    opacity: 1;
    transform: translateX(0);
}

/* Link Text */
.ritual-link-text {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #9A9A9A;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Blood Glow */
.ritual-nav-link:hover .ritual-link-text {
    color: #CFCFCF;
}

.ritual-nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(122, 22, 34, 0.6);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-nav-link:hover::after {
    transform: scaleX(1);
}

/* Active State */
.ritual-nav-link.active .ritual-link-text {
    color: rgba(122, 22, 34, 0.95);
    text-shadow: 0 0 8px rgba(122, 22, 34, 0.4);
}

.ritual-nav-link.active::after {
    transform: scaleX(1);
    background: rgba(122, 22, 34, 0.8);
    box-shadow: 0 0 8px rgba(122, 22, 34, 0.3);
}

/* Blood Mist Effect on Click */
.ritual-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 22, 34, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.ritual-nav-link:active::before {
    width: 60px;
    height: 60px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mystic-horizontal-nav {
        top: 20px;
        right: 100px;
    }

    .ritual-horizontal-bar.expanded {
        width: 320px;
    }

    .ritual-nav-items {
        padding: 0 12px;
        gap: 0;
    }

    .ritual-nav-link {
        padding: 8px 12px;
    }

    .ritual-link-text {
        font-size: 11px;
    }
}

/* ===================================
   OLD KNIFE NAVIGATION (HIDDEN)
   =================================== */

/* Hide old knife navigation */
.ritual-knife-nav {
    display: none !important;
}
    transition: filter 0.3s ease;
}

.knife-container:hover .ceremonial-knife {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

/* Blade sharpening on hover */
.knife-container:hover .blade-edge {
    opacity: 1;
}

.knife-container:hover .blade-tip {
    fill: #3A3E44;
}

/* Knife State Label */
.knife-state-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #9A9A9A;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.knife-container:hover .knife-state-label {
    color: #CFCFCF;
    opacity: 1;
}

/* Incision Line (appears when knife pierces) */
.incision-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(122, 22, 34, 0.4) 20%,
        rgba(122, 22, 34, 0.6) 50%,
        rgba(122, 22, 34, 0.4) 80%,
        transparent 100%);
    opacity: 0;
    z-index: 999;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.incision-line.active {
    width: 300px;
    opacity: 1;
}

/* Ritual Menu Overlay */
.ritual-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 3, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Ritual Menu Items */
.ritual-menu-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.ritual-menu-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ritual-menu-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.ritual-menu-item:hover {
    transform: translateY(-4px);
}

/* Menu Text */
.menu-ritual-text {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #E0E0E0;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
}

.ritual-menu-item:hover .menu-ritual-text {
    color: #FFFFFF;
    letter-spacing: 0.15em;
}

/* Menu Subtext */
.menu-ritual-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #7A1622;
    text-transform: uppercase;
    opacity: 0.7;
}

.ritual-menu-item:hover .menu-ritual-subtext {
    opacity: 1;
    color: #8B1F2E;
}

/* Blood Drips Container */
.blood-drips-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Individual Blood Drip */
.blood-drip {
    position: absolute;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg,
        rgba(122, 22, 34, 0.35) 0%,
        rgba(122, 22, 34, 0.25) 50%,
        rgba(122, 22, 34, 0.15) 100%);
    opacity: 0;
    animation: blood-fall 2s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes blood-fall {
    0% {
        height: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        height: 20px;
    }
    50% {
        height: 60px;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        height: 80px;
        opacity: 0;
    }
}

/* Blood Streak (left on incision) */
.blood-streak {
    position: absolute;
    height: 1px;
    background: rgba(122, 22, 34, 0.15);
    opacity: 0;
    animation: streak-fade 3s ease-out forwards;
}

@keyframes streak-fade {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ceremonial-knife {
        width: 100px;
        height: 24px;
    }

    .knife-state-label {
        font-size: 8px;
    }

    .menu-ritual-text {
        font-size: 32px;
    }

    .ritual-menu-items {
        gap: 30px;
    }
}

/* Mystic Mode Theme Toggle */
body.mystic-mode .nav-theme-toggle {
    background: rgba(74, 4, 4, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(185, 28, 28, 0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.4);
}

body.mystic-mode .nav-theme-toggle:hover {
    background: rgba(139, 0, 0, 0.3);
    color: rgba(220, 38, 38, 1);
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

#sidemenu li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

#sidemenu .fa-times {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    transition: var(--transition-smooth);
}

#sidemenu .fa-times:hover {
    color: var(--accent-teal);
    transform: rotate(90deg);
}

#sidemenu li a:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 15px rgba(0, 255, 210, 0.6);
}

.fa-bars {
    display: block;
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
    color: #fff;
    transition: var(--transition-smooth);
}

.fa-bars:hover {
    color: var(--accent-teal);
    transform: scale(1.1);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    cursor: pointer;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* --- Reference Match Hero Styling --- */
/* --- Premium Architect Hero Section --- */
.madison-full-screen {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #000;
    /* Denser, 3D Cinematic Vignette */
    background-image:
        radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0.8) 0%, transparent 60%),
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.01) 0%, transparent 40%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 10;
}

#madison-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Background Texture / Noise */
.madison-full-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

/* Depth Glow */
.madison-full-screen::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.madison-overlay-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* App Icon Style from Reference */
.hero-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-icon-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    border-radius: 12px;
}

/* Depth Glow behind icon */
.hero-icon-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(0, 255, 210, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

/* Badge Style */
.hero-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 24px;
    border-radius: 100px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ffd2;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffd2;
}

.badge-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-cool-gray);
}

/* Authority Badges */
.hero-authority-signals {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    opacity: 0.6;
}

.auth-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-cool-gray);
    position: relative;
    font-weight: 500;
}

.auth-badge:not(:last-child)::after {
    content: "•";
    margin-left: 20px;
    opacity: 0.3;
}

/* Elegant Name Serif */
.hero-name-serif {
    font-family: var(--header-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--accent-teal);
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Main Heading: Expert Tone */
.hero-heading.authority-style {
    font-family: var(--header-sans);
    font-size: clamp(48px, 10vw, 84px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.05em;
    color: var(--text-off-white);
    margin-bottom: 30px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Subtle light-shift transition */
    background: linear-gradient(135deg, #fff 0%, #a1a1a1 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lightShift 8s ease-in-out infinite;
}

@keyframes lightShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.heading-systems {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #00ffd2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    filter: drop-shadow(0 0 20px rgba(0, 255, 210, 0.15));
}

.hero-subheading.authority-sub {
    font-size: 20px;
    color: var(--text-cool-gray);
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Authority CTAs */
.hero-ctas.authority-ctas {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.btn-authority-primary {
    background: #111 !important;
    /* Obsidian Base */
    color: #fff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
}

.btn-authority-primary:hover {
    transform: translateY(-3px);
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-authority-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    background: transparent !important;
}

.btn-authority-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #fff !important;
    transform: translateY(-5px);
}

/* Hide legacy columns and Portrait for this specific view if needed */
.madison-left-column,
.madison-right-column,
.madison-portrait-container,
.madison-fluid-bg,
.madison-hey,
.madison-there {
    display: none !important;
}

.madison-drip-break {
    flex-basis: 100%;
    height: 0;
}

.madison-drip-char {
    display: inline-block;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);

    background: linear-gradient(to bottom, #6b4f2b 0%, #c97f5e 10%, transparent 15%);
    background-size: 100% 1000%;
    background-position: 0 100%;
    background-clip: text;
    -webkit-background-clip: text;

    animation: chocolate-drip-sequential 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.madison-drip-char::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

@keyframes chocolate-drip-sequential {
    0% {
        background-position: 0 100%;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    }

    100% {
        background-position: 0 0%;
        -webkit-text-stroke: 0px transparent;
        color: transparent;
        /* Keep background-clip visible */
    }
}



.madison-right-column {
    flex-basis: 32%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.chocolate-drop-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    /* Slightly smaller */
    font-weight: 300;
    /* Thinner */
    line-height: 1.6;
    text-align: right;
    text-transform: uppercase;
    color: #bbb;
    /* Subtler gray */
    max-width: 320px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- Chocolate Drops Animation --- */
.chocolate-char {
    display: inline-block;
    position: relative;
    animation: chocolate-drip 1.2s cubic-bezier(0.6, 0, 0.4, 1) forwards;
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes chocolate-drip {
    0% {
        opacity: 0;
        transform: translateY(-20px) scaleY(1.5);
    }

    40% {
        opacity: 1;
        transform: translateY(5px) scaleY(0.8);
    }

    70% {
        transform: translateY(-2px) scaleY(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        color: #f0f0f0;
        /* Pearl Silver Drop */
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Scroll Indicator Refinement */
.madison-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 15;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.madison-scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.madison-scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
}

/* Mobile Responsiveness for Madison Hero */
@media (max-width: 992px) {
    .madison-overlay-content {
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 50px 5%;
        text-align: center;
    }

    .madison-left-column,
    .madison-right-column {
        flex-basis: auto;
        align-items: center;
        width: 100%;
    }

    .madison-portrait-container {
        width: 50%;
        height: 40%;
        bottom: 20%;
    }

    .chocolate-drop-text {
        text-align: center;
        max-width: 100%;
    }

    #madison-name-main {
        font-size: clamp(24px, 8vw, 50px);
    }

    .iam-text {
        font-size: 40px;
    }
}

/* --- About Section Refinement (Mode-1) --- */
body.premium-mode .about-col-1 {
    display: none;
}

body.premium-mode .about-col-2 {
    flex-basis: 100%;
}

/* --- Mode-2 Visibility Refinement --- */
body.mystic-mode .madison-full-screen,
body.mystic-mode .elite-hero-section {
    display: none !important;
}

body.premium-mode #mystic-hero {
    display: none !important;
}

/* --- Cinematic Laptop & Madison Hero --- */
.laptop-container {
    display: none;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    background: radial-gradient(circle at center, #111 0%, #000 70%);
    overflow: hidden;
}

body.premium-mode .laptop-container {
    display: flex;
}

.laptop-wrapper {
    position: relative;
    width: 800px;
    height: 520px;
    transform-style: preserve-3d;
    transition: transform 1.5s var(--transition-smooth);
}

.laptop-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 380px;
    background: #222;
    border-radius: 12px 12px 0 0;
    transform-origin: bottom;
    transform: rotateX(0deg);
    /* Start closed, animate to -110deg */
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    left: 50%;
    margin-left: -300px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-lid.open {
    transform: rotateX(-110deg);
}

/* --- Fluid Background Animation --- */
/* --- Fluid Background Animation (Mode-1) --- */
.madison-fluid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Ensure it is behind content (z-10) but visible */
    background: #000;
    /* Fallback */
    overflow: hidden;
}

/* 1. The Liquid Gradient Blob */
.madison-fluid-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Deep Glossy Gradients: Chocolate/Brown + Dark Blue + Black */
    background: radial-gradient(circle at 50% 50%,
            rgba(70, 30, 20, 0.5) 0%,
            rgba(20, 30, 50, 0.4) 30%,
            rgba(0, 0, 0, 1) 70%);
    filter: blur(60px);
    opacity: 0.8;
    animation: glossy-flow 15s infinite alternate ease-in-out;
}

@keyframes glossy-flow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5%, 5%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 8%) scale(0.95);
    }

    100% {
        transform: translate(2%, -5%) scale(1.05);
    }
}

/* 2. The Glossy Sheen Overlay */
.madison-fluid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: glossy-shine 8s infinite linear;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes glossy-shine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.laptop-screen {
    width: 96%;
    height: 94%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
}

.laptop-base {
    position: absolute;
    bottom: -20px;
    left: 50%;
    margin-left: -310px;
    width: 620px;
    height: 20px;
    background: linear-gradient(to bottom, #444, #111);
    border-radius: 4px 4px 12px 12px;
    z-index: 1;
}

/* --- D.Nova Layout Inside Screen --- */
.hero-dnova {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    /* Light theme logic like screenshot */
    display: flex;
    flex-direction: column;
    color: #111;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.dnova-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.dnova-logo {
    color: #111;
    font-weight: 800;
}

.dnova-nav {
    display: flex;
    gap: 20px;
}

.dnova-nav a {
    text-decoration: none;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.3s;
}

.dnova-nav a:hover {
    color: #111;
}

.dnova-book {
    text-decoration: none;
    color: #111;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #111;
    padding: 5px 12px;
    border-radius: 20px;
}

.dnova-main {
    display: flex;
    flex-grow: 1;
    position: relative;
}

.dnova-sidebar {
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.dnova-sidebar span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dnova-body {
    flex-grow: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
}

.dnova-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dnova-hero-text h1 {
    font-size: 100px;
    font-weight: 400;
    line-height: 0.8;
    margin-bottom: 20px;
    letter-spacing: -3px;
    color: #111 !important;
}

.dnova-hero-text p {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

.dnova-footer-nav {
    margin-top: 50px;
}

.dnova-footer-nav a {
    text-decoration: none;
    color: #111;
    font-size: 10px;
    font-weight: 600;
}

.dnova-profile {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
}

.dnova-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.9;
}

/* --- Mystic Mode Hero --- */
#mystic-hero {
    display: none;
}

body.mystic-mode #mystic-hero {
    display: flex;
}

/* --- Ghost 3D Animation (Mode-2) --- */
@keyframes ghost-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.4),
            0 0 20px rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
        text-shadow:
            -3px -3px 0px rgba(0, 255, 255, 0.4),
            /* Cyan shift */
            3px 3px 0px rgba(255, 0, 0, 0.4),
            /* Red shift */
            0 0 20px rgba(255, 255, 255, 0.6);
        /* Glow */
    }
}

body.mystic-mode #madison-name-main {
    animation: ghost-float 4s ease-in-out infinite;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    /* Ghostly white */
    mix-blend-mode: overlay;
    /* Blends with background for spectral feel */
}

body.mystic-mode #madison-name-main .name-line {
    display: block;
    /* Ensure structure holds */
}

.btn-rounded {
    border-radius: 50px !important;
}

.madison-hero-ctas {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.madison-hero-ctas .btn {
    padding: 16px 40px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Apple-Style Glossy Manifest */
/* Dark Theme Glassy-Glossy Button */
.btn-glossy {
    position: relative;
    overflow: hidden;
    border-radius: 50px !important;

    /* Dark Gradient Base: Charcoal/Midnight to Darker Black/Navy */
    background: linear-gradient(180deg, #3a3a45 0%, #151520 100%);
    color: #fff !important;

    /* Thin Silver Border (1-2px subtle) */
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* Soft Shadow for elevation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

    transition: all 0.3s ease;
    z-index: 1;
}

/* --- Mode-2 Horror Buttons (Scary Design) --- */
body.mystic-mode .btn,
body.mystic-mode .btn-glossy {
    background: linear-gradient(180deg, #200000 0%, #000000 100%) !important;
    border: 1px solid #8b0000 !important;
    color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2) !important;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.6);
    letter-spacing: 2px;
    border-radius: 4px !important;
    /* Sharper edges for horror feel? Or keep rounded? Plan said maybe distorted. I'll stick to slightly rounded but less than pill if possible, or override. Let's force slight edge. */
}

body.mystic-mode .btn:hover,
body.mystic-mode .btn-glossy:hover {
    background: #400000 !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6) !important;
    text-shadow: 0 0 10px red;
    animation: horror-pulse 0.5s infinite alternate;
    transform: scale(1.05) rotate(1deg);
    /* Unsettling movement */
}

@keyframes horror-pulse {
    from {
        box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
    }
}

/* Glassy Shine Overlay (Top 1/4 - 1/2) */
.btn-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 50px 50px 100% 100%;
}

/* Interaction: Brighter gradient + Glow */
.btn-glossy:hover {
    transform: translateY(-2px);
    /* Slightly lighter gradient on hover */
    background: linear-gradient(180deg, #4a4a55 0%, #2a2a35 100%);
    border-color: rgba(255, 255, 255, 0.5);

    /* Glow effect */
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.6);

    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Remove old ::after sweep if present, or ensures it's overridden by not including it */

.btn-glossy-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-glossy-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow:
        0 10px 25px rgba(255, 255, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    /* High-fashion sharp edges */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-mustard);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 219, 88, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-mustard);
    color: var(--accent-mustard);
    transform: translateY(-3px);
}

/* --- Sections - Enhanced Typography --- */
.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 40px;
    font-family: var(--font-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

body.premium-mode .section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(94, 234, 212, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

body.premium-mode h1,
body.premium-mode h2 {
    letter-spacing: -0.03em;
}

body.premium-mode .elite-eyebrow {
    letter-spacing: 0.15em;
    font-weight: 600;
}

body.premium-mode .elite-main-heading {
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.container {
    padding: 80px 8%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Above background gradient */
}

/* Ensure all sections float above background in Premium mode */
body.premium-mode #header,
body.premium-mode .elite-hero-section,
body.premium-mode #about,
body.premium-mode #services,
body.premium-mode #portfolio,
body.premium-mode #contact {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Remove all section-specific pseudo-element backgrounds in Premium mode */
body.premium-mode #header::before,
body.premium-mode #header::after,
body.premium-mode .elite-hero-section::before,
body.premium-mode .elite-hero-section::after,
body.premium-mode #about::before,
body.premium-mode #about::after,
body.premium-mode #portfolio::before,
body.premium-mode #portfolio::after,
body.premium-mode #contact::before,
body.premium-mode #contact::after {
    display: none !important;
}

/* --- About Section Redesign --- */
#about {
    padding: var(--section-spacing) 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 210, 0.03) 0%, transparent 70%);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-hero {
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.centered-title {
    font-size: clamp(42px, 8vw, 72px);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text-hero {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.about-content-wrapper {
    margin-top: 60px;
}

.tab-titles-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-titles {
    display: flex;
    gap: 40px;
    padding: 8px 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-links {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 0;
}

.tab-links:hover {
    color: var(--text-primary);
}

.tab-links.active-link {
    color: var(--accent-teal);
    position: relative;
}

.tab-links.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
    border-radius: 2px;
}

/* --- Skills Grid --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skill-card {
    padding: 40px;
    text-align: left;
    border-radius: var(--border-radius-lg);
}

.skill-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 210, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-teal);
    font-size: 20px;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #fff;
}

.skill-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.skill-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), #00aaff);
    border-radius: 10px;
}

/* --- Timeline --- */
.timeline-container {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-list {
    list-style: none;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-teal), transparent);
    opacity: 0.3;
}

.timeline-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 40px;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
}

.timeline-date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #fff;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-muted);
}

.tab-contents {
    display: none;
    animation: fadeInSlide 0.6s var(--transition-smooth) forwards;
}

.tab-contents.active-tab {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- Services --- */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    /* More rounded Apple-style corners */
    transition: transform 0.6s var(--transition-smooth), background 0.6s var(--transition-smooth), border-color 0.6s var(--transition-smooth), box-shadow 0.6s var(--transition-smooth);
    border: var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.service-card i {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-primary);
    /* Consistent white icons */
    opacity: 0.9;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Brighter on hover */
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover i {
    color: #fff;
    opacity: 1;
}

/* --- Mystic Mode Card Enhancements --- */
body.mystic-mode .service-card,
body.mystic-mode .work {
    border: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s var(--transition-smooth);
}

body.mystic-mode .service-card:hover,
body.mystic-mode .work:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

@keyframes card-blood-pulse {
    0% {
        border-color: rgba(139, 0, 0, 0.3);
    }

    50% {
        border-color: rgba(255, 0, 0, 0.6);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    }

    100% {
        border-color: rgba(139, 0, 0, 0.3);
    }
}

body.mystic-mode .service-card {
    animation: card-blood-pulse 4s infinite alternate ease-in-out;
}

/* --- Portfolio Premium Redesign --- */
#portfolio {
    background: radial-gradient(circle at top center, rgba(30, 30, 40, 0.4) 0%, rgba(0, 0, 0, 1) 80%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ===================================
   MYSTIC MODE: HAUNTED ARTIFACT ARCHIVE
   Premium, Cinematic, Elite Horror
   =================================== */

/* Hide/Show based on mode */
body.mystic-mode .premium-projects-section {
    display: none;
}

body.premium-mode .mystic-artifact-archive {
    display: none;
}

/* Artifact Archive Container */
.mystic-artifact-archive {
    padding: 120px 0;
    position: relative;
    background: transparent;
}

.mystic-artifact-archive .container {
    max-width: 1200px;
    position: relative;
}

/* Ambient Grain Overlay */
.ambient-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: grain-drift 40s linear infinite;
}

@keyframes grain-drift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2%, -2%); }
    50% { transform: translate(-2%, 2%); }
    75% { transform: translate(3%, -1%); }
    100% { transform: translate(0, 0); }
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 100px;
}

.archive-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #CFCFCF;
    margin: 0 0 20px 0;
    text-transform: lowercase;
    position: relative;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7A1622, transparent);
    opacity: 0.6;
}

.archive-intro {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #9A9A9A;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Artifact Grid */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 60px;
    row-gap: 80px;
    margin-bottom: 80px;
}

/* Individual Artifact Card */
.artifact-card {
    position: relative;
    background: rgba(17, 18, 21, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #1C1F24;
    border-radius: 10px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Staggered reveal animation */
.artifact-card.summoned {
    opacity: 1;
    transform: translateY(0);
}

/* Irregular vertical offsets for ritual asymmetry */
.artifact-card[data-artifact="1"] {
    margin-top: 0;
}

.artifact-card[data-artifact="2"] {
    margin-top: 40px;
}

.artifact-card[data-artifact="3"] {
    margin-top: -20px;
}

.artifact-card[data-artifact="4"] {
    margin-top: 30px;
}

/* Shadow Breathing Effect */
.artifact-shadow-breath {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(122, 22, 34, 0.08) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: shadow-breathe 28s ease-in-out infinite;
}

@keyframes shadow-breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.4;
    }
}

/* Hover State */
.artifact-card:hover {
    background: rgba(17, 18, 21, 0.28);
    border-color: #2A2E34;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(207, 207, 207, 0.1);
    transform: translateY(-8px) rotateX(1deg);
}

.artifact-card:hover .artifact-shadow-breath {
    animation-duration: 12s;
}

/* Edge Glow on Hover */
.artifact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(207, 207, 207, 0.2) 0%,
        rgba(122, 22, 34, 0.1) 50%,
        rgba(207, 207, 207, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* Artifact Content */
.artifact-content {
    position: relative;
    z-index: 1;
}

/* Artifact Header */
.artifact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.artifact-year {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #7A1622;
    text-transform: uppercase;
    opacity: 0.8;
}

.artifact-sigil {
    font-size: 16px;
    color: #9A9A9A;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.artifact-card:hover .artifact-sigil {
    color: #CFCFCF;
    opacity: 1;
    transform: rotate(90deg);
}

/* Artifact Name */
.artifact-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #CFCFCF;
    margin: 0 0 18px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.artifact-card:hover .artifact-name {
    color: #E0E0E0;
}

/* Artifact Description */
.artifact-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #BEBEBE;
    margin-bottom: 24px;
    opacity: 0.85;
}

/* Tech Marks */
.artifact-tech-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-mark {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #BEBEBE;
    background: rgba(190, 190, 190, 0.06);
    border: 1px solid rgba(190, 190, 190, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.artifact-card:hover .tech-mark {
    background: rgba(122, 22, 34, 0.08);
    border-color: rgba(122, 22, 34, 0.2);
    color: #CFCFCF;
}

/* Blood Line Accent */
.artifact-blood-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(122, 22, 34, 0.3) 50%,
        transparent 100%);
    margin: 24px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.artifact-card:hover .artifact-blood-line {
    opacity: 1;
}

/* Artifact Link */
.artifact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #9A9A9A;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.artifact-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7A1622;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.artifact-card:hover .artifact-link {
    color: #CFCFCF;
}

.artifact-card:hover .artifact-link::before {
    width: 100%;
}

.link-arrow {
    transition: transform 0.3s ease;
}

.artifact-card:hover .link-arrow {
    transform: translateX(4px);
}

/* Archive Footer */
.archive-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(122, 22, 34, 0.15);
}

.archive-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #9A9A9A;
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.4s ease;
    position: relative;
}

.archive-cta::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7A1622, transparent);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-cta:hover {
    color: #CFCFCF;
}

.archive-cta:hover::after {
    width: 100%;
}

.cta-sigil {
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.archive-cta:hover .cta-sigil {
    opacity: 1;
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mystic-artifact-archive {
        padding: 80px 0;
    }

    .archive-header {
        margin-bottom: 60px;
    }

    .artifact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .artifact-card {
        padding: 30px;
    }

    /* Remove irregular offsets on mobile */
    .artifact-card[data-artifact="1"],
    .artifact-card[data-artifact="2"],
    .artifact-card[data-artifact="3"],
    .artifact-card[data-artifact="4"] {
        margin-top: 0;
    }

    .artifact-name {
        font-size: 24px;
    }

    .artifact-description {
        font-size: 14px;
    }
}

/* --- Portfolio Premium Redesign --- */
#portfolio {
    background: radial-gradient(circle at top center, rgba(30, 30, 40, 0.4) 0%, rgba(0, 0, 0, 1) 80%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 50px;
    margin-top: 60px;
    perspective: 2000px;
    /* Stronger perspective for 3D feel */
}

/* Base Card structure */
.portfolio-card {
    position: relative;
    height: 500px;
    cursor: pointer;
    background: transparent;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

/* Expansion/Flip State handled via class */
.portfolio-card.is-expanded .card-inner {
    transform: rotateY(180deg);
}

/* Shared Face Properties */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    background: rgba(20, 20, 25, 0.7);
    transition: box-shadow 0.6s var(--transition-smooth), border-color 0.6s var(--transition-smooth);
}

/* Front Face */
.card-front {
    display: flex;
    flex-direction: column;
}

.card-image-box {
    width: 100%;
    height: 65%;
    overflow: hidden;
    position: relative;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-smooth);
}

.portfolio-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--header-sans);
}

.card-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-tech-stack {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.card-tech-stack i {
    font-size: 18px;
    color: var(--accent-teal);
    opacity: 0.8;
}

/* Back Face (Detailed View) */
.card-back {
    transform: rotateY(180deg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 15, 0.95);
    border-color: var(--accent-teal);
}

.card-back h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.card-back .detail-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e1e1e6;
    margin-bottom: 30px;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    border-left: 2px solid var(--accent-teal);
    padding-left: 15px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.card-links {
    display: flex;
    gap: 15px;
}

.card-links .btn {
    padding: 12px 24px;
    font-size: 13px;
}

/* Hover Elevations */
.portfolio-card:hover .card-face {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 210, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Masking off legacy styles if they clash */
.work-list,
.work,
.work img,
.layer {
    display: none !important;
}

/* --- Portfolio --- */
/* The original .work-list, .work, .work img, .layer styles are now effectively replaced/hidden by the new .portfolio-grid and .portfolio-card structure. */
/* The following styles are part of the original .work section that is now being replaced/hidden. */
/* .work {
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: var(--card-border);
    background: var(--card-bg);
    transition: transform 0.6s var(--transition-smooth), box-shadow 0.6s var(--transition-smooth), border-color 0.6s var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.work:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
    opacity: 0.8;
}

.work:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}
*/

.layer {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.4s var(--transition-smooth);
    pointer-events: none;
}

.work:hover .layer {
    opacity: 1;
    pointer-events: auto;
}

.layer h3 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--accent-mustard);
    letter-spacing: 1px;
}

.layer p {
    font-size: 14px;
    color: #eee;
    line-height: 1.6;
    margin-bottom: 25px;
}

.layer a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: var(--accent-teal);
    padding: 10px 24px;
    border-radius: 4px;
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layer a:hover {
    transform: scale(1.1);
    background: #fff;
}

/* --- Contact Section Overhaul (Mode-1) --- */
/* --- Contact Section (Original Let's Talk) --- */
#contact {
    position: relative;
    padding: 100px 0;
    background: #000;
    /* Pure Black */
    color: #fff;
    z-index: 1;
    overflow: hidden;
}

.contact-container-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-right {
    flex: 1.5;
    min-width: 300px;
}

.section-title {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.contact-text {
    font-size: 16px;
    color: #aeaeae;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 80%;
}

.contact-info p {
    margin-bottom: 10px;
    color: #fff;
    font-size: 16px;
}

.social-icons {
    margin: 30px 0;
}

.social-icons a {
    color: #ababab;
    font-size: 22px;
    margin-right: 20px;
    transition: 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-right form {
    width: 100%;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 10px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

.contact-right button {
    margin-top: 20px;
    cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-container-glass {
        padding: 30px;
    }

    .row {
        flex-direction: column;
    }

    .section-title {
        font-size: 40px;
    }
}

/* Text Colors override for Dark Mode contact */
.contact-left .section-title,
.contact-left p,
.contact-info p,
.social-icons a {
    color: #fff !important;
}

/* Form Styles for Dark Theme */
.contact-right form input,
.contact-right form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact-right form input:focus,
.contact-right form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4da6ff;
    /* Light blue accent */
}

/* --- Senior Intent Cinematic Contact Section --- */
#contact {
    background: #0B0B0F;
    background-image:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Film Grain Noise */
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

.premium-contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.section-title.centered {
    font-family: var(--header-sans);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    font-size: clamp(36px, 6vw, 64px);
    color: var(--text-off-white);
}

.contact-subtext {
    color: var(--text-cool-gray);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 70px;
    line-height: 1.6;
    font-weight: 300;
}

.contact-form-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Consistent approachable border */
    border-radius: 40px;
    padding: 80px;
    transition: transform 0.8s var(--transition-smooth), box-shadow 0.8s var(--transition-smooth);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Softer, closer shadow */
}

/* Grounded Builder Variation */
.collaborative-builder-card {
    border-image: none !important;
}

.contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-group {
    margin-bottom: 35px;
    width: 100%;
    text-align: left;
}

.field-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-cool-gray);
    margin-bottom: 12px;
    font-weight: 600;
    opacity: 0.8;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 24px 28px;
    color: #fff;
    font-size: 17px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    -webkit-font-smoothing: antialiased;
}

.input-group input:focus,
.input-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.01);
}

.btn-authority-submit {
    width: 100%;
    margin-top: 20px;
    padding: 24px !important;
    background: #111 !important;
    /* Grounded Silver/Charcoal */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-off-white) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.4s var(--transition-smooth) !important;
    cursor: pointer;
}

.btn-authority-submit:hover {
    transform: translateY(-2px);
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.form-reassurance {
    margin-top: 25px;
    font-size: 12px;
    color: var(--text-cool-gray);
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.premium-social-info {
    margin-top: 100px;
}

.social-icons-premium {
    gap: 40px;
}

.social-icon-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.social-icon-item:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.copyright {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0.4;
    font-size: 13px;
}

/* --- Responsive --- */
@media only screen and (max-width: 600px) {
    nav .fa-bars {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-times {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .header-text h1 {
        font-size: 30px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
}

/* --- Horror Mode Atmosphere (Mode-2) --- */
.horror-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Behind main content */
    pointer-events: none;
}

body.mystic-mode .horror-overlay {
    display: block;
}

/* Film Grain */
.horror-noise {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noise-shift 0.5s steps(10) infinite;
    mix-blend-mode: overlay;
}

@keyframes noise-shift {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }
}

/* Rolling Fog */
.horror-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 200, 200, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(200, 200, 200, 0.03) 0%, transparent 50%);
    filter: blur(20px);
    animation: fog-drift 20s linear infinite;
    opacity: 0.6;
}

@keyframes fog-drift {
    0% {
        transform: translateX(-10%) translateY(0);
    }

    50% {
        transform: translateX(10%) translateY(-5%);
    }

    100% {
        transform: translateX(-10%) translateY(0);
    }
}

/* Vignette */
.horror-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, #000 100%);
    opacity: 0.8;
    animation: vignette-pulse 5s ease-in-out infinite alternate;
}

@keyframes vignette-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

/* Click Animation: Blood Drip */
.blood-drip {
    position: absolute;
    background: darkred;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: drip-fall 1s forwards;
    pointer-events: none;
    z-index: 10000;
}

@keyframes drip-fall {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
}

/* Floating Elements in Horror Mode */
body.mystic-mode .stat-item,
body.mystic-mode .service-card {
    animation: float-ghost 6s ease-in-out infinite;
}

@keyframes float-ghost {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Elite Charcoal Hero & Contact Implementation --- */

/* Signature & Logo Area - Premium Style */
body.premium-mode .elite-signature-box {
    display: none; /* Hidden in Premium mode */
}

body.premium-mode .elite-signature {
    font-size: var(--font-tiny);
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(237, 237, 237, 0.7);
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mystic Mode Signature */
body.mystic-mode .elite-signature {
    font-size: var(--font-tiny);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--signature-color);
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

body.mystic-mode .elite-signature-box {
    display: flex;
    align-items: center;
}

/* Hero Section */
.elite-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.elite-eyebrow {
    display: block;
    font-size: var(--font-eyebrow);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-eyebrow);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.elite-main-heading {
    font-size: var(--font-heading);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 32px;
    max-width: 720px;
}

/* Premium Mode: New Centered Hero Name - Reduced Size */
body.premium-mode .elite-hero-name {
    font-size: clamp(40px, 6vw, 72px); /* Reduced from 56-120px to 40-72px */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(237, 237, 237, 1) 0%,
        rgba(94, 234, 212, 0.9) 50%,
        rgba(237, 237, 237, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroNameFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes heroNameFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.premium-mode .elite-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hide Services Section in Premium Mode */
body.premium-mode #services {
    display: none;
}

.elite-subheading {
    font-size: var(--font-subheading);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 12px;
    font-weight: 400;
}

.elite-supporting-line {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 48px;
    font-weight: 400;
}

.elite-hero-ctas {
    display: flex;
    gap: 16px;
}

/* Premium Elite Buttons - Apple Style */
body.premium-mode .btn-elite-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000000 !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #E5E5E5 100%) !important;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

body.premium-mode .btn-elite-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(20, 184, 166, 0.1) 0%,
        rgba(20, 184, 166, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.premium-mode .btn-elite-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.premium-mode .btn-elite-primary:hover::before {
    opacity: 1;
}

body.premium-mode .btn-elite-primary:active {
    transform: translateY(0) scale(0.98);
}

body.premium-mode .btn-elite-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(237, 237, 237, 0.9) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.premium-mode .btn-elite-ghost::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(94, 234, 212, 0.2) 0%,
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

body.premium-mode .btn-elite-ghost:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(20, 184, 166, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.premium-mode .btn-elite-ghost:hover::after {
    width: 300px;
    height: 300px;
}

body.premium-mode .btn-elite-ghost:active {
    transform: translateY(0);
}

/* Mystic Mode Buttons (Keep darker style) */
body.mystic-mode .btn-elite-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #0E0F12 !important;
    background: linear-gradient(to bottom, #EDEDED, #CFCFCF) !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    border: none;
}

body.mystic-mode .btn-elite-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

body.mystic-mode .btn-elite-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #EDEDED !important;
    background: transparent !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.mystic-mode .btn-elite-ghost:hover {
    border-color: rgba(139, 0, 0, 0.5);
    background: rgba(74, 4, 4, 0.1) !important;
    transform: translateY(-2px);
}

/* Contact Section Implementation */
.elite-contact-wrapper {
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elite-contact-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
}

.elite-contact-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.elite-contact-subtext {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.elite-contact-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 64px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.elite-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.elite-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.elite-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.elite-input-group input,
.elite-input-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px 20px;
    color: #EDEDED;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.elite-input-group input:focus,
.elite-input-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.elite-submit-btn {
    width: 100%;
    margin-top: 12px;
}

.elite-form-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsiveness Checks */
@media (max-width: 1279px) {}

@media (max-width: 1023px) {
    .navbar-container {
        padding: 0 48px;
    }
}

@media (max-width: 767px) {
    .elite-signature-box {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 24px;
    }

    .elite-hero-section {
        text-align: center;
        justify-content: center;
        padding-top: 120px;
    }

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

    .elite-main-heading {
        font-size: clamp(40px, 12vw, 56px);
    }

    .elite-hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
    }

    .btn-elite-primary,
    .btn-elite-ghost {
        width: 100%;
        padding: 16px;
    }

    .elite-form-row {
        grid-template-columns: 1fr;
    }

    .elite-contact-card {
        padding: 40px 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ===================================
   PREMIUM MODE: COMPACT SAAS PROJECTS
   Apple / Google / Tesla Inspired
   =================================== */

/* Hide old MAANG section */
.maang-projects-section {
    display: none;
}

/* Premium Projects Container */
body.premium-mode .premium-projects-section {
    padding: 80px 0;
    background: #0B0D10;
    /* Ambient gradient for depth */
    background-image: radial-gradient(circle at 50% 50%, #1B1F26 0%, #0B0D10 60%);
    position: relative;
}

body.premium-mode .premium-projects-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Title */
.premium-projects-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-align: left;
    /* Match About section gradient */
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(94, 234, 212, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compact Grid Layout */
.premium-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Project Cards - Compact Glassmorphism */
.premium-project-card {
    position: relative;
    background: rgba(17, 20, 24, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

/* Scroll reveal animation */
.premium-project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.premium-project-card:hover {
    background: rgba(17, 20, 24, 0.28);
    border-color: rgba(209, 123, 58, 0.4);
    transform: translateY(-4px) scale(1.015);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(209, 123, 58, 0.15),
        0 0 16px rgba(209, 123, 58, 0.08);
}

/* Card Content */
.premium-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Project Header */
.premium-project-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.premium-project-year {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(209, 123, 58, 0.9);
    text-transform: uppercase;
}

/* Project Title */
.premium-project-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.premium-project-card:hover .premium-project-title {
    color: rgba(240, 161, 95, 1);
}

/* Project Description */
.premium-project-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #BEBEBE;
    margin: 0 0 12px 0;
    flex: 1;
}

/* Tech Tags */
.premium-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

.premium-tech-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(209, 123, 58, 0.95);
    background: rgba(209, 123, 58, 0.1);
    border: 1px solid rgba(209, 123, 58, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.premium-project-card:hover .premium-tech-tag {
    background: rgba(209, 123, 58, 0.15);
    border-color: rgba(209, 123, 58, 0.35);
    color: rgba(240, 161, 95, 1);
}

/* Project Link */
.premium-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #BEBEBE;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.premium-project-link:hover {
    color: rgba(240, 161, 95, 1);
}

.premium-link-arrow {
    transition: transform 0.3s ease;
}

.premium-project-card:hover .premium-link-arrow {
    transform: translateX(4px);
}

/* Projects Footer */
.premium-projects-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #BEBEBE;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.premium-footer-link:hover {
    color: rgba(240, 161, 95, 1);
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .premium-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    body.premium-mode .premium-projects-section {
        padding: 60px 0;
    }

    .premium-projects-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

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

    .premium-project-card {
        min-height: 260px;
        padding: 20px;
    }

    .premium-project-title {
        font-size: 18px;
    }

    .premium-project-description {
        font-size: 14px;
    }
}

/* --- MAANG-level Projects & Contact Styles (OLD - HIDDEN) --- */

/* Projects Section (Asymmetric & Subdued) */
.maang-projects-container {
    padding: 120px 0;
    max-width: 1040px;
}

.maang-section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 64px;
    letter-spacing: -0.01em;
}

.maang-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.maang-project-item {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.3s ease;
}

@media (min-width: 1024px) {
    .maang-project-item:nth-child(even) {
        align-self: flex-end;
        text-align: right;
    }

    .maang-project-item:nth-child(even) .project-header {
        flex-direction: row-reverse;
    }

    .maang-project-item:nth-child(even) .project-links {
        justify-content: flex-end;
    }
}

.project-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.project-year {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 520px;
}

@media (min-width: 1024px) {
    .maang-project-item:nth-child(even) .project-description {
        margin-left: auto;
    }
}

/* Tech Stack Badges */
.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.premium-mode .tech-badge {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.2);
    color: rgba(94, 234, 212, 0.95);
}

body.premium-mode .tech-badge:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

body.mystic-mode .tech-badge {
    background: rgba(74, 4, 4, 0.15);
    border-color: rgba(139, 0, 0, 0.3);
    color: rgba(185, 28, 28, 0.9);
    font-family: 'Crimson Pro', serif;
}

body.mystic-mode .tech-badge:hover {
    background: rgba(74, 4, 4, 0.25);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

@media (min-width: 1024px) {
    .maang-project-item:nth-child(even) .project-tech-stack {
        justify-content: flex-end;
    }
}

.project-links {
    display: flex;
    gap: 20px;
}

.text-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 237, 237, 0.2);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

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

.projects-footer {
    margin-top: 100px;
}

.maang-cta-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.maang-cta-link:hover {
    color: var(--text-primary);
}

/* --- PREMIUM MAANG CONTACT SECTION (Elite, High-End) --- */
/* Inspired by Apple, Linear, Stripe, Vercel */

#contact {
    background: #0B0D10;
    /* Ambient depth gradient */
    background-image: radial-gradient(circle at top center, rgba(20, 184, 166, 0.03) 0%, #0B0D10 50%);
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle animated gradient orb */
#contact::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float-orb 20s ease-in-out infinite;
    pointer-events: none;
}

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

/* Premium Contact Container */
body.premium-mode .maang-contact-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

body.premium-mode .maang-contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

/* Contact Header */
body.premium-mode .maang-contact-header {
    text-align: center;
    max-width: 640px;
}

body.premium-mode .maang-contact-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 20px;
    /* Subtle teal gradient accent */
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(94, 234, 212, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.premium-mode .maang-contact-supporting {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(181, 184, 188, 0.9);
    font-weight: 400;
    margin: 0;
}

/* Premium Glassmorphic Form Card */
body.premium-mode .maang-contact-form-box {
    width: 100%;
    max-width: 580px;
    background: rgba(17, 20, 24, 0.25);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.premium-mode .maang-contact-form-box:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(20, 184, 166, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(20, 184, 166, 0.2);
}

/* Form Styling */
body.premium-mode .maang-minimal-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

body.premium-mode .maang-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

body.premium-mode .maang-input-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(181, 184, 188, 0.8);
}

body.premium-mode .maang-input-group input,
body.premium-mode .maang-input-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-main);
}

body.premium-mode .maang-input-group input::placeholder,
body.premium-mode .maang-input-group textarea::placeholder {
    color: rgba(181, 184, 188, 0.4);
}

body.premium-mode .maang-input-group input:focus,
body.premium-mode .maang-input-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow:
        0 0 0 3px rgba(20, 184, 166, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

body.premium-mode .maang-input-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-main);
}

/* Premium Submit Button */
body.premium-mode .maang-submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000000;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E5E5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

body.premium-mode .maang-submit-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(20, 184, 166, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.premium-mode .maang-submit-btn:active {
    transform: translateY(0) scale(0.99);
}

/* Footer Microcopy */
body.premium-mode .maang-footer-microcopy {
    font-size: 13px;
    color: rgba(143, 148, 153, 0.8);
    text-align: center;
    margin-top: 24px;
    line-height: 1.5;
}

/* Copyright Footer */
body.premium-mode .maang-footer-copyright {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.premium-mode .maang-footer-copyright p {
    font-size: 13px;
    color: rgba(143, 148, 153, 0.6);
    letter-spacing: 0.02em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body.premium-mode .maang-contact-container {
        padding: 0 20px;
    }

    body.premium-mode .maang-contact-title {
        font-size: 32px;
    }

    body.premium-mode .maang-contact-form-box {
        padding: 32px 24px;
        border-radius: 20px;
    }

    body.premium-mode .maang-submit-btn {
        padding: 16px 28px;
    }
}

/* ===================================
   MYSTIC MODE: RITUAL SUMMONING CONTACT
   Elite Horror, Premium, Atmospheric
   =================================== */

/* Hide Premium Contact in Mystic Mode */
body.mystic-mode .premium-contact-section {
    display: none;
}

/* Show only in Mystic Mode */
body.premium-mode .mystic-contact-section {
    display: none;
}

body.mystic-mode .mystic-contact-section {
    display: block;
    position: relative;
    padding: 140px 0 100px 0;
    background: #020203; /* Pure abyss */
    overflow: hidden;
}

/* Atmospheric Effects Layer */
.ritual-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Fog Layers */
.ritual-fog {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

body.mystic-mode .ritual-fog-1 {
    background: radial-gradient(
        ellipse at 30% 40%,
        rgba(122, 22, 34, 0.08) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 60%,
        rgba(40, 10, 15, 0.06) 0%,
        transparent 50%
    );
    animation: fog-drift-1 40s ease-in-out infinite;
    opacity: 1;
}

body.mystic-mode .ritual-fog-2 {
    background: radial-gradient(
        ellipse at 60% 30%,
        rgba(60, 10, 15, 0.04) 0%,
        transparent 50%
    );
    animation: fog-drift-2 50s ease-in-out infinite reverse;
    opacity: 1;
}

@keyframes fog-drift-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5%, -5%) scale(1.1);
    }
    50% {
        transform: translate(-3%, 3%) scale(0.95);
    }
    75% {
        transform: translate(4%, -2%) scale(1.05);
    }
}

@keyframes fog-drift-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-4%, 4%) scale(1.08);
    }
    66% {
        transform: translate(3%, -3%) scale(0.97);
    }
}

/* Ritual Grain */
.ritual-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    animation: grain-shift 0.3s steps(3) infinite;
}

@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 2%); }
    50% { transform: translate(2%, -2%); }
    75% { transform: translate(-1%, -1%); }
    100% { transform: translate(0, 0); }
}

/* Content Container */
.ritual-contact-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Ritual Header */
.ritual-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.ritual-sigil-top {
    display: block;
    font-size: 28px;
    color: #7A1622;
    margin-bottom: 24px;
    opacity: 0.7;
    animation: sigil-pulse 4s ease-in-out infinite;
}

@keyframes sigil-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(122, 22, 34, 0.4);
    }
}

.ritual-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #CFCFCF;
    margin: 0 0 32px 0;
    text-transform: lowercase;
    position: relative;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.ritual-separator {
    width: 200px;
    height: 1px;
    margin: 0 auto 32px auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(122, 22, 34, 0.6) 50%,
        transparent 100%
    );
    position: relative;
}

.ritual-separator::before,
.ritual-separator::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #7A1622;
    opacity: 0.8;
}

.ritual-separator::before {
    left: -12px;
}

.ritual-separator::after {
    right: -12px;
}

.ritual-intro {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: #9A9A9A;
    letter-spacing: 0.05em;
    line-height: 1.6;
    opacity: 0.8;
}

/* Ritual Chamber (Form Container) */
.ritual-chamber {
    position: relative;
    background: rgba(17, 18, 21, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(122, 22, 34, 0.15);
    border-radius: 16px;
    padding: 64px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(207, 207, 207, 0.03);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-chamber:hover {
    border-color: rgba(122, 22, 34, 0.3);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(122, 22, 34, 0.08),
        inset 0 1px 0 rgba(207, 207, 207, 0.05);
}

/* Summoning Circle Decoration */
.summoning-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

.circle-outer,
.circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(122, 22, 34, 0.25);
}

.circle-outer {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: ritual-rotate 60s linear infinite;
}

.circle-inner {
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    animation: ritual-rotate 40s linear infinite reverse;
}

@keyframes ritual-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Ritual Form */
.ritual-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Input Groups */
.ritual-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Labels with Sigils */
.ritual-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.label-sigil {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #7A1622;
    opacity: 0.9;
    width: 24px;
    text-align: center;
}

.label-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A9A9A;
    opacity: 0.9;
}

/* Ritual Inputs */
.ritual-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(122, 22, 34, 0.15);
    border-radius: 8px;
    padding: 18px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #E0E0E0;
    outline: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.ritual-input::placeholder {
    color: rgba(154, 154, 154, 0.4);
    font-style: italic;
}

.ritual-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(122, 22, 34, 0.4);
    box-shadow:
        0 0 0 3px rgba(122, 22, 34, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.ritual-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Inter', sans-serif;
}

/* Blood Line Under Inputs */
.input-blood-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(122, 22, 34, 0.6) 50%,
        transparent 100%
    );
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ritual-input:focus ~ .input-blood-line {
    width: 100%;
}

/* Ritual Seal Button */
.ritual-seal-btn {
    position: relative;
    width: 100%;
    margin-top: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.seal-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 48px;
    background: linear-gradient(
        180deg,
        rgba(122, 22, 34, 0.15) 0%,
        rgba(60, 10, 15, 0.25) 100%
    );
    border: 1px solid rgba(122, 22, 34, 0.4);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(207, 207, 207, 0.05);
}

.seal-sigil {
    font-size: 18px;
    color: #7A1622;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.seal-text {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #CFCFCF;
    transition: all 0.4s ease;
}

/* Seal Glow Effect */
.seal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(122, 22, 34, 0.3) 0%,
        transparent 70%
    );
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.ritual-seal-btn:hover .seal-inner {
    background: linear-gradient(
        180deg,
        rgba(122, 22, 34, 0.25) 0%,
        rgba(60, 10, 15, 0.35) 100%
    );
    border-color: rgba(122, 22, 34, 0.6);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.8),
        0 0 32px rgba(122, 22, 34, 0.2),
        inset 0 1px 0 rgba(207, 207, 207, 0.08);
    transform: translateY(-3px);
}

.ritual-seal-btn:hover .seal-glow {
    width: 300px;
    height: 300px;
}

.ritual-seal-btn:hover .seal-sigil {
    opacity: 1;
    transform: scale(1.15);
    text-shadow: 0 0 12px rgba(122, 22, 34, 0.6);
}

.ritual-seal-btn:hover .seal-text {
    color: #E0E0E0;
    letter-spacing: 0.15em;
}

.ritual-seal-btn:active .seal-inner {
    transform: translateY(0) scale(0.98);
}

/* Footer Text */
.ritual-footer-text {
    margin-top: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #7A7A7A;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body.mystic-mode .mystic-contact-section {
        padding: 100px 0 80px 0;
    }

    .ritual-contact-container {
        padding: 0 20px;
    }

    .ritual-header {
        margin-bottom: 60px;
    }

    .ritual-title {
        font-size: 36px;
        letter-spacing: 0.1em;
    }

    .ritual-separator {
        width: 150px;
    }

    .ritual-chamber {
        padding: 40px 24px;
        border-radius: 12px;
    }

    .ritual-form {
        gap: 32px;
    }

    .ritual-input {
        padding: 16px 20px;
        font-size: 15px;
    }

    .seal-inner {
        padding: 20px 32px;
    }

    .seal-text {
        font-size: 14px;
    }

    .summoning-circle {
        width: 180%;
        height: 180%;
    }
}

/* Copyright Footer */
body.mystic-mode .maang-footer-copyright {
    background: #020203;
    border-top: 1px solid rgba(122, 22, 34, 0.15);
    padding: 32px 0;
    text-align: center;
}

body.mystic-mode .maang-footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(154, 154, 154, 0.5);
    letter-spacing: 0.08em;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {

    .maang-projects-container,
    .maang-contact-container {
        text-align: center;
        padding-left: 24px;
        padding-right: 24px;
    }

    .maang-project-item {
        align-items: center;
        margin: 0 auto;
    }

    .project-header {
        flex-direction: column;
        gap: 4px;
    }

    .project-links {
        justify-content: center;
    }

    .maang-contact-content {
        align-items: center;
    }

    .maang-contact-header {
        text-align: center;
    }

    .maang-contact-form-box {
        padding: 24px;
    }
}