:root {
    --deep-blue: #1E3A8A;
    --teal: #0EA5E9;
    --gold: #F59E0B;
    --white: #ffffff;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--deep-blue), var(--teal));
    color: #e2e8f0!important;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.light-mode {
    background: var(--light-bg);
    color: #0f172a;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.5;
            background-color: #f9fafb;
        }

        /* Skip to Main Content - Accessibility */
        .skip-link {
            position: absolute;
            left: -9999px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
            z-index: 10000;
        }

        .skip-link:focus {
            position: fixed;
            top: 10px;
            left: 10px;
            width: auto;
            height: auto;
            padding: 8px 16px;
            background: #2E1A47;
            color: white;
            text-decoration: none;
            border-radius: 4px;
        }

        /* Top Bar - Dark Purple */
        .top-bar {
            background-color: #2E1A47;
            padding: 8px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Indian Flag */
        .indian-flag {
            width: 24px;
            height: 16px;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            overflow: hidden;
        }

        .flag-saffron {
            flex: 1;
            background-color: #FF9933;
        }

        .flag-white {
            flex: 1;
            background-color: #FFFFFF;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ashoka-chakra {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            border: 1px solid #000080;
            position: relative;
        }

        .ashoka-chakra::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2px;
            height: 2px;
            background: #000080;
            border-radius: 50%;
        }

        .flag-green {
            flex: 1;
            background-color: #138808;
        }

        .govt-text {
            color: white;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        /* Top Bar Right Section */
        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* Font Size Controls */
        .font-controls {
            display: flex;
            align-items: center;
            gap: 2px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            padding: 2px 6px;
        }

        .font-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 2px 6px;
            font-size: 12px;
            transition: opacity 0.2s;
        }

        .font-btn:hover {
            opacity: 0.8;
        }

        .font-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .font-btn.medium {
            font-size: 14px;
        }

        .font-btn.large {
            font-size: 16px;
        }

        /* Helpline */
        .helpline {
            display: flex;
            align-items: center;
            gap: 6px;
            color: white;
            font-size: 13px;
        }

        .helpline svg {
            flex-shrink: 0;
        }

        .helpline strong {
            font-weight: 600;
        }

        /* Get Support Button */
        .support-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            color: white;
            font-size: 13px;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .support-btn:hover {
            opacity: 0.8;
        }

        /* Language Toggle */
        .lang-dropdown {
            position: relative;
        }

        .lang-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            color: white;
            font-size: 14px;
            cursor: pointer;
            padding: 4px 8px;
            transition: background-color 0.2s;
        }

        .lang-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .lang-btn svg {
            transition: transform 0.2s;
        }

        .lang-btn.active svg {
            transform: rotate(180deg);
        }

        .lang-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 4px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 120px;
            z-index: 100;
            display: none;
            overflow: hidden;
        }

        .lang-menu.show {
            display: block;
        }

        .lang-menu button {
            display: block;
            width: 100%;
            padding: 10px 16px;
            border: none;
            background: none;
            text-align: left;
            cursor: pointer;
            color: #333;
            font-size: 14px;
            transition: background-color 0.2s;
        }

        .lang-menu button:hover {
            background-color: #f5f5f5;
        }

        /* Main Header */
        .main-header {
            background-color: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 50;
            border-bottom: 3px solid #FF6B00;
        }

        .header-container {
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Logo Section */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .emblem {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .title-section {
            display: flex;
            flex-direction: column;
        }

        .title-hindi {
            font-size: 10px;
            color: #666;
            letter-spacing: 0.5px;
        }

        .title-english {
            font-size: 10px;
            color: #666;
            letter-spacing: 0.5px;
        }

        .title-main {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: 0.5px;
            margin-top: 4px;
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        /* Navigation */
        .nav-section {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .nav-links a {
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: #FF6B00;
        }

        /* Login Dropdown */
        .login-dropdown {
            position: relative;
        }

        .login-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: #FF6B00;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .login-btn:hover {
            background-color: #E55D00;
        }

        .login-btn svg {
            transition: transform 0.2s;
        }

        .login-btn.active svg {
            transform: rotate(180deg);
        }

        .login-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 4px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 200px;
            z-index: 100;
            display: none;
            overflow: hidden;
        }

        .login-menu.show {
            display: block;
        }

        .login-menu button {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 12px 16px;
            border: none;
            background: none;
            text-align: left;
            cursor: pointer;
            color: #333;
            font-size: 14px;
            transition: background-color 0.2s;
        }

        .login-menu button:hover {
            background-color: #f5f5f5;
        }

        /* Mobile Navigation */
        .mobile-nav {
            display: none;
            padding: 16px 24px;
            border-top: 1px solid #eee;
        }

        .mobile-nav.show {
            display: block;
        }

        .mobile-nav-content {
            display: flex;
            flex-direction: column;
            gap: 0px;
        }

        .mobile-nav-content a {
            color: #333;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            padding: 8px 0;
        }

        .mobile-login-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background-color: #FF6B00;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
        }

        /* Main Content */
        .main-content {
            min-height: calc(100vh - 200px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 24px;
            background-color: #f9fafb;
        }

        .main-content h1 {
            font-size: 32px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 16px;
            text-align: center;
        }

        .main-content p {
            font-size: 16px;
            color: #666;
            max-width: 600px;
            line-height: 1.6;
            text-align: center;
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .nav-section {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .top-bar {
                padding: 8px 16px;
            }

            .header-container {
                padding: 12px 16px;
            }

            .helpline {
                display: none;
            }

            .logo-section {
                gap: 12px;
            }

            .title-hindi,
            .title-english {
                font-size: 8px;
            }

            .title-main {
                font-size: 14px;
            }

            .emblem {
                width: 50px;
                height: 50px;
            }
        }

        @media (max-width: 480px) {
            .top-bar-right {
                gap: 8px;
            }

            .support-btn span {
                display: none;
            }

            .support-btn {
                padding: 4px;
            }

            .govt-text {
                font-size: 11px;
            }

            .font-controls {
                padding: 2px 4px;
            }

            .font-btn {
                padding: 2px 4px;
                font-size: 10px;
            }

            .font-btn.medium {
                font-size: 12px;
            }

            .font-btn.large {
                font-size: 14px;
            }
        }
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.typed-text {
    color: var(--gold);
    font-weight: 700;
}
.stats-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.stats-box:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

/* Cards */
.neumorphic-card {
    background: #e0e5ec;
    border-radius: 30px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
    padding: 1.5rem;
    transition: all 0.3s;
    color: #1e293b;
}
body.light-mode .neumorphic-card {
    background: #e0e5ec;
    color: #0f172a;
}
.dark-card {
    background: rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: 0.3s;
}
.dark-card:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

/* Scholar Card Flip */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.flip-card-front {
    background: linear-gradient(145deg, var(--deep-blue), var(--teal));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.flip-card-back {
    background: var(--gold);
    color: var(--deep-blue);
    transform: rotateY(180deg);
    overflow-y: auto;
}

/* Gallery Masonry */
.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}
.masonry-item:hover {
    transform: scale(1.02);
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}