/* 1. CORE VARIABLES & RESET */
:root {
    --primary: #2a52be;    /* Professional Blue */
    --accent: #ff9800;     /* OSSC Orange */
    --gk-color: #d32f2f;   /* Deep Red */
    --math-color: #1976d2; /* Strong Blue */
    --reason-color: #388e3c;/* Forest Green */
    --comp-color: #7b1fa2; /* Technology Purple */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

body { 
    line-height: 1.6; 
    color: #333; 
    scroll-behavior: smooth; 
    padding-top: 70px; /* Space for fixed navbar */
    background-color: #fff;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 2. NAVBAR (Fixed & Stable) */
.navbar {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo { 
    font-size: 24px; 
    font-weight: bold; 
    color: var(--primary); 
}

.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: #333; 
    font-weight: bold; 
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.nav-btn { 
    background: var(--primary); 
    color: #fff !important; 
    padding: 8px 18px; 
    border-radius: 5px; 
}

/* 3. HERO & SECTIONS */
.hero { 
    height: 60vh; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }

.section { padding: 80px 0; }
.gray-bg { background: #f9f9f9; }

.flex { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    flex-wrap: wrap; 
}

.reverse { flex-direction: row-reverse; }
.center-text { text-align: center; margin-bottom: 40px; }

/* 4. SUBJECT SPECIFIC COLORS (H3 & CARDS) */
.text-gk h3, .card-gk i, .card-gk h3 { color: var(--gk-color); }
.text-math h3, .card-math i, .card-math h3 { color: var(--math-color); }
.text-reasoning h3, .card-reasoning i, .card-reasoning h3 { color: var(--reason-color); }
.text-computer h3, .card-computer i, .card-computer h3 { color: var(--comp-color); }

h3 { font-size: 2rem; margin-bottom: 15px; }

/* 5. CARDS GRID */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
}

.card { 
    background: #fff; 
    padding: 30px; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    text-align: center; 
    transition: 0.3s; 
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.card i { font-size: 45px; margin-bottom: 15px; }
.card h3 { font-size: 1.2rem; }

/* 6. BUTTONS */
.btn-primary { 
    background: var(--accent); 
    color: #fff; 
    margin-top: 15px;
    padding: 15px 30px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    box-shadow: -5px -5px 15px rgba(0.3, 0.3, 0.3, 0.3);
}

.white-btn { 
    background: #fff; 
    color: var(--primary); 
}

.btn-secondary { 
    background: #fff; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    padding: 10px 22px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
}

.btn-link { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 10px; 
    display: block; 
}

/* 7. IMAGES */
.image-box { flex: 1; min-width: 300px; 
    
}
.image-box img { 
    width: 100%; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.text-box { flex: 1; }

/* 8. POPUP MODAL (Coming Soon) */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.modal-content h2 { color: var(--primary); margin-bottom: 10px; }
.modal-content p { margin-bottom: 20px; color: #666; }

/* 9. MOBILE MENU & RESPONSIVENESS */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        background: #fff; 
        width: 100%; 
        padding: 20px; 
        border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .flex { flex-direction: column; text-align: center; }
}

/* Footer */
footer { 
    background: #222; 
    color: #ccc; 
    text-align: center; 
    padding: 40px 0; 
    margin-top: 60px; 
}
/* Stats Bar */
.stats-bar {
    background: var(--primary);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

/* Feature Badge */
.highlight-text {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}


/* Eye-Catching Slim Footer */
.slim-footer {
    position: relative;
    background: #1a1a1a;
    padding: 25px 0;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.6);
}

/* The Glowing Top Border */
.footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.odisha-text {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* Social Icon Pulse Effect */
.social-icon {
    color: white;
    font-size: 1.2rem;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
}

.whatsapp:hover { color: #25D366; filter: drop-shadow(0 0 8px #25D366); }
.telegram:hover { color: #0088cc; filter: drop-shadow(0 0 8px #0088cc); }

/* Mobile Centering */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        margin-top: 5px;
    }
    .social-icon {
        margin: 0 10px;
    }
}


/* Floating Widget Container */
#ai-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Chat Window */
#chat-window {
    display: none; /* Hidden by default */
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

/* Header */
#chat-header {
    background: #2a52be;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* Message Area */
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.user-msg {
    background: #2a52be;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-msg {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Input Area */
#chat-input-area {
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

#chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
}

#chat-input-area button {
    background: #2a52be;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Toggle Button */
#chat-toggle-btn {
    width: 60px;
    height: 60px;
    background: #2a52be;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 82, 190, 0.4);
    transition: transform 0.3s;
    margin-left: auto;
}

#chat-toggle-btn:hover { 
    transform: scale(1.1); 
}

/* Mobile Responsiveness for AI Widget */
@media (max-width: 600px) {
    #ai-widget-container {
        right: 15px;
        bottom: 15px;
    }
    /* Ensure the chat window uses flex correctly when displayed */
#chat-window {
    display: none; 
    flex-direction: column; 
}
}
