/* Custom Styles for School Website - Improved Premium Version */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4361ee;
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --secondary-color: #4cc9f0;
    --accent-color: #f72585;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px -10px rgba(67, 97, 238, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 0;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand img {
    height: 45px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.5);
    transition: transform 10s linear;
}

#schoolGallery .carousel-item.active .hero-img {
    transform: scale(1.1);
}

.carousel-caption {
    bottom: 35%;
    text-align: left;
    max-width: 800px;
    left: 10%;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.carousel-caption p {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators [button] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
    border-color: white;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    padding: 14px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
    background: var(--primary-gradient);
}

/* Stats Section */
.stats-section {
    position: relative;
    margin-top: -80px;
    z-index: 20;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Section */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.feature-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 25px;
}

/* Contact Section */
.contact-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.contact-info-panel {
    background: var(--primary-gradient);
    padding: 60px !important;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 80px 0 40px;
}

@media (max-width: 991px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption {
        bottom: 25%;
        left: 5%;
        right: 5%;
        text-align: center;
    }

    .stats-section {
        margin-top: 40px;
    }
}