/* Ghost in the Shell Inspired VFX Portfolio - Cyberpunk Aesthetic */
/* Default: Full animations ON | Recording Mode: Optimized when button clicked */

/* ══════════════════════════════════════════
   VCR-JP Custom Font
   ══════════════════════════════════════════ */
@font-face
{
    font-family: 'VCR-JP';
    src: url('/fonts/vcr-jp/vcr-jp.woff2') format('woff2'),url('/fonts/vcr-jp/vcr-jp.otf') format('opentype'), url('/fonts/vcr-jp/vcr-jp.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    size-adjust: 79%;
}

/* ══════════════════════════════════════════
   SAIBA-45 Custom Font
   ══════════════════════════════════════════ */
@font-face
{
    font-family: 'SAIBA-45';
    src: url('/fonts/saiba-45/SAIBA-45.woff2') format('woff2'),url('/fonts/saiba-45/SAIBA-45.otf') format('opentype'), url('/fonts/saiba-45/SAIBA-45.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face
{
    font-family: 'SAIBA-45-Outline';
    src: url('/fonts/saiba-45/SAIBA-45-Outline.woff2') format('woff2'),url('/fonts/saiba-45/SAIBA-45-Outline.otf') format('opentype'), url('/fonts/saiba-45/SAIBA-45-Outline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root
{
    /* Ghost in the Shell Color Palette */
    --ghost-cosmiclatte: #fff8e7;
    --ghost-white: #f8f8ff;
    --ghost-whiteice: #f8fffa;
    --ghost-cyan: #00ffff;
    --ghost-azureroyal: #0038a8;
    --ghost-wisteria: #d8a0dc;
    --ghost-purple: #9966ff;
    --ghost-indigo: #6f00ff;
    --ghost-purpleorchid: #C517FF;
    --ghost-green: #00ff41;
    --ghost-chartreuse: #7fff00;
    --ghost-springgreen: #00fa9a;
    --ghost-orange: #ff6600;
    --ghost-red: #ff0066;
    --ghost-cerisepink: #ec3b83;

    /* Matrix-style colors */
    --matrix-green: #00ff41;
    --matrix-dark-green: #003300;

    /* Professional Dark Theme */
    --bg-void: #000000;
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(26, 26, 46, 0.22);
    --bg-card: rgba(22, 33, 62, 0);
    --text-primary: #ffffff;
    --text-ghost: #e0e0ff;
    --text-secondary: #b3b3ff;
    --text-accent: #7a7aff;

    /* Ghost in the Shell Typography */
    --font-ghost: 'Orbitron', 'Courier New', monospace;
    --font-body : 'VCR-JP', 'Arial', sans-serif;


    /* Holographic Effects */
    --holo-1: #ff0080;
    --holo-2: #00ffff;
    --holo-3: #ffff00;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS FOR VFX LAYERS
   ============================================ */
.cyber-grid,
.scan-lines,
.hero-visual,
.floating-elements
{
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: var(--font-body), monospace;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   ANIMATED BACKGROUND EFFECTS (DEFAULT ON)
   ============================================ */

/* Cyber Grid - ANIMATED by default */
.cyber-grid
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(0,255,255,0.02) 1px, transparent 1px), radial-gradient(circle at 75% 75%, rgba(153,102,255,0.02) 1px, transparent 1px), linear-gradient(90deg, transparent 24px, rgba(0,255,65,0.03) 25px, rgba(0,255,65,0.03) 26px, transparent 27px), linear-gradient(0deg, transparent 2px, rgba(0,255,255,0.01) 3px);
    background-size: 50px 50px, 60px 60px, 100px 100px, 4px 4px;
    z-index: -2;
    animation: ghostGridMove 40s linear infinite; /* ANIMATED by default */
}

@keyframes ghostGridMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(25px, 0); }
    50% { transform: translate(50px, 25px); }
    75% { transform: translate(25px, 50px); }
    100% { transform: translate(0, 0); }
}

/* Scan Lines - ANIMATED by default */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,255,255,0.013) 3px, rgba(0,255,255,0.013) 6px);
    z-index: -1;
    animation: ghostScanLines 0.6s linear infinite; /* ANIMATED by default */
}

@keyframes ghostScanLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}



