/* DESIGN SYSTEM & VARIABLES */
:root {
    /* Colors */
    --primary-color: #1E88E5; /* Medical Blue */
    --secondary-color: #26C6DA; /* Soft Teal */
    --primary-dark: #1565C0;
    --accent-color: #FFFFFF;
    --bg-color: #F4F7FB; /* Light Gray / Neutral */
    --text-dark: #222222;
    --text-light: #555555;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* UTILITY CLASSES */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* HEADER & NAVBAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-dark);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* HERO SECTION */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0f4fd 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 193, 7, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #FF9800;
    margin-bottom: 24px;
}

.rating-badge span {
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    background-color: rgba(38, 198, 218, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card .icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-card h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.floating-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ABOUT SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* DEPARTMENTS SECTION */
.departments {
    background-color: var(--white);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dept-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.dept-card:hover {
    background-color: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 136, 229, 0.1);
}

.dept-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: all var(--transition-normal);
}

.dept-card:hover .dept-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.dept-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dept-card p {
    color: var(--text-light);
}

/* WHY CHOOSE US */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--secondary-color);
}

.why-card .icon {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.why-card p {
    color: var(--text-light);
}

/* DOCTORS SECTION */
.doctors {
    background-color: var(--bg-color);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.doctor-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.doctor-img {
    height: 300px;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
}

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

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.doctor-info .specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-info .exp {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* REVIEWS SECTION */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(30, 136, 229, 0.1);
    font-family: serif;
    line-height: 1;
}

.stars {
    color: #FFC107;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.reviewer h4 {
    margin: 0;
    font-size: 1.1rem;
}

.reviewer span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* GALLERY SECTION */
.gallery {
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* APPOINTMENT SECTION */
.appointment {
    background-color: var(--white);
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.appointment-content p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.appointment-form-wrapper {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

/* LOCATION SECTION */
.location-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-details {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.address-box i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.address-box h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.address-box p {
    color: var(--text-light);
}

/* EMERGENCY CTA SECTION */
.emergency-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--white);
}

.emergency-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.emergency-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.emergency-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.emergency-btns {
    display: flex;
    gap: 20px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* FOOTER */
.footer {
    background-color: #111827;
    color: #f3f4f6;
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-col p {
    color: #9ca3af;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col a {
    color: #9ca3af;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #9ca3af;
}

.contact-li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-bottom {
    background-color: #030712;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* RESPONSIVE BASE */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .header-container {
        padding: 0 20px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .hero-btns, .hero-features {
        justify-content: center;
    }
    .floating-card {
        left: 20px;
        bottom: 20px;
    }
    .nav-actions {
        display: none;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-normal);
        display: flex;
    }
    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .mobile-toggle {
        display: block;
    }
    .appointment-container {
        grid-template-columns: 1fr;
    }
    .location-container {
        grid-template-columns: 1fr;
    }
    .emergency-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
    }
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    .image-wrapper img {
        height: 400px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .emergency-btns {
        flex-direction: column;
        width: 100%;
    }
}
