@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-magenta: #de0061; /* Vibrant magenta from logo */
    --brand-plum: #4a0e35;    /* Dark plum from logo */
    --brand-pink: #e86fb3;    /* Light pink from logo */
    
    --bg-color: #fcfcfd;
    --card-surface: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    
    --text-primary: #18181b;
    --text-secondary: #52525b;
    
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
    
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 100px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    --shadow-float: 0 20px 40px -10px rgba(222, 0, 97, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Ambient Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.aurora-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: drift 20s infinite alternate ease-in-out;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-magenta);
    top: -200px;
    left: -100px;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    background: var(--brand-plum);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.aurora-3 {
    width: 700px;
    height: 700px;
    background: var(--brand-pink);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- Container & Typography --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-plum), var(--brand-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Header / Navbar --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--brand-magenta);
}

.nav-actions .btn {
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-actions .btn:hover {
    background: var(--brand-magenta);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(222, 0, 97, 0.3);
}

/* Mobile Toggle & Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--brand-plum);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--brand-plum);
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.mobile-menu-links a {
    color: var(--text-primary);
}

.mobile-menu-links a:hover {
    color: var(--brand-magenta);
}

.mobile-menu-links .btn-mobile {
    background: var(--brand-magenta);
    color: white !important;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: var(--radius-full);
    margin-top: 20px;
}

/* --- Hero Section Modified --- */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pill-badge {
    background: rgba(222, 0, 97, 0.08);
    color: var(--brand-magenta);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(222, 0, 97, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.trust-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.trust-hero .stars {
    color: #ffb400;
    font-size: 1.2rem;
    display: flex;
    gap: 2px;
}

.trust-hero .trust-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 15px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 30px 60px rgba(222,0,97,0.15);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    max-width: 500px;
    width: 100%;
}

.hero-image-wrapper img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-float);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.floating-badge i { color: var(--brand-magenta); }

/* --- Bento Grid Section --- */
.bento-section {
    padding: 50px 0 100px;
    position: relative;
    z-index: 10;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 320px);
    gap: 24px;
}

.bento-card {
    background: var(--card-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-subtle);
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

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

/* Card Sizes */
.card-main { grid-column: span 2; grid-row: span 2; justify-content: space-between;}
.card-stat { grid-column: span 1; grid-row: span 1; justify-content: center; align-items: center; text-align: center; }
.card-wide { grid-column: span 2; grid-row: span 1; }
.card-review { grid-column: span 2; grid-row: span 1; padding: 0; background: var(--text-primary); color: white; border: none; }

/* Main Card Styling */
.card-main h2 { margin-bottom: 20px; }
.card-main p { font-size: 1.1rem; color: var(--text-secondary); max-width: 80%; }
.card-main .hero-img-abstract {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222,0,97,0.15) 0%, rgba(74,14,53,0) 70%);
    pointer-events: none;
}
.card-main img.clinic-img {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 60%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-main:hover img.clinic-img { transform: scale(1.05) translate(-10px, -10px); }

/* Stat Card Styling */
.card-stat .stat-num { font-size: 4rem; font-weight: 800; line-height: 1; font-family: var(--font-display); color: var(--brand-magenta); }
.card-stat .stat-label { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-top: 10px; }

/* Specialties Interactive with Slider */
.card-wide .card-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.specialty-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px;
    padding-bottom: 15px; /* space for indicator/scroll */
}
.specialty-slider::-webkit-scrollbar {
    display: none;
}
.specialty-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.specialty-item { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.05); transition: all 0.3s ease; }
/* Scroll Indicator Hint */
.scroll-hint-dots { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
.scroll-hint-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); opacity: 0.3; }
.scroll-hint-dots .dot.active { opacity: 1; background: var(--brand-magenta); }

/* Interaction Utility */
.clickable { cursor: pointer; transition: all 0.3s ease; }
.clickable:hover { 
    transform: translateX(10px) !important; /* Overriding default transform for items */
}
.bento-card.clickable:hover { 
    transform: translateY(-5px) !important;
}
.specialty-item.clickable:hover { color: var(--brand-magenta); padding-left:10px; }

