/* --- Variables & Theme --- */
:root {
    /* Color Palette - Light Theme */
    --primary: #6366f1;
    /* Indigo */
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    /* Pink */
    --accent: #8b5cf6;
    /* Violet */

    --bg-body: #7dc6c0a4;
    /* Neutral Grey (No Blue) */
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-border: rgba(255, 255, 255, 0.5);

    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Utilities --- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.btn-glow:hover::after {
    transform: scale(1);
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Increased size */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 140px;
    /* Space for fixed nav */
    padding-bottom: 6rem;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;

    /* Background Image with Tint (Black, not too heavy) */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('../assets/front_page_pic.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    /* Constrain width for readability */
    margin: 0 auto;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    /* Large fade area */
    background: linear-gradient(to bottom, transparent, var(--bg-body));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Ensure text sits above the fade */
}

.hero-content h1 {
    color: white;
}

.hero-subtitle {
    font-size: 1.35rem;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.9);
    /* White text for dark bg */
    margin-bottom: 2.5rem;
    max-width: 700px;
    font-weight: 500;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
    margin-bottom: 3rem;
    width: auto;
    /* Auto width */
    background: rgba(255, 255, 255, 0.1);
    /* Frosted glass effect */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    /* White for dark mode */
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Clear old image styles if needed or leave them unused */
.glow-bg {
    display: none;
}

.profile-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.profile-img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 4s ease-in-out infinite;
}

.badge-maths {
    top: 10%;
    left: -20px;
    color: var(--primary);
    transform: rotate(-10deg);
}

.badge-grade {
    bottom: 15%;
    right: -10px;
    color: var(--secondary);
    font-size: 1.5rem;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- General Section Styles --- */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: var(--radius-full);
}


.bg-gradient {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.bg-gradient-alt {
    background: linear-gradient(0deg, rgba(236, 72, 153, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.mission-wrapper {
    padding: 5rem 3rem;
    /* More spacious */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.mission-wrapper .section-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 0;
}

.mission-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .mission-wrapper {
        padding: 2rem 1.5rem;
        /* Increased padding for mobile */
    }

    .mission-lead {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .mission-content p {
        font-size: 0.95rem;
        line-height: 1.8;
        /* Increased for better breathing */
        color: rgba(0, 0, 0, 0.75);
        /* Softer text color */
        margin-bottom: 1.5rem;
        /* Spacing between paragraphs */
    }
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 2.5rem;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Highlight Text */
.highlight-text {
    color: var(--primary-dark);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.08);
    /* Very subtle background */
    padding: 0 0.2rem;
    border-radius: 4px;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Always 4 cols under image */
    gap: 0.5rem;
    margin-top: 2rem;
    width: 100%;
}

.philosophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.philosophy-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.p-icon {
    font-size: 1.25rem;
    background: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

/* Read More Logic */
.read-more-btn {
    display: none;
    /* Default hidden on desktop */
}

.founder-bio-extended {
    display: block;
    /* Default visible on desktop */
}

/* Mobile Founder Thumbnail (Hidden on Desktop) */
.mobile-founder-thumb {
    display: none;
}

.about-image {
    display: flex;
    flex-direction: column;
    /* Stack image and grid */
    align-items: center;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
    /* Fits to image size */
    z-index: 1;
}

/* Default hidden on desktop */
.mobile-separator {
    display: none;
}

@media (max-width: 768px) {
    .about-container {
        /* On mobile, use block layout to allow float */
        display: block;
    }

    .about-text {
        padding: 2rem 1.5rem;
        /* Increased padding for mobile */
    }

    /* Hide the large image wrapper on mobile */
    .about-image-wrapper {
        display: none;
    }

    /* Mobile Text Styling */
    .mobile-separator {
        display: block;
        border: none;
        height: 1px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 100%);
        margin: 2rem 0;
        width: 100%;
    }

    .founder-bio-secondary {
        /* Ensure specific styling if needed, otherwise it inherits p */
        position: relative;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.8;
        color: rgba(0, 0, 0, 0.75);
        margin-bottom: 1.5rem;
    }

    /* Show and float the thumbnail inside the text */
    .mobile-founder-thumb {
        display: block;
        float: right;
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 12px;
        /* Square with rounded corners */
        margin: 0 0 1rem 1rem;
        border: 4px solid white;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
        /* Enhanced depth shadow */
        shape-outside: margin-box;
        transform: rotate(2deg);
    }

    /* Mobile Scroll Animations */
    .animate-mobile {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .animate-mobile.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* Keep philosophy grid visible but adjust container */
    .about-image {
        margin-top: 2rem;
    }
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.founder-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 4px solid rgba(255, 255, 255, 0.3);
    /* Subtle glass border */
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-width: max-content;
}

.badge-icon {
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific Badge Positioning */
.badge-experience {
    top: 50px;
    left: -40px;
    animation-delay: 0s;
}

.badge-qualification {
    bottom: 40px;
    right: -40px;
    animation-delay: 2s;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .badge-experience {
        left: -10px;
        top: 20px;
    }

    .badge-qualification {
        right: -10px;
        bottom: 20px;
    }
}

.big-number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-light);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-range {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Pricing Base Styles --- */
.pricing-card {
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 255, 0.9) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
    /* Reduced from 2rem */
}

.pricing-header h3 {
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    margin-bottom: 0.25rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price {
    text-align: center;
    font-size: 2.5rem;
    /* Reduced from 3rem */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    /* Reduced from 2rem */
    line-height: 1;
}

.price .curr {
    font-size: 1.25rem;
    vertical-align: super;
    margin-right: 2px;
}

.price .mo {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features {
    margin-bottom: auto;
    /* Push button to bottom */
}

.features ul {
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    padding-left: 0.5rem;
}

.price-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.05);

    /* Centering Fixes */
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.features li {
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.features li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 0;
}

.pricing-card .btn {
    width: 100%;
    padding: 0.6rem 1rem;
    /* Slightly smaller button */
    font-size: 0.95rem;
}

/* --- Pricing Grid Complex --- */
.pricing-grid-complex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
    /* Prevent stretching to match tallest */
}

.pricing-column-stacked {
    display: flex;
    flex-direction: column;
    /* No gap here, we use a divider or just padding */
}

.popular-container {
    position: relative;
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.95) 100%);
    padding: 0;
    /* Let inner cards handle padding */
    /* Let inner cards handle padding */
    overflow: visible;
    /* Allow badge to pop out */
}

.popular-container .pricing-card {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 1.5rem;
    flex: 1;
}

.popular-container .pricing-card:hover {
    transform: none;
    /* Disable individual float */
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 1.5rem;
}

/* .pricing-column-stacked .pricing-card removed (empty ruleset) */

/* Adjust stacked cards internals */
.pricing-column-stacked .price {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.special-card {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 72, 153, 0.05));
}

.highlight-text {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0.5rem;
}

/* --- Wide Pricing Card (Juniors) --- */
.pricing-card-wide {
    margin-top: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 3rem;
}

.pricing-card-wide .pricing-header {
    text-align: left;
    margin-bottom: 0;
    flex: 1.5;
}

.pricing-card-wide .features {
    flex: 2;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.pricing-card-wide .features ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 0;
    padding-left: 0;
}

.pricing-card-wide .btn {
    width: auto;
    flex: 1;
    max-width: 250px;
}

/* --- Form Styles --- */
.register-form .form-group {
    margin-bottom: 1.25rem;
}

.register-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.register-form input,
.register-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}

.register-form input:focus,
.register-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- Responsive Pricing --- */
@media (max-width: 1024px) {
    .pricing-grid-complex {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card-wide {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .pricing-card-wide .pricing-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .pricing-card-wide .features {
        margin-bottom: 1.5rem;
    }

    .pricing-card-wide .btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .pricing-grid-complex {
        grid-template-columns: 1fr;
    }

    .pricing-card-wide .features ul {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hide for now, needs hamburger for full mobile */
    }

    .hero-section {
        padding-top: 120px;
    }
}

/* --- Testimonials Marquee --- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moves half the width (the length of one original set) to create seamless loop */
}

.testimonial-item {
    min-width: 300px;
    max-width: 350px;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.testimonial-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.scroll-hint {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {

    /* Re-enable marquee on mobile per user request */
    .marquee-wrapper {
        overflow-x: hidden;
        scroll-snap-type: none;
    }

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        display: block;
        width: 50px;
        /* smaller gradient on mobile */
    }

    .marquee-content {
        animation: scroll 30s linear infinite;
        /* Faster for mobile */
        width: max-content;
        gap: 1rem;
        padding: 0;
        /* Ensure these are set */
        display: flex;
        flex-wrap: nowrap;
    }

    .testimonial-item {
        /* Adaptive width based on image size */
        min-width: unset;
        max-width: unset;
        width: auto;
        height: 35vh;
        /* Constrain height */
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .testimonial-item img {
        height: 100%;
        width: auto;
        object-fit: contain;
        border-radius: var(--radius-lg);
        border: 4px solid white;
        box-shadow: var(--shadow-md);
        display: block;
        /* Remove inline gap */
    }

    /* Disable hover pause on mobile to prevent touch from stopping it permanently */
    .marquee-content:hover {
        animation-play-state: running;
    }
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
}

/* --- Group Booking Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal-header h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.modal-header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.slot-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.day-group h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.slots {
    display: flex;
    gap: 0.5rem;
}

.slot-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-light);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-weight: 500;
}

.slot-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.slot-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

@media (max-width: 600px) {
    .slot-container {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.5);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* specific height or simply use JS to set scrollHeight */
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* --- Footer --- */
.footer {
    background: white;
    padding: 4rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: #f1f5f9;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Mobile Navigation & Responsive Styles --- */

/* Default Desktop State (Hidden Mobile Elements) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.close-mobile-nav {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Responsive Adjustments --- */

@media (max-width: 900px) {

    /* Tablet/Small Laptop Adjustments */
    h1 {
        font-size: 2.75rem;
    }

    .hero-stats {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation Logic */
    .desktop-nav,
    .desktop-btn {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    /* Layout Stack - Hero */
    .hero-section {
        padding-top: 100px;
        text-align: center;
        background-attachment: scroll;
        /* Fix parallax on mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Layout Stack - About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        order: 2;
        padding: 1.5rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-list li {
        justify-content: center;
        /* Center list items if text is centered */
    }

    /* Layout Stack - Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* General Padding */
    .section {
        padding: 3rem 0;
    }

    .container {
        width: 92%;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .pricing-card-wide {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Small Mobile */
    h1 {
        font-size: 2rem;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pricing-grid-complex {
        grid-template-columns: 1fr;
        /* Fallback if not already handled */
    }
}

/* --- Improved Form Styling --- */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Custom Select Dropdown Arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.modal-content.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    /* Less transparent for readability */
}

/* Two column layout for larger screens */
@media (min-width: 600px) {
    #booking-details-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .form-group {
        margin-bottom: 0;
    }

    /* Make Email and Button span full width */
    .form-group:nth-last-child(2),
    /* Email is 2nd to last (button is last) */
    #booking-details-form button {
        grid-column: 1 / -1;
    }
}