:root {
    --c-obsidian: #0A0A0A;
    --c-bone: #E3E3DC;
    --c-moss: #5E665A;
    --c-sage-dim: #3A4038;
    --c-alert: #FF3333;

    --f-disp: 'Italiana', serif;
    --f-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--c-obsidian);
    color: var(--c-bone);
    font-family: var(--f-mono);
    overflow-x: hidden;
    cursor: none;
}

/* === ATMOSPHERE === */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.latency-ticker {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-moss);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    mix-blend-mode: exclusion;
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.latency-dot {
    width: 4px;
    height: 4px;
    background: #00FF41;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF41;
    animation: pulse 0.8s infinite alternate;
}

@keyframes pulse {
    to {
        opacity: 0.4;
    }
}

/* === CURSOR === */
.cursor-magnet {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-bone);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

body.hovered .cursor-magnet {
    width: 90px;
    height: 90px;
    background: rgba(227, 227, 220, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
    mix-blend-mode: normal;
}



/* Mobile fixes consolidated in main Media Query block below */

/* Blur placeholder for lazy video */
.video-overlay-card {
    filter: blur(10px);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.video-loaded {
    filter: blur(0);
}

/* === TOOLTIPS & DOSSIER UI === */
.pill {
    position: relative;
    cursor: help;
    transition: all 0.3s ease;
}

/* Cyber Glow Effect */
.pill:hover {
    box-shadow: 0 0 10px var(--c-moss);
    border-color: var(--c-moss);
    color: #fff;
    background: rgba(94, 102, 90, 0.2);
}

/* Tooltip hover effect removed as per user request */
/* .pill:hover { ... } blocks deleted */

.dossier-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--c-moss);
    color: var(--c-moss);
    text-decoration: none;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.dossier-btn:hover {
    background: var(--c-alert);
    color: #000;
    border-color: var(--c-alert);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.stat-label.high-contrast {
    color: var(--c-bone);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(227, 227, 220, 0.4);
    letter-spacing: 1px;
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
}

/* Hero Video - Cinematic Layer */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Subtle cinematic presence */
    mix-blend-mode: luminosity;
    /* B&W integration */
    filter: contrast(1.3) brightness(0.7);
    z-index: 0;
    will-change: transform;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    mix-blend-mode: normal;
    margin-top: 10vh;
    /* Added to prevent overlap with top ticker */
}

.hero-headline {
    font-family: var(--f-disp);
    font-size: 11vw;
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--c-bone);
    margin-bottom: 2rem;
}

/* Card ke andar VIDEO aur IMAGE dono ko handle karega */
.bento-item:hover .video-overlay-card,
.bento-item:hover .image-overlay-card {
    opacity: 0.6 !important;
    /* Content visible rahega */
    filter: saturate(1.2) contrast(1.1);
    /* Colors pop karenge */
    transform: scale(1.05);
    /* Slight Zoom - Isse image video jaisi feel degi */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Jab hover ho toh text ka color thoda bright ho jaye + Shadow */
.bento-item:hover .proj-name,
.bento-item:hover .proj-attitude {
    text-shadow: 0 0 15px rgba(227, 227, 220, 0.8);
    z-index: 5;
    /* Text hamesha upar rahega */
}


/* Bio Section Styling */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 5rem 5vw;
    border-top: 1px solid var(--c-sage-dim);
    background: linear-gradient(to bottom, var(--c-obsidian), #0f0f0f);
}

.bio-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    border-left: 2px solid var(--c-moss);
    padding-left: 1.5rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--c-moss);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--f-disp);
    font-size: 1.8rem;
    color: var(--c-bone);
}

.bio-long-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

.bio-long-text span {
    color: var(--c-bone);
    font-weight: 500;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.pill {
    padding: 0.4rem 1rem;
    border: 1px solid var(--c-sage-dim);
    font-size: 0.75rem;
    color: var(--c-moss);
    border-radius: 20px;
}

.hero-sub {
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: var(--c-bone);
    background: rgba(10, 10, 10, 0.8);
    padding: 1rem 2rem;
    border-left: 1px solid var(--c-moss);
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* Color Pop Effect */
.about-img,
.footer-thumb {
    transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: grayscale(100%) contrast(1.1);
}

.about-img:hover,
.footer-thumb:hover {
    filter: grayscale(0%) contrast(1);
}

/* preloader*/
#raghaw-loader {
    position: fixed;
    inset: 0;
    background-color: var(--c-obsidian);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
}

.loader-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loader-id {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--c-sage-dim);
    padding-bottom: 0.8rem;
    font-family: var(--f-mono);
}

.id-label {
    font-size: 0.7rem;
    color: var(--c-moss);
    letter-spacing: 2px;
}

.id-ver {
    font-size: 0.7rem;
    color: var(--c-sage-dim);
}

#terminal-body {
    height: 20px;
    /* Single line height */
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-bone);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread if needed, or center */
    opacity: 0.9;
    overflow: hidden;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.log-entry {
    /* No border left, just clean text */
    animation: fadeIn 0.1s ease-out forwards;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

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

.loader-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#load-num {
    font-family: var(--f-disp);
    /* Using Italiana for numbers like your stats */
    font-size: 2rem;
    color: var(--c-bone);
}

.load-track {
    width: 100%;
    height: 2px;
    background: var(--c-sage-dim);
    position: relative;
}

#load-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--c-moss);
    /* Moss Green for the progress */
    box-shadow: 0 0 15px var(--c-moss);
    transition: width 0.1s linear;
}

