/* ---------- RESET & GLOBAL ---------- */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

html {
    scrollbar-width: none !important;
    overflow-x: hidden !important;
    /* overscroll-behavior-x: none; */
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fefd;
    overflow-x: hidden;
    line-height: 1.5;
}

/* custom scrollbar premium */
::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar-track {
    background: #e0f0ed00;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #1a7f72, #0c5a55);
    border-radius: 20px;
}

/* animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(35px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.9s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

.card-hover {
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -18px rgba(0, 0, 0, 0.22);
}

/* focus & accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2ebdab;
    outline-offset: 3px;
    border-radius: 40px;
}

/* button actions */
.btn-book {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book:hover {
    border: 1px solid var(--accent-color);
    background-color: var(--primary-color);
}

/* modern custom container */
.container-custom {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* service indicator smooth */
.service-active-text {
    color: #abf0e8 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(88, 227, 211, 0.7);
}

/* floating effect elements */
.floating-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(88, 227, 211, 0.18) 0%, rgba(13, 90, 85, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Button gradient */
.btn-glow {
    background: linear-gradient(105deg, #117a6b, #1ea394);
    transition: all 0.25s ease;
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.3);
}

.btn-glow:hover {
    background: linear-gradient(105deg, #0d675a, #198b7a);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 18px 28px -12px rgba(0, 0, 0, 0.35);
}

/* doctor card image border gradient */
.doctor-img {
    border: 4px solid white;
    box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.card-hover:hover .doctor-img {
    transform: scale(1.03);
}

/* ---------- ENHANCED FOOTER STYLES ---------- */
footer {
    background: linear-gradient(135deg, #0a2e2b 0%, #05231f 100%);
    border-radius: 48px 48px 0 0;
    padding: 4rem 1rem 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -30px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(88, 227, 211, 0.08) 0%, rgba(13, 90, 85, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

footer::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(90, 210, 190, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-brand h3 {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(125deg, #ffffff, #b0f0e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.footer-brand p {
    color: #a8d5cf;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.footer-heading {
    color: #f0faf8;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(95deg, #58e3d3, #1d8b7a);
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    margin-top: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdd9d4;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.75rem;
    color: #58e3d3;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: #abf0e8;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
    color: #b3fff0;
}

.contact-info p {
    color: #bdd9d4;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    width: 26px;
    color: #58e3d3;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: #ccf4ef;
    transition: 0.25s;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid rgba(88, 227, 211, 0.3);
}

.social-icons a:hover {
    background: #0f7668;
    color: white;
    transform: translateY(-4px);
    border-color: #58e3d3;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(88, 227, 211, 0.2);
    padding-top: 1.8rem;
    margin-top: 2.5rem;
    color: #9bc5bf;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #b0f0e8;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: white;
}

/* back to top button - perfectly positioned */
#topBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: #0f7668;
    border: none;
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: none;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
}

#topBtn:hover {
    background: #2ebdab;
    transform: scale(1.07);
}

/* error message style for mobile number */
.error-msg {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 5px;
    margin-left: 12px;
    display: none;
}

.input-error {
    border: 1px solid #dc3545 !important;
    background-color: #fff8f8 !important;
}

/* ======================= RESPONSIVE STYLES ======================= */

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 40;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    transition: all 0.35s ease;
}

/* Mobile (default < 768px) */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 52, 48, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        border-radius: 24px;
        margin-top: 0.8rem;
        gap: 1.2rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 245, 0.15);
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 0.6rem 0;
        font-size: 1.1rem;
    }

    nav {
        position: relative;
    }

    /* Hero */
    #home {
        border-bottom-left-radius: 30px !important;
        border-bottom-right-radius: 30px !important;
        min-height: auto !important;
        padding-bottom: 3rem;
    }

    #home>div:last-child {
        min-height: auto !important;
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    /* Quick Booking */
    #quickBookingGrid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    #quickBookingGrid>div:last-child button {
        width: 100%;
    }

    /* About */
    #aboutGrid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #aboutGrid>div:first-child {
        order: 2;
    }

    #aboutGrid>div:last-child {
        order: 1;
        text-align: center;
    }

    #aboutFeatures {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Services */
    #servicesInner {
        flex-direction: column !important;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #desktopServices {
        display: none !important;
    }

    #mobileServiceWrapper {
        display: block !important;
        margin-top: 1.5rem;
    }

    #mobileServiceSelect {
        background: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 245, 0.4) !important;
        padding: 14px 22px !important;
        border-radius: 60px !important;
        width: 100% !important;
        font-weight: 600 !important;
        font-size: 1rem;
    }

    #mobileServiceSelect option {
        color: #0c2d28;
        background: white;
    }

    /* Doctors */
    #doctorsGrid {
        grid-template-columns: 1fr !important;
    }

    /* Appointment */
    #appointmentGrid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #appointmentGrid>div:first-child {
        order: 2;
    }

    #appointmentGrid>div:last-child {
        order: 1;
    }

    #appointmentFormGrid,
    #appointmentFormGrid2 {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    footer {
        border-radius: 28px 28px 0 0 !important;
        padding: 2.5rem 1rem 1.5rem !important;
    }

    #topBtn {
        width: 44px !important;
        height: 44px !important;
        bottom: 1rem !important;
        right: 1rem !important;
        font-size: 1.1rem !important;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
    }

    #home {
        border-bottom-left-radius: 50px !important;
        border-bottom-right-radius: 50px !important;
    }

    #aboutGrid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    #aboutFeatures {
        grid-template-columns: 1fr 1fr !important;
    }

    #servicesInner {
        flex-direction: row !important;
        gap: 2rem !important;
    }

    #desktopServices {
        display: flex !important;
    }

    #mobileServiceWrapper {
        display: none !important;
    }

    #doctorsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #appointmentGrid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
    }

    #desktopServices {
        display: flex !important;
    }

    #mobileServiceWrapper {
        display: none !important;
    }
}


