/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif; font-weight: 400;
    color: #383732;
}

/* Header */
.header {
    background-color: #eeeceb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-align: center;
}
.logo h1 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 300;
    font-size: clamp(1.8rem, 5vw, 0.2rem);
    color: #383732;
}

.logo h2 {
    /*font-family: 'Josefin Sans', sans-serif; font-weight: 300;*/
    font-family: 'QuickSand', sans-serif; font-weight: 200;    
    font-size: clamp(1.1rem, 5vw, 0.2rem);
    color: #383732;
    letter-spacing: 0.12em;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #383732;
    font-weight: 400;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.nav-menu a:hover {
    color: #000 ;
    font-weight: 500;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #383732;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.nav-active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative; /* Required for pseudo-element positioning */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #383732;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
    overflow: hidden; /* Ensure the background image doesn't overflow */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero_background.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Semi-transparent (adjust between 0 and 1) */
    z-index: 1; /* Place behind content */
}

.hero-content {
    position: relative; /* Ensure content is above the background */
    z-index: 2; /* Place above the pseudo-element */
    max-width: 90%;
    padding: 0 1rem;
}

.hero h1 {     
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero h2 {     
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
}

.hero img {
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #eeeceb ;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    display: inline-block;
    min-height: 44px;
    line-height: 1.2;
}

.cta-button:hover {
    background-color: #9e8571 ;
    color: #fff;
}

/* Courses Section */
.courses {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background-color: #eeeceb ;
    text-align: center;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
}

.courses h2 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 2rem;
    color: #383732;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    margin-bottom: 0.8rem;
    color: #383732;
}

.course-card p {
    font-family: 'QuickSand', sans-serif; font-weight: 500;    
    margin-bottom: 1.2rem;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.course-button, .cta-button {
    transition: transform 0.3s ease;
}
.course-button:hover, .cta-button:hover {
    transform: scale(1.05);
    background-color: #9e8571;
    color: #fff;
}

.course-button {
    background-color: #eeeceb ;
    color: #000;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    min-height: 44px;
    line-height: 1.2;
    display: inline-block;
}

.course-button:hover {
    background-color: #9e8571 ;
    color: #fff;
}

/* Mission Statement Section */
.mission {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background-color: #9e8571;
    text-align: center;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
}

.mission h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #eeeceb;
}

.mission-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mission-image {
    flex: 0 0 auto; /* Prevent image from shrinking or stretching */
    width: 50%; /* Allow image to take up to half the card width */
    max-width: 500px; /* Increased max-width to ensure full image visibility */
}

.mission-image img {
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Cap height to avoid oversized images */
    object-fit: cover;
    border-radius: 10px;
}

.mission-text {
    flex: 1; /* Allow text to take remaining space */
}

.mission-text p {
    font-family: 'QuickSand', sans-serif; font-weight: 500;    
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    color: #383732;
    text-align: left;
}

/* About Section */
.about {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background-color: #383732;
    text-align: center;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
}

.about h2 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 2rem;
    color: #eeeceb;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.founder-card {
    background-color: #fff;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.founder-card img {
    width: clamp(200px, 30vw, 150px);
    height: clamp(200px, 30vw, 150px);
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Founder Card Text Sizes */
.founder-card h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 4vw, 1.6rem); /* Increased from 1.2rem to 1.4rem */
    margin-bottom: 0.5rem;
    color: #383732;
}

.founder-card h4 {
    font-size: clamp(1rem, 3.5vw, 1.2rem); /* Increased from 0.9rem to 1rem */
    color: #000;
    margin-bottom: 0.8rem;
}

.founder-card p {
    font-family: 'QuickSand', sans-serif; font-weight: 500;    
    font-size: clamp(0.9rem, 3vw, 1rem); /* Increased from 0.8rem to 0.9rem */
    color: #383732;
    text-align: left;
}

/* Intro Section */
.intro {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background-color: #383732;
    color: #fff;
    text-align: center;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
}

