/* استایل‌های پایه و متغیرها */
:root {
    --primary: #002e6e;
    --primary-dark: #3e5a6b;
    --secondary: #c53030;
    --accent: #d69e2e;
    --gold: #d4af37;
    --white: #ffffff;
    --light: #f7fafc;
    --gray: #e2e8f0;
    --dark: #000000;
    --darker: #1a202c;
    --success: #38a169;
    --luxury-gradient: linear-gradient(135deg, #364eb6 0%, #533670 100%);
}

/* متغیرهای دارک مود */
.dark-mode {
    --white: #1a1a1a;
    --light: #2d2d2d;
    --gray: #3d3d3d;
    --dark: #e2e8f0;
    --darker: #f8fafc;
    --primary: #4a5568;
    --primary-dark: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Vazirmatn', serif;
    font-weight: 600;
}

/* استایل آیکون‌های متریال */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}
/* استایل‌های لودینگ لوکس */
#loadingPage {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#loadingPage.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}
.spinner-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #d69e2e;
    border-radius: 50%;
    box-shadow: 0 0 20px #d69e2e;
    animation: pulse 1.5s ease-in-out infinite alternate;
} 
/* دایره چرخان لوکس */
.spinner-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 3rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #d69e2e;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top: 3px solid #c53030;
    animation: spin 2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    border-top: 3px solid #ffffff;
    animation: spin 2.5s linear infinite;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}


/* آیکون دندان مرکزی */
.dental-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    animation: dentalPulse 2s ease-in-out infinite;
}

@keyframes dentalPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* متن لودینگ */
.loading-text {
    margin-top: 2rem;
}

.loading-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #d69e2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(214, 158, 46, 0.5)); }
    100% { filter: drop-shadow(0 0 15px rgba(214, 158, 46, 0.8)); }
}

.loading-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: subtitleSlide 2s ease-in-out infinite;
}

@keyframes subtitleSlide {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* نوار پیشرفت */
.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d69e2e, #c53030);
    border-radius: 10px;
    width: 0%;
    animation: progressLoad 2.5s ease-in-out;
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* انیمیشن‌ها */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px #d69e2e;
    }
    100% { 
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 20px #d69e2e, 0 0 30px #d69e2e;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .spinner-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 2rem;
    }
    
    .spinner-dot {
        width: 12px;
        height: 12px;
        top: 10px;
    }
    
    .dental-icon {
        font-size: 1.8rem;
    }
    
    .loading-title {
        font-size: 1.5rem;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
    }
    
    .progress-container {
        width: 150px;
    }
}
/* صفحه اصلی */
#mainPage {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#mainPage.fade-in {
    opacity: 1;
}

