* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.slide {
  opacity: 0;
  pointer-events: none; /* blocks clicks */
  position: absolute;
  width: 100%;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto; /* only active slide clickable */
  position: relative;
}

/* Header Section - Sun/Yellow Theme */
header {
    background: #fcc339;
    color: #2C1810;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(253, 184, 19, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.logo-container {
    width: 100px;
    height: auto;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #2C1810;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    color: #2C1810;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #2C1810;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #2C1810;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.main-nav a:hover {
    background: rgba(44, 24, 16, 0.1);
    transform: translateY(-2px);
}

.main-nav a.nav-cta {
    background: linear-gradient(135deg, #2C1810 0%, #4A2D1A 100%);
    color: #FDB813;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.3);
}

.main-nav a.nav-cta:hover {
    background: linear-gradient(135deg, #4A2D1A 0%, #2C1810 100%);
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.4);
}

/* Hero Slider Section - Updated with Kids/Doctors images */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) {
    background: url('images/slider1.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(2) {
    background: url('images/slider2.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(3) {
    background: url('images/slider3.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(4) {
    background: url('images/slider4.jpg');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(5) {
    background: url('images/slider5.jpg');
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 20px;
    animation: slideContentFadeIn 1.2s ease;
}

.slide-content h2 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 3px 5px 10px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 35px;
    text-shadow: 2px 3px 6px rgba(0,0,0,0.4);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
    color: #2C1810;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(253, 184, 19, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #F7931E 0%, #FDB813 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(253, 184, 19, 0.7);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 184, 19, 0.3);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(253, 184, 19, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

.dot.active {
    background: #FDB813;
    width: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(253, 184, 19, 0.8);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
section {
    padding: 90px 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #2C1810;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E8 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(253, 184, 19, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.flip-card-front {
    background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
    color: white;
}

.flip-card-front i {
    font-size: 55px;
    margin-bottom: 22px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.flip-card-front h3 {
    font-size: 21px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.flip-card-back {
    background: white;
    color: #4A2D1A;
    transform: rotateY(180deg);
    border: 3px solid #FDB813;
}

.flip-card-back h3 {
    color: #F7931E;
    font-size: 19px;
    margin-bottom: 18px;
    font-weight: 700;
}

.flip-card-back p {
    font-size: 14px;
    line-height: 1.7;
    color: #6B7280;
}

/* Doctors Section */
.doctors {
    background: white;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.doctor-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(253, 184, 19, 0.2);
    text-align: center;
    transition: all 0.5s ease;
    border: 2px solid #FFF8E8;
}

.doctor-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(253, 184, 19, 0.3);
    border-color: #FDB813;
}

.doctor-image-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 6px solid #FDB813;
    box-shadow: 0 10px 30px rgba(253, 184, 19, 0.4);
    transition: all 0.5s ease;
    position: relative;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s ease;
}

.doctor-card:hover .doctor-image-wrapper {
    transform: scale(1.05);
    border-color: #F7931E;
    box-shadow: 0 15px 40px rgba(253, 184, 19, 0.6);
}

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

.doctor-card h3 {
    font-size: 26px;
    color: #2C1810;
    margin-bottom: 12px;
    font-weight: 700;
}

.doctor-specialty {
    color: #F7931E;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 17px;
}

.doctor-description {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.8;
}

.about {
    background-image: url('images/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
    color: #4A2D1A;
}

.office-hours {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(253, 184, 19, 0.2);
    border: 2px solid #FFF8E8;
    backdrop-filter: blur(10px);
}

.office-hours h3 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #F7931E;
    font-weight: 700;
}

.hours-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 2px solid #FFF8E8;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: #FFFBF0;
    border-radius: 8px;
}

.hours-item strong {
    color: #F7931E;
    font-weight: 600;
}

.appointment-notice {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
    border-left: 5px solid #F7931E;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.2);
}

.appointment-notice i {
    font-size: 28px;
    color: #F7931E;
}

.appointment-notice p {
    margin: 0;
    color: #7C4A1E;
    font-weight: 500;
}

/* Patient Portal Section */
.patient-portal {
    background: white;
}

.portal-content {
    max-width: 1100px;
    margin: 0 auto;
}

.portal-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E8 100%);
    border-radius: 20px;
    border: 2px solid #FDB813;
}

.portal-intro i {
    font-size: 60px;
    color: #F7931E;
    margin-bottom: 20px;
}

.portal-intro h3 {
    font-size: 32px;
    color: #2C1810;
    margin-bottom: 20px;
    font-weight: 700;
}

.portal-intro p {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.8;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF0 100%);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #FFF8E8;
    box-shadow: 0 5px 20px rgba(253, 184, 19, 0.15);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(253, 184, 19, 0.3);
    border-color: #FDB813;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(253, 184, 19, 0.4);
}

.feature-icon i {
    font-size: 35px;
    color: white;
}

.feature-card h4 {
    font-size: 22px;
    color: #2C1810;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.7;
}

.portal-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(253, 184, 19, 0.4);
}

.portal-cta h3 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.portal-cta > p {
    font-size: 18px;
    color: white;
    margin-bottom: 35px;
    opacity: 0.95;
}

.portal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-button.primary {
    background: white;
    color: #F7931E;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.portal-button.primary:hover {
    background: #2C1810;
    color: #FDB813;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.portal-button.secondary {
    background: #2C1810;
    color: #FDB813;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.portal-button.secondary:hover {
    background: white;
    color: #2C1810;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.portal-note {
    font-size: 14px;
    color: white;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.portal-note i {
    font-size: 16px;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(253, 184, 19, 0.2);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #FFF8E8;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(253, 184, 19, 0.3);
    border-color: #FDB813;
}

.contact-info-card i {
    font-size: 45px;
    color: #F7931E;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #2C1810;
    font-weight: 700;
}

.contact-info-card p {
    color: #6B7280;
    line-height: 1.9;
    font-size: 16px;
}

/* Map Section */
.map-section {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E8 100%);
    padding: 90px 20px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(253, 184, 19, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #FDB813;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C1810 0%, #1A0F09 100%);
    color: white;
    padding: 50px 20px 25px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #FDB813;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.9;
    color: #D1D5DB;
}

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FDB813;
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: #F7931E;
}

.copyright {
    border-top: 1px solid #4A2D1A;
    padding-top: 25px;
    margin-top: 30px;
    color: #9CA3AF;
}

/* Animations */
@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portal-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    /* Mobile Header */
    .header-container {
        flex-wrap: nowrap;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #FDB813 0%, #F7931E 100%);
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 18px;
        color: #2C1810;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .main-nav a.nav-cta {
        background: #2C1810;
        color: #FDB813;
    }

    .logo-container {
        width: 70px;
    }

    .site-title h1 {
        font-size: 20px;
    }

    .tagline {
        font-size: 12px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-card {
        height: 260px;
    }

    .hero-slider {
        height: 500px;
    }

    .portal-features {
        grid-template-columns: 1fr;
    }

    .portal-buttons {
        flex-direction: column;
        align-items: center;
    }

    .portal-button {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }

    .portal-cta {
        padding: 35px 25px;
    }

    .portal-cta h3 {
        font-size: 28px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    /* Disable parallax on mobile */
    .about {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 450px;
    }

    .slide-content h2 {
        font-size: 26px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }

    section {
        padding: 60px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .logo-container {
        width: 80px;
    }

    .site-title h1 {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .portal-intro {
        padding: 30px 20px;
    }

    .portal-intro h3 {
        font-size: 24px;
    }

    .portal-intro p {
        font-size: 16px;
    }
}