.intro h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: clamp(0.8rem, 1.5rem + 2vw, 2.5rem);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.intro-card {
    background-color: #fff;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.intro-card img {
    width: clamp(200px, 30vw, 150px);
    height: clamp(200px, 30vw, 150px);
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.intro-card h3 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    margin-bottom: 0.5rem;
    color: #383732;
}

.intro-card h4 {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #000 ;
    margin-bottom: 0.8rem;
}

.intro-card p {
    font-family: 'QuickSand', sans-serif; font-weight: 500;    
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #383732;
}

/* Intro Section Image Grid */
.intro-image-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.intro-image-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.intro-image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Offset Effect */
.intro-image-left {
    transform: translateY(-20px); /* Moves the left image up slightly */
}

.intro-image-right {
    transform: translateY(20px); /* Moves the right image down slightly */
}

/* Contact Section */
.contact {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    text-align: center;
    background-color: #fff;
    scroll-margin-top: clamp(70px, 10vw, 90px); /* Offset for fixed header */
}

.contact h2 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 2rem;
    color: #383732;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-family: 'Josefin Sans', sans-serif;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #eeeceb ;
    color: #383732;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    min-height: 44px;
    line-height: 1.2;
}

.contact-form button:hover {
    background-color: #9e8571 ;
    color: #fff;
}

/* Footer */
.footer {
    background-color: #eeeceb;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.social-links a {
    color: #383732;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.social-links a:hover {
    color: #000 ;
    font-weight: 500;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-active .nav-menu {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: 100vh;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card img {
        height: 180px;
    }

    .intro,
    .mission,
    .about,
    .contact {
        padding: 1.5rem 0.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Stack to single column on mobile */
        gap: 1.5rem;
    }

    .intro-card img {
        width: clamp(100px, 25vw, 120px);
        height: clamp(100px, 25vw, 120px);
    }

    .intro-image-grid {
        flex-direction: column;
        align-items: center;
    }

    .intro-image-card {
        max-width: 100%;
    }

    .intro-image-card img {
        height: 200px;
    }

    .intro-image-left,
    .intro-image-right {
        transform: none; /* Remove offset on mobile for cleaner stacking */
    }

    .mission-content {
        flex-direction: column;
        align-items: center;
    }

    .mission-image {
        width: 100%; /* Full width on mobile */
        max-width: 100%;
    }

    .mission-image img {
        width: clamp(200px, 30vw, 150px);
        height: clamp(200px, 30vw, 150px);
    }

    .mission-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .logo h2 {
        font-size: clamp(0.8rem, 5vw, 0.2rem);
        letter-spacing: 0.1em;
    }

    .hero {
        height: 100vh;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .cta-button,
    .course-button,
    .contact-form button {
        padding: 0.7rem 1.5rem;
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .courses,
    .mission,
    .about,
    .intro,
    .contact {
        padding: 1.5rem 0.5rem;
    }

    .founder-card {
        padding: 1rem;
    }

    .founder-card h3 {
        font-size: clamp(1.2rem, 3.5vw, 1.4rem); /* Increased from 1rem to 1.2rem */
    }

    .founder-card h4 {
        font-size: clamp(0.9rem, 3vw, 1rem); /* Increased from 0.8rem to 0.9rem */
    }

    .founder-card p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem); /* Increased from 0.7rem to 0.8rem */
    }

    .intro-card {
        padding: 1rem;
    }

    .intro-card img {
        width: clamp(80px, 20vw, 100px);
        height: clamp(80px, 20vw, 100px);
    }

    .intro-card h3 {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .intro-card h4 {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    .intro-card p {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
    }

    .mission-image img {
        width: clamp(200px, 30vw, 150px);
        height: clamp(200px, 30vw, 150px);
    }

    .mission-text p {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Ensure elements are initially hidden for scroll-based animations */
.animate-on-scroll {
    opacity: 0; /* Hidden until triggered */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-fade-in-scale {
        animation: none;
        opacity: 1;
        transform: none;
    }
}