﻿/* Import a modern, geometric font for the logo */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');

:root {
    /* Deep Theme Variables (Not Pure Black) */
    --bg-main: #0f172a; /* Deep Slate / Navy */
    --bg-surface: #1e293b; /* Elevated Card Color */
    --bg-glass: rgba(15, 23, 42, 0.75); /* Dark Glassmorphism */

    --text-main: #f8fafc; /* Soft White */
    --text-muted: #94a3b8; /* Slate Gray */

    --glow-cyan: #06b6d4;
    --glow-violet: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, var(--glow-cyan), var(--glow-violet));
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Glassmorphism Deep Navbar */
.navbar-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

    .nav-link:hover {
        color: var(--glow-cyan) !important;
        text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    }
/* Import a modern, geometric font for the logo */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');

/* Glowing Brand Text Style (Text Only) */
.brand-logo-glow {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0px; /* Adjusted for Montserrat */
    /* Text Gradient */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Text Glow only (no border) */
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none;
    padding: 0;
    border: none;
}

    /* Hover Animation for the Text Glow */
    .brand-logo-glow:hover {
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.9));
        transform: translateY(-2px);
        text-decoration: none;
    }



/* Animated SVG Icon Container */
.animated-logo-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    transition: transform 0.4s ease;
}

/* Base Navbar Brand Styling */
.brand-logo-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0px;
    text-decoration: none;
}

    .brand-logo-link:hover .animated-logo-icon {
        transform: scale(1.1);
    }

/* Text Coloring */
.text-concept {
    /* Kept pure white as requested */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.text-view {
    /* Gradient and Glow from the original logo */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.text-ext {
    font-size: 1rem;
    color: var(--glow-cyan);
    margin-left: 2px;
}

/* SVG Rotation Animations */
.spin-inner {
    transform-origin: 50px 50px;
    animation: rotateLeft 3s linear infinite;
}


/* Keyframes for smooth infinite rotation */


@keyframes rotateLeft {
    100% {
        transform: rotate(-360deg);
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Subtle radial glows in the background corners */
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 40%), radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 40%);
}

/* Dynamic Floating Particles */
#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    color: var(--glow-violet);
    opacity: 0.15;
    animation: floatUp linear infinite;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

.z-content {
    z-index: 2;
    position: relative;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glowing Button */
.btn-glow {
    background: var(--gradient-primary);
    border: none;
    color: white !important; /* Force white text on button */
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

    .btn-glow:hover {
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
        transform: translateY(-2px);
    }

/* Interactive Subject Cards */
.sim-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

    .sim-card:hover {
        transform: translateY(-8px);
        border-color: rgba(6, 182, 212, 0.4);
        background: #233147; /* Slightly lighter on hover */
        box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2), 0 5px 15px rgba(139, 92, 246, 0.2);
    }

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

/* Ensure footer text matches dark theme */
footer {
    background-color: var(--bg-main);
    color: var(--text-muted) !important;
}

/* ==========================================
   Curriculum Tree View Styles
========================================== */
.curriculum-tree {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

    .curriculum-tree ul {
        list-style-type: none;
        padding-left: 1.5rem;
        margin-left: 0.75rem;
        border-left: 1px dashed rgba(6, 182, 212, 0.3); /* Connecting line */
        margin-top: 5px;
        margin-bottom: 5px;
    }

.tree-item {
    padding: 10px 15px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

    .tree-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

/* Specific Level Styling */
.tree-subject {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--glow-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.tree-chapter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--glow-violet);
}

.tree-topic {
    font-size: 1rem;
    font-weight: 500;
    color: var(--glow-yellow);
}

.tree-page {
    font-size: 0.95rem;
    color: #f8fafc;
    text-decoration: none !important;
}

    .tree-page:hover {
        color: var(--glow-cyan);
        transform: translateX(5px); /* Slide right slightly on hover */
        border-color: rgba(6, 182, 212, 0.3);
    }

/* Rotating Chevron Icon Logic */
.tree-toggle .chevron {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Bootstrap sets aria-expanded="true" when open */
.tree-toggle[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
    opacity: 1;
}


/* ==========================================
   Drill-Down Grid Box Styles
========================================== */
.nav-box {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    padding: 1.5rem;
    text-align: center;
}

    .nav-box:hover {
        transform: translateY(-8px);
        border-color: var(--glow-cyan);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
        background: #233147; /* Slightly brighter on hover */
    }

    .nav-box h4, .nav-box h5, .nav-box h6 {
        margin: 0;
        color: #ffffff;
        font-weight: 700;
    }

.nav-box-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

/* Force the hand cursor (pointer) on all Tree View items and their text/icons */
.tree-item,
.tree-item * {
    cursor: pointer !important;
}

/* Force the hand cursor (pointer) on all Drill-Down Grid Boxes and their text/icons */
.nav-box,
.nav-box * {
    cursor: pointer !important;
}

/* Ensure Breadcrumb links also get the hand cursor */
.drill-crumb {
    cursor: pointer !important;
}