/* Base Styles and Variables */
:root {
    --primary: #191347;
    --secondary: #FFFFFF;
    --accent1: #8686AC;
    --text-dark: #333333;
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-padding-top: calc(88px + 3rem); /* Height of navbar (84px) + extra padding */
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(25, 19, 71, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Adjust based on your logo size */
    width: auto;
}

.logo span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.donate-btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.donate-btn):hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 0;
    color: var(--secondary);
    text-align: left;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-video.active {
    opacity: 1;
    z-index: 1;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(25, 19, 71, 0.80), rgba(25, 19, 71, 0.70));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    position: relative;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.hero h1 em {
    display: block;
    font-style: normal;
    margin-top: 0.2rem;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

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

.btn:hover {
    background: var(--accent1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Navigation adjustments */
    .navbar .container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .donate-btn {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Hero adjustments */
    .hero {
        padding: calc(8rem + var(--spacing-lg)) 0 var(--spacing-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Small devices */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 30px;
    }
}

/* Add hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero-text {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

/* Floating animation for visual elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Stats Section */
.stats {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(to bottom, rgba(134, 134, 172, 0.05) 0%, var(--secondary) 100%);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(25, 19, 71, 0.1);
}

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

.stat-bubble {
    background: var(--secondary);
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(25, 19, 71, 0.1);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.stat-number {
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-subtext {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent1);
}

.stat-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(25, 19, 71, 0.05);
}

@media screen and (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Mission Section */
.mission {
    padding: calc(var(--spacing-lg) + 2rem) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.mission-content {
    max-width: 85%;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.mission h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    max-width: 900px;
}

.mission-verse {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    max-width: 900px;
    font-style: italic;
    color: var(--primary);
}

.mission-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border: 1px solid rgba(25, 19, 71, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary);
}

.value-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: left;
}

.value-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(25, 19, 71, 0.1);
}

.mission-footer {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
}

.mission-footer p {
    margin-bottom: var(--spacing-md);
}

.mission-background {
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 120%;
    background: url('../images/WingsBackground.svg') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

/* Mission Section Responsive */
@media screen and (max-width: 1200px) {
    .mission-content {
        max-width: 90%;
    }
}

@media screen and (max-width: 992px) {
    .mission-content {
        max-width: 100%;
        margin-left: 0;
    }
    .mission-values {
        max-width: 100%;
    }
    .mission-background {
        opacity: 0.05;
    }
}

@media screen and (max-width: 768px) {
    .mission-values {
        gap: 1.5rem;
    }
    
    .value-item:hover {
        transform: translateX(5px);
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .value-item h3 {
        font-size: 1.8rem;
    }
}

/* About Section */
.about {
    padding: calc(var(--spacing-lg) + 2rem) 0 var(--spacing-lg);
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

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

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

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-image {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(25, 19, 71, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

@media screen and (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Programs Section */
.programs {
    padding: calc(var(--spacing-lg) + 2rem) 0 var(--spacing-lg);
    background: linear-gradient(to bottom, var(--secondary) 0%, rgba(134, 134, 172, 0.05) 100%);
}

.programs-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.programs h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: inherit;
    padding: 1rem;
    position: relative;
    border: 1.5px solid rgba(25, 19, 71, 0.08);
}

.program-card:hover {
    transform: translateY(-5px);
    border: 1.5px solid rgba(25, 19, 71, 0.15);
    box-shadow: 0 10px 30px rgba(25, 19, 71, 0.03);
}

.program-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 2rem;
}

.program-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.program-card:hover .program-image {
    background-color: rgba(134, 134, 172, 0.2) !important;
}

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

.program-content {
    padding: 1.5rem 0;
    color: var(--text-dark);
}

.program-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.program-card:hover .program-content h3 {
    color: var(--accent1);
}

.program-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--primary);
}

.program-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.program-link:hover {
    color: var(--accent1);
}

.program-link:hover i {
    transform: translateX(5px);
}

/* Programs Section Responsive */
@media screen and (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .programs h2 {
        font-size: 2.8rem;
    }

    .section-intro {
        font-size: 1.1rem;
    }

    .program-content {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-lg) + 2rem) 0 var(--spacing-lg);
    background: var(--secondary);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.contact-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.contact-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    background: var(--secondary);
    padding: 2.5rem;
    border: 1px solid rgba(25, 19, 71, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(25, 19, 71, 0.1);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(25, 19, 71, 0.1);
}

.submit-btn {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent1);
}

/* Contact Section Responsive */
@media screen and (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .contact h2 {
        font-size: 2.8rem;
    }

    .contact-intro {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
