/* ====================================
   Dental Template - Main Stylesheet
   ==================================== */

/* Base Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Open Sans', sans-serif;
}

body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Header Styles */
.site-header {
    padding: 15px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-transparent {
    background: transparent;
    z-index: 1000;
}

.site-header.header-transparent .navbar-brand,
.site-header.header-transparent .nav-link {
    color: white !important;
}

.site-header.header-white {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.header-white .nav-link {
    color: #333 !important;
}

.site-header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header.scrolled {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.12);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Button Styles */
.btn-cta {
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13,110,253,0.4);
}

/* Landing Page Styles */
.landing-overlay {
    transition: opacity 0.5s ease;
}

.enter-button {
    transition: all 0.3s ease;
}

.enter-button:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Doctor Card */
.doctor-photo img {
    transition: transform 0.3s ease;
}

.doctor-photo:hover img {
    transform: scale(1.05);
}

/* Service Icon */
.service-icon {
    transition: transform 0.3s ease;
}

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

/* Gallery Styles */
.gallery-card {
    cursor: pointer;
}

.gallery-overlay {
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    background: white;
    position: relative;
    z-index: 1;
}

/* Blog Styles */
.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Page Content */
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Page Banner */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

/* Testimonial Block */
.testimonial-block {
    position: relative;
}

.testimonial-block::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

/* CTA Block */
.cta-block {
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* Footer Styles */
.site-footer {
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.site-footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section::before {
        display: none;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .header-transparent .navbar-collapse {
        background: rgba(255,255,255,0.95);
    }

    .header-transparent .nav-link {
        color: #333 !important;
    }

    .scrolled .navbar-collapse {
        background: white;
    }

    .hero-slider .hero-slide h1 {
        font-size: 2.2rem !important;
    }

    .hero-slider .hero-slide p {
        font-size: 1rem !important;
    }

    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .page-banner h1 {
        font-size: 2rem !important;
    }

    .hero-slider .hero-slide,
    .hero-slider,
    .hero-section,
    section[style*="min-height: 80vh"] {
        min-height: 60vh !important;
    }

    .hero-slider .hero-slide h1,
    .hero-slider h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .hero-slider .hero-slide p,
    .hero-slider p {
        font-size: 0.95rem !important;
    }

    .hero-slider .btn,
    .hero-section .btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.9rem !important;
        display: block !important;
        margin: 0.4rem 0 !important;
        width: 100%;
    }

    .page-banner {
        padding: 50px 0 !important;
    }

    .page-banner h1 {
        font-size: 1.8rem !important;
    }

    .hero-progress-wrap {
        display: none;
    }

    .hero-slider .slick-prev,
    .hero-slider .slick-next {
        display: none !important;
    }

    .section-custom .col-md-4,
    .section-custom .col-md-6,
    .section-custom .col-md-8 {
        margin-bottom: 1.5rem;
    }

    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    .footer-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-header .navbar-brand img {
        height: 40px !important;
    }

    .site-header .btn-cta {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.95rem;
    }

    .landing-heading {
        font-size: 1.8rem !important;
    }

    .landing-subtitle {
        font-size: 0.9rem !important;
    }

    .enter-button {
        width: 150px !important;
        height: 150px !important;
    }

    .enter-button-wrapper {
        width: 150px !important;
        height: 150px !important;
    }

    .footer-copyright {
        text-align: center !important;
        font-size: 0.8rem !important;
    }

    .card h5 {
        font-size: 1rem;
    }

    .text-center.mb-5 h2 {
        font-size: 1.8rem;
    }

    .col-lg-4.col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Animations */
[data-aos] {
    pointer-events: auto !important;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}
