:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.8);
    --primary: #38bdf8;
    --secondary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --glass: rgba(15, 23, 42, 0.6);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide cursor globally */
}

/* Force ALL links and buttons to hide the cursor so Rocket is the only one */
a, button, .btn, .logo, .nav-links a, .social-icon {
    cursor: none !important; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- BACKGROUND --- */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: #0f172a;
}

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20000; 
}

.logo { 
    font-weight: 800; font-size: 1.5rem; 
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 500; position: relative; color: white; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle, .nav-toggle-label { display: none; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
    height: 100vh; display: flex; align-items: center; padding: 0 10%;
}
.hero-container {
    display: flex; align-items: center; justify-content: space-between; gap: 4rem;
    width: 100%; max-width: 1200px; margin: 0 auto;
}
.hero-text { flex: 1; max-width: 600px; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--primary); }
.greeting { font-size: 1.5rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.bio { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-image {
    flex: 1; display: flex; justify-content: center; animation: float 6s ease-in-out infinite;
}
.hero-image img {
    width: 350px; height: 350px; object-fit: cover; border-radius: 50%;
    border: 4px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2), 0 0 60px rgba(99, 102, 241, 0.2);
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-weight: bold; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); border: 2px solid transparent;
}
.btn:hover { transform: translateY(-3px); background: transparent; border-color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--primary); box-shadow: none; color: var(--primary); }

/* --- ROCKET & SMOKE --- */
#player-rocket {
    position: fixed; top: 0; left: 0; width: 50px; height: 50px;
    font-size: 2.5rem; z-index: 99999; pointer-events: none;
    will-change: transform; display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 0 10px #38bdf8);
}
#player-rocket.hovering { filter: drop-shadow(0 0 25px #f43f5e); }

.smoke {
    position: fixed; width: 10px; height: 10px;
    background: rgba(180, 180, 180, 0.5);
    border-radius: 50%; pointer-events: none;
    z-index: 9999; animation: puff 0.8s forwards;
}
@keyframes puff { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }

/* --- INTERACTIVE STATES --- */
.force-hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4) !important;
    border-color: var(--primary) !important;
    background: rgba(56, 189, 248, 0.1) !important;
    transition: all 0.2s ease;
}
.force-click {
    transform: scale(0.95) !important;
    box-shadow: none !important;
    transition: transform 0.1s ease !important;
}

/* --- SECTIONS GENERAL --- */
section { padding: 6rem 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; }
.section-title span { border-bottom: 4px solid var(--primary); }

