/* ===================================
   Guruji Maharaj Website - CSS Stylesheet
   Design: Spiritual Minimalism with Sacred Geometry
   Color Palette: Cream (#F8F6F1), Saffron Gold (#D4A574), Charcoal (#2C2C2C)
   Typography: Playfair Display (headings), Lato (body)
   =================================== */

/* ===== Root Variables & Reset ===== */
:root {
    --primary-color: #D4A574;
    --secondary-color: #2C2C2C;
    --background-color: #F8F6F1;
    --white: #FFFFFF;
    --text-light: rgba(44, 44, 44, 0.8);
    --text-muted: rgba(44, 44, 44, 0.6);
    --border-color: rgba(212, 165, 116, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #C49464;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: rgba(212, 165, 116, 0.1);
    transform: translateY(-2px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--secondary-color);
}

.nav-brand .logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: bold;
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: 500;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 100px;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(212, 165, 116, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(212,165,116,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.25) 0%, transparent 70%);
    border-radius: 30px;
    filter: blur(30px);
}

.image-wrapper img {
    position: relative;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.hero-text {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 80px;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: 2;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-wrapper {
        max-width: 300px;
    }
}

/* ===== Sacred Divider ===== */
.sacred-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    position: relative;
}

.sacred-divider::before,
.sacred-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.sacred-divider img {
    width: 60px;
    height: 60px;
    margin: 0 2rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sacred-divider {
        margin: 3rem 0;
    }

    .sacred-divider img {
        width: 50px;
        height: 50px;
        margin: 0 1.5rem;
    }
}

/* ===== About Section ===== */
.about {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    text-align: justify;
    line-height: 1.8;
}

.about .btn {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }

    .about-text p {
        text-align: left;
    }
}

/* ===== Teachings Section ===== */
.teachings {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.teaching-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.teaching-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.teaching-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teaching-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.teaching-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .teachings {
        padding: 3rem 0;
    }

    .teachings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Bade Mandir Section ===== */
.mandir {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.mandir-text h2 {
    margin-bottom: 2rem;
}

.mandir-text p {
    margin-bottom: 1.5rem;
}

.quote-box {
    background-color: rgba(212, 165, 116, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.25rem 0.5rem 0.5rem 0.25rem;
    margin: 2rem 0;
}

.quote-box p {
    margin: 0;
    font-style: italic;
    color: var(--secondary-color);
}

.mandir-image {
    position: relative;
}

.mandir-image::before {
    content: '';
    position: absolute;
    inset: -16px;
    background-color: rgba(212, 165, 116, 0.1);
    border-radius: 0.5rem;
}

.mandir-image img {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: block;
}

@media (max-width: 768px) {
    .mandir {
        padding: 3rem 0;
    }

    .mandir-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mandir-image::before {
        inset: -8px;
    }
}

/* ===== Legacy Section ===== */
.legacy {
    padding: 6rem 0;
    background-color: var(--background-color);
}

.legacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.legacy-content h2 {
    margin-bottom: 2rem;
}

.legacy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legacy-quote {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .legacy {
        padding: 3rem 0;
    }
}

/* ===== Connect Section ===== */
.connect {
    padding: 6rem 0;
    background-color: var(--white);
}

.connect-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.connect-content h2 {
    margin-bottom: 1rem;
}

.connect-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.connect-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.connect-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.connect-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.connect-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.connect-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.info-box {
    background-color: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    padding: 2rem;
    border-radius: 0.5rem;
}

.info-box p {
    margin: 0;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .connect {
        padding: 3rem 0;
    }

    .connect-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