@keyframes logSlide {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Video Card Styles */
.video-overlay-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.bento-item:hover .video-overlay-card {
    opacity: 1;
}

/* === ABOUT / MANIFESTO === */
.manifesto-section {
    padding: 10rem 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-photo-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border: 1px solid var(--c-moss);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/WhatsApp Image 2025-12-31 at 03.16.04.jpeg');
    background-size: cover;
    background-position: center 10%;
    filter: grayscale(100%);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-bone);
    box-shadow: 0 0 15px var(--c-bone);
    animation: scan 3s linear infinite;
    z-index: 2;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.manifesto-text h2 {
    font-family: var(--f-disp);
    font-size: 4vw;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.manifesto-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #888;
    margin-bottom: 2rem;
}

/* === BENTO GRID === */
.grid-section {
    padding: 5rem 5vw 10rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.bento-item {
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--c-sage-dim);
    backdrop-filter: blur(12px);
    min-height: 400px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateZ(20px);
    border-color: var(--c-moss);
    z-index: 10;
}

.span-8 {
    grid-column: span 8;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.proj-name {
    font-family: var(--f-disp);
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.5rem;
}

.proj-attitude {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-bone);
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    text-align: right;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-item:hover .proj-attitude {
    opacity: 1;
    transform: translateY(0);
}

.default-meta {
    font-size: 0.8rem;
    color: var(--c-moss);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.bento-item:hover .default-meta {
    opacity: 0;
}




/* === CONTACT / UPLINK TERMINAL === */
.contact-section {
    padding: 8rem 5vw;
    border-top: 1px solid var(--c-sage-dim);
    background: linear-gradient(to bottom, #0f0f0f, var(--c-obsidian));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left h2 {
    font-family: var(--f-disp);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--c-bone);
}

.contact-left p {
    font-family: var(--f-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--c-moss);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--c-sage-dim);
    color: var(--c-bone);
    font-family: var(--f-mono);
    font-size: 0.85rem;
    padding: 1rem 1.2rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-moss);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--c-sage-dim);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: transparent;
    border: 1px solid var(--c-moss);
    color: var(--c-moss);
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    align-self: flex-start;
}

.contact-form button:hover {
    background: var(--c-moss);
    color: var(--c-obsidian);
    box-shadow: 0 0 20px rgba(94, 102, 90, 0.4);
}

.form-status {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-moss);
    margin-top: -0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-status.visible {
    opacity: 1;
}

.console-output {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--c-sage-dim);
    padding: 2rem;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-moss);
    line-height: 1.8;
    position: relative;
}

.console-output::before {
    content: '[ CONSOLE_LOG ]';
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--c-obsidian);
    padding: 0 0.5rem;
    font-size: 0.65rem;
    color: var(--c-sage-dim);
}

.console-line {
    margin-bottom: 0.5rem;
}

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--c-moss);
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* TERMINAL SCROLLBAR */
#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: #111;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: var(--c-moss);
    border-radius: 2px;
}

#terminal-output::-webkit-scrollbar-thumb:hover {
    background: var(--c-sage-dim);
}

/* TERMINAL EXTRAS */
.joke-output,
.quote-output {
    color: var(--c-moss);
    padding: 10px;
    margin: 5px 0;
    border-left: 2px solid var(--c-moss);
    background: rgba(94, 102, 90, 0.1);
    font-family: 'Courier New', monospace;
}

.coffee-art {
    color: #C19A6B;
    font-family: monospace;
    white-space: pre;
    line-height: 1.2;
    margin: 10px 0;
}

.hack-sequence {
    color: #00FF41;
    font-family: 'Courier New', monospace;
}

.hack-line {
    margin: 2px 0;
    text-shadow: 0 0 5px #00FF41;
}

.error-output {
    color: var(--c-alert);
    font-weight: bold;
}

.matrix-text {
    color: #00FF41;
    font-family: monospace;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--c-sage-dim);
    padding: 5rem 5vw;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-thumb {
    width: 80px;
    height: 80px;
    background-image: url('assets/images/ChatGPT Image Feb 2, 2026 at 05_46_49 PM.png');
    background-size: cover;
    background-position: center 20%;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid var(--c-moss);
}

.footer-copy {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-moss);
    max-width: 300px;
}

.shutdown-btn {
    font-family: var(--f-mono);
    color: var(--c-alert);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .manifesto-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 5vw;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .bento-item {
        min-height: auto;
        /* Let content dictate height */
        aspect-ratio: 1/1;
        /* Square-ish for better mobile view */
    }

    .hero-headline {
        font-size: 14vw;
        /* Auto-scale */
    }

    .about-photo-frame {
        width: 100%;
        height: 400px;
        margin-bottom: 2rem;
    }

    /* ADDED: Bio Grid Mobile Stack */
    .bio-grid {
        grid-template-columns: 1fr;
        /* 1 Column */
        gap: 2rem;
    }

    /* ADDED: Hide Custom Cursor on Touch */
    .cursor-magnet {
        display: none;
    }

    body {
        cursor: auto;
        /* Restore default cursor */
    }

    /* ADDED: Contact Grid Mobile Stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-left h2 {
        font-size: 2.5rem;
    }
}

/* Mobile-only stat value increase */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2.2rem;
    }

    /* Mobile Terminal Height Fix */
    #terminal-container {
        height: 400px !important;
    }

    /* Resume Button Mobile Position */
    .magnet-target[download] {
        bottom: 20px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        width: max-content;
        background: rgba(0, 0, 0, 0.9) !important;
    }

    /* Adjust padding for sections */
    .contact-section,
    .grid-section,
    .manifesto-section {
        padding: 4rem 1rem !important;
    }
}
