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

:root {
    --navy: #1C2A3A;
    --charcoal: #2F3C4A;
    --soft-gold: #D9B96A;
    --off-white: #F7F7F5;
    --primary-text: #1A1A1A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-text);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 42, 58, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--off-white);
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subheading {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--soft-gold);
    color: var(--charcoal);
}

.btn-primary:hover {
    background-color: #c9a859;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 185, 106, 0.3);
}

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

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--navy);
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--primary-text);
}

.section-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--charcoal);
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--off-white);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.step-icon {
    margin-bottom: 1.5rem;
    color: var(--soft-gold);
    display: flex;
    justify-content: center;
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--soft-gold);
    margin-bottom: 1rem;
}

.step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
}

/* Partners Section */
.partners-section {
    background-color: #ffffff;
}

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.flip-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flip-card-front {
    background-color: #ffffff;
    border: 4px solid #e5e5e5;
}

.flip-card-back {
    background-color: var(--navy);
    color: var(--off-white);
    transform: rotateY(180deg);
}

.card-logo {
    max-width: 350px;
    max-height: 300px;
    object-fit: contain;
}

.card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--soft-gold);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--off-white);
}

/* Give Section */
.give-section {
    background-color: var(--off-white);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--off-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-subheading {
        font-size: 1.125rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flip-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flip-card {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}
