/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-blue: #4A90E2;
    --light-blue: #E8F4F8;
    --dark-blue: #2C5F8E;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --border-color: #E1E8ED;
    
    /* Typography */
    --font-primary: 'Poppins', 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    flex: 1;
}

.clinic-name {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 244, 248, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-alt {
    background-color: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-paragraph {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-paragraph strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--light-blue);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    display: block;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 25px;
    background: linear-gradient(135deg, var(--light-blue), rgba(74, 144, 226, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 3;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding: 0 30px;
}

.service-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    padding: 0 30px 40px;
}

/* Appointment Section */
.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid .form-group:last-child {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #E74C3C;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-secondary);
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
    background-color: var(--white);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-secondary);
}

.form-checkbox-group {
    margin-top: 20px;
    margin-bottom: 20px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 15px;
    background-color: var(--off-white);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.form-checkbox-label:hover {
    border-color: var(--primary-blue);
    background-color: rgba(74, 144, 226, 0.05);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-checkbox:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.checkbox-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.form-checkbox-label .required {
    color: #E74C3C;
    margin-left: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* Contact Section */
.contact-content {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 100%;
    min-height: 400px;
    transition: var(--transition-smooth);
}

.contact-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.contact-image:hover img {
    transform: scale(1.05);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue), rgba(74, 144, 226, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-text a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-text a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-text a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
        max-height: 400px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-image {
        order: -1;
        min-height: 300px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid .form-group:last-child {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-link {
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .appointment-form {
        padding: 30px 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .clinic-name {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .contact-wrapper {
        gap: 30px;
    }
    
    .contact-image {
        min-height: 250px;
    }
}

