/* Base Variables & Theme */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(14, 165, 233, 0.25);
    --text-heading: #0f2949; 
    --text-main: #1e3a5f;    
    --text-muted: #4a7ba7;   
    --accent-blue: #0ea5e9;  
    --accent-indigo: #2563eb; 
    --accent-teal: #0891b2;   
    --bg-primary: #faf9f6;
    --bg-secondary: transparent;
}

/* Dark Mode */
body.dark-mode {
    --glass-bg: rgba(10, 8, 0, 0.95);
    --glass-border: rgba(255, 223, 0, 0.2);
    --text-heading: #f0f9ff;
    --text-main: #cbd5e1;
    --text-muted: #64748b;
    --accent-blue: #ffd700;
    --accent-indigo: #ffed4e;
    --accent-teal: #ffc107;
    --bg-primary: #0a0800;
    --bg-secondary: #1a1600;
}

body { background-color: var(--bg-primary); color: var(--text-main); min-height: 100vh; overflow-x: hidden; width: 100%; scroll-behavior: smooth; transition: background-color 0.3s ease, color 0.3s ease; }

/* Background & Effects */
.blueprint-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -3; background-color: var(--bg-primary);
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.15) 2px, transparent 2px),
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 200, 255, 0.03) 0%, transparent 50%);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    will-change: background-position; 
}

body.dark-mode .blueprint-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}

body.dark-mode .blueprint-grid::after {
    background: none;
}

body.dark-mode nav {
    background: #0a0800;
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

body.dark-mode nav.scrolled {
    background: #0a0800;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode nav.scrolled:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 0, 0, 0.6);
    background: #0a0800;
}

body.dark-mode .dropdown-card,
body.dark-mode .nested-menu {
    background: #0f0d05;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

body.dark-mode nav.scrolled .dropdown-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.7);
    background: #0f0d05;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .search-bar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

body.dark-mode .search-bar::placeholder {
    color: rgba(203, 213, 225, 0.4);
}

body.dark-mode .aurora-container {
    display: none;
}

body.dark-mode .orb-1,
body.dark-mode .orb-2,
body.dark-mode .orb-3 {
    display: none;
}

body.dark-mode .mouse-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

body.dark-mode .blueprint-grid::after {
    display: none;
}

.blueprint-grid::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, rgba(250, 249, 246, 0.95) 100%); }

.mouse-glow {
    position: fixed; top: 0; left: 0; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none; z-index: -2; 
    transform: translate3d(-50%, -50%, 0); will-change: transform; display: none; 
}

.aurora-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: blur(120px); pointer-events: none; }
.orb { position: absolute; border-radius: 50%; animation: float 20s infinite alternate; opacity: 0.15; }
.orb-1 { width: 500px; height: 500px; background: var(--accent-blue); top: -10%; left: -5%; }
.orb-2 { width: 600px; height: 600px; background: #64b5f6; bottom: -20%; right: -10%; animation-delay: -5s; }

.scrollable-menu { max-height: 160px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent-blue) rgba(255, 255, 255, 0.05); }
.scrollable-menu::-webkit-scrollbar { width: 4px; }
.scrollable-menu::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.scrollable-menu::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 10px; }

/* Navigation */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 1rem 5%; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 1000; width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

