/* Base Styles */
:root {
    --primary-color: #2d9cdb;
    --secondary-color: #2f80ed;
    --accent-color: #56ccf2;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #828282;
    --success-color: #27ae60;
    --warning-color: #f2c94c;
    --danger-color: #eb5757;
    --white-color: #ffffff;
    --black-color: #000000;
    --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 50px;
    font-size: 18px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

.appointment-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.appointment-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(47, 128, 237, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}

.hero {
    height: 100vh;
    color: var(--white-color);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
}

.education, .experience {
    margin: 30px 0;
}

.education h4, .experience h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.education ul li, .experience ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.education ul li i, .experience ul li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.specializations h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialization-tags span {
    background-color: var(--light-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.specialization-tags span:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

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

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(45, 156, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 156, 219, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    color: var(--white-color);
    font-size: 22px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 30px;
}

.patient-info h4 {
    font-size: 20px;
    color: var(--dark-color);
}

.patient-info span {
    color: var(--gray-color);
    font-size: 14px;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.testimonial-prev, .testimonial-next {
    width: 50px;
    height: 50px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.testimonial-prev:hover, .testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Appointment Section */
.appointment {
    background: linear-gradient(rgba(45, 156, 219, 0.9), rgba(47, 128, 237, 0.9)), url('../images/clinic-interior.jpg') no-repeat center center/cover;
    color: var(--white-color);
}

.appointment-content {
    display: flex;
    gap: 50px;
}

.appointment-info {
    flex: 1;
}

.appointment-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.appointment-info p {
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--accent-color);
}

.working-hours h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.working-hours ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.working-hours ul li::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--accent-color);
}

.appointment-form {
    flex: 1;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.appointment-form h2 {
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.contact-form {
    flex: 1;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

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

.footer-links h3, .footer-services h3, .footer-contact h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-services ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover, .footer-services ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-legal a {
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .appointment-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image, .about-text, .appointment-info, .appointment-form, .contact-map, .contact-form {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        transition: all 0.5s ease;
        z-index: 999;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 30px;
    }
    
    .navbar ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .testimonial-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}