/* ==========================================================================
   VAIBHAV'S PORTFOLIO STYLESHEET
   ========================================================================== */

/* --- Core Variables & Theming --- */
:root {
    --bg-main: #060608;
    --bg-card: #121217;
    --text-main: #ffffff;
    --text-muted: #94a1b2;
    --accent: #9d4edd; 
    --accent-glow: rgba(157, 78, 221, 0.5);
    --radius: 16px;
    --anim-curve: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hacker / Matrix Theme Override */
[data-theme="matrix"] {
    --bg-main: #000500;
    --bg-card: #001100;
    --text-main: #00ff00;
    --text-muted: #008800;
    --accent: #00ff00; 
    --accent-glow: rgba(0, 255, 0, 0.5);
}

/* Corporate / Light Theme Override */
[data-theme="light"] {
    --bg-main: #f4f4f9;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --accent: #2563eb; 
    --accent-glow: rgba(37, 99, 235, 0.3);
}

/* --- Base Resets & Typography --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    cursor: none; /* Hiding default cursor for the custom dot */
}

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    position: relative; 
    /* Smoothly transition when the user toggles themes */
    transition: background-color 0.5s ease, color 0.5s ease; 
}


/* ==========================================================================
   1. CINEMATIC SPLASH SCREEN (UPDATED)
   ========================================================================== */

#splash-screen {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: #000; 
    z-index: 10000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); 
    overflow: hidden;
}

#splash-screen.hidden { 
    transform: translateY(-100%); 
    pointer-events: none; 
}

.splash-text { 
    font-size: 3rem; 
    color: #fff; 
    text-shadow: 0 0 20px var(--accent); 
    z-index: 10; 
    animation: pulseGlow 2s infinite; 
}

@keyframes pulseGlow { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.6; } 
}

.anime-char { 
    position: absolute; 
    /* Sticking to your desired 250px local width */
    width: 250px; 
    opacity: 0; 
    transition: all 0.5s ease; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.anime-char img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Ensuring no glow or shadow exists so edges blend with black background */
    filter: none; 
    
    /* 🛠️ THE PURE CSS FIX: "Screen" Blending Mode. 
       This works by keeping the lighter pixels (the characters) 
       and effectively making pure black pixels transparent 
       relative to the dark background. No image editing required!
    */
    mix-blend-mode: screen; 
}

.bubble { 
    background: #fff; 
    color: #000; 
    padding: 10px 15px; 
    border-radius: 20px; 
    font-weight: bold; 
    margin-bottom: 10px; 
    text-align: center; 
    position: relative; 
    font-size: 0.9rem;
    
    /* Ensuring speech bubbles aren't affected by image blending */
    mix-blend-mode: normal; 
}

.bubble::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-width: 10px 10px 0; 
    border-style: solid; 
    border-color: #fff transparent transparent transparent; 
}

/* Character Entry Animations & Refined Spacing */
.char-luffy  { bottom: -10px; left: 2%; animation: slideUpLeft 3.5s forwards 0.5s; }
.char-gojo   { top: 5%; right: 2%; animation: slideDownRight 3.5s forwards 1s; }

/* Moving Naruto further left (increasing the right offset) */
.char-naruto { bottom: -10px; right:18%; animation: slideUpRight 3.5s forwards 1.5s; }

/* Moving Goku further right (increasing the left offset) */
.char-goku   { top: 5%; left: 18%; animation: slideDownLeft 3.5s forwards 2s; }

@keyframes slideUpLeft { 
    0% { transform: translate(-100px, 100px); opacity: 0; } 
    20%, 100% { transform: translate(0, 0); opacity: 1; } 
}
@keyframes slideDownRight { 
    0% { transform: translate(100px, -100px); opacity: 0; } 
    20%, 100% { transform: translate(0, 0); opacity: 1; } 
}
@keyframes slideUpRight { 
    0% { transform: translate(100px, 100px); opacity: 0; } 
    20%, 100% { transform: translate(0, 0); opacity: 1; } 
}
@keyframes slideDownLeft { 
    0% { transform: translate(-100px, -100px); opacity: 0; } 
    20%, 100% { transform: translate(0, 0); opacity: 1; } 
}

