/* Global Stylesheet: School Web Portal Premium CSS */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Color Themes Map */
:root {
    --font-primary: 'Outfit', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
}

/* Theme configurations */
.theme-navy-gold {
    --bg-color: #050b18;
    --card-bg: rgba(13, 22, 42, 0.65);
    --card-border: rgba(148, 163, 184, 0.08);
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(13, 22, 42, 0.75);
    --header-bg: rgba(5, 11, 24, 0.85);
    --glow-color: rgba(59, 130, 246, 0.06);
}

.theme-crimson-white {
    --bg-color: #0f0305;
    --card-bg: rgba(28, 8, 12, 0.7);
    --card-border: rgba(244, 63, 94, 0.08);
    --primary-color: #881337;
    --primary-light: #f43f5e;
    --accent-color: #fcd34d;
    --accent-glow: rgba(252, 211, 77, 0.2);
    --text-color: #f8fafc;
    --text-muted: #e2e8f0;
    --glass-bg: rgba(28, 8, 12, 0.78);
    --header-bg: rgba(15, 3, 5, 0.85);
    --glow-color: rgba(244, 63, 94, 0.06);
}

.theme-royal-emerald {
    --bg-color: #020a05;
    --card-bg: rgba(8, 28, 15, 0.7);
    --card-border: rgba(16, 185, 129, 0.08);
    --primary-color: #064e3b;
    --primary-light: #10b981;
    --accent-color: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.2);
    --text-color: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(8, 28, 15, 0.78);
    --header-bg: rgba(2, 10, 5, 0.85);
    --glow-color: rgba(16, 185, 129, 0.06);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
}

/* Background Ambient Glows */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
}

/* Header style */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
}

header.site-header.scrolled {
    padding: 12px 40px;
    background: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0f172a !important;
    font-weight: 900;
    font-size: 1.4rem;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    color: #f59e0b;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.2));
}

.logo-highlight {
    color: #f59e0b !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-item:hover .nav-link {
    color: #0f172a;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Submenu dropdown */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 240px;
    list-style: none;
    border-radius: var(--radius-md);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--card-border);
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-link {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.submenu-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    filter: brightness(1.1);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #050b18;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    filter: brightness(1.1);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 11, 24, 0.9) 0%, rgba(5, 11, 24, 0.4) 50%, rgba(5, 11, 24, 0.1) 100%);
}

.slide-content {
    position: relative;
    max-width: 1200px;
    padding: 0 60px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.slide-badge {
    background-color: var(--accent-glow);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content h1 {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Page Wrapper */
.page-content {
    max-width: 1300px;
    margin: 120px auto 60px auto;
    padding: 0 40px;
}

/* Home Section Layouts */
section.home-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Cards */
.card-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.card-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md), 0 0 30px rgba(255, 255, 255, 0.02);
}

/* Notice Board */
.notice-board-container::-webkit-scrollbar {
    width: 6px;
}
.notice-board-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}
.notice-board-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.notice-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    padding-left: 6px;
}

.notice-date {
    font-size: 0.82rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.notice-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.notice-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats Counter Section */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin: 40px 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer.site-footer {
    background-color: #02040a;
    border-top: 1px solid var(--card-border);
    padding: 80px 40px 40px 40px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.footer-column p, .footer-column li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 60px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Chatbot Floating Widget */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-normal);
}

.chatbot-trigger:hover {
    transform: scale(1.08) rotate(5deg);
}

/* Chatbot Box styling */
.chatbot-box {
    border: 1px solid var(--card-border) !important;
    background: rgba(13, 22, 42, 0.85) !important;
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 0, 0, 0.3) !important;
}

/* Form Styles for admission etc. */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: rgba(0, 0, 0, 0.5);
}

/* Media Queries */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header.site-header {
        padding: 16px 20px;
    }
    header.site-header.scrolled {
        padding: 12px 20px;
    }
    .nav-menu, .header-actions {
        display: none;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .slide-content h1 {
        font-size: 2.8rem;
    }
    .slide-content {
        padding: 0 24px;
    }
    .page-content {
        padding: 0 20px;
        margin-top: 80px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