/* ناوبری */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dark-mode .navbar {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotateY(15deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.clinic-specialty {
    font-size: 0.8rem;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(15deg);
}

.appointment-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
}

/* منوی موبایل */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.dark-mode .mobile-nav {
    background: var(--light);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-nav-links {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    color: var(--dark);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-links a:hover {
    background: var(--light);
}

.mobile-appointment {
    background: var(--accent);
    color: var(--white);
    margin-top: 1rem;
}

/* بخش هیرو */
.hero-section {
    background: var(--luxury-gradient);
    color: var(--white);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: 
        linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200" opacity="0.02"><defs><linearGradient id="dentalGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.08"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0.02"/></linearGradient></defs><g fill="url(%23dentalGrad)"><!-- دندان‌های جلویی --><path d="M400,500 Q450,450 500,500 L480,600 Q470,620 450,620 L420,620 Q400,620 390,600 L380,500 Q400,450 400,500Z" opacity="0.04"/><path d="M500,500 Q550,450 600,500 L580,600 Q570,620 550,620 L520,620 Q500,620 490,600 L480,500 Q500,450 500,500Z" opacity="0.03"/><path d="M600,500 Q650,450 700,500 L680,600 Q670,620 650,620 L620,620 Q600,620 590,600 L580,500 Q600,450 600,500Z" opacity="0.05"/><!-- دندان‌های آسیاب --><path d="M350,650 Q400,600 450,650 L430,750 Q420,770 400,770 L370,770 Q350,770 340,750 L330,650 Q350,600 350,650Z" opacity="0.02"/><path d="M650,650 Q700,600 750,650 L730,750 Q720,770 700,770 L670,770 Q650,770 640,750 L630,650 Q650,600 650,650Z" opacity="0.03"/><!-- دندان‌های نیش --><path d="M450,550 Q500,500 550,550 L530,650 Q520,670 500,670 L470,670 Q450,670 440,650 L430,550 Q450,500 450,550Z" opacity="0.06"/><path d="M550,550 Q600,500 650,550 L630,650 Q620,670 600,670 L570,670 Q550,670 540,650 L530,550 Q550,500 550,550Z" opacity="0.04"/></g></svg>');
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: rgba(19, 133, 80, 0.589);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 2px solid rgba(225, 12, 12, 0.307);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(19, 1, 1, 0.965);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description strong {
    color: var(--accent);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(81, 63, 13, 0.606);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(191, 109, 15, 0.4);
}

.btn-secondary {
    background: rgba(25, 56, 44, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* بخش بصری هیرو */
.hero-image {
    display: flex;
    justify-content: center;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3.9rem;
    border: 2px solid rgba(33, 126, 84, 0.2);
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(20, 128, 75, 0.178);
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-avatar {
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fallback-icon {
    display: none;
    font-size: 3.5rem;
    color: var(--primary);
}

.doctor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.doctor-info p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.doctor-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.doctor-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* بخش‌های اصلی */
.section {
    padding: 0.5rem 0;
}

.bg-light {
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--dark);
    opacity: 0.8;
}

/* بخش درباره */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
}

.expertise-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 10px;
    border-right: 4px solid var(--accent);
}

.expertise-list h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.expertise-list ul {
    list-style: none;
    padding-right: 1rem;
}

.expertise-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-right: 1.5rem;
}

.expertise-list li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    right: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.dark-mode .stat-card {
    background: var(--light);
    border-color: var(--gray);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark);
}

/* بخش خدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray);
    opacity: 0;
    transform: translateY(30px);
}

.dark-mode .service-card {
    background: var(--light);
    border-color: var(--gray);
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: right;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark);
}

.service-features i {
    color: var(--success);
    font-size: 0.9rem;
}

/* بخش نمونه کارها */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
    opacity: 0;
    transform: translateY(30px);
}

.dark-mode .portfolio-card {
    background: var(--light);
    border-color: var(--gray);
}

.portfolio-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.portfolio-images {
    height: 300px;
    position: relative;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    gap: 1px;
}

.before, .after {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.before::after, .after::after {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 2;
}

.before::after {
    content: "قبل";
    right: 10px;
}

.after::after {
    content: "بعد";
    left: 10px;
}

.real-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.portfolio-card:hover .real-image {
    transform: scale(1.05);
}

.fallback-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--luxury-gradient);
    color: white;
    text-align: center;
    padding: 1rem;
}

.fallback-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fallback-placeholder span {
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.portfolio-content p {
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
}

.portfolio-stat {
    text-align: center;
    flex: 1;
}

.portfolio-stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.portfolio-stat .label {
    font-size: 0.9rem;
    color: var(--dark);
}

/* بخش تماس */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.dark-mode .contact-item {
    background: var(--light);
    border-color: var(--gray);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.contact-details p {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.phone-number {
    cursor: pointer;
    transition: color 0.3s;
}

.phone-number:hover {
    color: var(--primary);
}

.address-note {
    color: var(--dark);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}
.contact-details {
    direction: ltr;
    text-align: right;
}

.phone-number {
    direction: ltr;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

.phone-number:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* استایل‌های مپ */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-header {
    text-align: center;
    padding: 1rem;
}

.map-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-subtitle {
    color: var(--dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--gray);
    position: relative;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.google-map {
    filter: saturate(1.1) contrast(1.1);
}

/* overlay و marker */
.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.map-marker {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
    border: 3px solid white;
}

.map-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 200px;
    transform: translateY(-10px);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.map-info-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.map-info-card p {
    color: var(--dark);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.quick-directions-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.quick-directions-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* دکمه‌های عمل */
.map-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.map-btn {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.map-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.map-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.map-btn.secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.map-btn.secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* فوتر */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--accent);
}

.footer-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-text p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-line i {
    width: 20px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-stats {
    display: flex;
    gap: 2.5rem;
}

.footer-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-stat:hover {
    transform: translateY(-5px);
}

.footer-stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.footer-stat .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* نوتیفیکیشن‌ها */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: transform 0.3s ease;
    font-weight: 600;
    max-width: 90%;
    width: auto;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* انیمیشن‌های ورود */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* اعمال انیمیشن‌ها */
.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

/* ریسپانسیو برای تبلت */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .map-container {
        height: 350px;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .nav-links, .header-actions .appointment-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .map-container {
        height: 300px;
        border-radius: 15px;
    }
    
    .map-overlay {
        top: 15px;
        left: 15px;
    }
    
    .map-info-card {
        max-width: 160px;
        padding: 1rem;
    }
    
    .map-actions {
        grid-template-columns: 1fr;
    }
    
    .map-header {
        order: -1;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

/* ریسپانسیو برای موبایل کوچک */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stat .stat-number {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-images {
        height: 200px;
    }
    
    .service-card, .stat-card, .contact-item {
        padding: 1.5rem;
    }
    
    .map-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .map-info-card {
        max-width: 140px;
    }
    
    .map-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* بهبود نمایش در حالت landscape موبایل */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 6rem 0 2rem;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
    
    .hero-content {
        text-align: right;
    }
}

/* استایل‌های خاص برای iOS */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .service-card, .stat-card, .portfolio-card {
        -webkit-backface-visibility: hidden;
    }
}