/* FIX: Fade in animation for the Tap to Enter button */
@keyframes fadeIn {
    to { opacity: 1; }
}


/* ==========================================================================
   2. GLOBAL UTILITIES & EFFECTS
   ========================================================================== */

/* --- Custom Magic Cursor --- */
.cursor-dot { 
    width: 8px; 
    height: 8px; 
    background-color: var(--accent); 
    border-radius: 50%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    transform: translate(-50%, -50%); 
    pointer-events: none; 
    z-index: 10001; 
    box-shadow: 0 0 10px var(--accent); 
    transition: width 0.2s, height 0.2s, background-color 0.2s; 
}

.cursor-outline { 
    width: 40px; 
    height: 40px; 
    border: 2px solid rgba(157, 78, 221, 0.5); 
    border-radius: 50%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    transform: translate(-50%, -50%); 
    pointer-events: none; 
    z-index: 10001; 
    transition: width 0.2s, height 0.2s, border-color 0.2s; 
    transition-duration: 100ms; 
    transition-timing-function: ease-out; 
}

/* Hover states for the cursor */
body.hovering .cursor-dot { 
    width: 50px; 
    height: 50px; 
    background-color: rgba(157, 78, 221, 0.2); 
    border: 1px solid var(--accent); 
}

body.hovering .cursor-outline { 
    opacity: 0; 
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    background: linear-gradient(to right, var(--text-main), var(--accent)); 
    width: 0%; 
    z-index: 10005; 
    box-shadow: 0 0 10px var(--accent); 
    transition: width 0.1s ease;
}

/* --- Floating Ambient Background Orbs --- */
.ambient-background { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: -1; 
    overflow: hidden; 
    pointer-events: none; 
    background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-main) 100%); 
}

.orb { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    opacity: 0.4; 
    animation: drift 20s infinite alternate ease-in-out; 
}

.orb-1 { width: 400px; height: 400px; background: #6a040f; top: -10%; left: -10%; animation-duration: 25s; }
.orb-2 { width: 500px; height: 500px; background: #3c096c; bottom: -20%; right: -10%; animation-duration: 30s; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 40%; animation-duration: 35s; animation-delay: -10s; opacity: 0.2; }

@keyframes drift { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(50px, 50px) scale(1.2); } 
}

/* --- Liquid Page Transition & Spotlight --- */
.liquid-transition { 
    position: fixed; 
    top: 100%; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: var(--accent); 
    z-index: 999999; 
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1); 
    pointer-events: none; 
}

.liquid-transition.active { transform: translateY(-100%); }
.liquid-transition.finish { transform: translateY(-200%); }

.spotlight { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    pointer-events: none; 
    z-index: 999; 
    background: radial-gradient(circle 400px at var(--x, 50%) var(--y, 50%), var(--accent-glow), transparent 40%); 
    opacity: 0.2; 
}


/* ==========================================================================
   3. STRUCTURAL COMPONENTS & ANIMATIONS
   ========================================================================== */

/* --- Scroll Entrance Animations --- */
.fade-in-up, .fade-in-left, .fade-in-right { 
    opacity: 0; 
    transition: opacity 1s var(--anim-curve), transform 1s var(--anim-curve); 
    will-change: opacity, transform; 
}

.fade-in-up { transform: translateY(50px); }
.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }

.fade-in-up.visible, 
.fade-in-left.visible, 
.fade-in-right.visible { 
    opacity: 1; 
    transform: none; 
}

/* --- Layout & Typography Settings --- */
h1, h2, h3, h4 { 
    color: var(--text-main); 
    font-weight: 700; 
    transition: color 0.5s; 
}

.accent-text { color: var(--accent); }

.section-title { 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
    letter-spacing: -1px; 
}

.section-title span { 
    color: var(--accent); 
    opacity: 0.8; 
    font-size: 1.2em; 
    margin-right: 8px; 
    vertical-align: middle; 
}

