@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f7f3e9; /* Matched to logo background */
    --primary-green: #79bd42;
    --logo-gold: #c8ae4c;
    --text-dark: #2c2c2c;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--primary-green);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
    background: url('../../Img/hero-bg.png') no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(247, 243, 233, 0.9) 50%, rgba(247, 243, 233, 0.4) 100%);
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    z-index: 10;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 100px;
    width: auto;
    mix-blend-mode: multiply;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-dark);
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    animation: floating 6s ease-in-out infinite;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-content {
    width: 100%;
    margin-top: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 400;
}

.title {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.highlight {
    color: var(--primary-green);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.doctor-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--logo-gold);
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(121, 189, 66, 0.2);
}

.btn-secondary {
    border: 1px solid #ddd;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: float 15s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(121, 189, 66, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(200, 174, 76, 0.15);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(121, 189, 66, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Details Section */
.details {
    padding-bottom: 6rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    position: relative;
    padding-bottom: 0.5rem;
}

.info-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--logo-gold);
}

.info-item ul {
    list-style: none;
}

.info-item li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.address-detail {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator .line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary-green), transparent);
}

footer {
    padding: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
}

/* Mobile Optimizations */
@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image-container {
        width: 100%;
    }
    
    .image-glass {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 1rem 0;
    }

    .title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .cta-group {
        justify-content: center;
    }

    .logo-img {
        height: 70px;
    }
}
