/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   1. CSS Variables & Reset
   ========================================= */

:root {
    /* -- Modern Blue & Red Palette -- */
    --color-primary: #0f172a;
    /* Deep Navy */
    --color-primary-light: #1e293b;
    --color-secondary: #2563eb;
    /* Vibrant Blue */
    --color-accent: #e11d48;
    /* Crimson Red */
    --color-accent-hover: #be123c;
    --color-success: #10b981;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-text-body: #475569;
    --color-text-heading: #0f172a;
    --color-border: #e2e8f0;

    /* -- Gradients -- */
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-red: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
    --gradient-mixed: linear-gradient(135deg, #2563eb 0%, #e11d48 100%);

    /* -- Typography -- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* -- Spacing & Layout -- */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   2. Components
   ========================================= */

.cta-button,
.cta-button-header,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    color: var(--color-white);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after,
.cta-button-header::after,
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: 0.5s;
    z-index: 2;
}

.cta-button:hover::after,
.cta-button-header:hover::after,
.submit-btn:hover::after {
    left: 100%;
}

.cta-button:hover,
.cta-button-header:hover,
.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(225, 29, 72, 0.5);
}

.cta-button-blue {
    background: var(--gradient-blue);
}

.cta-button-blue:hover {
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.section {
    padding: 100px 0;
}

.text-accent {
    color: var(--color-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.text-accent-blue {
    color: var(--color-secondary);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   3. Header & Navigation
   ========================================= */
/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    letter-spacing: -0.3px;
}

.logo-mark {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.logo-title {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    line-height: 1;
}

@keyframes pulse-slow {
    from {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
    }

    to {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(225, 29, 72, 0.5);
    }
}

.logo span {
    color: var(--color-accent);
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sparkle 3s infinite linear;
    background-size: 200% auto;
}

@keyframes sparkle {
    to {
        background-position: 200% center;
    }
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-body);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* =========================================
   4. Hero Section
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background-attachment: fixed;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   5. Content Sections
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 20px 20px 78px;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    z-index: 2;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    background: var(--gradient-blue);
    border-radius: var(--border-radius-lg);
    z-index: 1;
    opacity: 0.1;
}

.image-badge-card {
    position: absolute;
    right: -10px;
    bottom: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    border-radius: 14px;
    padding: 1rem 1rem 0.8rem;
    max-width: 320px;
    z-index: 3;
}

.image-badge-card h4 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.image-badge-card ul {
    list-style: none;
}

.image-badge-card li {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    color: var(--color-text-body);
}

.image-badge-card i {
    color: var(--color-accent);
    margin-right: 6px;
}

.image-mini-strip {
    position: absolute;
    left: 0;
    bottom: -34px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.image-mini-strip img {
    width: 130px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.journey-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.journey-step {
    display: inline-block;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.14), rgba(225, 29, 72, 0.14));
    color: var(--color-primary);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.journey-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 1280px) {
    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .cta-button-header {
        padding: 10px 22px;
        font-size: 0.92rem;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .about-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2.25rem;
    }

    .about-image {
        padding: 14px 14px 64px;
    }

    .image-badge-card {
        right: 2px;
        bottom: 28px;
        max-width: 280px;
    }

    .image-mini-strip {
        left: 4px;
        bottom: -16px;
    }

    .image-mini-strip img {
        width: 115px;
        height: 78px;
    }
}

.service-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.testimonial-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.patient-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1rem;
}

/* =========================================
   6. Footer
   ========================================= */

.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-brand-name {
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2px;
}

.footer-brand-tagline {
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.92rem;
}

/* Gallery categories */
.gallery-category {
    margin-bottom: 3.5rem;
}

.gallery-category-head {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(225, 29, 72, 0.08));
    border: 1px solid var(--color-border);
}

.gallery-category-head h3 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
}

.gallery-category-head p {
    margin: 0;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-photo {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================
   7. Mobile Responsive
   ========================================= */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        padding-bottom: 18px;
    }

    .image-badge-card {
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .image-mini-strip {
        position: static;
        margin-top: 14px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        flex-direction: column;
        padding: 3rem 1.5rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
    }

    .header-actions {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .footer-brand {
        justify-content: center;
        text-align: left;
    }

    .image-badge-card {
        position: static;
        margin-top: 14px;
        text-align: left;
    }

    .image-mini-strip img {
        width: 120px;
        height: 84px;
    }
}

/* =========================================
   8. Animations (Reveal & Glitter)
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger reveals */
.about-grid .reveal {
    transition-delay: 0.1s;
}

.gallery-grid .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-grid .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.gallery-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* Micro-interactions */
.service-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.service-card:hover .service-icon {
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* Glitter Bug effect (Subtle background dust) */
.glitter-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(225, 29, 72, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 10%);
}