section { 
    padding: 100px 5%; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 1;
}

/* --- Buttons --- */
.btn { 
    display: inline-block; 
    padding: 14px 36px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: background 0.3s, color 0.3s, box-shadow 0.3s; 
    border: none; 
    font-size: 1.05rem; 
}

.btn-primary { 
    background-color: var(--accent); 
    color: var(--bg-main); 
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2); 
}

.btn-outline { 
    background-color: transparent; 
    color: var(--text-main); 
    border: 2px solid var(--text-muted); 
}

.btn-outline:hover { 
    border-color: var(--accent); 
    color: var(--text-main); 
    box-shadow: inset 0 0 15px rgba(138, 43, 226, 0.2); 
}

.glow-on-hover:hover { 
    box-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow); 
    transform: translateY(-3px); 
}

/* Hardware acceleration for the JS 3D tilt effect */
.tilt-card { 
    transform-style: preserve-3d; 
    will-change: transform; 
}

/* --- Universal Interactive Cards --- */
.interactive-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(150,150,150,0.1); 
    border-radius: var(--radius); 
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.5s ease; 
}

.interactive-card:hover { 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow); 
    border-color: var(--accent-glow); 
    z-index: 10; 
}


/* ==========================================================================
   4. NAVBAR
   ========================================================================== */

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: var(--bg-main); 
    opacity: 0.95; 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    z-index: 1000; 
    transition: background 0.5s ease;
}

.nav-brand { 
    font-size: 1.8rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.nav-logo { 
    width: 35px; 
    height: 35px; 
    border-radius: 8px; 
    object-fit: contain; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
    align-items: center;
}

.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-links a:hover { 
    color: var(--text-main); 
    text-shadow: 0 0 8px rgba(255,255,255,0.5); 
}

.theme-btn { 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 5px; 
    transition: transform 0.3s; 
}

.theme-btn:hover { 
    transform: scale(1.2) rotate(15deg); 
}


/* ==========================================================================
   5. HERO SECTION & LIVE STATS
   ========================================================================== */

.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 80px; 
}

.hero-content { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 50px; 
    align-items: center; 
    width: 100%; 
}

/* GitHub Live Stats Badge */
.live-stats { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
    background: rgba(150, 150, 150, 0.1); 
    padding: 8px 15px; 
    border-radius: 20px; 
    border: 1px solid rgba(150, 150, 150, 0.2); 
    width: fit-content; 
}

.stat { 
    font-size: 0.85rem; 
    color: var(--text-main); 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-weight: 600; 
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; }
.pulse-dot.green { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; animation: pulse 2s infinite; }
.pulse-dot.purple { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite 1s; }

@keyframes pulse { 
    0% { opacity: 1; } 
    50% { opacity: 0.4; } 
    100% { opacity: 1; } 
}

/* Hero Typography */
.hero h1 { 
    font-size: 4rem; 
    letter-spacing: -2px; 
    line-height: 1.1; 
    margin-bottom: 5px; 
}

.enlarged-name { 
    font-size: 1.4em; 
    display: inline-block; 
    text-shadow: 0 0 15px var(--accent-glow); 
    background: linear-gradient(to right, var(--text-main), var(--accent)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.typewriter-container { 
    font-size: 2rem; 
    color: var(--text-muted); 
    margin-bottom: 25px; 
    height: 45px; 
}

.cursor-blink { 
    animation: blink 1s infinite; 
    color: var(--accent); 
    font-weight: 300;
}

@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0; } 
}

.hero p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    max-width: 550px; 
}

.hero-buttons { 
    display: flex; 
    gap: 20px; 
}

/* Profile Frame Magic */
.hero-visual { 
    display: flex; 
    justify-content: center; 
}