/* ============================================
   NAVIGATION
   ============================================ */
.cyber-nav
{
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 3px solid var(--ghost-cyan);
    border-image: linear-gradient(90deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-cyan)) 1;
    backdrop-filter: blur(8px); /* Blur ON by default */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.nav-container
{
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.logo
{
    font-family: var(--font-ghost), monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--ghost-cyan);
    text-shadow: 0 0 10px var(--ghost-cyan), 0 0 20px var(--ghost-cyan), 0 0 30px rgba(0, 255, 255, 0.5);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo::before
{
    content: '> ';
    color: var(--ghost-green);
    animation: logoBlink 2s infinite; /* ANIMATED by default */
}

@keyframes logoBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.nav-links
{
    display: flex;
    list-style: none;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link
{
    color: var(--text-ghost);
    text-decoration: none;
    font-family: var(--font-ghost);
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link::before
{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ghost-cyan), var(--ghost-purple));
    transition: width 0.3s ease;
}

.nav-link:hover
{
    color: var(--ghost-cyan);
    text-shadow: 0 0 15px var(--ghost-cyan);
}

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

.nav-link i
{
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px currentColor);
}

/* ============================================
   GLITCH EFFECT - TRI-LAYER
   Cyan (#00ffff), Indigo (#6f00ff), Chartreuse (#7fff00)
   ============================================ */
.glitch
{
    position: relative;
    color: var(--text-primary);
    font-family: var(--font-ghost);
    font-weight: 900;
    animation: ghostGlitch 6.65s infinite; /* SLOWED DOWN: 60% slower */
    text-shadow: -2px 0 var(--ghost-cyan), 2px 0 var(--ghost-indigo);
}

.glitch:before,
.glitch:after
{
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* LAYER 1: Cyan - Left displacement with top clip */
.glitch:before
{
    animation: glitch-ghost-1 2.12s infinite; /* SLOWED DOWN: 60% slower */
    color: var(--ghost-cyan);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
}

/* LAYER 2: Indigo - Right displacement with bottom clip */
.glitch:after
{
    animation: glitch-ghost-2 2.12s infinite; /* SLOWED DOWN: 60% slower */
    color: var(--ghost-indigo);
    z-index: -2;
    clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%);
}

@keyframes ghostGlitch
{
    0%, 100% {
        transform: translate(0);
        text-shadow: -2px 0 var(--ghost-cyan), 2px 0 var(--ghost-indigo);
    }
    10% {
        transform: translate(-2px, 2px);
        text-shadow: -4px 0 var(--ghost-cyan), 3px 1px var(--ghost-indigo), 1px -1px var(--ghost-chartreuse);
    }
    20% {
        transform: translate(-2px, -2px);
        text-shadow: -3px 1px var(--ghost-cyan), 2px -1px var(--ghost-indigo), -1px 2px var(--ghost-chartreuse);
    }
    30% {
        transform: translate(2px, 2px);
        text-shadow: 3px -1px var(--ghost-cyan), -2px 1px var(--ghost-indigo), 0px -2px var(--ghost-chartreuse);
    }
    40% {
        transform: translate(2px, -2px);
        text-shadow: 2px 1px var(--ghost-cyan), -3px -1px var(--ghost-indigo), -2px 0px var(--ghost-chartreuse);
    }
    50% {
        transform: translate(-1px, 2px);
        text-shadow: -4px -1px var(--ghost-cyan), 1px 2px var(--ghost-indigo), 3px 0px var(--ghost-chartreuse);
    }
    60% {
        transform: translate(-1px, -2px);
        text-shadow: -1px 1px var(--ghost-cyan), 2px -2px var(--ghost-indigo), 1px 1px var(--ghost-chartreuse);
    }
    70% {
        transform: translate(1px, 1px);
        text-shadow: 3px 0px var(--ghost-cyan), -2px -2px var(--ghost-indigo), -3px 1px var(--ghost-chartreuse);
    }
    80% {
        transform: translate(1px, -1px);
        text-shadow: 1px -1px var(--ghost-cyan), 3px 1px var(--ghost-indigo), 0px 2px var(--ghost-chartreuse);
    }
    90% {
        transform: translate(-1px, -1px);
        text-shadow: -2px -2px var(--ghost-cyan), 2px 2px var(--ghost-indigo), 2px -1px var(--ghost-chartreuse);
    }
}

