/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Vibrant Pink & White Palette */
    --primary: #f2246b;
    /* Logo Pink */
    --primary-light: #ff6091;
    --primary-dark: #c51152;
    --primary-glow: rgba(242, 36, 107, 0.4);

    --secondary: #ffb4cc;
    /* Soft Pink */

    --white: #ffffff;
    --light-bg: #fafafa;
    --light-gray: #f2f2f2;
    --border: #e6e6e6;

    --text-main: #333333;
    --text-muted: #666666;
    --dark: #121212;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    /* Elegant serif */
    --font-body: 'Outfit', sans-serif;
    /* Modern sans */

    /* Transition & Spacing */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --border-radius-pill: 50px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;

    /* Anti-Copy & Select Protections */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Block image dragging */
img {
    -webkit-user-drag: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: 900px;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background-color: var(--primary);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header.align-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.header-desc {
    max-width: 600px;
    font-size: 1.1rem;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.large-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* WhatsApp Pulse Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(242, 36, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 36, 107, 0);
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    /* Adapting the height of your SVG to fit the header nicely */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Liquid Glass Edge Glow Properties */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinGlow {
    0% {
        --glow-angle: 0deg;
    }

    100% {
        --glow-angle: 360deg;
    }
}

/* Desktop Liquid Glass Menu */
@media (min-width: 769px) {
    .nav-links {
        position: relative;
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 0.8rem 2.5rem;
        border-radius: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
        align-items: center;
        transition: var(--transition);
        z-index: 1;
        /* Allows pseudo to fall behind correctly */
    }

    .nav-links::before {
        content: '';
        position: absolute;
        inset: -1.5px;
        /* Creates the border width dynamically */
        border-radius: 52px;
        padding: 1.5px;
        background: conic-gradient(from var(--glow-angle),
                rgba(255, 255, 255, 0.6) 0%,
                rgba(255, 255, 255, 0.6) 70%,
                var(--primary) 95%,
                rgba(255, 255, 255, 0.6) 100%
                /* Blends the tail into white edge smoothly */
            );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: spinGlow 5s linear infinite;
        z-index: -1;
    }

    .nav-links:hover {
        background: rgba(255, 255, 255, 0.55);
        box-shadow: 0 4px 30px var(--primary-glow);
    }

    .nav-links:hover::before {
        animation-duration: 2s;
        /* Speeds up the light orbiting it when hovered! */
    }
}

.nav-links a {
    font-weight: 600;
    /* Making them slightly bolder to pop more with pink */
    color: var(--primary);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.menu-toggle:active {
    transform: scale(0.85);
    /* Satisfying squash effect when pressing */
}

/* New active state styling that triggers via JS toggling class */
.menu-toggle.active {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.menu-toggle i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Playful spring rotation */
}

.menu-toggle.active i {
    transform: rotate(90deg) scale(1.1);
}

.mobile-nav-cta {
    display: none;
}

/* ==========================================================================
   Navigation CTA Button (Desktop)
   ========================================================================== */
@media (min-width: 769px) {
    .nav-cta.btn-outline {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: var(--white);
        border: none;
        padding: 0.8rem 2.2rem;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(242, 36, 107, 0.4);
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1;
    }

    .nav-cta.btn-outline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s ease;
        z-index: -1;
    }

    .nav-cta.btn-outline:hover {
        background: linear-gradient(135deg, var(--primary-light), var(--primary));
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 25px rgba(242, 36, 107, 0.6);
        color: var(--white);
    }

    .nav-cta.btn-outline:hover::before {
        left: 100%;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Ensures it binds perfectly to parent without height flow calculation bugs */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .headline {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero .headline span {
    color: var(--primary);
    font-style: italic;
}

.hero .subheadline {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2.5rem;
}

.hero-graphic {
    position: relative;
    display: none;
    /* Hide on mobile initially */
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-badge {
    position: absolute;
    bottom: 10%;
    right: 0;
    transform: translateX(20%);
}

.trust-badge i {
    font-size: 2rem;
    color: #FFD700;
}

.trust-badge div {
    display: flex;
    flex-direction: column;
}

.trust-badge strong {
    font-size: 1.1rem;
    color: var(--dark);
}

.trust-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 20px 20px 200px 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--secondary);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(245, 0, 87, 0.3);
}

.experience-card .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-card .text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-list {
    margin-top: 1.5rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 1.05rem;
}

.about-list i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    opacity: 1;
    transition: opacity 0.4s ease;
    justify-content: center;
    /* Helper for odd-rows */
}

/* Force bottom cards to perfectly center on large screens */
@media (min-width: 1024px) {
    .services-grid>.last-line-centered {
        grid-column: 2 / span 1;
    }
}

.services-grid.hidden {
    display: none !important;
    /* Immediately removes layout blocks to avoid grid reflow */
    opacity: 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: center;
    /* Expands gracefully from the center now */
    transition: transform 0.4s ease;
}

.service-card:hover,
.service-card.mobile-active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before,
.service-card.mobile-active::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(242, 36, 107, 0.1);
    /* Updated directly to exact Logo RGB */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    /* Perfect auto horizontal centering */
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .card-icon,
.service-card.mobile-active .card-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background-color: var(--white);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    margin: 0;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.testimonial-card:hover,
.testimonial-card.mobile-active {
    border-bottom-color: var(--primary);
    transform: translateY(-5px);
}

.quote-icon {
    color: rgba(245, 0, 87, 0.15);
    font-size: 4rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.review {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--secondary);
}

.patient-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    position: relative;
    padding: 6rem 0;
    background-image: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-content h2 span {
    color: var(--primary);
    font-style: italic;
}

.cta-content p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.85rem !important;
    color: #aaa !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.footer-brand p {
    color: var(--secondary);
    /* White/Soft pink to contrast the primary background */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 300px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
    font-weight: 600;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--white);
    /* White icons on pink */
    font-size: 1.2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary);
    /* Contrast on hover */
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: var(--primary-dark);
    /* Slightly darker pink for the bottom */
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.ynext {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.ynext a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.ynext a:hover {
    transform: scale(1.05);
}

.ynext img {
    height: 30px;
    width: auto;
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.fade-up,
.fade-in,
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up {
    transform: translateY(30px);
}

.reveal-up {
    transform: translateY(40px);
}

.fade-in {
    opacity: 0;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.fade-up.active,
.reveal-up.active,
.fade-in.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Hidden by default on PC */
.mobile-section-title {
    display: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero .headline {
        font-size: 3rem;
    }

    .hero-graphic {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        border-radius: 20px;
    }

    .about-image img {
        height: 400px;
    }

    .experience-card {
        bottom: 20px;
        left: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        background-position: center;
        background-attachment: scroll;
        min-height: 100vh;
        /* Fallback for browsers that don't support svh */
        min-height: 100svh;
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .hero .headline {
        font-size: 2.5rem;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* On Mobile, hide the tab buttons entirely to just stack the content */
    .services-tabs {
        display: none !important;
    }

    .mobile-section-title {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 4.5rem 0 2.5rem 0;
    }

    .mobile-section-title span {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--primary);
        font-weight: 700;
        background: rgba(242, 36, 107, 0.04);
        padding: 0.6rem 1.8rem;
        border-radius: 50px;
        border: 2px solid rgba(242, 36, 107, 0.3);
        box-shadow: 0 0 20px rgba(242, 36, 107, 0.15);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        animation: mobileTitleFloat 3s ease-in-out infinite;
    }

    /* Shiny animated reflection beam */
    .mobile-section-title span::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100px;
        width: 50px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(242, 36, 107, 0.4), transparent);
        transform: skewX(-20deg);
        animation: mobileTitleShine 3s infinite;
        pointer-events: none;
    }

    @keyframes mobileTitleFloat {

        0%,
        100% {
            transform: translateY(0);
            box-shadow: 0 0 15px rgba(242, 36, 107, 0.1);
        }

        50% {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(242, 36, 107, 0.3);
        }
    }

    @keyframes mobileTitleShine {

        0%,
        20% {
            left: -100px;
        }

        100% {
            left: 150%;
        }
    }

    /* On Mobile, force BOTH service grids to display stacked, overriding JS 'hidden' class */
    .services-grid.tab-content,
    .services-grid.tab-content.hidden {
        display: grid !important;
        opacity: 1 !important;
        margin-bottom: 2rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    /* Mobile Menu styles when active can be added here or via JS class insertion */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2.5rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .mobile-nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        text-align: center;
        border-radius: var(--border-radius-pill);
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: var(--white) !important;
        box-shadow: 0 4px 15px rgba(242, 36, 107, 0.4);
    }

    /* Remove the default underline hover effect from this specific button */
    .mobile-nav-cta::after {
        display: none !important;
    }

    /* Hide navbar dynamically when reaching footer */
    .navbar.hide-on-footer {
        transform: translateY(-100%);
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .hero .headline {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}