.profile-frame { 
    width: 500px; 
    height: 500px; 
    background: linear-gradient(135deg, var(--bg-card), #3c096c); 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    overflow: hidden; 
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 50px var(--accent-glow); 
    animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite; 
    border: 3px solid rgba(157, 78, 221, 0.5); 
}

.profile-pic { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: scale(1.15); 
    transition: 0.5s ease;
}

.profile-frame:hover .profile-pic { 
    transform: scale(1.2); 
}

@keyframes morph { 
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } 
}
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}


/* ==========================================================================
   6. INFINITE TECH MARQUEE
   ========================================================================== */

.tech-marquee-wrapper { 
    width: 100%; 
    overflow: hidden; 
    background: rgba(0,0,0,0.4); 
    padding: 15px 0; 
    border-top: 1px solid rgba(150,150,150,0.1); 
    border-bottom: 1px solid rgba(150,150,150,0.1); 
    position: relative; 
    z-index: 1;
}

.tech-marquee { 
    display: flex; 
    width: 200%; 
    animation: scroll-left 30s linear infinite; 
}

.tech-marquee span { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: rgba(150,150,150,0.4); 
    white-space: nowrap; 
    padding-right: 50px; 
    letter-spacing: 2px;
}

@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}


/* ==========================================================================
   7. ABOUT, TERMINAL & SKILLS
   ========================================================================== */

.split-layout { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
}

.about-content p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 20px; 
}

/* Simulated CLI Widget */
.terminal-container { 
    margin-top: 40px; 
    background: #0c0c0c; 
    border-radius: 8px; 
    border: 1px solid #333; 
    overflow: hidden; 
    font-family: 'Courier New', Courier, monospace; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.terminal-header { 
    background: #1a1a1a; 
    padding: 8px 15px; 
    display: flex; 
    align-items: center; 
    border-bottom: 1px solid #333;
}

.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    margin-right: 8px; 
}

.dot.red { background: #ff5f56; } 
.dot.yellow { background: #ffbd2e; } 
.dot.green { background: #27c93f; }

.term-title { 
    color: #888; 
    font-size: 0.85rem; 
    margin-left: 10px; 
}

.terminal-body { 
    padding: 15px; 
    color: #27c93f; 
    font-size: 0.95rem; 
    min-height: 100px; 
    max-height: 200px; 
    overflow-y: auto;
}

.terminal-body p { 
    margin-bottom: 8px; 
    color: #27c93f;
}

.terminal-input-line { 
    display: flex; 
    align-items: center; 
    color: #fff; 
    padding: 0 15px 15px;
}

.terminal-input-line span { 
    margin-right: 10px; 
    color: var(--accent); 
    font-weight: bold;
}

#terminalInput { 
    background: transparent; 
    border: none; 
    color: #fff; 
    font-family: inherit; 
    font-size: 0.95rem; 
    outline: none; 
    flex: 1; 
    width: 100%;
}

/* Skills Layout & Repelling Tags */
.skills-content .skill-category { margin-bottom: 30px; }
.skills-content h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--text-main); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

.physics-tag { 
    background: rgba(157, 78, 221, 0.1); 
    border: 1px solid rgba(157, 78, 221, 0.3); 
    color: var(--text-main); 
    padding: 8px 18px; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s ease-out; 
    display: inline-block;
}

.physics-tag:hover { 
    background: rgba(157, 78, 221, 0.3); 
    box-shadow: 0 0 10px var(--accent-glow); 
}


/* ==========================================================================
   8. BRAIN DUMP / MICRO BLOG
   ========================================================================== */

.blog-scroll-container { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    padding-bottom: 20px; 
}

.blog-card { 
    width: 100%; 
    padding: 30px; 
    border-radius: var(--radius); 
}

.blog-card .date { 
    font-size: 0.85rem; 
    color: var(--accent); 
    font-weight: bold; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    display: block;
}


/* ==========================================================================
   9. PROJECTS & DEEP DIVE PANEL
   ========================================================================== */

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    perspective: 1000px; 
}

.project-card { 
    padding: 40px 30px; 
    cursor: pointer;
}

