﻿/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
}

    .navbar.scrolled {
        background: #6c5ce7;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: #8e44ad;
        border-radius: 2px;
    }

/* Hero section (adjusted for fixed navbar) */
.hero-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 100px 0;
    margin-top: 70px; /* Prevents overlap with fixed navbar */
}

/* Utility classes */
.text-purple {
    color: #8e44ad !important;
}

.btn-primary {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

.btn-outline-primary {
    color: #8e44ad;
    border-color: #8e44ad;
}

    .btn-outline-primary:hover {
        background-color: #8e44ad;
        color: #fff;
    }

/* Section styles */
.section-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding: 5px 15px;
    border-radius: 8px;
}

.board-section {
    background-color: #e8f0fe;
}

.class-section {
    background-color: #fef3c7;
}

.subject-section {
    background-color: #d1fae5;
}

.chapter-section {
    background-color: #f0f9ff;
}

/* Feature cards */
.feature-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    margin: 15px auto;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        background-color: #f0f9ff;
    }

.feature-icon {
    font-size: 40px;
    color: #4a90e2;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

.board-link {
    text-decoration: none;
    width: 100%;
}

/* Cards */
.card-custom {
    transition: transform 0.2s ease-in-out;
}

    .card-custom:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials */
.testimonials-section {
    background: #0984e3;
    color: white;
    padding: 100px 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 80px 0 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: white;
    }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        background: #6c5ce7;
        transform: translateY(-3px);
    }

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Auth section */
.auth-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

    .auth-tabs .nav-link.active {
        color: #6c5ce7;
        font-weight: 600;
    }

.form-floating label {
    color: #6c5ce7;
}

.auth-switch {
    color: #6c5ce7;
    cursor: pointer;
    text-decoration: underline;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c5ce7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}
