:root {
    --primary: #e4a824;
    --primary-light: #f5c150;
    --secondary: #0b237a;
    --secondary-dark: #071754;
    --text-light: #f8f9fa;
    --text-dark: #121212;
    --bg-light: #ffffff;
    --bg-alt: #f1f3fa;
    --gradient-blue: linear-gradient(135deg, #0b237a 0%, #071754 100%);
    --gradient-gold: linear-gradient(135deg, #e4a824 0%, #f5c150 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

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

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary);
}

p {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--secondary-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(228, 168, 36, 0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 35, 122, 0.2);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(228, 168, 36, 0.5);
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(228, 168, 36, 0.4);
    }

    100% {
        box-shadow: 0 0 30px rgba(228, 168, 36, 0.8);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(11, 35, 122, 0);
}

.navbar.scrolled {
    background: rgba(11, 35, 122, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo img {
    width: 200px;
}

.logo span {
    color: var(--primary);
}

.nav-cta {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    color: var(--secondary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Premium space/earth aesthetic from unsplash for a strong visual impact */
    background: url('/about/mission-partner/assets/images/bg-hero.webp') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 35, 122, 0.5) 0%, rgba(11, 35, 122, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-top: 50px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-primary:hover .arrow {
    transform: translateY(3px);
}

/* Info Section (Section 2) */
.info-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(228, 168, 36, 0.15);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.info-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.info-image {
    position: relative;
    width: 100%;
}

.image-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.image-collage img {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-collage img:hover {
    transform: scale(1.05);
    z-index: 10 !important;
}

.collage-img-1 {
    width: 60%;
    height: 60%;
    top: -15px;
    left: 0;
    z-index: 3;
}

.collage-img-2 {
    width: 45%;
    height: 45%;
    bottom: 0;
    left: 10%;
    z-index: 2;
    border: 4px solid var(--bg-light);
}

.collage-img-3 {
    width: 45%;
    height: 55%;
    top: 5%;
    right: -12px;
    z-index: 1;
    border: 4px solid var(--bg-light);
}

.collage-accent {
    position: absolute;
    top: 13px;
    right: -35px;
    width: 60%;
    height: 70%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: 0;
    transition: transform 0.5s ease;
}

.info-section:hover .collage-accent {
    transform: translate(15px, -15px);
}

/* Goal Section (Section 3) */
.goal-section {
    padding: 8rem 0;
    /* Add a solid cinematic background with beautiful overlay */
    background: url('/about/mission-partner/assets/images/three_angels2.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    color: var(--text-light);
}

.goal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 35, 122, 0.79);
    z-index: 1;
}

.goal-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.goal-section h2 {
    color: var(--text-light);
    font-size: 2.8rem;
}

.goal-section .large-p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 2rem auto;
    border-radius: 2px;
}

/* Cards Section (Section 4) */
.cards-section {
    padding: 8rem 0;
    background-color: var(--bg-alt);
    position: relative;
}

.cards-section h2 {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

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

.card {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 2px solid var(--primary-light);
    cursor: default;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(11, 35, 122, 0.15);
    border-color: var(--primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(11, 35, 122, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    background: var(--gradient-gold);
    color: var(--secondary-dark);
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Image Cards */
.image-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-light);
}

.image-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(11, 35, 122, 0.15);
    border-color: var(--primary);
}

.image-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.image-card:hover .image-card-img {
    transform: scale(1.05);
}

.image-card-content {
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.image-card-content p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Tiers Section */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.tier-card {
    background: var(--bg-alt);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    border: 2px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 35, 122, 0.15);
    border-color: var(--primary-light);
}

.tier-card.featured {
    background: var(--bg-light);
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(228, 168, 36, 0.15);
    z-index: 2;
}

.tier-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(228, 168, 36, 0.3);
}

.tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--secondary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(228, 168, 36, 0.4);
    white-space: nowrap;
}

.tier-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tier-card h4 {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tier-card p {
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tier-card .btn {
    width: 100%;
    margin-top: auto;
    font-size: 14px;
}

/* Stand With Mission Section (Section 9) */
.stand-section {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(228, 168, 36, 0.05) 50%, rgba(11, 35, 122, 0.05) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    background-color: #fafbfc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.align-start {
    align-items: flex-start;
}

.stand-left {
    padding-right: 2rem;
}

.stand-left p {
    font-size: 1.25rem;
    color: #444;
}

.stand-right {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.impact-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--secondary-dark);
    padding: 2.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tier-card.featured {
        transform: scale(1);
    }

    .tier-card.featured:hover {
        transform: translateY(-10px);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .info-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .image-accent {
        display: none;
    }

    .info-text .btn {
        margin: 0 auto;
    }

    .stand-left {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .goal-section h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .goal-section .large-p {
        font-size: 1.2rem;
    }

    .cards-section {
        padding: 5rem 0;
    }

    .info-section {
        padding: 5rem 0;
    }

    .goal-section {
        padding: 5rem 0;
    }
}

/* Modal Styles */
.modal {
    visibility: hidden;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 35, 122, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #999;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--secondary);
    text-decoration: none;
}

.modal-body {
    min-height: 400px;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .close-btn {
        top: 5px;
        right: 15px;
        font-size: 2rem;
    }

    #neon-form-embed-12 {
        height: 80vh !important;
        /* Ensure iframe has enough height on mobile */
    }
}
