/* Global Styles */
:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #d4af37;
    --light: #ffffff;
    --dark: #0a0a0a;
    --text: #333333;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

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

.btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border: 1px solid var(--primary);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.btn-accent {
    background: var(--primary);
    color: var(--light);
    border: 1px solid var(--primary);
}

.btn-accent2 {
    background: var(--accent);
    color: var(--light);
    border: 1px solid var(--accent);
}

.btn-accent:hover {
    background: transparent;
    color: var(--primary);
}

.btn-accent2:hover {
    background: transparent;
    color: var(--accent);
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
    padding: 100px 0; /* Add this line for desktop spacing */
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    font-weight: 300;
}

/* Header Styles */
header {
    background: var(--light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 300;
    transition: var(--transition);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px); /* if your header is 80px tall */
    background: url('../assets/hero-bg.jpg') center center/cover no-repeat;
    height: 100vh;
    min-height: 500px; /* optional: ensures it's not too short on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary);
    position: relative;
    transform: none !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* current overlay */
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--light); /* Make the title light */
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7); /* Add shadow for readability */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: block;
    margin: 0 auto;
}

/* Lessons Section */
.lessons {
    background-color: #f7f7f7;
}

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

.lesson-card {
    background: var(--light);
    padding: 40px 30px;
    transition: var(--transition);
    text-align: center;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lesson-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.lesson-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.lesson-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--secondary);
}

/* Testimonials */
.testimonials {
    padding: 100px 0; /* Adds space above and below */
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    text-align: center;
}

.testimonial.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--secondary);
}

.testimonial-author {
    font-weight: 400;
    color: var(--accent);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    margin: 0 15px;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    color: var(--accent);
}

/* Contact Section */
.contact {
    background: var(--primary);
    color: var(--light);
}

.contact .section-title {
    color: var(--light);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 300;
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--accent);
    width: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border: 1px solid var(--accent);
}

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

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: 300;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
    font-size: 1.1rem;
    text-decoration: none !important;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-links a,
.donate-link {
    display: flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.donate-link {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    margin-left: 0px;
    /* Remove vertical padding, only horizontal */
    padding: 0 12px;
    /* Remove vertical-align: middle; not needed with flex */
}

.donate-link:hover,
.donate-link.active {
    background: rgba(212, 175, 55, 0.15); /* subtle yellow tint */
    color: var(--accent);
    border-color: var(--accent);
}

.mobile-menu-btn i {
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.mobile-menu-btn.active i {
    transform: rotate(180deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .contact-container {
        flex-direction: column;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        align-items: center;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
    }

    .nav-links.active {
        max-height: 500px; /* Large enough for all links */
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    section {
        padding: 70px 0;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 0;
    }
    .about-image {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .about-image img {
        max-width: 90vw;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center 30%;
        margin: 32px auto 0 auto;
        display: block;
    }
}