/* Global Styles & Variables (Ferlix-Inspired Theme) */
:root {
    /* Primary & Secondary - A mix of professional teal/blue and soft fertility pinks */
    --primary-color: #0E4D5F;
    /* Deep Teal/Blue (Trust) */
    --secondary-color: #FF5E8E;
    /* Vibrant Pink (New Band Color) */
    --accent-color: #D4AF37;
    /* Elegant Gold */

    /* Text Colors */
    --text-color: #555555;
    --heading-color: #0E4D5F;
    --text-light: #888888;

    /* Backgrounds */
    --bg-light: #F9F7F2;
    /* Warm Creamy White */
    --bg-white: #FFFFFF;
    --bg-pink: #FFD6DF;
    /* Richer, darker soft pink */
    --bg-feature: #FDFBF7;

    /* Borders & Shadows */
    --border-color: #EAEAEA;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(14, 77, 95, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;

    /* Typography */
    --font-heading: 'DM Sans', sans-serif;
    /* Modern, Clean */
    --font-body: 'DM Sans', sans-serif;

    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-pink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 3rem;
}

/* Buttons */
/* Main Header - Clean White */
/* Main Header - Clean White */
.main-header {
    background-color: var(--bg-white);
    height: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
    display: flex;
    align-items: center;
    position: sticky;
    /* Sticky to work with Top Bar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    /* Ensure flexibility if image/text */
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 1.05rem;
    padding: 10px 0;
    margin: 0 5px;
    position: relative;
    /* Needed for ::after absolute positioning */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Align to bottom of padding */
    left: 0;
    width: 0;
    /* Start hidden */
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Ferlix Style Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    /* Full Oval Shape */
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    position: relative;
    /* For Shine Effect */
    overflow: hidden;
    /* Clip Shine Effect */
    z-index: 1;
}

.btn-primary {
    background-color: var(--secondary-color);
    /* Vibrant Pink */
    color: white;
    box-shadow: 0 10px 20px rgba(255, 94, 142, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    /* Gold Hover */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    color: white;
}

/* Wave/Shine Animation on Hover */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    transition: 0s;
    /* Reset immediately */
    z-index: -1;
}

.btn-primary:hover::after {
    animation: shine 0.75s;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    /* Gold Hover */
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
}

.btn-outline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    transition: 0s;
    z-index: -1;
}

.btn-outline:hover::after {
    animation: shine 0.75s;
}

