/* css/style.css */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #ff0033; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #cc0029; }

html, body {
    max-width: 100%;
    overflow-x: hidden; /* COMMAND 4: Remove left/right scroll */
    background-color: #050505;
}

/* Nav Links */
.nav-link {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: #ff0033;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}

/* Matrix Grid Background */
.grid-bg {
    background-image: 
        linear-gradient(rgba(255, 0, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 51, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Glitch Text Animation */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; background: #050505;
}
.glitch-text::before {
    left: 2px; text-shadow: -1px 0 #ff0033;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -1px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); } 20% { clip: rect(80px, 9999px, 100px, 0); } 100% { clip: rect(30px, 9999px, 60px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(120px, 9999px, 10px, 0); } 20% { clip: rect(10px, 9999px, 100px, 0); } 100% { clip: rect(30px, 9999px, 10px, 0); }
}

/* Intro Animation Styles */
.fade-out { opacity: 0; pointer-events: none; transition: opacity 0.8s ease-out; }
.log-line { display: block; opacity: 0; animation: fadeIn 0.1s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Card Entrance Animation */
.card-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* COMMAND 1: Fixed Button Styles */
.pulse-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

/* When hovering, we force opacity 1 and add the glow */
.pulse-button:hover {
    opacity: 1 !important; 
    background-color: #ff0033; 
    color: black;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.8), 0 0 40px rgba(255, 0, 51, 0.4);
    transform: scale(1.05);
    animation: pulse-glow-button 1.5s infinite ease-in-out;
}

@keyframes pulse-glow-button {
    0% { box-shadow: 0 0 10px rgba(255, 0, 51, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 51, 1); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 51, 0.5); }
}

/* Recent Achievements Slider (Keep this scrolling) */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll-left 30s linear infinite;
    width: max-content;
    display: flex;
}
.animate-scroll:hover { animation-play-state: paused; }

/* Utility */
.shadow-red { text-shadow: 0 0 8px rgba(255, 0, 51, 0.8); }
.no-scroll { overflow: hidden; }
.modal-fade-in { animation: fadeIn 0.3s ease; }

/* Skill Icon Hover Effects */
.skill-icon, .skill-item p { transition: all 0.3s ease; }
.skill-item:hover .skill-icon, .skill-item:hover p {
    color: #ff0033;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}

/* Home Entrance Animations */
.animate-fade-in-scale { animation: fade-in-scale 0.8s ease-out forwards; }
@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1.0); }
}


/* === ELECTRIC NAVBAR ANIMATION === */

