:root {
    --primary: #00B4D8;
    --primary-dark: #0077B6;
    --secondary: #03045E;
    --accent: #06D6A0;
    --white: #ffffff;
    --grey-light: #F8F9FA;
    --text-dark: #212529;
    --whatsapp: #25D366;
    --font-main: 'Outfit', sans-serif;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--grey-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.8) 0%, rgba(0, 180, 216, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, #00B4D8, #06D6A0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary-large,
.btn-whatsapp-large {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-large {
    background: var(--white);
    color: var(--secondary);
}

.btn-whatsapp-large {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-primary-large:hover,
.btn-whatsapp-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 10px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Doctors */
.doctors {
    background: var(--grey-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-img {
    height: 300px;
    width: 100%;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-info h3 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #ccc;
    font-size: 1.2rem;
}

.doctor-social i {
    cursor: pointer;
    transition: color 0.3s;
}

.doctor-social i:hover {
    color: var(--primary);
}

/* Booking */
.booking {
    background: var(--secondary);
    color: var(--white);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.booking-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.booking-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
    background: var(--secondary);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.booking-status {
    text-align: center;
    padding: 20px;
}

.booking-status i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    /* Animation removed here, JS will add it only when closed */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.chat-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: grab;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gem-doctor-icon i.fa-user-doctor {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: jewelGlow 2s infinite alternate;
    pointer-events: none;
}

.doctor-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #0077B6;
    /* Explicit Blue to replace variable */
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes jewelGlow {
    from {
        transform: scale(1);
        opacity: 0.9;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.chat-icon:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 450px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    /* Larger icon for better clickability */
    cursor: pointer;
    z-index: 1002;
    /* Ensure it's above everything */
    padding: 5px;
    transition: transform 0.2s;
}

.chat-header button:hover {
    transform: scale(1.1) rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.ai {
    background: var(--grey-light);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.message.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
}

.chat-footer button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-whatsapp-small {
    display: inline-block;
    background: var(--whatsapp);
    color: var(--white) !important;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: transform 0.2s;
    text-align: center;
}

.btn-whatsapp-small:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: #000;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chat-window {
        width: 300px;
        left: 0;
    }
}