/* Variables & Setup */
:root {
    --primary: #FF6B9E; /* Pink */
    --primary-light: #FF99BD;
    --secondary: #00D2D3; /* Cyan/Mint */
    --secondary-light: #A8E6CF;
    --accent: #FFD93D; /* Yellow */
    --text-dark: #2B2D42;
    --text-light: #8D99AE;
    --bg-main: #FDFBFF;
    --white: #FFFFFF;
    
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    
    --shadow-soft: 0 20px 40px rgba(43, 45, 66, 0.08);
    --shadow-hover: 0 30px 60px rgba(255, 107, 158, 0.15);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

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

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(253, 251, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}
.logo span {
    color: var(--primary);
}
.logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}
.nav-links a:hover {
    color: var(--secondary);
}
.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF8EAE);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 107, 158, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 107, 158, 0.4);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 140px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 217, 61, 0.2);
    color: #D4A000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent);
    opacity: 0.4;
    border-radius: 10px;
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.happy-patients {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.avatars {
    display: flex;
}
.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    margin-left: -12px;
    object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }
.happy-patients span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-visual {
    position: relative;
}
.visual-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-light), var(--primary-light));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}
.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.card-1 {
    top: 10%;
    left: -10%;
    animation: float 4s ease-in-out infinite;
}
.card-1 i { color: var(--secondary); }
.card-2 {
    bottom: 20%;
    right: -10%;
    animation: float 5s ease-in-out infinite reverse;
}
.card-2 i { color: var(--accent); }

/* Bento Grid Section */
.bento-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

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

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
}
.bento-card:hover .card-bg-img {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 210, 211, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.bento-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Specific Bento Cards */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-large .card-content {
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.service-list {
    list-style: none;
    margin-top: 20px;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}
.service-list i {
    color: var(--secondary);
    width: 20px;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    color: var(--text-dark);
}
.offer-card .card-content {
    justify-content: center;
}
.offer-card .card-icon {
    background: rgba(255,255,255,0.3);
    color: var(--white);
}
.offer-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 20;
    animation: pulse 2s infinite;
}
.price {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.old-price {
    text-decoration: line-through;
    color: rgba(0,0,0,0.4);
    font-size: 1.2rem;
}
.new-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.2s;
}
.btn-white:hover {
    transform: scale(1.05);
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}
.hours-list {
    list-style: none;
    margin-top: 16px;
}
.hours-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.hours-list span {
    font-weight: 700;
    color: var(--primary);
}
.hours-list .closed span {
    color: var(--text-light);
}

.emergency-card {
    background: var(--text-dark);
    color: var(--white);
}
.emergency-card .card-icon {
    background: rgba(255, 107, 158, 0.2);
    color: var(--primary);
}
.emergency-card p {
    color: #A0A5BB;
    margin-bottom: 24px;
}
.btn-emergency {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.3s;
}
.btn-emergency:hover {
    background: var(--primary-light);
}

.bento-long {
    grid-column: span 4;
    grid-row: span 1;
}
.bento-long .flex-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.bento-long h3 {
    font-size: 2rem;
}
.bento-long p {
    max-width: 500px;
    font-size: 1.1rem;
}

/* 21st.dev style Hover Glow effect */
.hover-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.4), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    pointer-events: none;
}
.hover-glow:hover::before {
    opacity: 1;
}

/* Marquee */
.marquee-container {
    width: 100%;
    background: var(--accent);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg);
    margin: 80px 0;
}
.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}
.marquee span {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0 40px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 24px 40px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}
.footer-brand p {
    color: #A0A5BB;
    max-width: 300px;
}
.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--secondary);
}
.footer-links a {
    display: block;
    color: #A0A5BB;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--white);
}
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}
.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes blob-morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-large, .bento-medium, .bento-long {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 100px;
    }
    .hero-title { font-size: 3rem; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    
    .nav-links { display: none; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons { justify-content: center; }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-medium, .bento-small, .bento-long {
        grid-column: span 1;
    }
    .hero-cta { flex-direction: column; }
}

/* --- NEW ADDITIONS: TEAM, FAQ & MODAL --- */

/* Team Section (Flip Cards) */
.team-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 24px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.team-card {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    position: relative; /* For the hover-glow effect */
    border-radius: var(--radius-lg);
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    z-index: 10;
}
.team-card:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--shadow-hover);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}
.team-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.team-info span { color: var(--accent); font-weight: 700; }
.card-back {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    color: var(--text-dark);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}
.back-icon { width: 48px; height: 48px; color: var(--white); margin-bottom: 20px; }
.card-back h3 { margin-bottom: 12px; color: var(--white); }

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 24px;
}
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #FAFAFA;
}
.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(43, 45, 66, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.3s, transform 0.3s;
}
.close-modal:hover {
    background: #FF6B9E;
    color: white;
    transform: rotate(90deg);
}
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.modal-header p { color: var(--text-light); }
.booking-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.input-group input {
    padding: 14px 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.input-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 210, 211, 0.15);
}
.w-full { width: 100%; text-align: center; }
