@import 'variables.css';
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-light-gray);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

/* Container Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #001f42;
    /* Darker shade */
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #1ebdbb;
    /* Darker shade */
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    /* Reduced vertical padding for massive logo overlap */
}

/* Layout - Hybrid Grid for Centered Logo */
/* Layout - Flexbox for Left/Right Alignment */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    /* Logo naturally on left */
    display: flex;
    justify-content: flex-start;
}

.logo img {
    height: 150px;
    /* Requested EVEN Bigger */
    transition: all 0.3s ease;
}

/* Links pushed to right */
.nav-links {
    display: flex;
    gap: 3.5rem;
    /* Increased spacing */
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    /* Bold/Readable */
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Vertical Separators (Desktop) */
.nav-links li {
    position: relative;
}

.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.75rem;
    /* Centered in the 3.5rem gap */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.15);
    /* Subtle separator */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-secondary);
    /* Turquoise highlight */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

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

.nav-links .btn-primary {
    padding: 10px 25px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50px;
    /* Pill shape for CTA */
}

.nav-links .btn-primary:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 208, 0.3);
}

/* Scrolled State */
.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar.scrolled .logo img {
    height: 80px;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    /* Space between lines */
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    /* Better height */
    min-height: 500px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 0;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better contrast with white text */
    background: linear-gradient(90deg, rgba(0, 31, 66, 0.85) 0%, rgba(0, 31, 66, 0.6) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: 0;
    /* Align with container */
    text-align: left;
    /* Default left align */
}

/* Center content helper for specific pages if needed */
.hero-content.text-center {
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    /* Ensure White Text */
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Legibility shadow */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    /* White with slight transparency */
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Responsive Header Consolidation */
@media (max-width: 992px) {
    .navbar-container {
        display: flex;
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    .logo {
        grid-column: auto;
    }

    .logo img {
        height: 60px;
        /* Adjusted size for mobile/tablet */
    }

    /* Mobile/Tablet Menu Logic */
    .menu-toggle {
        display: flex;
        position: static;
        z-index: 1001;
        cursor: pointer;
        /* Ensure pointer cursor */
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        /* Full width constraint */
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        /* Force on top */

        /* Animation State: Hidden by clip-path */
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
        text-align: center;
        /* Center links on mobile */
    }

    /* Hide desktop separators on mobile */
    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        /* Reveals menu */
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: 70% center;
        padding: 0 20px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        padding: 0 10px;
        font-size: 1rem;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 0 15px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Section spacing on mobile */
    section {
        padding: 50px 0;
    }

    .section-header {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Two column grid mobile */
    .two-col-grid {
        padding: 0 15px;
    }

    /* Why choose us mobile */
    .why-content,
    .why-image {
        padding: 0 10px;
    }

    .benefit-list {
        padding: 0 10px;
    }

    /* About doctor mobile */
    .doctor-content {
        padding: 0 15px;
    }

    .doctor-image {
        padding: 0 15px;
    }

    /* Services grid mobile */
    .services-grid {
        padding: 0 10px;
    }

    .service-card {
        margin: 0 5px;
    }

    /* Stats section mobile */
    .stats-grid {
        padding: 0 20px;
    }

    /* Brands section mobile */
    .brands-grid {
        padding: 0 20px;
    }

    /* Testimonials mobile */
    .testimonials-slider {
        padding: 20px 15px;
    }

    /* Contact section mobile */
    .contact-info,
    .contact-form-wrapper {
        padding: 0 15px;
    }

    .contact-details {
        padding: 0 10px;
    }

    /* Map card mobile */
    .map-overlay-card {
        position: relative;
        left: auto;
        transform: none;
        margin: 20px;
        max-width: none;
    }
}

/* Services Section */
.services {
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Services Grid - 3 Columns Fixed */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    /* Indicate clickability */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(3, 100, 150, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--color-primary);
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Expandable Service Card Styles */
.service-details {
    display: none;
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    animation: fadeIn 0.4s ease;
}

.service-card-expanded .service-details {
    display: block;
}

.service-card-expanded {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.service-details h4 {
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.service-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    color: #555;
}

.service-details li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* Service Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-header {
    padding: 30px 30px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(3, 100, 150, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.modal-header h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 20px 30px;
    overflow-y: auto;
}

.modal-body .service-details {
    display: block !important;
    /* Force show within modal */
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    animation: none;
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

/* Hide details in card but keep them accessible for JS */
.service-card .service-details {
    display: none;
}

/* Adjusted Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.more-info-text {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card:hover .more-info-text {
    color: var(--color-secondary);
}

/* Prevent link click from triggering card expansion if needed */
.action-btn {
    z-index: 2;
    position: relative;
}

/* Prevent link click from triggering card expansion if needed, 
   but usually we want the whole card clickable except maybe the button */
.action-btn {
    z-index: 2;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Two Column Grid Utility */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 900px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        /* Put image on top for mobile if preferred, or remove this class */
    }
}

/* Why Choose Us */
.why-choose-us {
    background-color: var(--color-light-gray);
}

.benefit-list {
    margin-top: 30px;
    text-align: left;
}

.benefit-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.benefit-list i {
    font-size: 1.5rem;
    margin-top: 5px;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.benefit-list h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.benefit-list p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.why-image img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
}

/* About Doctor */
.about-doctor {
    background-color: var(--color-white);
}

.doctor-image img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: 20px 20px 0 var(--color-secondary);
    /* Creative border effect */
    margin: 0 auto;
}

@media (max-width: 900px) {
    .doctor-image img {
        box-shadow: 10px 10px 0 var(--color-secondary);
    }
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.doctor-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 900px) {

    .doctor-content p,
    .benefit-list {
        text-align: center;
    }

    .benefit-list li {
        flex-direction: column;
        align-items: center;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stars {
    font-size: 0.9rem;
}

.comment {
    font-style: italic;
    color: var(--color-text-dark);
    flex-grow: 1;
}

.author strong {
    display: block;
    color: var(--color-primary);
}

.author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Contact Section */
.contact {
    background-color: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact .section-title,
.contact .lead,
.contact p {
    color: white;
}

.contact-details {
    margin-top: 30px;
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: #f9f9f9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
}

.btn-block {
    width: 100%;
}

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 25px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom {
        padding: 20px 25px;
    }
}

.footer-logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 80px;
    /* Bigger footer logo */
    filter: brightness(0) invert(1);
    /* Make it white if it's a PNG, optional */
}

.text-white {
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--color-secondary);
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Before/After Comparison Slider */
.before-after-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.05s ease-out;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    transition: left 0.05s ease-out;
}

.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.handle-circle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.handle-circle i {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 31, 66, 0.85);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .before-after-wrapper {
        aspect-ratio: 4 / 3;
    }

    .handle-circle {
        width: 40px;
        height: 40px;
    }

    .handle-circle i {
        font-size: 0.75rem;
    }

    .label {
        font-size: 0.65rem;
        padding: 6px 12px;
        top: 10px;
    }

    .label-before {
        left: 10px;
    }

    .label-after {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .before-after-wrapper {
        aspect-ratio: 1 / 1;
    }
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question h4 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.faq-icon {
    color: var(--color-secondary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    /* Turns plus into X */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background-color: white;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Arbitrary large height */
    padding-bottom: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic Navbar Scrolled State */
.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    /* Compact on scroll */
}

/* Process Steps Circles */
.step-circle {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- PREMIUM UI ENHANCEMENTS --- */

/* 1. Micro-interactions */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:active {
    transform: scale(0.95);
}

/* 2. WhatsApp Pulse Animation */
@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-animation 2s infinite;
}

/* 3. Testimonial Carousel Styles */
.testimonials-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: slide-track 40s linear infinite;
    /* CSS Auto-scroll */
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes slide-track {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplicated content for seamless loop */
}

/* Emergency Button Style */
.btn-emergency {
    background: transparent !important;
    color: #c0392b !important;
    /* Elegant red text */
    border: 2px solid #c0392b !important;
    box-shadow: none !important;
}

.btn-emergency:hover {
    background: #c0392b !important;
    /* Red background on hover */
    color: white !important;
    transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 57, 43, 0.3) !important;
}

/* --- WORLD CLASS FEATURES --- */

/* 1. Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: 100px;
    animation: pulse-logo 1.5s infinite ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 2. Brands Bar (Technology Partners) */
.brands-section {
    padding: 40px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-item i {
    font-size: 2rem;
}

.brand-item:hover {
    color: var(--color-primary);
    transform: scale(1.05);
    opacity: 1;
}

/* 3. Premium Map */
.premium-map-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-top: 5px solid var(--color-secondary);
}

.premium-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* CSS Filter for "Dark Mode" / Custom Look without API Key */
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: filter 0.5s ease;
}

.premium-map-container:hover iframe {
    filter: grayscale(0%);
    /* Reveal true colors on hover */
}

.map-overlay-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 10;
}

/* 4. Authority Pack */
/* Stats Section */
.stats-section {
    background: var(--color-primary);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Signature */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-left: 40px;
    /* Horizontal spacing */
    vertical-align: middle;
    display: inline-block;
}

/* Parallax Hero Effect */
.parallax-hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
        /* Disable on mobile for performance */
    }
}