/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --color-primary: #8E44AD; /* A deep, elegant purple */
    --color-secondary: #F39C12; /* A warm, inviting orange */
    --color-background: #FDFEFE; /* A very light, clean white */
    --color-surface: #FFFFFF; /* Pure white for cards and surfaces */
    --color-text-dark: #34495E; /* A sophisticated dark blue-gray */
    --color-text-light: #7F8C8D; /* A soft, readable gray */
    --color-border: #EAEDED; /* A subtle border color */
    --font-primary: 'Merriweather', serif; /* An elegant, readable serif for headings */
    --font-secondary: 'Lato', sans-serif; /* A clean, modern sans-serif for body text */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.2rem; }


p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
}

a:focus {
    color: var(--color-secondary);
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

section {
    padding: 100px 0;
    overflow: hidden; /* To contain box shadows */
}

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

.section-title h2 {
    color: var(--color-primary);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-secondary);
    text-align: center;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-surface);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}


/* ======== HEADER ======== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo img {
    max-height: 60px; /* Adjust as needed */
    width: auto;
}

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

.nav-links a {
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    padding-bottom: 5px;
    position: relative;
    font-size: 1rem;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 5px;
}


/* ======== HERO SECTION ======== */
.hero {
    background-color: var(--color-background);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-dark);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-text-light);
    font-family: var(--font-secondary);
}

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




/* ======== ABOUT SECTION ======== */
.about {
    background-color: var(--color-surface);
}
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image, .about-text {
    flex: 1;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-text h3 {
    color: var(--color-primary);
}

/* ======== INSTRUCTOR SECTION ======== */
.instructor-healer {
    background-color: var(--color-background);
}

.instructor-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.instructor-image {
    flex: 0 0 250px; 
    text-align: center;
}

.instructor-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; 
    border: 5px solid var(--color-primary);
}

.instructor-details h3 {
    color: var(--color-primary);
}

.instructor-details p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}


/* ======== UNIFIED CARD STYLES ======== */
.card {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.card p {
    color: var(--color-text-light);
    flex-grow: 1;
}

/* ======== PROGRAMS & HEALING SECTION ======== */
.programs-grid, .healing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.healing-modalities {
    background-color: var(--color-surface);
}

.healing-cta-message {
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    color: var(--color-surface);
    text-align: center;
}

.healing-cta-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-surface);
}

.healing-cta-message .btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-surface);
}
.healing-cta-message .btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-surface);
    border-color: var(--color-secondary);
}


/* ======== PRICING SECTION ======== */
.pricing {
    background-color: var(--color-background);
}

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

/* Consolidated .pricing-card rule */
.pricing-card {
    position: relative; /* required for .badge-best-seller */
    padding-bottom: 3rem;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Best Seller badge - positioned at the top-left of featured pricing card */
.badge-best-seller {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--color-secondary), #e67e22);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 10;
    display: inline-block;
}

@media (max-width: 768px) {
    .badge-best-seller {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-family: var(--font-secondary);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: center;
    padding-left: 0;
}

.pricing-card li {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card li i {
    color: var(--color-secondary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.pricing-card .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

.payment-section {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.qr-code {
    max-width: 200px;
    margin: 1.5rem auto 0;
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-soft); 
}


/* ======== TESTIMONIALS SECTION ======== */
.testimonials {
    background-color: var(--color-surface);
}

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

.testimonial-card {
    /* Inherits from .card */
    text-align: left;
    padding: 2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark); 
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-card p::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
}

.testimonial-card h4 {
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    margin-top: 1rem;
    text-align: right;
}


/* ======== CONTACT SECTION ======== */
.contact {
    background-color: var(--color-background);
    text-align: center;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}


/* ======== FOOTER ======== */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-background);
    padding: 40px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    color: var(--color-background);
    margin-bottom: 0;
}

.social-links a {
    color: var(--color-background);
    margin-left: 20px;
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--color-secondary);
}


/* ======== FLOATING CHAT BUTTON ======== */
.chat-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    z-index: 999;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--color-secondary);
}

/* ======== BOT MODAL ======== */
.bot-content {
    padding: 0;
    max-width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    overflow: hidden;
}

.bot-header {
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-surface);
    border-radius: 50%;
    padding: 5px;
    margin-right: 15px;
    object-fit: contain;
}

.bot-title {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.bot-close {
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-surface);
}

.bot-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.bot-msg-system {
    background-color: var(--color-surface);
    color: var(--color-text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.bot-msg-user {
    background-color: var(--color-primary);
    color: var(--color-surface);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    animation: fadeIn 0.5s ease;
}

.bot-btn {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Apply directional animations to bot messages */
.bot-msg-system {
    animation: slideInLeft 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.bot-msg-user {
    animation: slideInRight 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ======== YOGA TYPING INDICATOR ======== */
.bot-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    box-shadow: var(--shadow-soft);
    align-self: flex-start;
    animation: slideInLeft 0.35s ease forwards;
    width: fit-content;
}

/* Inline SVG yoga figure wrapper */
.bot-yogi {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Rope animation: the yogi's arm angle rocks */
.bot-yogi .yogi-arm {
    transform-origin: 14px 10px;
    animation: yogiArm 1.2s ease-in-out infinite alternate;
}

@keyframes yogiArm {
    from { transform: rotate(-20deg); }
    to   { transform: rotate(20deg); }
}

/* Lotus breath: body scales gently */
.bot-yogi .yogi-body {
    transform-origin: 14px 18px;
    animation: yogiBreath 1.2s ease-in-out infinite alternate;
}

@keyframes yogiBreath {
    from { transform: scaleY(1); }
    to   { transform: scaleY(1.06); }
}

/* Three bouncing dots */
.bot-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.bot-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-primary);
    animation: dotBounce 1.1s infinite ease-in-out;
    opacity: 0.7;
}

.bot-dots span:nth-child(1) { animation-delay: 0s; }
.bot-dots span:nth-child(2) { animation-delay: 0.18s; }
.bot-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0);    opacity: 0.5; }
    40%            { transform: translateY(-7px); opacity: 1;   }
}


/* ======== RESPONSIVE DESIGN (BREAKPOINTS) ======== */

/* For Tablets and smaller devices (992px) */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3.5rem; }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        max-width: 80%; 
    }
    
    .instructor-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .instructor-image {
        margin-bottom: 1.5rem;
        flex: 0 0 200px;
    }
    .instructor-image img {
        height: 200px;
    }
}


/* For Mobile devices (768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .subtitle { font-size: 1.1rem; }
    .section-title h2 { font-size: 2rem; }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 80%; 
        max-width: 300px;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 80px; /* Match header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001; /* Ensure it's above nav */
    }
    
    .pricing-card.featured {
        transform: scale(1.0); 
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
    }
}

/* ======== PAYMENT MODAL ======== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-surface);
    margin: 15% auto; /* 15% from top and centered */
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.close-modal {
    color: var(--color-text-light);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-text-dark);
    text-decoration: none;
}

.qr-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px dashed var(--color-border);
}

.qr-image {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.upi-id {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 10px;
}

.payment-steps {
    text-align: left;
    margin: 20px 0;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}
.payment-steps p {
    margin-bottom: 5px;
    color: var(--color-text-dark);
}