/* Individual Section Styles */

/* ===== HERO SECTION ===== */

#hero {
    min-height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: url('../images/bg/main-bg.c2bad0f7.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: var(--space-xl) 0;
}

/* Subtle grain texture overlay */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: scale(0.8);
    transform-origin: center;
}

.hero-text {
    background: rgba(255, 255, 255, 0.85);
    /* Increased opacity for solid feel on light BG */
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    padding: var(--space-md);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border instead of light */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Stronger shadow for depth */
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-xs);
}

.hero-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.hero-site-name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-ocean), var(--accent-sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-size: var(--text-sm);
    color: var(--accent-sage);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.hero-headline {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
    color: var(--primary-ocean);
    white-space: pre-line;
}

.hero-subheadline {
    font-size: var(--text-xl);
    color: var(--text-slate);
    margin-bottom: var(--space-md);
    line-height: var(--lh-normal);
    white-space: pre-line;
}

.hero-description {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-relaxed);
}

/* ===== ABOUT SECTION ===== */

#about {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 50%, var(--white) 100%);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.about-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.doctor-photo-wrapper {
    position: relative;
}

.doctor-photo {
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 4px solid var(--primary-ocean);
    box-shadow: var(--shadow-medium);
}

.doctor-info h2 {
    color: var(--primary-ocean);
    margin-bottom: var(--space-xs);
}

.doctor-degree {
    font-family: var(--font-credentials);
    font-size: var(--text-sm);
    color: var(--text-slate);
    margin-bottom: var(--space-xs);
}

.doctor-specialization {
    font-size: var(--text-base);
    color: var(--accent-sage);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.credentials-list {
    list-style: none;
    padding: 0;
}

.credentials-list li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-slate);
}

.credentials-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-sage);
    font-weight: bold;
}

.doctor-video {
    margin-top: var(--space-lg);
}

.section-title {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

/* ===== SERVICES SECTION ===== */

#services {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.02) 0%,
            var(--white) 50%,
            rgba(0, 0, 0, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

#services::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--bg-neutral-soft) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: var(--text-2xl);
    color: var(--primary-ocean);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-slate);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* ===== FACILITY SECTION ===== */

#facility {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
}



/* ===== GALLERY SCROLLABLE RIBBON ===== */

#gallery {
    background: linear-gradient(135deg,
            var(--bg-neutral-soft) 0%,
            var(--white) 50%,
            rgba(0, 0, 0, 0.01) 100%);
    overflow: hidden;
    position: relative;
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at top right, rgba(232, 179, 73, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-ribbon-wrapper {
    position: relative;
    margin-top: var(--space-lg);
    padding: 0 var(--space-xl);
}

.gallery-ribbon {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-md) 0;
}

.gallery-ribbon::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 400px;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    position: relative;
    background: var(--white);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 126, 164, 0.2);
    color: var(--primary-ocean);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    box-shadow: var(--shadow-medium);
}

.gallery-nav:hover {
    background: var(--primary-ocean);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-strong);
}

.gallery-nav-left {
    left: 0;
}

.gallery-nav-right {
    right: 0;
}

/* Mobile adjustments for gallery */
@media (max-width: 768px) {
    .gallery-ribbon-wrapper {
        padding: 0 var(--space-md);
    }

    .gallery-item {
        width: 300px;
        height: 225px;
        border-radius: var(--border-radius-md);
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }
}

/* ===== CONTACT SECTION ===== */

#contact {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-block h3 {
    font-size: var(--text-lg);
    color: var(--primary-ocean);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.contact-block p {
    color: var(--text-slate);
    line-height: var(--lh-normal);
    margin: 0;
}

.contact-link {
    color: var(--primary-ocean);
    font-weight: 600;
    font-size: var(--text-lg);
    display: inline-block;
    margin-top: var(--space-xs);
    transition: all var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-sage);
    transform: translateX(4px);
}

/* ===== FOOTER ===== */

footer {
    background-color: var(--text-charcoal);
    color: var(--white);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

footer .tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--highlight-amber);
    margin-top: var(--space-xs);
}