/* LAYER 1: Cyan - Horizontal left shift */
@keyframes glitch-ghost-1
{
    0%, 100% {
        transform: translate(-2px, 0);
        opacity: 0.8;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
    }
    20% {
        transform: translate(-3px, -3px);
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
    }
    40% {
        transform: translate(3px, 3px);
        opacity: 0.5;
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
    }
    60% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
    }
    80% {
        transform: translate(2px, -2px);
        opacity: 0.6;
        clip-path: polygon(0 0, 100% 0, 100% 33%, 0 100%);
    }
}

/* LAYER 2: Indigo - Horizontal right shift */
@keyframes glitch-ghost-2
{
    0%, 100% {
        transform: translate(2px, 0);
        opacity: 0.7;
        clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%);
    }
    30% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
    }
    50% {
        transform: translate(2px, -2px);
        opacity: 1;
        clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    }
    70% {
        transform: translate(-3px, -2px);
        opacity: 0.4;
        clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%);
    }
    90% {
        transform: translate(3px, 2px);
        opacity: 0.7;
        clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
    }
}

/* Recording Mode - Disable glitch */
.recording-mode .glitch
{
    animation: none !important;
    text-shadow: none !important;
}

.recording-mode .glitch:before,
.recording-mode .glitch:after {
    animation: none !important;
    opacity: 0 !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content
{
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ============================================
   HERO SECTION - UPDATED & FIXED
   ============================================ */
.hero-section
{
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 1rem;
    background: radial-gradient(ellipse at center, rgba(153,102,255,0.05) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(0,255,255,0.05) 0%, transparent 40%);
}

.hero-content
{
    max-width: 100%;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

/* HERO TITLE - SINGLE LINE ON DESKTOP */
.hero-title
{
    white-space: nowrap;
    display: inline-block;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-family: var(--font-ghost);
    font-weight: 900;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--ghost-cyan), 0 0 40px rgba(0,255,255,0.3), 0 0 60px rgba(0,255,255,0.1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 1400px;
}

.hero-title .glitch
{
    display: inline;
    white-space: nowrap;
}

.subtitle
{
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--ghost-purple);
    text-shadow: 0 0 15px var(--ghost-purple), 0 0 30px rgba(153,102,255,0.3);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 1rem auto 2.5rem;
    width: 100%;
}

.hero-description
{
    font-size: clamp(1.23rem, 2.5vw, 1.3rem);
    color: var(--text-ghost);
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 800px;
    width: 100%;
}

.typing-text
{
    color: var(--ghost-green);
    font-family: var(--font-ghost);
    animation: ghostTyping 4s infinite;
    text-shadow: 0 0 10px var(--ghost-green);
    display: block;
    margin-top: 0.5rem;
}

@keyframes ghostTyping
{
    0%, 40% { opacity: 1; }
    41%, 60% { opacity: 0.7; }
    61%, 100% { opacity: 1; }
}

.hero-cta
{
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px)
{
    .hero-title
    {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
        margin-bottom: 1.2rem;
    }

    .subtitle
    {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
        margin: 0.8rem auto 2rem;
    }
}

@media (max-width: 768px)
{
    .hero-title
    {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        white-space: normal;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: clamp(1rem, 2.2vw, 1.5rem);
        margin: 0.6rem auto 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .hero-cta a {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px)
{
    .hero-section
    {
        padding: 1.5rem 1rem;
    }

    .hero-title
    {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
        white-space: normal;
    }

    .subtitle
    {
        font-size: clamp(0.95rem, 4vw, 1.3rem);
        margin: 0.8rem auto 1.5rem;
    }

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

    .hero-cta a
    {
        width: 100%;
        min-width: 150px;
    }
}

@media (max-width: 360px)
{
    .hero-title
    {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .subtitle
    {
        font-size: 1rem;
        margin: 0.6rem auto 1.2rem;
    }

   .-cta a
    {
        font-size: 0.8rem;
        padding: 0.8rem 1.2rem;
    }
}


/* ============================================
   CYBER BUTTONS
   ============================================ */
.cyber-button
{
    position: relative;
    padding: 1.2rem 2.5rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--ghost-cyan);
    color: var(--ghost-cyan);
    font-family: var(--font-ghost);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    backdrop-filter: blur(8px); /* Blur ON by default */
    box-shadow: 0 0 20px rgba(0,255,255,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    cursor: pointer;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cyber-button:hover::before {
    transform: translateX(100%);
}

.cyber-button:hover
{
    background: rgba(0,255,255,0.1);
    color: var(--ghost-cyan);
    box-shadow: 0 0 30px var(--ghost-cyan), 0 0 60px rgba(0,255,255,0.3), inset 0 0 20px rgba(0,255,255,0.1);
    text-shadow: 0 0 10px var(--ghost-cyan);
    transform: translateY(-2px);
}

.cyber-button.secondary {
    border-color: var(--ghost-purple);
    color: var(--ghost-purple);
    box-shadow: 0 0 20px rgba(153,102,255,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.cyber-button.secondary:hover
{
    background: rgba(153,102,255,0.1);
    box-shadow: 0 0 30px var(--ghost-purple), 0 0 60px rgba(153,102,255,0.3), inset 0 0 20px rgba(153,102,255,0.1);
    text-shadow: 0 0 10px var(--ghost-purple);
}

.cyber-button.small {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
}

/* ============================================
   YOUTUBE EMBED
   ============================================ */
.youtube-embed
{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-void);
    border: 3px solid var(--ghost-cyan);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,255,255,0.3), inset 0 0 50px rgba(0,255,255,0.05);
}

.youtube-embed::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-green), var(--ghost-cyan));
    border-radius: 18px;
    z-index: -1;
    animation: borderFlow 8s linear infinite; /* ANIMATED by default */
    background-size: 200% 200%;
}

@keyframes borderFlow
{
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: contrast(1.1) brightness(1.05);
    border: none;
}
/* ============================================
   VIDEO THUMBNAIL FALLBACK (NEW)
   ============================================ */
/* Video Thumbnail - Hidden By Default */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 12px;
    display: none !important;
}

/* Show thumbnail only on iframe error */
.youtube-embed.iframe-error .video-thumbnail
{
    display: block !important;
    z-index: 2;
}

.youtube-embed.iframe-error iframe {
    display: none !important;
}

/* ============================================
   IFRAME ERROR & THUMBNAIL STYLING
   ============================================ */

.video-thumbnail
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 12px;
    display: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail:not(img) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 150, 150, 0.1) 100%);
    backdrop-filter: blur(5px);
}