/* Z-axis transforms for the 3D hover tilt effect */
.project-card h3 { font-size: 1.5rem; margin-bottom: 10px; transform: translateZ(30px); }
.status { color: var(--accent); font-size: 0.8rem; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; transform: translateZ(20px);}
.project-card p { color: var(--text-muted); margin-bottom: 25px; font-size: 1rem; transform: translateZ(15px);}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; transform: translateZ(25px);}

.tech-stack span { 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    color: #fff; 
    background: rgba(255,255,255,0.08); 
}

.view-more { 
    display: block; 
    margin-top: 20px; 
    color: var(--accent); 
    font-weight: bold; 
    font-size: 0.9rem; 
    transform: translateZ(25px);
}

/* Hidden Slide-out Panel Overlay */
.project-panel-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px); 
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.4s; 
}

.project-side-panel { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 500px; 
    max-width: 100%; 
    height: 100vh; 
    background: var(--bg-card); 
    border-left: 1px solid rgba(157, 78, 221, 0.3); 
    box-shadow: -10px 0 40px rgba(0,0,0,0.8); 
    z-index: 2001; 
    padding: 60px 40px; 
    overflow-y: auto; 
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.project-side-panel.active { right: 0; }
.project-panel-overlay.active { opacity: 1; visibility: visible; }

.close-panel { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    font-size: 2.5rem; 
    color: var(--text-muted); 
    transition: 0.3s; 
    line-height: 1;
}

.close-panel:hover { color: var(--accent); }

.project-side-panel h2 { font-size: 2rem; margin-bottom: 30px; }
.project-side-panel h3 { font-size: 1.2rem; margin: 25px 0 10px; color: var(--text-main); }
.project-side-panel p { color: var(--text-muted); line-height: 1.8; }
.mt-4 { margin-top: 30px; }


/* ==========================================================================
   10. CERTIFICATIONS & LIGHTBOX
   ========================================================================== */

.cert-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 35px; 
    perspective: 1000px;
}

.cert-card { 
    display: flex; 
    flex-direction: column; 
    cursor: pointer;
}

.cert-img-wrapper { 
    width: 100%; 
    height: 220px; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding: 15px; 
    transform: translateZ(20px); 
}

.cert-img-wrapper img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2)); 
    transition: 0.4s;
}

.cert-card:hover .cert-img-wrapper img { transform: scale(1.06); }

.cert-info { padding: 25px; transform: translateZ(30px); }
.cert-info h3 { font-size: 1.15rem; margin-bottom: 5px; }
.cert-info p { color: var(--text-muted); font-size: 0.95rem; }

/* Fullscreen Image Modal */
.modal { 
    visibility: hidden; 
    opacity: 0; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px); 
    transition: opacity 0.4s ease, visibility 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.modal.active { visibility: visible; opacity: 1; }

.modal-content { 
    max-width: 90%; 
    max-height: 80vh; 
    border-radius: 8px; 
    box-shadow: 0 0 40px var(--accent-glow); 
    transform: scale(0.95); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    object-fit: contain; 
}

.modal.active .modal-content { transform: scale(1); }

#modalCaption { 
    margin-top: 20px; 
    text-align: center; 
    color: var(--text-main); 
    font-size: 1.3rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
}

.close-modal { 
    position: absolute; 
    top: 30px; 
    right: 40px; 
    color: var(--text-muted); 
    font-size: 50px; 
    font-weight: bold; 
    transition: color 0.3s ease, transform 0.3s ease; 
    line-height: 1; 
}

.close-modal:hover { color: var(--accent); transform: scale(1.1); }


/* ==========================================================================
   11. JOURNEY TIMELINE
   ========================================================================== */

.timeline { 
    border-left: 2px solid rgba(157, 78, 221, 0.3); 
    padding-left: 35px; 
    margin-left: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 25px;
}

.timeline-item { position: relative; padding: 30px; width: 100%; }

.timeline-dot { 
    position: absolute; 
    left: -45px; 
    top: 35px; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    background: var(--accent); 
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent); 
}

.timeline-item h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
.timeline-item p { color: var(--text-muted); font-size: 1.05rem; }


