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

:root {
    --primary-color: #2d2d2d;
    --accent-color: #f5a623;
    --accent-gradient: linear-gradient(135deg, #f5a623, #ff6b35);
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-cream: #f5f0e8;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* SDG Colors */
    --sdg-1: #e5243b;
    --sdg-3: #4c9f38;
    --sdg-4: #c5192d;
    --sdg-5: #ff3a21;
    --sdg-8: #a21942;
    --sdg-10: #dd1367;
    --sdg-13: #3f7e44;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('AVF Banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.logo-section {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.main-title::first-line {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-muted);
    animation: fadeInUp 1s ease-out 0.6s both;
    letter-spacing: 1px;
}

/* Section Title */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Impact Section */
.impact-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.impact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.impact-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 20px;
}

.sdg-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.sdg-1 { background: var(--sdg-1); }
.sdg-3 { background: var(--sdg-3); }
.sdg-4 { background: var(--sdg-4); }
.sdg-5 { background: var(--sdg-5); }
.sdg-8 { background: var(--sdg-8); }
.sdg-10 { background: var(--sdg-10); }
.sdg-13 { background: var(--sdg-13); }

.impact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.impact-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* SDG 13 card - centered in last row */
.sdg-13-card {
    grid-column: 2;
}

/* Shloka Section */
.shloka-section {
    padding: 100px 20px;
}

.shloka-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--text-dark) 0%, #3d3d3d 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.shloka-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    animation: shimmer 10s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shloka-text {
    position: relative;
    z-index: 1;
}

.sanskrit {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(245, 166, 35, 0.5);
}

.translation {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.1) 100%);
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 60px;
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.5);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    background: #20bd5a;
}

.link-icon,
.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    padding: 50px 20px;
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

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

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

/* Scroll Animations */
.impact-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.impact-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdg-13-card {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }

    .logo {
        max-width: 280px;
    }

    .impact-section,
    .shloka-section,
    .cta-section {
        padding: 60px 15px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sdg-13-card {
        grid-column: auto;
        max-width: none;
    }

    .impact-card {
        padding: 30px 20px;
    }

    .shloka-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

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

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

@media (max-width: 480px) {
    .logo {
        max-width: 220px;
    }

    .main-title {
        letter-spacing: 1px;
    }

    .impact-card h3 {
        font-size: 1rem;
    }

    .impact-card p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for the whole page */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Accessibility - Focus states */
.btn:focus,
.impact-card:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .bg-overlay {
        display: none;
    }

    body {
        background: white;
    }
}
