/* =========================================
   Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --color-primary: #0056b3;
    /* Deep Royal Blue */
    --color-primary-dark: #003d80;
    --color-secondary: #333333;

    /* Dazzling Accents */
    --color-gold: #C5A059;
    --color-gold-light: #E5C585;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    --gradient-gold: linear-gradient(135deg, #C5A059 0%, #E5C585 100%);

    --color-text: #333333;
    --color-text-light: #555555;
    --color-bg: #FFFFFF;
    --color-ivory: #F0F8FF;
    /* Alice Blue */
    --color-dark: #111111;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --shadow-soft: 0 10px 40px rgba(0, 86, 179, 0.08);
    /* Blue-tinted shadow */
    --shadow-hover: 0 20px 50px rgba(0, 86, 179, 0.15);
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-white);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white) !important;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4da6ff;
    /* Light Stick Blue */
    color: white;
    border: 2px solid white;
    /* Beautiful white line */
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.4);
}

.btn-primary:hover {
    background: #3399ff;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 166, 255, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-light:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--color-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 60px;
    /* Offset fixed header */
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Floating Doctor Card */
.hero-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: var(--transition);
    max-width: 300px;
}

.hero-card:hover {
    transform: rotate(0) translateY(-10px);
}

.doctor-profile {
    text-align: center;
}

.doctor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-soft);
}

.doctor-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.specialty {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.rating {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: var(--color-gold);
}

.rating span {
    color: var(--color-text);
}

/* =========================================
   About Section
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.about-features i {
    color: var(--color-primary);
}

.about-image {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Floating Stat */
.stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 5px solid var(--color-primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Services
   ========================================= */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--color-white);
    padding: 0;
    /* Remove padding to let image sit flush if desired, or keep padding and style image inside */
    padding-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    overflow: hidden;
    /* Important for image corners */
    text-align: center;
    /* Center content */
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-card h3,
.service-card p,
.service-card .service-link,
.service-card .service-icon {
    padding: 0 2rem;
    /* Add horizontal padding back to text elements */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--color-primary);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--color-ivory);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.stars {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(197, 160, 89, 0.2);
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.reviewer-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* =========================================
   Pricing
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--color-white), var(--color-white)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-hover);
    z-index: 1;
}

.badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-gold);
    color: var(--color-white);
    padding: 0.5rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.plan-name {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 1rem 0 2rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
    display: block;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text);
}

.plan-features i {
    color: var(--color-primary);
}

.full-width {
    width: 100%;
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    position: relative;
    padding: 8rem 0;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.cta-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 800px;
}

.cta-title {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #cccccc;
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
}

.footer-contact h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: #cccccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--color-primary);
}

.map-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 1;
    /* Default for JS-less fallback */
    transform: translateY(0);
}

/* Classes applied by JS Observer */
.hidden {
    opacity: 0;
}

.hidden.fade-in-up {
    transform: translateY(30px);
}

.hidden.fade-in-left {
    transform: translateX(-30px);
}

.hidden.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-overlay p {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        flex-direction: column;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-white);
        padding: 5rem 2rem;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .mobile-toggle {
        display: block;
        z-index: 1100;
    }

    .hero-card {
        display: none;
        /* Hide floating card on small screens */
    }
}

/* =========================================
   Floating WhatsApp
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2100;
    /* Higher than header and whatsapp */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

/* Adjust gallery items to show they are clickable */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}