/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #030005;         /* Deep Black */
    --primary: #9d4edd;          /* Neon Purple */
    --accent: #e0aaff;           /* Lavender */
    --cyan: #00f3ff;             /* Cyber Blue */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* UI Elements */
    --border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 30px rgba(157, 78, 221, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. BACKGROUNDS
   ========================================= */
/* VISIBLE GRID LINES */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Opacity set to 0.1 so lines are visible but not distracting */
    background-image: 
        linear-gradient(rgba(157, 78, 221, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    /* Fade out at the bottom */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
}

#particles-js {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

/* GLOBAL GLASS STYLE */
.glass-panel {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 800; }
.dot { color: var(--primary); }

/* Desktop Menu */
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 8px 25px; border-radius: 20px;
}
.btn-nav:hover { background: var(--primary); color: white !important; }

/* Hamburger (Hidden on Desktop) */
.hamburger { display: none; font-size: 1.8rem; color: white; cursor: pointer; }

/* =========================================
   4. GENERAL LAYOUT
   ========================================= */
section {
    padding: 100px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 50px;
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
}

/* =========================================
   5. HERO SECTION (Split Layout)
   ========================================= */
#home {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 120px; padding-bottom: 60px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr; /* Default Mobile: Stacked */
    gap: 50px;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* Photo Styling */
.hero-photo-wrapper {
    position: relative;
    width: 280px; /* Mobile Size */
    height: 280px;
    margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Purple Glow Shadow */
    filter: drop-shadow(0 0 25px rgba(157, 78, 221, 0.4));
    transition: transform 0.3s ease;
}
.hero-photo:hover { transform: scale(1.02); }

/* Content Styling */
.hero-content { display: flex; flex-direction: column; align-items: center; }

.glitch {
    font-size: 3.5rem; font-weight: 900; text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text; color: transparent;
    line-height: 1.1;
}

.role-wrapper {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan); font-size: 1.1rem;
    margin: 20px 0;
    background: rgba(0, 243, 255, 0.05);
    padding: 5px 15px; border-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.bio {
    font-size: 1rem; color: var(--text-muted);
    max-width: 600px; margin-bottom: 30px;
}

/* Quote Box */
.hero-quote {
    margin: 0 0 35px 0;
    padding: 20px;
    border-left: 4px solid var(--primary);
    text-align: left;
    max-width: 600px;
    position: relative;
}
.hero-quote blockquote {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem; color: #eee; font-style: italic;
}
.hero-quote blockquote::before {
    content: '“'; font-size: 3rem; color: var(--primary);
    position: absolute; top: 5px; left: 5px; opacity: 0.5;
}
.hero-quote cite {
    display: block; font-size: 0.9rem; color: var(--text-muted);
    font-weight: bold; margin-top: 10px;
}

.social-row { display: flex; gap: 20px; }
.social-row a { font-size: 1.8rem; color: #fff; transition: 0.3s; }
.social-row a:hover { color: var(--primary); transform: translateY(-3px); }

/* =========================================
   6. CARDS (Skills & Projects)
   ========================================= */
.card {
    overflow: hidden;
    transition: 0.4s ease;
    display: flex; flex-direction: column;
}
.interactive-card { cursor: pointer; }
.interactive-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.card-body, .card-info { padding: 25px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; color: white; }
.card p { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }

.card-icon { font-size: 2.2rem; color: var(--cyan); padding: 25px 25px 0 25px; }

.tech-stack-row span, .mini-tags span {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px; border-radius: 5px;
    font-size: 0.75rem; color: #ccc;
    margin: 0 5px 5px 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.click-hint {
    display: block; margin-top: 20px;
    font-size: 0.8rem; color: var(--primary); font-weight: bold;
}

/* Project Gradients */
.gradient-bar { height: 5px; width: 100%; }
.gradient-1 { background: linear-gradient(90deg, #ff00cc, #333399); } 
.gradient-2 { background: linear-gradient(90deg, #00f260, #0575e6); } 
.gradient-3 { background: linear-gradient(90deg, #fc4a1a, #f7b733); }
.tag { font-family: 'JetBrains Mono', monospace; color: var(--cyan); font-size: 0.75rem; letter-spacing: 1px; display: block; margin-bottom: 10px; }

/* =========================================
   7. EVENTS & GALLERY MARQUEE
   ========================================= */
.event-banner {
    padding: 30px;
    display: flex; flex-direction: column; gap: 20px;
    transition: 0.3s; cursor: pointer;
}
.event-banner:hover { border-color: var(--cyan); }
.event-year span { font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.1); }

.badge-fill { background: var(--primary); color: white; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; }
.click-cta { display: block; margin-top: 15px; color: var(--cyan); font-size: 0.9rem; }

/* Gallery Animation */
#gallery.full-width-section { padding: 50px 0; max-width: 100%; overflow: hidden; }

.gallery-container {
    padding: 20px 0; width: 100%;
    overflow: hidden; white-space: nowrap;
    position: relative;
}
/* Fade edges */
.gallery-container::before, .gallery-container::after {
    content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}
.gallery-container::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.gallery-container::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }

.gallery-track { display: inline-block; animation: scroll 20s linear infinite; }

.gallery-item {
    display: inline-block; margin: 0 15px;
    border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border);
}
.gallery-item img { display: block; height: 200px; width: auto; object-fit: cover; }

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* =========================================
   8. MODAL & FOOTER
   ========================================= */
.hidden-content { display: none; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    z-index: 2000; display: none;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }

.modal-glass {
    width: 90%; max-width: 600px; max-height: 85vh;
    overflow-y: auto; padding: 30px; position: relative;
    border-color: var(--primary);
}

#close-modal {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
}

.btn-modal {
    display: inline-block; padding: 10px 20px;
    background: #222; color: white; text-decoration: none;
    border-radius: 5px; border: 1px solid #444; margin-top: 20px; font-size: 0.9rem;
}

.modal-gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px; margin-top: 20px;
}
.modal-gallery img { width: 100%; border-radius: 8px; border: 1px solid #333; }

footer {
    text-align: center; padding: 50px 20px;
    background: #000; border-top: 1px solid #222;
}
.social-row-large { font-size: 1.8rem; margin: 20px 0; }
.social-row-large a { color: white; margin: 0 15px; }

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Desktop & Large Laptops (Min-Width 992px) */
@media (min-width: 992px) {
    #home { text-align: left; }
    .hero-container {
        grid-template-columns: 40% 55%; /* Split layout: Photo Left, Text Right */
        justify-content: space-between;
    }
    .hero-photo-wrapper {
        width: 450px; /* Adjusted to fit perfectly in 40% col */
        height: 450px;
        margin: 0;
    }
    .hero-content { align-items: flex-start; }
    .glitch { font-size: 5rem; }
    .bio { margin-left: 0; }
    .event-banner { flex-direction: row; align-items: center; padding: 50px; }
}

/* Tablets (Max-Width 991px) */
@media (max-width: 991px) {
    .glitch { font-size: 4rem; }
    .hero-photo-wrapper { width: 350px; height: 350px; }
}

/* Mobile Devices (Max-Width 768px) */
@media (max-width: 768px) {
    .hamburger { display: block; }

    /* Mobile Drawer Menu */
    .nav-links {
        position: fixed; top: 0; right: -100%;
        height: 100vh; width: 70%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.2rem; }
    
    /* Hero Adjustments */
    .glitch { font-size: 3rem; }
    .hero-photo-wrapper { width: 280px; height: 280px; }
    .hero-quote { margin-left: auto; margin-right: auto; }
    .grid-container { grid-template-columns: 1fr; }
    
    /* FIX FOR SCREENSHOT ISSUE: Adjust Section Titles */
    .section-title {
        font-size: 1.8rem; /* Smaller font so "TECHNICAL_ARSENAL" fits */
        margin-bottom: 30px;
        border-left-width: 4px;
        padding-left: 15px;
    }
    
    /* Adjust Card Padding on mobile */
    .card-body, .card-info { padding: 20px; }
}
