@view-transition { navigation: auto; }

body {
    box-sizing: border-box;
}

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

:root {
    --primary-gold: #f2a53b;
    --primary-maroon: #8c1e22;
    --light-gold: #fef3e2;
    --dark-maroon: #6b1519;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #fafafa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-maroon) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-maroon));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-gold);
    color: var(--primary-maroon);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--dark-maroon) 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f2a53b" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn-primary-custom {
    background: var(--primary-gold);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary-custom:hover {
    background: var(--white);
    color: var(--primary-maroon);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Impact Stats */
.impact-stats {
    background: var(--white);
    padding: 4rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-bg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--light-gold);
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gold);
}

.mission-vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
}

.mission-vision-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 1.5rem;
}

.mission-vision-card h3 {
    color: var(--primary-maroon);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background: var(--white);
    width: 100%;
}

.program-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.9);
}

.program-card.visible {
    opacity: 1;
    transform: scale(1);
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-maroon));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.program-content {
    padding: 2rem;
}

.program-card h4 {
    color: var(--primary-maroon);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-learn-more {
    color: var(--primary-maroon);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    color: var(--primary-gold);
    gap: 1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: var(--light-gold);
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: rotateY(90deg);
}

.gallery-item.visible {
    opacity: 1;
    transform: rotateY(0deg);
    transition: all 0.6s ease;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
    width: 100%;
}

.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-control {
    border: 2px solid transparent;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(242, 165, 59, 0.25);
    background: var(--white);
}

.contact-info-card {
    background: var(--light-gold);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-maroon);
}

/* Footer */
.footer {
    background: var(--primary-maroon);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    width: 100%;
}

.footer h5 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-maroon);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-maroon);
    color: var(--white);
    transform: translateY(-5px);
}

/* Breadcrumb */
.breadcrumb-custom {
    background: var(--light-gold);
    padding: 1rem 0;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gold);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
