* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F0EAE7;
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --text-color: #2C2C2C;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 1.5rem 0 4rem;
    animation: fadeIn 1s ease-in;
}

.clinic-name {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.clinic-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12em;
    align-items: center;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .hero-image img {
        max-width: 768px;
        width: 100%;
    }
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    font-family: 'Vazirmatn', sans-serif;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    background: transparent;
    border-radius: 15px;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

@media (min-width: 769px) {
    .info-card img {
        max-width: 768px;
        width: 100%;
    }
}

.info-card h3 {
    padding: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

/* Treatment Section */
.treatment-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.treatment-card {
    border-radius: 15px;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-image-link {
    display: block;
    width: auto;
    max-width: 100%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin: 0 auto;
}

.treatment-image-link:hover {
    opacity: 0.9;
}

.treatment-card img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

@media (min-width: 769px) {
    .treatment-image-link {
        max-width: 768px;
        width: 100%;
    }
    
    .treatment-card img {
        max-width: 768px;
        width: 100%;
    }
}

/* Process Section */
.process-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px var(--shadow);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.step img {
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-link {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.address {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 5px 20px var(--shadow);
}

.address p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-note {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Fixed Contact Bar */
.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgb(139, 69, 19);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn:nth-child(odd){
    background-color: #1B912A;
}
.contact-btn:nth-child(even){
    background-color: #F2295B;
}

.contact-btn:hover {
    background: rgba(139, 69, 19, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.contact-btn svg{
    width: 22px;
    height: 22px;
}
.contact-btn .icon {
    font-size: 1.2rem;
}

.contact-btn .text {
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

.modal-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-link {
    display: block;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.modal-link:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .clinic-name {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .step img {
        display: none;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .step-content p {
        font-size: 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-link {
        font-size: 1.3rem;
    }

    .fixed-contact-bar {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .contact-btn {
        flex: 1;
        justify-content: center;
        padding: 0.7rem 0.5rem;
    }

    .contact-btn .text {
        font-size: 1.1rem;
    }

    .contact-btn .icon {
        font-size: 1rem;
    }


    .address {
        padding: 1.5rem;
    }

    .address p {
        font-size: 1rem;
    }

    .info-card img,
    .treatment-card img,
    .hero-image img {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    .contact-link {
        font-size: 1.1rem;
    }
}

