/* Yagya Ashram - CSS */

/* 1. Brand & Personality */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FF6F61;
    --secondary-color: #4A4A4A;
    --accent-color: #FFD700;
    --background-color: #F7F7F7;
    --text-color: #333333;
    --white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* 2. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* 3. Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1583795439932-Arc9e4d4f2e9?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-buttons .btn:hover {
    background-color: #E65C50;
    transform: scale(1.05);
}

/* 4. Sections */
main {
    padding-top: 80px; /* Adjust based on header height */
}

section {
    padding: 4rem 2rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* 5. Highlights & Cards */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card, .campaign-card, .course-card, .blog-post, .service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .campaign-card:hover, .course-card:hover, .blog-post:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h3, .campaign-card h3, .course-card h3, .blog-post h3, .service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* 6. Founder Section */
.founder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.founder-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.founder-bio {
    flex: 1;
}

.founder-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 7. Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover, .social-icons a:hover {
    color: var(--primary-color);
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* 8. Responsive */

/* Tablet */
@media (max-width: 992px) {
    section {
        padding: 4rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .founder-content {
        flex-direction: column;
        text-align: center;
    }

    nav li {
        margin-left: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 65px; /* Adjust based on header's height */
        left: 0;
        text-align: center;
        padding: 1rem 0 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

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

    nav li {
        margin: 1.2rem 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.change .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.change .bar2 {
        opacity: 0;
    }

    .hamburger.change .bar3 {
        transform: rotate(45deg) translate(-5px, -7px);
    }

    main {
        padding-top: 65px;
    }
    
    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        margin: 0;
        width: 80%;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }
}
