/* Custom Properties */
:root {
    --color-navy: #1A2E3B;
    --color-mint: #3EB5AC;
    --color-offwhite: #F9F9F9;
    --color-white: #FFFFFF;
    --color-soft-mint: rgba(62, 181, 172, 0.05);
    /* Soft mint tint */
    --color-soft-navy: rgba(26, 46, 59, 0.03);
    /* Soft navy tint */
    --stroke-width: 1.5px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

/* Ribbed Gradient Effect */
.ribbed-bg {
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 4px), linear-gradient(135deg, rgba(255, 230, 240, 0.4), rgba(230, 240, 255, 0.4));
    /* pink to blue tint */
}

.ribbed-bg-alt {
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 4px), linear-gradient(135deg, var(--color-soft-mint), var(--color-soft-navy));
}

/* Precision Strokes (Buttons, Cards, Inputs) */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--color-navy);
    border: var(--stroke-width) solid var(--color-navy);
    border-bottom-width: 6px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: none;
    /* custom cursor applies */
}

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


/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-navy);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    width: 50px;
    height: 30px;
    color: var(--color-mint);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, color 0.2s;
}

.cursor-outline svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(26, 46, 59, 0.1);
    background-color: var(--color-offwhite);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-navy);
    cursor: none;
    padding: 0.5rem;
    z-index: 101;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    cursor: none;
}

.nav-links a:hover {
    color: var(--color-mint);
}

.nav-links a.active-link {
    color: var(--color-mint);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-navy);
    cursor: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
    opacity: 0.5;
}

.lang-btn:hover {
    color: var(--color-mint);
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
    color: var(--color-mint);
}

.lang-sep {
    color: var(--color-navy);
    opacity: 0.5;
}

/* Hero Section */
.hero {
    display: flex;
    min-height: calc(100vh - 80px);
    /* subtract nav height */
    width: 100%;
}

.hero-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-right: 5%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1.4; /* Give the image side more room so it naturally scales larger */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 2rem 5%;
}

.hero-composition {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 540 / 544;
    margin: 0 auto;
}

.hero-layer {
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-img-mask {
    width: 100%;
    height: 115%; /* Allow doctor to extend beyond the grey background */
    top: -15%;
    left: 0;
    pointer-events: none;
    z-index: 3;
}

.hero-bg-gradient {
    width: 71.40%;
    height: 93.92%;
    top: 6.08%;
    left: 14.47%;
    border-radius: 4px;
    background-image: linear-gradient(216.68deg, rgb(238, 237, 242) 72.317%, rgb(205, 204, 209) 100%);
}

.hero-raw-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88%; /* Scales doctor to be correctly wider and taller than the 71.4% grey block */
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom;
}

.hero-ring {
    width: 47%;
    aspect-ratio: 1 / 1;
    border: 12px solid var(--color-mint);
    border-radius: 50%;
    top: 1.5%;
    left: 0;
    z-index: 2;
}

.hero-lup {
    width: 42.2%;
    aspect-ratio: 1 / 1;
    top: 58.1%;
    left: 57.8%;
    z-index: 4;
    object-fit: contain;
    border-radius: 50%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

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

.services-transition {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.transition-bar {
    background-color: var(--color-offwhite);
    width: 100%;
}

.transition-bar.bar-1 {
    height: 4px;
}

.transition-bar.bar-2 {
    height: 16px;
}

.transition-bar.bar-3 {
    height: 24px;
}

.transition-bar.bar-4 {
    height: 40px;
}

.services-content {
    background-color: var(--color-offwhite);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    border: none;
    border-bottom: 12px solid var(--color-navy);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--color-mint);
}

.icon-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--color-navy);
    transition: color 0.3s ease;
}

.service-card:hover .icon-container {
    color: var(--color-mint);
}

.service-icon {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.service-card:hover h3 {
    color: var(--color-mint);
    font-weight: 800;
    /* Replaced string from playfair medium to playfair black equivalent */
}

.service-card p {
    font-size: 1rem;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.5;
}

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

.general-services .section-title {
    color: var(--color-white);
}

.general-services .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-mint);
}

.general-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.general-service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(62, 181, 172, 0.2);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.general-service-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-mint);
    transform: translateY(-5px);
}