/* Floating Socials - Enhanced */
.floating-socials {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;

    background: var(--primary-color);
    border-radius: 6px 0 0 6px;
    padding: 15px 8px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-socials a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.floating-socials a:hover {
    color: #fff;
    transform: translateX(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 76, 117, 0.8), rgba(15, 76, 117, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    padding-top: var(--header-height);
    /* Adjusted for new header */
}

/* Fallback for missing image - gradient */
.hero.no-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* Map Fix */
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Info Cards */
.info-cards {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    overflow: hidden;
}

.info-card {
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.info-card:last-child {
    border-right: none;
}

.info-card.highlight {
    background-color: var(--accent-color);
    color: white;
}

.info-card.highlight h3,
.info-card.highlight p {
    color: white;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    /* Changed for alignment */
}

.about-img img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Services */
.services {
    background-color: var(--bg-light);
}

/* Ferlix-Style Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.4s ease;
    text-align: center;
    /* Center align for impact */
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 94, 142, 0.3);
    /* Colored shadow */
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: var(--bg-pink);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Doctors/Team Cards - Ferlix Style */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* About Us Section Split */
.about-split {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-visual {
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-visual img {
    width: 350px;
    /* Reduced Fixed Size */
    height: 350px;
    border-radius: 50%;
    /* Round Shape */
    object-fit: cover;
    border: 15px solid var(--bg-pink);
    /* Decorative Border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-visual:hover img {
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

.about-content-new {
    text-align: left;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content-new {
        text-align: center;
        margin-top: 30px;
    }
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.team-img {
    height: 380px;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--heading-color);
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #0E4D5F;
    /* Hard set deep teal for footer */
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Ferlix Feature Boxes (Hero Bottom) */
.feature-box {
    background: white;
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-icon-circle {
    width: 90px;
    height: 90px;
    background: var(--bg-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(14, 77, 95, 0.3);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--heading-color);
    font-weight: 700;
}

/* Feature Box Dark Variant */
.feature-box.dark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.feature-box.dark h3,
.feature-box.dark p {
    color: white;
}

.feature-box.dark .feature-icon-circle {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-box.dark:hover .feature-icon-circle {
    transform: scale(1.1);
    background: white;
    /* Keep white on hover */
    color: var(--secondary-color);
    /* Change icon color */
}

.feature-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Calculator Cards */
/* Calculator Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Make the first item span 2 columns to break the boring row */
.calculator-grid .calc-card:nth-child(1) {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-pink) 0%, #ffffff 100%);
}

.calculator-grid .calc-card:nth-child(1) .calc-icon {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
}

.calculator-grid .calc-card:nth-child(1) h3 {
    font-size: 2rem;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid .calc-card:nth-child(1) {
        grid-row: auto;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid .calc-card:nth-child(1) {
        grid-column: auto;
    }
}

/* Calculator Cards - Catchy Design */
.calc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.calc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 77, 95, 0.15);
}

.calc-card:hover::before {
    transform: scaleX(1);
}

.calc-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: 0.4s;
    border: 1px solid #eee;
}

.calc-card:hover .calc-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

.calc-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.calc-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    /* Pink/Salmon */
    margin-bottom: 20px;
    transition: 0.3s;
}

.calc-card:hover .calc-icon {
    transform: scale(1.1);
}

.calc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 700;
}

.calc-link {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Page Header - Ferlix Style (Clean & Centered) */
.page-header {
    background: linear-gradient(135deg, var(--bg-pink) 0%, #fff 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Carousel Banner */
.page-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-top: 80px;
    /* Offset fixed header */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 54, 93, 0.6);
    /* Overlay for text readability */
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.carousel-content p {
    font-size: 1.4rem;
    color: white !important;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.carousel-nav button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.carousel-nav .prev-btn {
    left: 40px;
}

.carousel-nav .next-btn {
    right: 40px;
}

@media (max-width: 768px) {
    .page-carousel {
        height: 350px;
    }

    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-nav .prev-btn {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-nav .next-btn {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* Mobile Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    /* 1. Navigation */
    .header-top {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-pink);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    /* 2. Layouts & Grids */
    .about-grid,
    .services-grid,
    .info-cards-grid,
    .gallery-grid,
    .footer-grid,
    .contact-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* 3. Hero & Headers */
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-carousel {
        height: 350px;
        margin-top: 80px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 4. Sections */
    .info-cards {
        margin-top: 30px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .service-detail-card {
        flex-direction: column;
    }

    .service-detail-img {
        width: 100%;
        height: 200px;
    }

    .service-detail-content {
        width: 100%;
        padding: 25px;
    }

    /* 5. Booking Page */
    .booking-container {
        grid-template-columns: 1fr;
        margin: 100px 20px 50px;
    }

    .booking-sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 30px;
    }

    .booking-header-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .step-indicator {
        font-size: 0.8rem;
    }

    /* 6. Utility */
    .floating-socials {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    /* 7. Footer */
    footer {
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .main-header .logo img {
        height: 45px !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 12s linear infinite;
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

.delay-300 {
    animation-delay: 0.6s;
}

.delay-400 {
    animation-delay: 0.8s;
}

/* Marquee Section */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 80px;
    /* Space between logos */
    animation: scrollRight 30s linear infinite;
}

.marquee-track img {
    height: 80px;
    /* Unified height */
    object-fit: contain;
    /* No grayscale, full color as requested */
    transition: transform 0.3s ease;
}

.marquee-track img:hover {
    transform: scale(1.1);
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .marquee-track {
        gap: 40px;
    }

    .marquee-track img {
        height: 60px;
    }
}

/* --- Organic Lifecycle & Fertility Theme --- */
:root {
    --primary-color: #1B365D;
    /* Deep Navy */
    --primary-gradient: linear-gradient(135deg, #1B365D 0%, #2D5B94 100%);
    --warm-gradient: linear-gradient(120deg, #fdfbfb 0%, #fff1f1 50%, #f4f6f8 100%);
    /* Hint of Rose */

    --accent-color: #D4AF37;
    --accent-soft: #F9E4B7;
    /* Soft Gold */
    --rose-tint: rgba(255, 240, 245, 0.5);
    /* Baby Pink hint */

    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 15px 35px rgba(27, 54, 93, 0.08), 0 5px 15px rgba(212, 175, 55, 0.05);
    /* Warm soft shadow */

    --border-radius-lg: 24px;
    --border-radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* 1. Global Organic Feel */
body {
    background: var(--warm-gradient);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.btn {
    letter-spacing: 0.5px;
    /* Slight breathing room */
}

/* 2. Soft Organic Cards (Womb-like safety/comfort) */
.info-card,
.service-card,
.team-card,
.booking-container,
.contact-wrapper,
.main-header,
.doctor-profile {
    background: var(--glass-bg) !important;
    border-radius: var(--border-radius-lg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.team-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(27, 54, 93, 0.12);
    border-color: var(--accent-color);
}

/* Specific: Rounded images */
.about-img img,
.team-img img,
.doctor-profile img {
    border-radius: var(--border-radius-lg);
}

/* 3. DNA / Cell Morphing Background Animation */
.life-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(212, 175, 55, 0.15));
    /* Soft Gold/White Cell */
    border-radius: var(--border-radius-blob);
    /* Organic blob shape */
    animation: morph 20s infinite ease-in-out;
    filter: blur(5px);
    opacity: 0.6;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.1), transparent);
}

.particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.4;
}

.particle:nth-child(4) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: 20%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent);
}

.particle:nth-child(5) {
    display: none;
}

/* Reduce count */
.particle:nth-child(6) {
    display: none;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(20px, -30px) rotate(180deg);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 4. Warm & Trust Button Styles */
.btn-primary {
    background: var(--primary-color) !important;
    border-radius: 50px;
    /* Pill shape */
    padding: 12px 35px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(27, 54, 93, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    z-index: 10;
}

.btn-primary:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* 5. Typography & Decorative Headers */
h2::after {
    background: var(--accent-color);
    width: 60px;
    height: 4px;
    border-radius: 4px;
    margin: 12px auto 0;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* 6. Fix for highlighting info card */
.info-card.highlight {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%) !important;
    color: white !important;
    border: none;
}

.info-card.highlight h3,
.info-card.highlight p {
    color: white !important;
}

/* 7. Header Transparency */
.main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(27, 54, 93, 0.05);
}

/* 8. Text Visibility */
.hero h1,
.hero p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    -webkit-text-fill-color: white;
}

/* 9. Floating Animation for Elements */
.hero-content img,
.about-img img,
.service-icon {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

footer {
    background: var(--primary-color);
    position: relative;
}

.footer-social-links a {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.footer-social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

footer h3,
footer p,
footer li,
footer a {
    color: white !important;
}

/* Header Top */
/* Header Top */
.header-top {
    background: var(--primary-color);
    color: white;
    padding: 6px 0;
    /* Reduced padding */
    font-size: 0.85rem;
    /* Reduced font size */
    font-family: var(--font-body);
    margin-bottom: 2px;
    /* Small space between top bar and menu */
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-info {
    display: flex;
    gap: 20px;
}

.header-top-info a {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.header-top-info a:hover {
    color: var(--accent-color);
}

.header-socials a {
    color: white;
    margin-left: 15px;
    transition: 0.3s;
}

.header-socials a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .header-top {
        display: none;
        /* Hide on mobile usually */
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional staggered delays for lists */
.reveal.delay-100 {
    transition-delay: 0.1s;
}

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-300 {
    transition-delay: 0.3s;
}

.reveal.delay-400 {
    transition-delay: 0.4s;
}