/* Reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    overflow-x: hidden;
    background: #111; /* Default dark mode background */
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light Mode */
body.light-mode {
    background: #f5f5f5; /* Light gray background */
    color: #333; /* Dark text for contrast */
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); /* Dark mode overlay */
}

body.light-mode .container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)); /* Light mode overlay */
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.modal-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    animation: fadein 1s;
}

body.light-mode .modal-content {
    background: rgba(255, 255, 255, 0.98); /* Slightly brighter in light mode */
    color: #333;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-bar {
    height: 8px;
    background: #4CAF50;
    margin-top: 15px;
    animation: load 5s forwards;
}

@keyframes load {
    from { width: 100%; }
    to { width: 0%; }
}

/* Center Content */
.center.cont {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 1;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

body.light-mode .center.cont {
    background: rgba(0, 0, 0, 0.1); /* Lighter in light mode */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #00ffcc, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .title {
    background: linear-gradient(90deg, #007bff, #00ccff); /* Adjusted for light mode */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #fff;
}

body.light-mode .subtitle {
    color: #555; /* Darker gray for light mode */
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.theme-toggle .fa-sun {
    display: none;
}

body.light-mode .theme-toggle .fa-moon {
    display: none;
}

body.light-mode .theme-toggle .fa-sun {
    display: inline;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

/* Button Styling */
.glow-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light-mode .glow-btn {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

.glow-btn:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, #00ffcc, #00ccff, #ff00cc, #00ffcc);
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowing 20s linear infinite;
    border-radius: 10px;
}

.glow-btn:hover:before {
    opacity: 1;
}

.glow-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
    border-radius: 10px;
}

body.light-mode .glow-btn:after {
    background: rgba(0, 0, 0, 0.15);
}

.glow-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.light-mode .glow-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    color: #333;
}

.map-btn {
    background: rgba(76, 175, 80, 0.8);
}

.map-btn:after {
    background: rgba(76, 175, 80, 0.8);
}

.map-btn:hover {
    background: rgba(76, 175, 80, 1);
}

.admission-btn {
    background: rgba(255, 87, 34, 0.8);
}

.admission-btn:after {
    background: rgba(255, 87, 34, 0.8);
}

.admission-btn:hover {
    background: rgba(255, 87, 34, 1);
}

/* Support Bot */
.support-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Open Sans', sans-serif;
}

.bot-icon {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 1.5s infinite ease-in-out, glow 2s infinite ease-in-out;
}

.support-bot.active .bot-icon {
    display: none;
}

.bot-icon:hover {
    background-color: #20BF55;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 1);
}

.bot-icon .whatsapp-svg {
    width: 36px;
    height: 36px;
}

.bot-icon .whatsapp-label {
    display: none;
    position: absolute;
    right: 80px;
    left: auto;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: #78D8F8;
    color: #2B3990;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bot-icon:hover .whatsapp-label {
    display: block;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.bot-icon .whatsapp-label .arrow-svg {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

.bot-icon .whatsapp-nudge {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2B3990;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    animation: nudge 10s infinite;
}

.bot-icon:hover .whatsapp-nudge {
    opacity: 0;
    animation: none;
}

.bot-content {
    display: none;
    width: 320px; /* Slightly wider for chatbox */
    background: linear-gradient(135deg, #2B3990, #111); /* Cool dark gradient */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3); /* Techy glow */
    animation: slide-in 0.3s ease-out;
}

body.light-mode .bot-content {
    background: linear-gradient(135deg, #e0f7ff, #f5f5f5); /* Light gradient */
    color: #333;
}

.support-bot.active .bot-content {
    display: block;
}

.bot-header {
    background: linear-gradient(90deg, #00ffcc, #00ccff);
    color: #fff;
    padding: 12px 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 204, 255, 0.5); /* Glowing edge */
}

body.light-mode .bot-header {
    background: linear-gradient(90deg, #007bff, #00ccff);
}

.bot-header i {
    margin-right: 5px;
}

.bot-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.bot-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-chat {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    animation: fade-in 0.2s ease;
}

.chat-message.user {
    background: #78D8F8; /* User bubble */
    color: #2B3990;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-message.bot {
    background: #2B3990; /* Bot bubble */
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .chat-message.user {
    background: #5BC8F0;
    color: #333;
}

body.light-mode .chat-message.bot {
    background: #007bff;
    color: #fff;
}

.chat-message.bot a {
    color: #00ffcc;
    text-decoration: none;
}

.chat-message.bot a:hover {
    text-decoration: underline;
}

.bot-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bot-question {
    background: #78D8F8;
    color: #2B3990;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

body.light-mode .bot-question {
    background: #5BC8F0;
}

.bot-question:hover {
    background: #5BC8F0;
}

body.light-mode .bot-question:hover {
    background: #4CAF50;
}

.bot-whatsapp {
    display: block;
    margin-top: 10px;
    color: #25D366;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.bot-whatsapp:hover {
    text-decoration: underline;
}

.bot-whatsapp i {
    margin-left: 5px;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.9); }
    50% { box-shadow: 0 0 25px rgba(37, 211, 102, 1); }
}

@keyframes nudge {
    0%, 70%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    72%, 78% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .bot-icon {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .bot-icon .whatsapp-svg {
        width: 30px;
        height: 30px;
    }
    .bot-icon .whatsapp-label {
        font-size: 14px;
        right: 70px;
        padding: 6px 12px;
    }
    .bot-icon .whatsapp-label .arrow-svg {
        width: 12px;
        height: 12px;
    }
    .bot-icon .whatsapp-nudge {
        font-size: 12px;
        bottom: 70px;
        padding: 5px 10px;
    }
    .bot-content {
        width: 90%;
        right: 10px;
        bottom: 10px;
    }
}