/* 1. The Moving Energy Beam (The "Current") */
@keyframes electric-flow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 2. The Random Lightning Flash (The "Thunder") */
@keyframes storm-flash {
    0%, 100% { box-shadow: 0 1px 0 rgba(255, 0, 51, 0.1); border-bottom-color: rgba(255, 0, 51, 0.2); }
    2% { box-shadow: 0 4px 20px rgba(255, 0, 51, 0.8), 0 0 10px #fff; border-bottom-color: #fff; } /* BIG FLASH */
    4% { box-shadow: 0 1px 0 rgba(255, 0, 51, 0.1); border-bottom-color: rgba(255, 0, 51, 0.2); }
    6% { box-shadow: 0 2px 10px rgba(255, 0, 51, 0.5); border-bottom-color: #ff0033; } /* Small spark */
    8% { box-shadow: 0 1px 0 rgba(255, 0, 51, 0.1); border-bottom-color: rgba(255, 0, 51, 0.2); }
    30% { box-shadow: 0 1px 0 rgba(255, 0, 51, 0.1); border-bottom-color: rgba(255, 0, 51, 0.2); }
    32% { box-shadow: 0 2px 15px rgba(255, 0, 51, 0.6); border-bottom-color: #ff0033; } /* Random spark */
    34% { box-shadow: 0 1px 0 rgba(255, 0, 51, 0.1); border-bottom-color: rgba(255, 0, 51, 0.2); }
}

/* The Class we will add to the Nav */
.electric-nav {
    position: relative;
    /* The Flash Animation */
    animation: storm-flash 5s infinite linear; 
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

/* The "Beam" Line */
.electric-nav::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Sits exactly on the border */
    left: 0;
    width: 100%;
    height: 2px; /* Thickness of the electricity */
    /* Creates a gradient: Transparent -> Red -> White Hot -> Red -> Transparent */
    background: linear-gradient(90deg, transparent 0%, transparent 40%, #ff0033 45%, #ffffff 50%, #ff0033 55%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    animation: electric-flow 2s linear infinite; /* Moves fast */
    z-index: 100;
    opacity: 0.8;
    filter: blur(1px); /* Makes it look like glowing gas */
}

/* --- 1. THE LIGHTNING FLASH ANIMATION --- */
@keyframes electric-pulse {
    0% {
        text-shadow: 0 0 5px #ff0033, 0 0 10px #ff0033;
        opacity: 1;
    }
    3% {
        text-shadow: 0 0 20px #fff, 0 0 30px #ff0033, 0 0 40px #ff0033;
        opacity: 1;
        transform: scale(1.02) skewX(-2deg); /* Sudden shock */
    }
    6% {
        text-shadow: 0 0 5px #ff0033, 0 0 10px #ff0033;
        opacity: 1;
        transform: scale(1) skewX(0deg);
    }
    30% {
        text-shadow: 0 0 5px #ff0033; 
        opacity: 0.9;
    }
    32% {
        text-shadow: 2px 2px 0px #fff, 0 0 20px #ff0033;
        opacity: 1;
    }
    34% {
        text-shadow: 0 0 5px #ff0033; 
        opacity: 0.9;
    }
    100% {
        text-shadow: 0 0 5px #ff0033, 0 0 10px #ff0033;
        opacity: 1;
    }
}

/* --- 2. THE CRACKLING BOLT OVERLAY --- */
@keyframes bolt-strike {
    0%, 90% { opacity: 0; clip-path: polygon(50% 0, 50% 100%, 50% 100%, 50% 0); }
    92% { opacity: 1; clip-path: polygon(45% 0, 55% 40%, 40% 60%, 60% 100%, 50% 100%, 35% 60%, 50% 40%, 40% 0); background: #fff; }
    94% { opacity: 1; clip-path: polygon(55% 0, 45% 40%, 60% 60%, 40% 100%, 50% 100%, 65% 60%, 50% 40%, 60% 0); background: #ff0033; }
    96% { opacity: 0; }
}

/* --- 3. THE CLASS TO APPLY --- */
.lightning-text {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; /* Thicker for better outline */
    color: #050505; /* Dark center like the image */
    
    /* THE OUTLINE EFFECT */
    -webkit-text-stroke: 1px #ff0033; /* Red Border */
    
    /* THE GLOW */
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.8), 0 0 20px rgba(255, 0, 51, 0.4);
    
    /* THE ANIMATION */
    animation: electric-pulse 3s infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 50;
}

/* This creates a literal lightning bolt that flashes across the text */
.lightning-text::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 50px;
    height: 140%;
    background: white;
    z-index: -1;
    opacity: 0;
    animation: bolt-strike 4s infinite linear;
    pointer-events: none;
}

/* --- DIRECTORY LINK GLOW EFFECT --- */
.directory-link {
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.05em; /* Spacing for cleaner glow */
}

/* The Glow Animation Logic */
.directory-link:hover, 
.directory-link.active-page {
    color: #ff0033; /* Red Text */
    
    /* Layered Shadows for "Neon" look */
    text-shadow: 
        0 0 5px rgba(255, 0, 51, 0.9),   /* Sharp inner glow */
        0 0 10px rgba(255, 0, 51, 0.6),  /* Soft middle glow */
        0 0 20px rgba(255, 0, 51, 0.4);  /* Wide outer glow */
        
    transform: scale(1.05); /* Slight zoom */
}

/* Optional: A small glowing underline that expands */
.directory-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: #ff0033;
    box-shadow: 0 0 8px #ff0033;
    transition: all 0.3s ease;
    opacity: 0;
}

.directory-link:hover::after,
.directory-link.active-page::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

/* --- MOBILE MENU ANIMATION --- */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85%;           /* Covers most of the screen */
    max-width: 320px;     /* But not too wide on tablets */
    background: rgba(5, 5, 5, 0.95); /* Deep Black */
    backdrop-filter: blur(15px);     /* Glass Effect */
    border-left: 1px solid rgba(255, 0, 51, 0.3); /* Red Border */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 200;         /* Highest Priority */
    
    /* Animation State: Hidden by default */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Class to open the sidebar */
.mobile-sidebar.open {
    transform: translateX(0);
}

/* The Dark Backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0; /* Covers entire screen */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 190; /* Just behind sidebar */
    opacity: 0;
    pointer-events: none; /* Click-through when hidden */
    transition: opacity 0.3s ease;
}

/* Class to show the backdrop */
.mobile-backdrop.open {
    opacity: 1;
    pointer-events: auto; /* Capture clicks to close */
}

/* 1. Base State (Larger Size) */
 #home-logo {
    /* --- INCREASE SIZE HERE --- */
    width: 500px;  /* increased from ~300px to 500px */
    max-width: 90vw; /* Ensures it doesn't overflow on small mobile screens */
    height: auto;    /* Keeps the aspect ratio correct */
    
    /* Animation smoothness */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* 2. Hover State (Zoomed In) */
#home-logo:hover {
    transform: scale(1.1); /* Zoom effect */
    filter: drop-shadow(0 0 25px rgba(255, 0, 51, 0.5));  /* Red Glow */
    cursor: pointer; 
}
/* === ROLE BADGE ANIMATION === */

/* Reuse the 'electric-pulse' and 'bolt-strike' animations from the Navbar Logo */

.role-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    
    /* FONT & SIZE */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem; /* Made slightly larger so the hollow effect is readable */
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    
    /* HOLLOW TEXT STYLE (Like Navbar) */
    color: transparent; /* Hide the fill */
    -webkit-text-stroke: 0.5px currentColor; /* Thin colored outline */
    
    /* GLOW */
    text-shadow: 0 0 5px currentColor;
    
    z-index: 20;
    pointer-events: none;
    
    /* ANIMATION (Flicker & Pulse) */
    animation: electric-pulse 4s infinite linear;
}