/* --- ABOUT --- */
.about-container { display: flex; flex-wrap: wrap; gap: 4rem; align-items: flex-start; }
.about-bio { flex: 1; min-width: 300px; }
.bio-stats { display: flex; gap: 3rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.skills-wrapper { flex: 1; min-width: 300px; background: rgba(15, 23, 42, 0.6); padding: 2.5rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.skills-title { font-size: 1.5rem; margin-bottom: 2rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 0.5rem; }
.skill-box { margin-bottom: 1.5rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 600; }
.progress-line { height: 10px; width: 100%; background: #0f172a; border-radius: 10px; position: relative; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 10px; width: 0%; animation: fillBar 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards; animation-delay: 0.3s; box-shadow: 0 0 10px var(--primary); }
@keyframes fillBar { from { width: 0%; } to { width: var(--w); } }

/* --- PROJECTS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.project-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card-img { height: 200px; background-size: cover; background-position: center; }
.img-gpgpu { background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop'); }
.img-sim { background-image: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?q=80&w=1965&auto=format&fit=crop'); }
.img-vlog { background-image: url('https://images.unsplash.com/photo-1492571350019-22de08371fd3?q=80&w=1953&auto=format&fit=crop'); }
.card-content { padding: 2rem; }
.card-content h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.card-content .tech-stack { color: var(--primary); font-size: 0.85rem; margin-bottom: 1rem; display: block;}

/* --- RESEARCH --- */
.research-section { padding: 100px 10%; }
.research-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.research-card {
    background: rgba(15, 23, 42, 0.3); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08); padding: 35px;
    border-radius: 20px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.research-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.2); }
.research-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8); opacity: 0; transition: 0.3s;
}
.research-card:hover::before { opacity: 1; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card-icon { font-size: 2rem; color: rgba(255, 255, 255, 0.1); transition: 0.3s; }
.research-card:hover .card-icon { color: #38bdf8; }
.status-badge { font-size: 0.75rem; padding: 6px 12px; border-radius: 30px; font-weight: 700; text-transform: uppercase; }
.upcoming { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.progress { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.published { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.research-card h3 { color: #f1f5f9; font-size: 1.4rem; margin-bottom: 10px; font-weight: 600; }
.research-meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; font-family: monospace; }
.research-desc { color: #cbd5e1; line-height: 1.7; margin-bottom: 25px; flex-grow: 1; font-size: 0.95rem; }
.research-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.research-tags span { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; transition: 0.3s; }
.research-card:hover .research-tags span { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding: 0 1rem; }
.gallery-item { position: relative; border-radius: 15px; overflow: hidden; height: 300px; cursor: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover .overlay { opacity: 1; }
.overlay span { color: white; font-weight: bold; font-size: 1.2rem; transform: translateY(20px); transition: transform 0.3s ease; }
.gallery-item:hover .overlay span { transform: translateY(0); }

/* --- CONTACT --- */
.contact-section { background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1542051841857-5f90071e7989?q=80&w=2070&auto=format&fit=crop'); background-attachment: fixed; background-size: cover; text-align: center; }
.contact-container { display: flex; flex-wrap: wrap; gap: 4rem; max-width: 1000px; margin: 0 auto 4rem auto; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(10px); padding: 3rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
.contact-info { flex: 1; min-width: 300px; }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-form { flex: 1.5; min-width: 300px; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid #334155; border-radius: 8px; color: #fff; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); background: rgba(0, 0, 0, 0.5); }
.submit-btn { width: 100%; cursor: none !important; border: none; font-size: 1.1rem; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); font-weight: bold; color: var(--primary); }
.social-icon:hover { background: var(--primary); color: #0f172a; transform: translateY(-3px); }

/* --- GAME MODAL (KEEP MOUSE HERE) --- */
#game-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    z-index: 10003; display: flex; justify-content: center; align-items: center;
    cursor: auto !important; /* Visible Mouse for Game */
}
#game-modal.hidden { display: none; }
/* Game Trigger Button */
#game-trigger {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: rgba(56, 189, 248, 0.1); border: 1px solid #38bdf8; border-radius: 50%;
    color: #38bdf8; font-size: 1.5rem; display: flex; justify-content: center; align-items: center;
    z-index: 10002; backdrop-filter: blur(5px); transition: 0.3s;
    cursor: pointer !important; /* Visible mouse here */
}
#game-trigger:hover { background: #38bdf8; color: #0f172a; transform: scale(1.1) rotate(15deg); }

/* Game Internal Elements (Need visible mouse) */
.game-container {
    background: #0f172a; border: 1px solid #38bdf8; padding: 30px;
    border-radius: 15px; text-align: center; box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
    max-width: 500px;
}
.puzzle-grid { display: grid; gap: 10px; margin: 25px auto; justify-content: center; }
.node {
    width: 50px; height: 50px; background: #334155; border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1); transition: all 0.3s;
    cursor: pointer !important;
}
.node.is-off { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); border-color: #ef4444; }
.node.is-on { background: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); border-color: #10b981; }

.game-footer button {
    background: transparent; border: 1px solid #38bdf8; color: #38bdf8;
    padding: 8px 15px; margin: 5px; border-radius: 5px; transition: 0.2s;
    cursor: pointer !important;
}
.game-footer button:hover { background: #38bdf8; color: #0f172a; }
.close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer !important; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) { 
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px; 
        padding-bottom: 60px;
        align-items: flex-start; 
    }
    .hero-container { 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 2rem; 
        margin-top: 60px;
        margin-bottom: auto;
    } 
    .hero-buttons { 
        justify-content: center; 
    } 
    .hero-image img { 
        width: 220px; 
        height: 220px; 
    } 
}
@media (max-width: 768px) { .nav-links { display: none; } .nav-toggle-label { display: block; } .contact-container { padding: 1.5rem; gap: 2rem; } }

/* --- RESEARCH CARD BACKGROUND & LINKS --- */
/* --- CLEAN SOLID CARDS (NO IMAGES) --- */
.research-card, .project-card {
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.research-card::before, .project-card::before {
    display: none !important;
}

.research-card:hover, .project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

/* --- MODERN STAT CARDS --- */
.bio-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.15);
}

.stat-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}




/* --- Skill Box Hover Interactions --- */
.skill-box {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill-box:hover {
    background: rgba(56, 189, 248, 0.05);
    transform: translateX(5px);
}

.skill-box:hover .skill-info span:last-child {
    color: var(--primary) !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}



/* --- Copy Email Button Styling --- */
.copy-btn {
    background: rgba(56, 189, 248, 0.1); 
    border: 1px solid var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--primary);
    color: #0f172a; 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); 
}

/* Success state when clicked */
.copy-btn.copied {
    background: #22c55e !important; 
    border-color: #22c55e !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4) !important; 
}

/* --- Live Status Badge --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1); 
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e; 
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Smooth Back-to-Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--primary, #38bdf8);
    color: var(--primary, #38bdf8);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it stays above all canvas/background elements */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(5px);
}

/* Shown when scrolled */
#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover effect */
#back-to-top:hover {
    background: var(--primary, #38bdf8);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    transform: translateY(-3px);
}

/* --- Terminal Typing Effect --- */
/* --- Terminal Typing Effect --- */
.terminal-greeting {
    font-family: 'Courier New', Courier, monospace; 
    color: var(--primary, #38bdf8);
    font-size: 1.6rem; /* Bumped up from 1.1rem */
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 2.2rem; /* Increased so the larger text has room */
}
.typing-cursor {
    display: inline-block;
    color: var(--primary, #38bdf8);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}



/* --- Glowing Nodal Mesh Card Hover Effect --- */

/* 1. Ensure the cards can contain the absolute overlay */
.project-card, .research-card, .edu-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease; 
}

/* 2. Keep text and images above the glowing mesh */
.project-card > *, .research-card > *, .edu-card > * {
    position: relative;
    z-index: 2;
}

/* 3. Build the triangulated mesh pattern */
.project-card::before, .research-card::before, .edu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered linear gradients to draw the 2D mesh grid */
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.15) 1px, transparent 1px),
        linear-gradient(45deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 30px 30px; 
    background-position: center;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out; 
    z-index: 1; 
    pointer-events: none; 
}

/* 4. Trigger the glow and lift on hover */
.project-card:hover::before, .research-card:hover::before, .edu-card:hover::before {
    opacity: 1; 
}

.project-card:hover, .research-card:hover, .edu-card:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25) !important; 
    border-color: var(--primary, #38bdf8) !important; 
    transform: translateY(-8px) !important; 
}



/* --- Scroll-Triggered Skill Bars --- */
.progress-line span {
    width: 0 !important; /* Forces the bar to start at 0% */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1); /* Smooth acceleration/deceleration */
    position: relative;
}

/* When the JavaScript adds this class, the bar fills up */
.progress-line.animate span {
    width: var(--w) !important;
}

/* The glowing leading edge (GPU Heat Effect) */
.progress-line span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background: #fff;
    box-shadow: -2px 0 10px #fff, -5px 0 20px var(--primary);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Turn on the glow when the animation starts */
.progress-line.animate span::after {
    opacity: 1; 
}



/* --- Upgraded Copy Email Button --- */
.copy-btn {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-left: 3px solid var(--primary, #38bdf8); /* Bold tech-accent line on the left */
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: 6px; /* Squarer, cleaner edges instead of a round pill */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 1.5rem; /* Ensures it has space from the social links above it */
}

/* Hover State */
.copy-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.9));
    border-color: var(--primary, #38bdf8);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3); /* Bright cyan glow */
    transform: translateY(-2px); /* Slight lift */
}

/* Success State (When Clicked) */
.copy-btn.copied {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    border-left: 3px solid #22c55e !important; /* Green accent */
    color: #22c55e !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25) !important;
}


/* --- Animated Script Background --- */
.script-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--primary, #38bdf8);
    opacity: 0.15; /* Keeps it subtle in the background */
    z-index: 1; /* Sits behind the skills (z-index: 2) */
    pointer-events: none; /* Stops it from blocking clicks */
    padding: 1rem;
    overflow: hidden;
    line-height: 1.4;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* --- Left Column OS Grid --- */
.os-grid-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.os-card-small {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.os-card-small i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

/* Hover Effects */
.os-card-small:hover { 
    transform: translateY(-3px); 
    background: rgba(56, 189, 248, 0.1); 
}
.os-card-small.linux:hover { 
    border-color: #f5c000; 
    box-shadow: 0 4px 12px rgba(245, 192, 0, 0.15); 
}
.os-card-small.linux:hover i { color: #f5c000; }

.os-card-small.windows:hover { 
    border-color: #00a4ef; 
    box-shadow: 0 4px 12px rgba(0, 164, 239, 0.15); 
}
.os-card-small.windows:hover i { color: #00a4ef; }

.os-card-small.mac:hover { 
    border-color: #a3aaae; 
    box-shadow: 0 4px 12px rgba(163, 170, 174, 0.15); 
}
.os-card-small.mac:hover i { color: #fff; }


.scholarship-container {
    display: flex;
    flex-direction: row; /* Keeps them side-by-side */
    justify-content: center; /* Centers the smaller boxes in the middle of the screen */
    gap: 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap; /* Stacks on mobile */
}

.scholarship-card {
    flex: 1; 
    min-width: 300px;
    max-width: 400px; /* PREVENTS the boxes from getting too large */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 192, 0, 0.2);
    border-top: 3px solid #f5c000;
    border-radius: 12px;
    padding: 1.5rem; 
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.scholarship-body p {
    color: var(--text-muted);
    font-size: 0.9rem; /* Slightly smaller text for the smaller box */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify; /* Fully justifies the text */
    text-justify: inter-word; 
}



/* --- Gallery Category Headers --- */
.category-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3); /* Faded cyan line */
    display: inline-block;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--primary, #38bdf8); /* Bright cyan accent */
}

/* Ensure the grid defaults to 3 columns neatly */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}