/* ==========================================================================
   12. GUESTBOOK / LIVE COMMENTS
   ========================================================================== */

.guestbook { padding-bottom: 100px; }
.align-start { align-items: start; }
.guestbook-form-container { padding: 40px; }

.comments-feed { 
    margin-top: 40px; 
    max-height: 300px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    border-top: 1px solid rgba(150,150,150,0.1); 
    padding-top: 20px;
}

.comment { 
    background: rgba(150,150,150,0.05); 
    padding: 15px; 
    border-radius: 8px; 
    border-left: 3px solid var(--accent); 
}

.comment strong { color: var(--accent); }
.comment-date { font-size: 0.8rem; color: var(--text-muted); margin-left: 10px; }
.mt-2 { margin-top: 15px; }


/* ==========================================================================
   13. CONTACT SECTION & SOCIALS
   ========================================================================== */

.contact { padding-bottom: 150px; }

.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    padding: 60px; 
    border-color: rgba(157, 78, 221, 0.3); 
}

.contact-info p { color: var(--text-muted); margin: 20px 0; font-size: 1.1rem; }

.email-link { 
    display: inline-block; 
    font-size: 1.3rem; 
    color: var(--accent); 
    font-weight: bold; 
    text-decoration: none; 
    margin-bottom: 30px; 
    position: relative; 
    padding-bottom: 5px; 
}

.email-link::after { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 2px; 
    bottom: 0; 
    left: 0; 
    background-color: var(--accent); 
    transform: scaleX(0); 
    transform-origin: bottom right; 
    transition: transform 0.3s ease-out; 
}

.email-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.email-link:hover { color: var(--text-main); text-shadow: 0 0 15px var(--accent-glow); }

.social-links { display: flex; gap: 15px; flex-wrap: wrap; }

.social-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 22px; 
    border-radius: 8px; 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1rem; 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: all 0.3s ease; 
}

.social-btn:hover { 
    background: rgba(157, 78, 221, 0.15); 
    border-color: var(--accent); 
    color: var(--text-main); 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px var(--accent-glow); 
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.contact-form input, .contact-form textarea { 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 18px; 
    color: var(--text-main); 
    border-radius: 8px; 
    outline: none; 
    font-size: 1rem; 
    transition: all 0.3s; 
}

.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 15px var(--accent-glow); 
    background: rgba(0,0,0,0.6);
}


/* ==========================================================================
   14. WIDGETS & FOOTER
   ========================================================================== */

/* --- Chatbot Widget --- */
.chatbot-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }

.chat-toggle { 
    background: var(--accent); 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 30px; 
    font-weight: bold; 
    font-size: 1rem; 
    box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4); 
}

.chat-window { 
    position: absolute; 
    bottom: 60px; 
    right: 0; 
    width: 320px; 
    background: var(--bg-card); 
    border: 1px solid rgba(157, 78, 221, 0.3); 
    border-radius: 12px; 
    overflow: hidden; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s; 
    transform: translateY(20px); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 
}

.chat-window.active { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-header { 
    background: var(--bg-main); 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(150,150,150,0.2); 
}

.chat-header h3 { font-size: 1.1rem; color: var(--text-main); }
#closeChat { font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }

.chat-body { 
    padding: 20px; 
    height: 250px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.bot-msg { 
    background: var(--accent-glow); 
    padding: 10px 15px; 
    border-radius: 12px 12px 12px 2px; 
    font-size: 0.9rem; 
    color: var(--text-main); 
    width: fit-content; 
    max-width: 85%; 
}
.bot-msg strong { color: var(--accent); } 

.user-msg { 
    background: rgba(150,150,150,0.15); 
    padding: 10px 15px; 
    border-radius: 12px 12px 2px 12px; 
    font-size: 0.9rem; 
    color: var(--text-main); 
    align-self: flex-end; 
    max-width: 85%; 
}

.chat-input input { flex: 1; background: transparent; border: none; color: var(--text-main); padding: 5px 10px; outline: none; }
.chat-input button { background: transparent; border: none; color: var(--accent); font-size: 1.2rem; padding: 0 10px; cursor: pointer; }

/* --- Global Audio Mute Button --- */
.mute-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--accent-glow);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.mute-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--accent-glow);
}

