/* ===================================
   伍德中醫診所 - Stylesheet
   A warm, nature-inspired aesthetic
   =================================== */

/* CSS Variables */
:root {
    /* Primary palette - earthy greens and warm neutrals */
    --color-primary: #4a6741;
    --color-primary-light: #6b8f5e;
    --color-primary-dark: #3a5232;
    
    /* Accent colors - warm wood tones */
    --color-accent: #9c7b56;
    --color-accent-light: #c4a77d;
    --color-accent-dark: #7a5f3d;
    
    /* Neutral palette */
    --color-cream: #f8f5f0;
    --color-warm-white: #fdfcfa;
    --color-beige: #e8e0d5;
    --color-taupe: #d4c8b8;
    
    /* Text colors */
    --color-text: #3d3d3d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #8a8a8a;
    
    /* Typography */
    --font-serif: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
    --font-body: 'Noto Serif TC', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(74, 103, 65, 0.08);
    --shadow-medium: 0 8px 30px rgba(74, 103, 65, 0.12);
    --shadow-strong: 0 12px 40px rgba(74, 103, 65, 0.16);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-warm-white);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    color: white;
}

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

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

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-beige);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 0.4s ease-out, left 0.4s ease-out;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Ensure all sections have proper z-index for smoke effect */
section {
    position: relative;
    z-index: 1;
}


.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(74, 103, 65, 0.88) 0%, rgba(107, 143, 94, 0.85) 50%, rgba(156, 123, 86, 0.82) 100%),
        url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: var(--spacing-md);
    max-width: 800px;
}

.hero-badge {
    margin-bottom: var(--spacing-md);
    animation: heroEntrance 1s ease-out 0.2s backwards;
}

.hero-badge .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: white;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.15em;
    animation: titleReveal 1s ease-out 0.4s backwards;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    line-height: 2;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.hero .btn-primary:hover {
    background: white;
    color: var(--color-primary);
}


/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: rgba(250, 247, 242, 0.95);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.6s ease-out;
}

.about-image:hover .image-frame img {
    transform: scale(1.05);
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-taupe) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    background: rgba(255,255,255,0.5);
}

.placeholder-icon svg {
    width: 36px;
    height: 36px;
}

.placeholder-text {
    font-family: var(--font-serif);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    padding-left: var(--spacing-md);
}

.section-badge {
    margin-bottom: var(--spacing-sm);
}

.section-badge .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    border-radius: 50%;
}

.section-title {
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
}

.section-title.center {
    text-align: center;
}

.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.section-subtitle.center {
    text-align: center;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-text .highlight {
    color: var(--color-primary);
    font-weight: 500;
    padding: var(--spacing-sm);
    background: rgba(74, 103, 65, 0.05);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 4px 4px 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) * 1.5);
    background: 
        linear-gradient(180deg, rgba(245, 241, 231, 0.95) 0%, rgba(250, 247, 242, 0.93) 50%, rgba(226, 217, 201, 0.95) 100%);
    position: relative;
}

.services > .container > h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-xs);
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Featured card takes 2 columns */
.service-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.service-card {
    background: white;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(74, 103, 65, 0.15);
}

/* Service card images - now full card background */
.service-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

/* Gradient overlay for text readability */
.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(0, 0, 0, 0.5) 75%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    background: linear-gradient(
        180deg, 
        rgba(74, 103, 65, 0.1) 0%,
        rgba(74, 103, 65, 0.15) 40%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Service content overlay */
.service-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: var(--spacing-lg);
    color: white;
}

.service-card h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.4s ease-out;
}

.service-card:hover h3 {
    transform: translateY(-4px);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.service-card:hover p {
    opacity: 1;
}

/* Service number badge */
.service-number {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease-out, background 0.3s ease;
}

.service-card:hover .service-number {
    transform: scale(1.1) rotate(-5deg);
    background: var(--color-primary);
    color: white;
}

/* Service icon in corner */
.service-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease-out;
}

.service-card:hover .service-icon {
    opacity: 1;
    transform: translateY(0);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

/* ===================================
   Full-Width CTA Banner
   =================================== */
.cta-banner {
    position: relative;
    width: 100%;
    padding: calc(var(--spacing-xl) * 2) 0;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-image: 
        url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?w=1800&h=800&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.cta-banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 50, 25, 0.75) 0%, rgba(20, 35, 18, 0.8) 100%);
}

.cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(156, 123, 86, 0.1) 0%, transparent 40%);
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.cta-banner h2 {
    color: white;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f5f1e7 0%, #ffffff 100%);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease-out;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f5f1e7 100%);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-cta-secondary svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-banner {
        padding: var(--spacing-xl) 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===================================
   Scroll Reveal Animation
   =================================== */
.scroll-reveal {
    margin: 0;
    will-change: transform;
}

.scroll-reveal-text {
    display: block;
}

.scroll-reveal .word {
    display: inline-block;
    will-change: opacity, filter;
}

/* Text Reveal Animation */
.text-reveal .reveal-word {
    display: inline-block;
    will-change: opacity, filter;
}

/* ===================================
   Doctors Section - Image Background Cards
   =================================== */
.doctors {
    padding: calc(var(--spacing-xl) * 1.5) 0;
    background: 
        linear-gradient(180deg, var(--color-warm-white) 0%, var(--color-cream) 50%, var(--color-warm-white) 100%);
    position: relative;
}

.doctors .section-title {
    position: relative;
    display: inline-block;
}

.doctors .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.doctors-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.doctor-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Background Image */
.doctor-card .doctor-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.doctor-card .doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

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

/* Gradient Overlay */
.doctor-card .doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: background 0.4s ease;
}

.doctor-card:hover .doctor-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Content */
.doctor-card .doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    color: white;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease-out;
}

.doctor-card:hover .doctor-info {
    transform: translateY(-10px);
}

.doctor-info h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.doctor-info h3 .title {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c9a86c 100%);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    text-shadow: none;
}

.doctor-credentials {
    margin-bottom: var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 
        max-height 0.5s ease-out,
        opacity 0.4s ease;
}

.doctor-card:hover .doctor-credentials {
    max-height: 200px;
    opacity: 1;
}

.doctor-credentials p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.doctor-specialties {
    margin-top: var(--spacing-sm);
}

.doctor-specialties h4 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.doctor-specialties ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.doctor-specialties li {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.doctor-specialties li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===================================
   Map Section - Clean & Simple
   =================================== */
.map-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-warm-white);
    position: relative;
    z-index: 1;
}

.map-section .section-title {
    margin-bottom: var(--spacing-xs);
}

.map-section .section-subtitle {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.map-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px;
    }
}

/* ===================================
   Footer - Clean & Modern
   =================================== */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Info */
.footer-info {
    display: flex;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.95rem;
    color: white;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: white;
}

.social-link-line:hover {
    background: #00C300;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .footer-info {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .footer-main {
        align-items: center;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .info-item {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===================================
   Floating Button
   =================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: #00C300;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 195, 0, 0.35);
    z-index: 100;
    text-decoration: none;
    animation: floatingBtnEntrance 0.8s ease-out 1s backwards;
    transition: 
        transform 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 195, 0, 0.45);
    color: white;
}

.floating-btn:active {
    transform: translateY(-2px) scale(0.98);
}

@keyframes floatingBtnEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-text {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* LINE Icon styling */
.contact-icon-line {
    background: #00C300 !important;
}

.contact-icon-line svg {
    fill: white;
    stroke: none;
}

/* ===================================
   Animations
   =================================== */

/* Custom easing curves for smoother motion */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Scroll animations - enhanced */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
}

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

/* Slide from left */
.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: 
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: 
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scale-up {
    opacity: 0;
    transform: scale(0.85);
    transition: 
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .service-card.featured {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }
    
    .service-card {
        min-height: 320px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .doctor-card {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-warm-white);
        padding: var(--spacing-md);
        gap: 0;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--color-beige);
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .service-card.featured {
        grid-column: span 2;
    }
    
    .service-card {
        min-height: 280px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .doctor-card {
        min-height: 400px;
    }
    
    .doctor-info {
        padding: var(--spacing-md);
    }
    
    .doctor-info h3 {
        font-size: 1.4rem;
    }
    
    .doctor-specialties li {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .floating-btn .btn-text {
        display: none;
    }
    
    .floating-btn {
        padding: 1rem;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card.featured {
        grid-column: span 1;
        min-height: 400px;
    }
    
    .service-card {
        min-height: 350px;
    }
    
    .service-content {
        padding: var(--spacing-md);
    }
    
    .service-number {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .hero-subtitle br {
        display: none;
    }
}