.general-service-card h3 {
    color: var(--color-mint);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.general-service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Distinctive styling for Personalized Approach card */
.personalized-card {
    background: linear-gradient(135deg, rgba(62, 181, 172, 0.15) 0%, rgba(26, 46, 59, 1) 100%);
    border-color: rgba(62, 181, 172, 0.6);
    box-shadow: 0 8px 32px rgba(62, 181, 172, 0.15);
    position: relative;
    overflow: hidden;
}

.personalized-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.personalized-card:hover {
    background: linear-gradient(135deg, rgba(62, 181, 172, 0.25) 0%, rgba(26, 46, 59, 1) 100%);
    border-color: var(--color-mint);
    box-shadow: 0 12px 40px rgba(62, 181, 172, 0.3);
}

.personalized-card h3 {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.personalized-card p {
    color: rgba(255, 255, 255, 0.95);
}

.card-link {
    display: inline-block;
    color: var(--color-mint);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
    cursor: none;
    margin-top: auto;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-mint);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.general-service-card:hover .card-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.card-link:hover {
    color: var(--color-white);
}

/* Technology Carousel */
.technology {
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.015) 0px,
            rgba(0, 0, 0, 0.015) 1px,
            transparent 1px,
            transparent 4px), linear-gradient(135deg, var(--color-soft-mint), var(--color-soft-navy));
}

.tech-header {
    text-align: left;
    margin-bottom: 4rem;
    position: relative;
    padding-left: 2rem;
}

.tech-title {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0;
    display: inline-block;
}

.tech-title::after {
    left: 1rem;
    transform: none;
    bottom: -1.5rem;
}

.tech-subtitle {
    font-size: 1.2rem;
    color: var(--color-navy);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 3rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    border-radius: 4px;
    background-color: var(--color-navy);
    overflow: hidden;
    position: relative;
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-content {
    flex: 1;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h4 {
    color: var(--color-mint);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.9);
}

.slide-image {
    flex: 1;
    background-color: #ddd;
}

.slide-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 8px;
    background-color: var(--color-mint);
    width: 0;
    z-index: 10;
}

.carousel-slide.active .slide-progress {
    width: 100%;
}

/* Carousel Nav */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-navy);
    cursor: none;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--color-mint);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(26, 46, 59, 0.2);
    cursor: none;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-navy);
}

/* Contact */
.contact {
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-title::after {
    left: 1rem;
    transform: none;
}

.info-block {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.info-block strong {
    color: var(--color-mint);
    margin-bottom: 0.25rem;
}

.info-block a {
    cursor: none;
}

.contact-composition-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.contact-composition {
    position: relative;
    width: 100%;
    max-width: 531px;
    z-index: 10;
}

/* Background Decorative Circles */
.contact-circle {
    position: absolute;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.contact-circle-ring {
    width: 269px;
    height: 269px;
    border: 12px solid var(--color-mint);
    top: -50px;
    right: -50px;
    z-index: -1;
    pointer-events: none;
}

.contact-circle-solid {
    width: 222px;
    height: 222px;
    background-color: var(--color-navy);
    bottom: -50px;
    right: 350px;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Form Container */
.contact-form-glass {
    position: relative;
    z-index: 2;
    background: rgba(224, 224, 224, 0.20);
    /* display-p3 fallback */
    background: color(display-p3 0.8798 0.8798 0.8798 / 0.20);
    backdrop-filter: blur(90px);
    -webkit-backdrop-filter: blur(90px);
    border-radius: 8px;
    padding: 3rem 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 4px solid var(--color-navy);
    background-color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    border-radius: 4px 4px 0 0;
    transition: border-color 0.3s;
    cursor: none;
    color: var(--color-navy);
}

/* Specific styling for select to handle the custom arrow (optional) */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%231a2e3b" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    text-transform: uppercase;
}

.form-group select option {
    color: var(--color-navy);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-mint);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: none;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--color-mint);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background-color: #25D366;
    /* Official WhatsApp color */
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: none;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}



/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--color-mint);
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    cursor: none;
}

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

/* Smooth Transitions (Fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 2%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .services-grid,
    .general-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-offwhite);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 99;
        /* Start hidden by default logic, overridden by .open */
    }

    .nav-links.open {
        transform: translateY(0);
    }

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

    .hero {
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-image {
        padding: 2rem 5%;
        width: 100%;
    }

    .hero-composition {
        width: 100%;
        max-width: 350px;
        aspect-ratio: 540 / 544;
    }

    .hero-ring {
        border-width: 8px;
    }

    .hero-content {
        padding: 4rem 0;
        text-align: center;
        align-items: center;
    }

    .services-grid,
    .general-services-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .slide-image {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info {
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 8px;
        padding: 2rem;
    }

    .contact-info .section-title {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .contact-info .section-title::after {
        left: 1rem;
        transform: none;
    }

    /* Hide custom cursor on mobile to fallback to native touch */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    html,
    .btn-primary,
    .whatsapp-fab,
    a,
    input,
    textarea {
        cursor: auto;
    }
}