/* 
   Global Styles & Variables
*/
:root {
    --primary-color: #1e1b4b;
    /* Deep Indigo */
    --secondary-color: #f59e0b;
    /* Amber Gold */
    --accent-color: #eff6ff;
    /* Soft Blue/White */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --black: #0f172a;
    --gray-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans-font);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li {
    list-style: none;
}

.serif {
    font-family: var(--serif-font);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--gray-bg);
}

.text-center {
    text-align: center;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1.5rem auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    margin-bottom: -101px;
    /* Pull Hero up under the navbar (approx height) */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-family: var(--serif-font);
}

.logo-subtext {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-enquiry {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 100px;
    background: url('hero-bg.png') no-repeat center center/cover;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    z-index: -1;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Adjusted for longer title */
    font-family: var(--serif-font);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    font-weight: 400;
    font-style: italic;
    color: var(--secondary-color);
    font-size: 3rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: left;
    /* Better readability for long text */
}

.hero-description p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Center alignment wrapper for description on desktop */
@media (min-width: 768px) {
    .hero-description {
        text-align: center;
    }
}

.hero-btns .btn {
    margin-right: 15px;
}

/* Problems Section */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.problem-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background: var(--primary-color);
    color: var(--white);
}

.problem-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.problem-card:hover .icon-box {
    background: var(--secondary-color);
    color: var(--white);
}

.problem-card h3 {
    margin-bottom: 15px;
    font-family: var(--serif-font);
    font-size: 1.4rem;
}

/* About Section */
.about-image {
    position: relative;
}

.img-frame {
    position: relative;
}

.img-frame::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    z-index: -1;
    border-radius: 20px;
}

.img-frame img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Align text to top for long content sections */
.about .grid-2 {
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about-text .highlight {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Journey Section */
.journey-list {
    margin-top: 20px;
}

.journey-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.journey-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
    /* Align icon with first line of text */
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.about-text h3 {
    font-family: var(--serif-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.experience-philosophy {
    gap: 3rem;
}

.exp-box,
.phi-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    /* Ensure equal height in grid */
}

.exp-box h3,
.phi-box h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(30, 27, 75, 0.1);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(30, 27, 75, 0.12);
}

.program-card .card-image {
    height: 250px;
    overflow: hidden;
}

.program-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .card-image img {
    transform: scale(1.1);
}

.program-card .card-content {
    padding: 30px;
}

.program-card h3 {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Testimonials */
.testimonial-slider {
    max-width: 800px;
    margin: 4rem auto 0;
}

.testimonial-card {
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: var(--serif-font);
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--black);
}

.client-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-info h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-methods {
    margin-top: 3rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.method i {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.method h4 {
    font-family: var(--serif-font);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(30, 27, 75, 0.3);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.3;
    z-index: 0;
}

.step h4 {
    font-family: var(--serif-font);
    font-size: 1.1rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .step:not(:last-child)::after {
        display: none;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-links h4 {
    font-family: var(--serif-font);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h1 span {
        font-size: 2.5rem;
    }

    /* Hero Responsive Adjustments */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-badge {
        font-size: 0.7rem;
        line-height: 1.5;
        padding: 8px 15px;
        white-space: normal;
        max-width: 90%;
    }

    .hero-description {
        width: 100%;
        padding: 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--secondary-color);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .menu-toggle {
        display: block;
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content h1 span {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

    .problem-card {
        margin: 10px 0;
    }

    .contact-form {
        padding: 25px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Worldwide Banner */
.worldwide-banner {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    z-index: 1001;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Offset from WhatsApp float */
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 30px;
        bottom: 100px;
    }

    .whatsapp-float {
        bottom: 30px;
    }
}

/* Advanced Gallery Styles */
.gallery-wrapper {
    position: relative;
    max-width: 100%;
}

.gallery-scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    width: 100%;
    height: 450px;
    background: #ffffff;
    padding: 15px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft fixed shadow */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Glassmorphism Overlay on cards for depth */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

/* Navigation Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.gallery-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
    left: -20px;
}

.gallery-btn.next {
    right: -20px;
}

/* Mobile Adjustment for buttons */
@media (max-width: 768px) {
    .gallery-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        display: none;
        /* Hide buttons on mobile, swipe is natural */
    }

    .gallery-item {
        min-width: 280px;
        height: 380px;
    }
}