
html {
    scroll-behavior: smooth;
    
    scroll-padding-top: 80px; 
}

body {
    
    -webkit-overflow-scrolling: touch;
    line-height: 1.6;
    overflow-x: hidden; 
}


.slot, .btn-submit, .btn-action, .btn-login {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}


section {
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    
    background: 
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
        url('image_14c83f.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f8fafc;
    min-height: 100vh;
    margin: 0;
}

section, #about-doctor {
    background: transparent !important; 
    padding: 80px 5%;
    border: none !important;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.btn-login {
    text-decoration: none;
    color: #38bdf8;
    border: 2px solid #38bdf8;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-login:hover {
    background: #38bdf8;
    color: #0f172a;
}


.hero {
    text-align: center;
    padding: 100px 5%;
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    color: #f8fafc;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.booking-container {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.info-panel {
    background: rgba(30, 64, 175, 0.3) !important;
    padding: 40px;
    width: 35%;
}

.booking-form {
    padding: 40px;
    width: 65%;
}


label {
    display: block;
    margin-bottom: 8px;
    color: #38bdf8;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    color: white !important;
    margin-bottom: 15px;
    outline: none;
}

input:focus {
    border-color: #38bdf8 !important;
}


.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.slot {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
}

.slot:hover:not(.booked) {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.slot.active {
    background: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8;
}


.slot.booked {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.slot.booked::after {
    content: "Booked";
    position: absolute;
    font-size: 0.6rem;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    color: #f87171;
    font-weight: bold;
}


.btn-submit {
    width: 100%;
    padding: 15px;
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}


.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
}

.modal-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-align: center;
    max-width: 450px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: #38bdf8;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

@media (max-width: 768px) {
    
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    
    .hero h1 {
        font-size: 2.2rem; 
    }

    .hero p {
        font-size: 1rem;
    }

   
    #about-doctor > div {
        flex-direction: column !important; 
        gap: 30px !important;
    }

    #about-doctor img {
        width: 100% !important;
        height: auto !important;
        max-width: 300px; 
        margin: 0 auto;
    }

    #about-doctor h2 {
        font-size: 2rem;
        text-align: center;
    }

    #about-doctor .details-list {
        grid-template-columns: 1fr !important; 
    }

    
    .booking-container {
        flex-direction: column; 
        margin: 20px;
        border-radius: 15px;
    }

    .info-panel, .booking-form {
        width: 100% !important; 
        padding: 25px !important;
    }

    
    .form-row {
        flex-direction: column; 
        gap: 0px !important;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px;
    }

    .slot {
        font-size: 0.8rem;
        padding: 10px 5px;
    }

   
    .table-card {
        margin: 10px;
        border-radius: 12px;
    }

    table th, table td {
        padding: 12px 8px !important;
        font-size: 0.85rem;
    }

    
    .slot-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


@media (max-width: 480px) {
    .time-slots, .slot-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}