/* --- Footer Marquee --- */
.footer { 
    background: var(--accent); 
    overflow: hidden; 
    padding: 40px 0 20px; 
    color: var(--bg-main); 
    position: relative; 
    z-index: 2; 
    box-shadow: 0 -10px 30px rgba(138,43,226,0.3);
}

.marquee-container { width: 100%; overflow: hidden; margin-bottom: 30px; }

.marquee-content { 
    display: flex; 
    width: 200%; /* Forces container to be twice the screen width */
    animation: scroll-left 25s linear infinite; 
}

.marquee-content span { 
    font-size: 3.5rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    white-space: nowrap; 
    width: 50%; 
}

.footer-bottom { text-align: center; font-size: 1rem; font-weight: 600; opacity: 0.9; }


/* ==========================================================================
   15. RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ========================================================================== */

/* Hidden Mobile Menu Hamburger */
.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    z-index: 1005; 
}
.hamburger span { width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; border-radius: 2px;}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 900px) {
    /* Navbar & Mobile Overlay */
    .hamburger { display: flex; }
    .nav-links { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 250px; 
        height: 100vh; 
        background: rgba(10, 10, 12, 0.95); 
        backdrop-filter: blur(15px);
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        transition: right 0.4s ease; 
        border-left: 1px solid rgba(255,255,255,0.05); 
        gap: 40px;
    }

   /* --- Splash Screen Mobile Fix --- */
    .splash-text { 
        font-size: 2.2rem; 
        text-align: center;
        z-index: 20; /* Ensures the text stays clickable/readable above the characters */
    }
    
    /* FIX: Mobile button sizing so it doesn't crush characters */
    #enterBtn {
        font-size: 0.95rem !important;
        padding: 10px 24px !important;
    }
    
    .anime-char { 
        width: 130px; /* Shrinks the characters specifically for mobile */
    }
    
    .bubble {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
    
    /* Overrides the 20% desktop spacing and pushes them to the extreme corners */
    .char-goku   { top: 2%; left: -2%; }
    .char-gojo   { top: 2%; right: -2%; }
    .char-luffy  { bottom: 2%; left: -2%; }
    .char-naruto { bottom: 2%; right: -2%; }

   
    .nav-links.active { right: 0; }
    
    /* Container Layouts */
    section { padding: 60px 5%; }
    .hero-content, .split-layout, .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    
    /* Hero Adjustments */
    .hero { padding-top: 120px; }
    .hero-visual { display: flex; margin-top: 40px; } 
    .hero-buttons { justify-content: center; flex-direction: column; width: 100%; gap: 15px;}
    .hero-buttons .btn { width: 100%; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .enlarged-name { font-size: 1.2em; }
    .typewriter-container { font-size: 1.3rem; height: auto; min-height: 60px; }
    .profile-frame { width: 260px; height: 260px; } 
    
    /* Live Stats */
    .live-stats { flex-direction: column; align-items: center; margin: 0 auto 20px auto; gap: 8px;}
    
    /* Panels & Modals */
    .cert-img-wrapper { height: 180px; }
    .project-side-panel { width: 100%; padding: 40px 20px; }
    
    /* Timeline Mobile Fixes */
    .timeline { padding-left: 20px; }
    .timeline-dot { left: -29px; }
    
    /* Contact Adjustments */
    .contact-wrapper { padding: 30px; gap: 30px; }
    .social-links { justify-content: center; }
    .email-link { font-size: 1.1rem; }
    
    /* Hide Magic Cursor on Touch Devices */
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }
    
    /* Text Scaling */
    .tech-marquee span { font-size: 1rem; }
    .marquee-content span { font-size: 2rem; }
    
    /* Scaling widgets down */
    .mute-btn { bottom: 20px; left: 20px; width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 500px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
}