/* Detached Glass Nav State */
nav.scrolled {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    padding: 0.8rem 3%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 40px rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    max-width: 1360px;
    left: 50%;
    transform: translateX(-50%);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav.scrolled:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 50px rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-center { flex: 0 0 auto; display: flex; justify-content: center; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }

.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: var(--text-heading); transition: font-size 0.3s ease; }
.logo span { background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Scale down logo when nav is floating */
nav.scrolled .logo { font-size: 1.4rem; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; transition: gap 0.3s ease; }

nav.scrolled .nav-links { gap: 2rem; }
.nav-item { position: relative; padding: 1rem 0; }
.nav-link { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-link::after { content: '▾'; font-size: 0.8rem; color: var(--text-muted); }
.nav-item:hover .nav-link { color: var(--accent-blue); }

.dropdown-card, .nested-menu { position: absolute; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.5rem; min-width: 220px; box-shadow: 0 15px 40px rgba(14, 165, 233, 0.12); opacity: 0; visibility: hidden; transition: all 0.3s ease; list-style: none; }
.dropdown-card { top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); }

/* Enhanced dropdown styling when nav is detached/floating */
nav.scrolled .dropdown-card { 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(14, 165, 233, 0.12);
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.nav-item:hover .dropdown-card { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-item { position: relative; list-style: none; }
.dropdown-link { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; color: var(--text-main); text-decoration: none; font-size: 0.9rem; border-radius: 8px; transition: 0.2s; }
.dropdown-link:hover { background: rgba(14, 165, 233, 0.1); color: var(--accent-blue); }
.arrow { font-size: 1.2rem; line-height: 0.5; color: var(--text-muted); transition: transform 0.3s; }
.dropdown-link:hover .arrow { color: var(--accent-blue); }

.nested-menu { top: 0; left: 100%; margin-left: 0.5rem; transform: translateX(-10px); }
.dropdown-item:hover > .nested-menu { opacity: 1; visibility: visible; transform: translateX(0); }

.search-container { position: relative; }
.search-bar { background: rgba(14, 165, 233, 0.08); border: 1px solid var(--glass-border); border-radius: 50px; padding: 0.6rem 1rem 0.6rem 2.5rem; color: var(--text-main); font-size: 0.9rem; width: 280px; outline: none; transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-family: 'Poppins', sans-serif; }

nav.scrolled .search-bar { width: 220px; }

nav.scrolled .search-bar:focus { width: 280px; }
.search-bar:focus { width: 340px; border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid var(--text-muted); border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; top: 10px; left: 10px; width: 6px; height: 2px; background: var(--text-muted); transform: rotate(45deg); }

/* Contact & Footer Section */
footer { margin-top: 3rem; padding: 5rem 2rem 2rem; background: linear-gradient(to bottom, transparent, rgba(240, 245, 253, 0.9)); position: relative; z-index: 10; text-align: center; border-top: 1px solid rgba(14, 165, 233, 0.1); }

body.dark-mode footer {
    background: linear-gradient(to bottom, #0b1120, #000000);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 5rem 2rem 2rem;
}
.contact-box { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 3.5rem 2rem; max-width: 700px; margin: 0 auto 3rem; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }

body.dark-mode .contact-box {
    background: rgba(30, 58, 138, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .contact-box h3 {
    color: #ffffff;
}

body.dark-mode .contact-box p {
    color: #cbd5e1;
}
.contact-box h3 { font-size: 2rem; color: var(--text-heading); margin-bottom: 1rem; font-weight: 600; }
.contact-box p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 500; text-decoration: none; transition: all 0.3s ease; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo)); color: white; box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(14, 165, 233, 0.5); }
.btn-secondary { background: rgba(14, 165, 233, 0.1); color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(14, 165, 233, 0.2); color: var(--accent-blue); transform: translateY(-3px); }
.footer-details { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 1000px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(14, 165, 233, 0.1); }
.contact-info p { color: var(--text-muted); font-size: 0.95rem; margin: 0.3rem 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.contact-info span { color: var(--accent-blue); }
.copyright { color: var(--text-muted); font-size: 0.9rem; opacity: 0.7; line-height: 1.6; }

body.dark-mode .footer-details {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-info p {
    color: #cbd5e1;
}

body.dark-mode .contact-info span {
    color: #ffffff;
}

body.dark-mode .copyright {
    color: #94a3b8;
}

/* GLOBAL MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    nav { flex-wrap: wrap; padding: 1rem 1.5rem; }
    .nav-left, .nav-right { flex: 0 0 auto; }
    .nav-center { flex: 1 1 100%; order: 3; margin-top: 1.2rem; }
    .nav-links { width: 100%; justify-content: center; gap: 1.5rem; }
    .nav-link { font-size: 0.9rem; }
    
    .nav-item { position: static; } 
    .dropdown-card { top: 100%; left: 0; right: 0; width: 100%; max-width: 100%; min-width: 100%; transform: translateY(0) !important; border-radius: 0 0 16px 16px; border-left: none; border-right: none; padding: 1rem 1.5rem; box-sizing: border-box;}
    
    .nested-menu { position: static; width: 100%; margin-top: 0.5rem; margin-left: 0; background: rgba(255, 255, 255, 0.03); display: none; transform: none !important; }
    .dropdown-item:hover > .nested-menu { display: block; opacity: 1; visibility: visible; transform: none; }
    .arrow { display: inline-block; transform: rotate(90deg); }

    .search-bar { width: 140px; }
    .search-bar:focus { width: 160px; }
    
    .contact-links { flex-direction: column; width: 100%; }
    .contact-btn { justify-content: center; width: 100%; }
    
    .aurora-container { filter: blur(70px); } 
    .mouse-glow { display: none !important; }
}

/* ============================================ */
/* COLLAPSIBLE SESSION ACCORDIONS               */
/* ============================================ */


.session-accordion {
    background: #0f172a; 
    border: 1px solid #1e293b;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}


.session-accordion:hover {
    border-color: rgba(0, 255, 242, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.1);
}


.session-accordion summary {
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc; 
    cursor: pointer;
    background: #1e293b; 
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}


.session-accordion summary::-webkit-details-marker {
    display: none;
}


.session-accordion summary::after {
    content: "▼";
    color: #00fff2; /* Cyan arrow */
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}


.session-accordion[open] {
    border-color: #00fff2;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.15);
}

.session-accordion[open] summary {
    border-bottom: 1px solid #1e293b;
    color: #00fff2; 
}


.session-accordion[open] summary::after {
    transform: rotate(-180deg);
}


.session-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    background: white;
}

/* ============================================ */
/* MOBILE ADJUSTMENTS (Phones & Small Tablets)  */
/* ============================================ */
@media (max-width: 600px) {
    
    .session-accordion summary {
        padding: 20px 15px;      
        font-size: 1.15rem;      
        min-height: 60px;        
        letter-spacing: 0.5px;
        
    }

    
    .session-accordion summary::after {
        font-size: 1.1rem;
    }

   
    .session-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
        padding: 20px 15px;
        gap: 15px; 
    }
}

/* ==========================================
   SNAKE WIDGET STYLES
   ========================================== */
#snake-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #00fff2;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: floatWidget 4s ease-in-out infinite;
    display: none;
}

#snake-widget:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.6);
}

.snake-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
}

.snake-icon {
    font-size: 2rem;
}

.snake-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.snake-text span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snake-text strong {
    font-size: 1rem;
    color: #00fff2;
    font-family: 'Courier New', monospace;
}

.snake-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.snake-close:hover {
    background: #dc2626;
}

@keyframes floatWidget {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    #snake-widget {
        display: none !important;
    }
}


@media (max-width: 1024px) {
    #flashlight-wrapper {
        display: none !important;
    }
}

/* ==========================================
   DARK MODE TOGGLE BUTTON
   ========================================== */
#dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(20px);
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

#dark-mode-toggle:active {
    transform: scale(0.95);
}

body.dark-mode #dark-mode-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

body.dark-mode #dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    #dark-mode-toggle {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

