/* Yagya Ashram - Modern & Animated CSS */

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

:root {
    --primary-color: #8E44AD; /* Deep Purple */
    --secondary-color: #3498DB; /* Bright Blue */
    --accent-color: #F1C40F; /* Sunflower Yellow */
    --background-color: #ECF0F1; /* Light Gray */
    --text-color: #34495E; /* Dark Blue-Gray */
    --white: #FFFFFF;
    --card-background: #FFFFFF;
    --footer-background: #2C3E50; /* Midnight Blue */

    /* Animation */
    --transition-speed: 0.4s;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 2. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 0.8rem 2.5rem;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    padding: 0.5rem 2.5rem;
    background: var(--primary-color);
}

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

nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

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

nav li {
    margin-left: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

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

nav a:hover::after {
    width: 100%;
}

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

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 3. Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%),
        url('https://images.unsplash.com/photo-1506126613408-4e63a1ab38a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: var(--white);
    padding: 0 1rem;
    box-sizing: border-box;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: slideInDown 1.5s ease;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1.5s ease;
}

.cta-buttons .btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-buttons .btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-5px);
}

.cta-buttons .btn.secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.cta-buttons .btn.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* 4. Sections */
main {
    padding-top: 85px;
}

section {
    padding: 5rem 2.5rem;
}

section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
}

/* 5. Highlights & Cards */
.highlights, .courses, .campaigns, .blog-posts, .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card, .course-card, .campaign-card, .blog-post, .service-card {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

.card:hover, .course-card:hover, .campaign-card:hover, .blog-post:hover, .service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(142, 68, 173, 0.2);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.card h3, .course-card h3, .campaign-card h3, .blog-post h3, .service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* 6. Founder Section */
#founder {
    background-color: var(--white);
}

.founder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    box-shadow: 0 0 25px rgba(142, 68, 173, 0.3);
    transition: transform var(--transition-speed) ease;
}

.founder-photo img:hover {
    transform: scale(1.05) rotate(3deg);
}

.founder-bio {
    flex: 1;
}

.founder-bio p {
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: left;
}

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

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

.footer-links a {
    color: var(--background-color);
    text-decoration: none;
    margin: 0 1.2rem;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

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

.social-icons a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.8rem;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

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

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #95A5A6; /* Silver */
}

/* 8. Responsive */

@media (max-width: 992px) {
    section { padding: 4rem 1.5rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .founder-content { flex-direction: column; text-align: center; }
    nav li { margin-left: 1.5rem; }
}

@media (max-width: 768px) {
    header { padding: 1rem; }
    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 70px; /* Adjust based on header's height */
        left: 0;
        text-align: center;
        padding: 1rem 0 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
    }
    .nav-links.nav-active {
        display: flex;
        transform: translateY(0);
    }
    nav li { margin: 1.5rem 0; }
    .hamburger { display: block; z-index: 101; }
    .hamburger.change .bar1 { transform: rotate(-45deg) translate(-7px, 7px); }
    .hamburger.change .bar2 { opacity: 0; }
    .hamburger.change .bar3 { transform: rotate(45deg) translate(-7px, -7px); }
    main { padding-top: 70px; }
    section { padding: 3.5rem 1rem; }
    section h2 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.2rem; }
    .cta-buttons { flex-direction: column; gap: 1rem; }
    .cta-buttons .btn { width: 80%; }
    .footer-links { flex-direction: column; gap: 1.2rem; }
}

/* General Animation Classes */
.slide-in-up {
    animation: slideInUp 1s ease-out;
}
.slide-in-down {
    animation: slideInDown 1s ease-out;
}
.fade-in {
    animation: fadeIn 1.5s ease-out;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
