/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Color Palette */
:root {
    --orange: #FF6600;
    --orange-light: #FF8C00;
    --orange-dark: #E65C00;
    --orange-darkest: #CC5200;
    --coral: #FF7F50;
    --peach: #FFDAB9;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #666666;
    --light-gray: #F8F9FA;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.marvel-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
}

.dental-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 102, 0, 0.4) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: -15px;
    color: var(--orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease 0.05s;
    animation-fill-mode: both;
}

.doctor-info {
    margin-bottom: 40px;
    animation: fadeInUp 0.3s ease 0.1s;
    animation-fill-mode: both;
}

.doctor-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-info p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: fadeInUp 0.3s ease 0.15s;
    animation-fill-mode: both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.cta-button i {
    margin-right: 10px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    animation: fadeInUp 0.3s ease 0.4s;
    animation-fill-mode: both;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icons-contact {
    margin-top: 30px;
    text-align: center;
}

.social-icons-contact h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links .social-icon {
    background: var(--light-gray);
    color: var(--orange);
    border: 2px solid var(--light-gray);
}

.social-links .social-icon:hover {
    background: var(--white);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--gray);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gray);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gray);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Offers Section */
.offers {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offer-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--gray);
}

.offer-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--gray);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.3rem;
    color: rgba(50, 205, 50, 0.6);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item p {
    color: var(--gray);
    line-height: 1.6;
}

.timings {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.25) 0%, rgba(255, 102, 0, 0.2) 35%, rgba(230, 92, 0, 0.3) 100%);
    padding: 40px;
    border-radius: 15px;
    color: var(--gray);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timings h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--black);
}

.timing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

.timing-item:last-child {
    border-bottom: none;
    margin-bottom: 30px;
}

.day {
    font-weight: 500;
    color: var(--gray);
}

.time {
    font-weight: 600;
    color: var(--orange);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.action-button:nth-child(5) {
    grid-column: 1 / -1;
}

.action-button {
    background: var(--white);
    color: var(--orange);
    border: 2px solid var(--white);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.call-button:hover {
    background: var(--coral);
    color: var(--white);
}

.whatsapp-button:hover {
    background: #25D366;
    color: var(--white);
}

.email-button:hover {
    background: var(--orange);
    color: var(--white);
}

.maps-button:hover {
    background: #4285F4;
    color: var(--white);
}

.book-button:hover {
    background: var(--orange-light);
    color: var(--black);
}

.timings .cta-button {
    background: var(--white);
    color: var(--orange);
    width: 100%;
}

.timings .cta-button:hover {
    background: var(--light-gray);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--light-gray);
}

.testimonials-carousel {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: 350px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.stars i {
    color: var(--orange);
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.patient-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 5px;
}

.patient-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-carousel {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.gallery-container {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: 270px;
    height: 480px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--white);
    padding: 20px;
    text-align: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.gallery-btn {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Footer */
.footer {
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .doctor-info h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .features-grid,
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offers-grid {
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card,
    .feature-card,
    .offer-card {
        padding: 25px;
    }

    .timing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .action-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .call-button {
        background: var(--coral);
        color: var(--white);
    }

    .whatsapp-button {
        background: #25D366;
        color: var(--white);
    }

    .email-button {
        background: var(--orange);
        color: var(--white);
    }

    .maps-button {
        background: #4285F4;
        color: var(--white);
    }

    .book-button {
        background: var(--orange-light);
        color: var(--black);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .testimonials-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .testimonials-carousel::-webkit-scrollbar {
        display: none;
    }

    .testimonials-container {
        gap: 20px;
    }

    .testimonial-card {
        width: 300px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .testimonials-controls {
        margin-top: 20px;
        gap: 15px;
    }

    .gallery-container {
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

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

    .gallery-item {
        width: 270px;
        height: 480px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .nav-container {
        padding: 0 15px;
    }

    .testimonials,
    .gallery {
        padding: 60px 0;
    }

    .services,
    .why-us,
    .offers,
    .contact {
        padding: 60px 0;
    }
}