.video-thumbnail:hover
{
    transform: scale(1.02);
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.2);
}

.video-thumbnail i {
    color: var(--ghost-cyan);
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.video-thumbnail:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.9);
}

/* Support background-image for thumbnail */
.video-thumbnail[style*="background-image"]
{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay effect on hover */
.video-thumbnail[style*="background-image"]::before
{
    background: rgba(0, 0, 0, 0.3);
}

.video-thumbnail[style*="background-image"]:hover::before
{
    background: rgba(0, 0, 0, 0.5);
}


.video-thumbnail p
{
    color: var(--ghost-cyan);
    font-family: var(--font-ghost);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    margin: 0.5rem 0;
    letter-spacing: 1px;
    z-index: 10;
    position: relative;
}

.youtube-embed.iframe-error .video-thumbnail
{
    display: flex !important;
    z-index: 2;
}

.youtube-embed.iframe-error iframe
{
    display: none !important;
    visibility: hidden;
}

.youtube-embed:not(.iframe-error) .video-thumbnail
{
    display: none !important;
}

.youtube-embed:not(.iframe-error) iframe
{
    display: block !important;
    visibility: visible;
}

@keyframes thumbNailFadeIn
{
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px)
{
    .video-thumbnail i { font-size: 3rem; }
}

@media (max-width: 480px)
{
    .video-thumbnail i { font-size: 2.5rem; }
}

/* ============================================
   FEATURED WORK SECTION
   ============================================ */
.featured-work
{
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header
{
    text-align: center;
    margin-bottom: 3rem;
}

.section-title
{
    font-size: 2.65rem;
    font-family: var(--font-ghost);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line
{
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-green), var(--ghost-cyan));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow
{
    0% { opacity: 0.7; transform: scaleX(1); }
    100% { opacity: 1; transform: scaleX(1.1); }
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.featured-card,
.project-card
{
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-card) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(8px); /* Blur ON by default */
}

.featured-card::before,
.project-card::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ghost-cyan), transparent);
    animation: topGlow 2s ease-in-out infinite alternate; /* ANIMATED by default */
}