/* Reviews Marquee */
.card-review { display: flex; flex-direction: column; justify-content: center; position: relative; }
.review-title { position: absolute; top: 30px; left: 30px; font-family: var(--font-display); font-size: 1.2rem; color: rgba(255,255,255,0.7); z-index: 10; }
.marquee-container { width: 100%; overflow: hidden; position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; 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-content { display: inline-flex; gap: 30px; animation: scrollMarquee 20s linear infinite; padding-left: 30px; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
.review-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 20px 24px; white-space: normal; width: 300px; display: flex; flex-direction: column; gap: 10px; }
.review-box .stars { color: #ffb400; font-size: 0.9rem;}
.review-box p { font-size: 0.95rem; color: #fff; opacity: 0.9; line-height: 1.4;}
.review-author { font-size: 0.85rem; font-weight: 600; opacity: 0.6; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% / 2)); } }

/* Deep Info */
.deep-info-section { padding: 100px 0; position: relative; z-index: 10; }
.section-auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pill-badge-outline { display: inline-block; border: 1px solid var(--brand-magenta); color: var(--brand-magenta); padding: 6px 16px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.bullet-points { display: flex; flex-direction: column; gap: 15px; }
.bullet { display: flex; align-items: center; gap: 15px; font-weight: 500; }
.info-image-side { position: relative; }
.rounded-image-large { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.floating-mini-card { position: absolute; bottom: 30px; left: -30px; background: white; padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 15px; border: 1px solid var(--card-border); }

/* Branches */
.branches-section { padding: 100px 0 150px; position: relative; z-index: 10; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.branches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.branch-card { background: var(--card-surface); backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-subtle); transition: transform 0.3s ease; }
.branch-card:hover { transform: translateY(-5px); }
.branch-img-container { height: 250px; width: 100%; overflow: hidden; }
.branch-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.branch-card:hover .branch-img { transform: scale(1.05); }
.branch-content { padding: 40px; }
.branch-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.branch-content p { color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.branch-content p i { color: var(--brand-magenta); margin-top: 5px; }
.branch-actions { margin-top: 30px; display: flex; gap: 15px; align-items: center; }
.btn-outline { border: 2px solid var(--brand-magenta); color: var(--brand-magenta); padding: 10px 20px; border-radius: 100px; font-weight: 600; }
.btn-outline:hover { background: var(--brand-magenta); color: white; }
.btn-text { font-weight: 600; color: var(--brand-plum); }
.btn-text:hover { color: var(--brand-magenta); }

/* Footer */
.modern-footer { background: var(--brand-plum); color: white; padding: 80px 0 20px; position: relative; z-index: 10; }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-brand p { max-width: 400px; line-height: 1.8; }
.footer-social { display: flex; gap: 15px; margin-top: 30px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.footer-social a:hover { background: var(--brand-magenta); transform: translateY(-3px); }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 25px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--brand-pink); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Meta Widget */
.floating-widget { position: fixed; bottom: 40px; right: 40px; z-index: 999; }
.btn-whatsapp { background: #25D366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); transition: transform 0.3s ease; position: relative; }
.btn-whatsapp::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: #25D366; border-radius: 50%; z-index: -1; animation: pulse 2s infinite; }
.btn-whatsapp:hover { transform: scale(1.1) rotate(5deg); }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    padding: 50px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.5);
}
.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.close-modal:hover {
    background: var(--brand-magenta);
    color: white;
}

/* Anim */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll Reveal Classes */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* Responsiveness */
@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .card-tall { grid-column: span 1; grid-row: span 1; min-height: 250px;}
    .card-wide, .card-main, .card-review { grid-column: span 2; min-height: 300px;}
    .card-main img.clinic-img { display: none; }
    .section-auto-grid { grid-template-columns: 1fr; }
    .branches-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text-content { align-items: center; text-align: center; }
    .hero h1, .hero p { text-align: center; }
    .hero h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-tall, .card-wide, .card-main, .card-review, .card-stat { grid-column: span 1; }
    .floating-widget { bottom: 20px; right: 20px; }
    .footer-top-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { margin: 0 auto; text-align: center; }
    .footer-social { justify-content: center; margin-top: 25px; }
    .footer-links h4 { margin-bottom: 20px; }
    .footer-links ul { align-items: center; }
    .modal-content { padding: 30px; }
    .floating-badge { left: 10px; bottom: -20px; width: auto; font-size: 0.85rem; padding: 10px 15px; }
    .floating-mini-card { left: 10px; bottom: 10px; padding: 15px; }
}
