/* ========================================
   Bhartidevi Educational Foundations
   Main Stylesheet
   ======================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo-matched color scheme */
    --primary-yellow: #FFEB3B;        /* Bright yellow from logo ring */
    --light-yellow: #FFF9C4;          /* Light yellow background */
    --accent-yellow: #FFD700;         /* Golden yellow accent */
    --primary-green: #4CAF50;         /* Bright green from logo text */
    --light-green: #C8E6C9;           /* Light green background */
    --accent-green: #00C853;          /* Vibrant green */
    --primary-orange: #FF9800;        /* Orange from logo hands */
    --accent-orange: #FF6F00;         /* Deep orange */
    --primary-pink: #E91E63;          /* Pink from logo figure */
    --primary-red: #F44336;           /* Red from logo figure and Om */
    --white: #FFFFFF;
    --text-dark: #2C3E50;             /* Professional dark text */
    --text-light: #546E7A;            /* Softer gray text */
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

p {
    line-height: 1.8;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 55px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo:hover img {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
   /* =====================================
   DEFAULT HERO (ALL PAGES - NO IMAGE)
   ===================================== */
.hero {
    background: linear-gradient(
        135deg,
        var(--light-yellow) 0%,
        var(--light-green) 50%,
        var(--light-yellow) 100%
    );

    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* =====================================
   HOME PAGE HERO ONLY (WITH IMAGE)
   Use class: hero hero--home
   ===================================== */
.hero--home {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../images/hero-bg.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================================
   FLOATING GRADIENT DECORATIONS
   ===================================== */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        var(--primary-orange) 0%,
        var(--primary-yellow) 50%,
        transparent 70%
    );
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        var(--primary-green) 0%,
        transparent 70%
    );
    opacity: 0.1;
    animation: float 10s ease-in-out infinite reverse;
}

/* =====================================
   FLOAT ANIMATION
   ===================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* =====================================
   HERO CONTENT
   ===================================== */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Heading */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 1s ease;
}

/* Description */
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f1f1f1;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* =====================================
   FADE-IN ANIMATION
   ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   MOBILE RESPONSIVE
   ===================================== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }
}


/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-orange) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-orange) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
}

/* Kinetic Donation Button - Eye-catching blink animation */
.btn-donate {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-red) 100%);
    color: var(--white);
    animation: donatePulse 2s ease-in-out infinite;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.5);
}

.btn-donate::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-red), var(--primary-orange), var(--primary-yellow));
    border-radius: 50px;
    z-index: -1;
    opacity: 0.7;
    animation: donateGlow 2s ease-in-out infinite;
}

@keyframes donatePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(233, 30, 99, 0.5), 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(233, 30, 99, 0.7), 0 0 0 10px rgba(233, 30, 99, 0);
    }
}

@keyframes donateGlow {
    0%, 100% {
        opacity: 0.7;
        filter: blur(5px);
    }
    50% {
        opacity: 1;
        filter: blur(8px);
    }
}

.btn-donate:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(233, 30, 99, 0.8), 0 0 20px rgba(233, 30, 99, 0.6);
}

.btn-donate:hover::after {
    animation: none;
    opacity: 1;
    filter: blur(10px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background-color: var(--white);
    padding: 4rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--light-green) 100%);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: numberCount 1s ease-out;
}

@keyframes numberCount {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* ========================================
   Content Sections
   ======================================== */
.section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink), var(--primary-green));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Cards
   ======================================== */
.card {
    background-color: var(--white);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ========================================
   Success Story Card
   ======================================== */
.success-story {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--light-green) 100%);
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px var(--shadow);
}

.success-story h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: var(--light-yellow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
}

/* ========================================
   Forms
   ======================================== */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ff4444;
}

.form-group.error .error {
    display: block;
}

/* ========================================
   Donation Cards
   ======================================== */
.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.donation-card {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--light-green) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.donation-card:hover::before {
    width: 400px;
    height: 400px;
}

.donation-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-green) 100%);
}

.donation-card.active {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--primary-green) 100%);
    box-shadow: 0 20px 50px rgba(255, 152, 0, 0.4);
    transform: scale(1.05);
}

.donation-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: pulseAmount 3s ease-in-out infinite;
}

@keyframes pulseAmount {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.donation-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.donation-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ========================================
   Map Placeholder
   ======================================== */
.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--light-yellow);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 2px solid var(--light-green);
}

.map-placeholder {
    text-align: center;
    color: var(--text-light);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-container,
    .card-grid,
    .donation-cards {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }



.site-credit {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.site-credit strong {
    font-weight: 500;
    color: #666;
}

.site-credit a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-credit a:hover {
    color: var(--primary-orange);
}
