:root {

    /*===== DARK MODE DEFAULT ===== */
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --footer-bg: #111827;

    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --card-bg: rgba(255, 255, 255, 0.05);
}


body.light-mode {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --footer-bg: #e2e8f0;

    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.3);

    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;

    --card-bg: #ffffff;
}
/* ===================== RESET & BODY ===================== */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Inter', sans-serif; }
body {
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
transition: background 0.4s ease, color 0.4s ease;}


/* ===================== BACKGROUND PHOTO SLIDER ===================== */

.bg-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2; /* Sobar niche */
    pointer-events: none; /* Jate click ekhane na baje */
}


.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 0.3; /* Photo halka thakbe jate text pora jay */
}

/* ===================== NAVBAR (FLOATING TOP) ===================== */


.navbar-container {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 999999; /* very high */
}

.navbar.glass-card {
    position: relative;
    z-index: 999999;
}

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { 
    color: #fff; text-decoration: none; font-weight: 500; 
    padding: 8px 15px; transition: 0.3s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 15px; }

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent);
    z-index: 10001;
}

/* ===================== HERO SECTION ===================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none; /* Particles-er upor click korle niche jabe */
}
/* Background full page, behind all content */
#bgSlider, #hero-particles {
    position: fixed;     
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Sobar niche */
    pointer-events: none;
}

/* All other content above background */
.album-slide {
    will-change: transform, opacity;
}
/* Adjust hero particles inside hero section */
.hero {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text { color: var(--accent); }

/* ===================== GLASS CARDS ===================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 8%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===================== FOOTER ===================== */
footer {
    background: rgba(10, 15, 30, 0.9);
    padding: 60px 8% 20px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

body.light-mode footer {
    background: var(--footer-bg);
    color: var(--text-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: #64748b;
}

/* ===================== LIGHT MODE ===================== */
/* Reveal Animation */
.reveal {
    position: relative;
    transform: translateY(100px); /* Nich theke upore uthbar jonyo distance */
    opacity: 0;
    transition: all 1s ease-in-out; /* Animation speed */
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Glassmorphism card-er upor extra hover animation */
.glass-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: scale(1.05) rotateX(5deg);
    box-shadow: 0 0 25px var(--accent-glow);
}
/* Tree Pattern Design */
.tree-container ul {
    list-style: none;
    padding-left: 25px;
    border-left: 1px dashed var(--accent);
}

.tree-item {
    margin: 10px 0;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: 0.3s;
}

.tree-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.tree-item i { margin-right: 10px; }

.hidden { display: none; }

/* Popup Box Design */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Default Hidden */
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

.popup-content {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 25px;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Tree & Details Styles */
.tree, .tree ul {
    list-style: none;
    padding-left: 20px;
    border-left: 1px dashed var(--accent);
}

.node {
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    transition: 0.3s;
}

.node:hover { background: rgba(16, 185, 129, 0.1); }

.node::before {
    content: '⊞ ';
    color: var(--accent);
    margin-right: 5px;
}

.node-open::before { content: '⊟ '; }

.leaf::before { content: '📍 '; }

.nested { display: none; }
.nested.active { display: block; }

.status-badge {
    margin-top: 20px;
    padding: 5px 15px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
}
/* News Ticker Style */
.news-ticker {
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid var(--accent);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
    margin-top: 70px; /* Navbar height-er sathe adjust korun */
}
.ticker-label {
    background: var(--accent);
    color: white;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 2;
}
.news-ticker marquee {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Album Slider Box Style */
.album-section {
    padding: 40px 8%;
    display: flex;
    justify-content: center;
}
.album-container {
    width: 100%;
    max-width: 900px;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 0 !important; /* Slider-er jonyo padding zero */
}
.album-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.album-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease;
    transform: scale(1.1);
}
.album-slide.active {
    opacity: 1;
    transform: scale(1);
}
.album-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Album Buttons */
.album-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    transition: 0.3s;
}
.album-nav-btn:hover { background: var(--accent); }
.prev { left: 15px; }
.next { right: 15px; }

/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-links a { 
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00f2ff;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        text-align: center;
        padding: 20px 0;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
}

/* navbar styles */

.nav-links a.active {
    color: #00f2ff;
    font-weight: bold;
}
.card,
.section-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/*footer styles*/
/* ===================== OUR PARTNERS ===================== */

.partners {
    background: var(--bg-secondary);
    padding: 80px 8%;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.partners h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.partner-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partner-track {
    display: flex;
    gap: 60px;
    animation: partnerScroll 30s linear infinite;
}

.partner-slide {
    flex: 0 0 auto;
}

.partner-slide img {
    width: 120px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: 0.4s ease;
}

.partner-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* smooth infinite scroll */
@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* pause on hover */
.partner-slider:hover .partner-track {
    animation-play-state: paused;
}