:root {
    --primary-color: #0077b6;
    /* Medical Blue */
    --secondary-color: #00b4d8;
    /* Brighter Blue/Teal */
    --accent-color: #90e0ef;
    /* Light Blue */
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-light);
    background: url('../PHOTO-2026-01-28-22-52-57.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Dark overlay to ensure text readability over the background image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 28, 43, 0.85), rgba(0, 119, 182, 0.75));
    z-index: -1;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

/* Hero Section */
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    animation: pulse 2s infinite;
}

/* Glassmorphism Contact Card */
.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    color: var(--white);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    display: inline-block;
}

.doctors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.doctor-profile {
    flex: 1;
    min-width: 250px;
}

.doctor-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.doctor-profile h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: var(--white);
    color: var(--primary-color);
}

.divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
}

.location-preview {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .doctors-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

/* --- Phase 2: Interactivity & Animations --- */

/* Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 0;
    /* Behind content, above background */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 100px, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0.9;
    transition: background 0.1s ease;
}

/* Floating Tooth Graphic */
.floating-tooth {
    position: fixed;
    bottom: 50px;
    right: 50px;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 10;
    animation: floatRotate 8s ease-in-out infinite;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

@keyframes floatRotate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
}

/* 3D Tilt Card */
.tilt-card {
    transition: transform 0.1s ease-out;
    /* Smooth but fast for tilt */
    transform-style: preserve-3d;
    will-change: transform;
}



/* Button & Link Hover Effects */
.phone-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--secondary-color);
    background: var(--white);
    color: var(--primary-color);
}

.instagram-link:hover {
    color: #E1306C;
    /* Instagram Pink */
    box-shadow: 0 0 15px #E1306C;
}

.whatsapp-link:hover {
    color: #25D366;
    /* WhatsApp Green */
    box-shadow: 0 0 15px #25D366;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.time-box {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.time-box span:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Staggered float animation for time boxes */
.time-box:nth-child(1) {
    animation-delay: 0s;
}

.time-box:nth-child(2) {
    animation-delay: 1s;
}

.time-box:nth-child(3) {
    animation-delay: 2s;
}

.time-box:nth-child(4) {
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* --- Mobile Optimizations (Title Fix) --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        /* Reduced from 3rem */
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        /* Ensure text wraps */
        padding: 0 10px;
        /* Prevent edge touching */
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .countdown-container {
        gap: 0.8rem;
    }

    .time-box {
        padding: 0.8rem 1rem;
        min-width: 60px;
    }

    .time-box span:first-child {
        font-size: 1.5rem;
    }
}