/* THE BOLT STRIKE OVERLAY (Mini Version) */
.role-badge::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 20px; /* Smaller bolt width */
    height: 140%;
    background: #fff;
    z-index: -1;
    opacity: 0;
    /* Re-using the bolt animation from the logo */
    animation: bolt-strike 5s infinite linear; 
    pointer-events: none;
}

/* COLORS (These control the stroke and shadow automatically via currentColor) */
.role-capt { color: #ff0033; }  /* RED */
.role-vice { color: #ffaa00; }  /* ORANGE */
.role-memb { color: #00ffff; }  /* CYAN */

/* Stagger animations so they don't flash in sync */
.role-badge.role-capt::before { animation-delay: 0s; }
.role-badge.role-vice::before { animation-delay: 1.5s; }
.role-badge.role-memb::before { animation-delay: 3s; }


/* --- BUTTON BREATHING ANIMATION --- */
@keyframes btn-breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 51, 0.2);
        border-color: rgba(255, 0, 51, 0.4);
    }
    50% {
        transform: scale(1.05); /* Gentle Zoom */
        box-shadow: 0 0 20px rgba(255, 0, 51, 0.6), inset 0 0 10px rgba(255, 0, 51, 0.1); /* Red Glow */
        border-color: #ff0033; /* Bright Border */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 51, 0.2);
        border-color: rgba(255, 0, 51, 0.4);
    }
}

/* Base Filter Button Style */
.filter-btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 51, 0.3); /* Default dim red border */
    background: rgba(0, 0, 0, 0.6);
    color: #9ca3af; /* Gray text */
}

/* HOVER STATE: Triggers the Animation */
.filter-btn:hover {
    color: white;
    animation: btn-breathe 2s infinite ease-in-out; /* Loops the breathing */
    cursor: pointer;
}

/* ACTIVE STATE (Selected Button): Stronger, Slower Breath */
.btn-active {
    background: rgba(255, 0, 51, 0.1) !important; /* Slight red tint background */
    color: #fff !important;
    font-weight: bold;
    
    /* Keep the animation running but stronger */
    animation: btn-breathe 3s infinite ease-in-out !important;
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.5) !important;
    border-color: #ff0033 !important;
}

/* PROFILE TIMELINE CONNECTORS */
#section-resume .relative {
    position: relative;
}

/* PROFILE TAB BUTTONS */
.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Default Active State (for JS logic) */
.active-tab {
    background-color: #ff0033; /* pred */
    color: black;
}

/* PROFILE SOCIAL ICONS */
.social-btn {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: black;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; /* gray-400 */
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: #ff0033;
    color: white;
    transform: translateY(-3px);
}

/* PROFILE ICON BOXES */
.icon-box {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: black;
    display: flex; align-items: center; justify-content: center;
    color: #ff0033;
    border: 1px solid #1f2937; /* gray-800 */
}

/* FADE IN ANIMATION FOR TABS */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

/* PROFILE MODAL (Full Screen Cert View) */
#cert-modal {
    transition: opacity 0.3s ease;
}

#cert-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#cert-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* ZOOM ANIMATION FOR IMAGE */
.zoom-in {
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* css/style.css - UPDATE CREW ID (STATIC VERSION) */

.crew-id-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    
    /* HOLLOW STYLE (Keeps the color outline) */
    color: transparent;
    -webkit-text-stroke: 0.8px currentColor;
    
    /* OPTIONAL: Keep a faint static glow, or remove this line for flat text */
    text-shadow: 0 0 5px currentColor; 
    
    /* Centering */
    display: inline-block;
    position: relative;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    
    /* REMOVED ANIMATION */
}

/* REMOVE LIGHTNING BOLT */
.crew-id-text::before {
    content: none; 
}
/* css/style.css - ABOUT STATS ANIMATION */

@keyframes box-breath {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 0, 51, 0); border-color: #374151; }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 0, 51, 0.4); border-color: #ff0033; }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 0, 51, 0); border-color: #374151; }
}

.stat-card-interactive {
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card-interactive:hover {
    animation: box-breath 2s infinite ease-in-out;
    background-color: rgba(5, 5, 5, 0.8);
    z-index: 10;
}

/* Hide Scrollbar for Carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* css/style.css - SCROLL REVEAL ANIMATION */

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* When element is on screen */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