@keyframes topGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.featured-card:hover,
.project-card:hover {
    border-color: var(--ghost-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(0, 255, 255, 0.05);
    transform: translateY(-8px) scale(1.02);
}

.card-content,
.project-info {
    padding: 1.5rem;
}

.card-title,
.project-title {
    font-size: 1.635rem;
    font-family: var(--font-ghost);
    color: var(--ghost-cyan);
    margin-bottom: 0.5rem;
}

.card-description,
.project-description {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-details {
    color: var(--ghost-white);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ============================================
   TECH TAGS
   ============================================ */
.tech-tag,
.tech-badge
{
    background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(153,102,255,0.1));
    color: var(--ghost-cyan);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--ghost-cyan);
    font-family: var(--font-ghost);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0,255,255,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.25rem;
}

.tech-tag:hover,
.tech-badge:hover
{
    background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(153,102,255,0.2));
    box-shadow: 0 0 15px rgba(0,255,255,0.4);
    transform: translateY(-1px);
}

.tech-stack,
.project-tech
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year,
.project-year
{
    color: var(--text-accent);
    font-family: var(--font-ghost);
}

.view-more
{
    color: var(--ghost-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more:hover
{
    text-shadow: 0 0 10px var(--ghost-purple);
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-header
{
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.page-title
{
    font-size: 3.23rem;
    font-family: var(--font-ghost);
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle
{
    font-size: 1.65rem;
    color: var(--ghost-chartreuse);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid-section
{
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.project-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-actions
{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   FLOATING VFX ELEMENTS
   ============================================ */
.hero-visual
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 5 !important;
}

.floating-elements
{
    position: absolute;
    z-index: 6 !important;
    pointer-events: none;
}

.floating-elements.cluster-1 { top: 15%; right: 8%; width: 200px; height: 200px; }
.floating-elements.cluster-2 { top: 65%; right: 20%; width: 150px; height: 150px; }
.floating-elements.cluster-3 { top: 35%; left: 8%; width: 180px; height: 180px; }
.floating-elements.cluster-4 { bottom: 15%; left: 25%; width: 160px; height: 160px; }

.element
{
    position: absolute;
    border: 2px solid var(--ghost-cyan);
    background: rgba(0,255,255,0.2);
    animation: ghostFloatSimple 8s ease-in-out infinite; /* ANIMATED by default */
    opacity: 1;
    z-index: 7 !important;
}

@keyframes ghostFloatSimple
{
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Specific shapes */
.element.cube
{
    width: 60px;
    height: 60px;
    transform: rotate(45deg);
    top: 20px;
    left: 20px;
    animation: ghostFloatSimple 8s ease-in-out infinite, slowRotate 16s linear infinite;
    box-shadow: 0 0 30px rgba(0,255,255,0.3);
}

.element.pyramid
{
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(153,102,255,0.4);
    background: none;
    border-top: none;
    top: 30px;
    left: 100px;
    animation-delay: 2s;
    filter: drop-shadow(0 0 20px var(--ghost-purple));
}

.element.sphere
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 120px;
    left: 40px;
    animation-delay: 4s;
    border-color: var(--ghost-green);
    background: rgba(0,255,65,0.2);
    box-shadow: 0 0 25px rgba(0,255,65,0.4);
}

.element.hexagon
{
    width: 50px;
    height: 43px;
    top: 20px;
    left: 30px;
    animation-delay: 1s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0,255,255,0.2);
}

.element.diamond
{
    width: 45px;
    height: 45px;
    background: rgba(153,102,255,0.2);
    border-color: var(--ghost-purple);
    transform: rotate(45deg);
    top: 80px;
    left: 70px;
    animation: ghostFloatSimple 8s ease-in-out infinite, slowRotate 16s linear infinite;
}

.element.octagon
{
    width: 55px;
    height: 55px;
    background: rgba(0,255,65,0.2);
    border-color: var(--ghost-green);
    top: 40px;
    left: 20px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation-delay: 2.5s;
}

.element.star
{
    width: 40px;
    height: 40px;
    background: var(--ghost-wisteria);
    border-color: var(--ghost-cerisepink);
    top: 90px;
    left: 90px;
    animation-delay: 4s;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.element.triangle
{
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(255,69,180,0.4);
    background: none;
    border-top: none;
    top: 50px;
    left: 10px;
    animation-delay: 1.5s;
    filter: drop-shadow(0 0 15px rgba(255,69,180,0.5));
}

.element.pentagon
{
    width: 48px;
    height: 35px;
    background: var(--ghost-chartreuse);
    border-color: var(--ghost-springgreen);
    top: 20px;
    left: 70px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation-delay: 3.5s;
}

.element.ring
{
    width: 40px;
    height: 40px;
    border: 4px solid var(--ghost-cyan);
    border-radius: 50%;
    background: transparent;
    top: 90px;
    left: 40px;
    animation-delay: 2s;
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

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

/* ============================================
   ABOUT & CONTACT PAGES
   ============================================ */
.about-section,
.contact-section
{
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.about-content,
.contact-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%);
    border: 2px solid var(--ghost-cyan);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(8px); /* Blur ON by default */
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-content
{
    border-color: var(--ghost-purple);
    box-shadow: 0 0 40px rgba(153, 102, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-content::before,
.contact-content::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ghost-cyan), var(--ghost-purple), var(--ghost-green), var(--ghost-cyan));
    background-size: 200% 100%;
    animation: borderFlow 8s linear infinite;
}

.about-content p,
.contact-content p
{
    font-size: 1.26rem;
    line-height: 1.9;
    color: var(--text-ghost);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.about-list
{
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.about-list li
{
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.about-list li::before
{
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--ghost-cyan);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 15px var(--ghost-cyan);
    animation: pulse 2s ease-in-out infinite;
}

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

.about-list li:hover
{
    color: var(--ghost-cyan);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Contact Cards */
.contact-info
{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.contact-card
{
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.contact-card:hover
{
    border-color: var(--ghost-cyan);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
    transform: translateY(-3px);
}

.contact-icon
{
    font-size: 2.5rem;
    color: var(--ghost-cyan);
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ghost-cyan);
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.05);
    text-shadow: 0 0 15px var(--ghost-cyan);
}

.contact-details
{
    flex: 1;
    text-align: left;
}

.contact-label
{
    font-family: var(--font-ghost);
    font-size: 0.9rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.contact-value
{
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   SHOWCASE LINKS
   ============================================ */
.showcase-links
{
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.showcase-title
{
    font-family: var(--font-ghost);
    font-size: 0.9rem;
    color: var(--ghost-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.showcase-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.showcase-link
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--ghost-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.showcase-link:hover
{
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--ghost-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.cyber-footer
{
    background: linear-gradient(135deg, var(--bg-void) 0%, var(--bg-panel) 100%);
    border-top: 3px solid var(--ghost-cyan);
    border-image: linear-gradient(90deg, var(--ghost-cyan), var(--ghost-indigo), var(--ghost-green)) 1;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.footer-content
{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links
{
    display: flex;
    gap: 1rem;
}

.social-link
{
    color: var(--ghost-white);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.social-link:hover
{
    color: var(--ghost-cyan);
    text-shadow: 0 0 15px var(--ghost-cyan);
    border-color: var(--ghost-cyan);
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
    transform: translateY(-3px) scale(1.1);
}

/* ============================================
   RECORDING MODE (ONLY ACTIVE WHEN BUTTON CLICKED)
   ============================================ */
.recording-mode .scan-lines
{
    animation: none !important; /* STOP scan-lines */
    opacity: 0.05 !important; /* Nearly invisible */
}

.recording-mode .cyber-grid
{
    animation: none !important; /* STOP grid animation */
    opacity: 0.5 !important; /* Dimmed */
}

.recording-mode .element
{
    animation-duration: 25s !important; /* Extremely slow */
    opacity: 0.4 !important; /* Very faint */
}

.recording-mode .cyber-nav,
.recording-mode .cyber-button,
.recording-mode .featured-card,
.recording-mode .project-card,
.recording-mode .about-content,
.recording-mode .contact-content,
.recording-mode .cyber-footer
{
    backdrop-filter: none !important; /* Remove ALL blur */
    background: rgba(26, 26, 46, 0.98) !important; /* Solid background */
}

.recording-mode .youtube-embed::before
{
    animation: none !important; /* STOP border animation */
}

.recording-mode .featured-card::before,
.recording-mode .project-card::before
{
    animation: none !important; /* STOP top glow */
}

.recording-mode .glitch
{
    animation: none !important; /* STOP glitch effect */
}

.recording-mode .logo::before
{
    animation: none !important; /* STOP logo blink */
    opacity: 1 !important;
}

.recording-mode .section-line
{
    animation: none !important; /* STOP line glow */
}

.recording-mode .about-list li::before
{
    animation: none !important; /* STOP pulse */
}

.recording-mode .about-content::before,
.recording-mode .contact-content::before
{
    animation: none !important; /* STOP border flow */
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px)
{
    .nav-container
    {
        max-width: 100%;
        padding: 0 1rem;
    }
    .nav-links
    {
        gap: 0.8rem;
    }
    .nav-link
    {
        font-size: 0.7rem;
    }
    .logo
    {
        font-size: 1rem;
    }
}

@media (max-width: 992px)
{
    .nav-links
    {
        gap: 0.6rem;
    }
    .nav-link
    {
        font-size: 0.65rem;
    }
    .nav-link i
    {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px)
{
    .hero-title
    {
        font-size: 3rem;
    }
    .subtitle
    {
        font-size: 1.8rem;
    }
    .cyber-button
    {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    .featured-grid,
    .projects-grid
    {
        grid-template-columns: 1fr;
    }
    .nav-container
    {
        padding: 1rem;
    }
    .nav-links
    {
        gap: 1rem;
    }
    .hero-cta
    {
        flex-direction: column;
        align-items: center;
    }
    .footer-content
    {
        flex-direction: column;
        text-align: center;
    }
    .about-content,
    .contact-content
    {
        padding: 2rem;
    }
    .about-content p,
    .contact-content p
    {
        font-size: 1.1rem;
    }
    .about-list li
    {
        font-size: 1.05rem;
        padding-left: 2rem;
    }
    .contact-card
    {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .contact-details
    {
        text-align: center;
    }
    .contact-icon
    {
        font-size: 2rem;
        min-width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px)
{
    .hero-title
    {
        font-size: 2.5rem;
    }
    .page-title,
    .section-title
    {
        font-size: 2.2rem;
    }
    .nav-links
    {
        gap: 1rem;
    }
    .nav-link
    {
        font-size: 0.8rem;
    }
    .cyber-button
    {
        padding: 0.8rem 1.5rem;
    }
    .projects-grid
    {
        grid-template-columns: 1fr;
    }
    .about-content,
    .contact-content
    {
        padding: 1.5rem;
    }
}

@media (min-width: 1600px)
{
    .nav-container
    {
        max-width: 1600px;
    }
    .nav-links
    {
        gap: 1.8rem;
    }
    .nav-link
    {
        font-size: 0.85rem;
    }
}
/* Repository Status Notice */
.repo-notice
{
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0, 217, 255, 0.08);
    border-left: 3px solid #00d9ff;
    border-radius: 6px;
    display: inline-block;
    max-width: 400px;
}

.repo-notice p
{
    margin: 0;
    font-size: 0.95em;
    color: #00d9ff;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-notice i
{
    font-size: 1em;
    color: #00d9ff;
}

/* Responsive */
@media (max-width: 768px)
{
    .repo-notice
    {
        max-width: 100%;
        margin-top: 15px;
    }

    .repo-notice p
    {
        font-size: 0.9em;
    }
}

/* Disabled Button State */
.cyber-button:disabled
{
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cyber-button:disabled:hover
{
    background: rgba(26, 26, 46, 0.8);
    border-color: var(--ghost-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: none;
    text-shadow: none;
}

.cyber-button:disabled::before
{
    transform: none;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.container
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

