* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background-color: #f9f9f9;
}

header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('image/Picture1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.8rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

#hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/2323.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #e74c3c;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.text-content {
    flex: 2;
    min-width: 300px;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.text-content ul {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.text-content li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#mainImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: zoom-in;
    transform-origin: center center;
}

#mainImage:hover {
    transform: scale(1.05);
}

.main-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    text-align: center;
}

.main-image-text {
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
    right: auto;
}

.next-btn {
    right: 20px;
    left: auto;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
}

.thumbnail-item {
    flex: 0 0 calc(20% - 10px);
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-item.active {
    border-color: #e74c3c;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: #3498db;
}

@media (max-width: 768px) {
    .thumbnail-item {
        flex: 0 0 calc(25% - 10px);
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-item {
        flex: 0 0 calc(33.333% - 10px);
    }
    
    .main-image-container {
        height: 300px;
    }
}

.map-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-details {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-details h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.location-details ul {
    padding-right: 1.5rem;
}

.location-details li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.analysis-item:hover {
    transform: translateY(-5px);
}

.analysis-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #e74c3c;
}

.analysis-item ul {
    padding-right: 1.2rem;
    margin: 1rem 0;
}

.analysis-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.analysis-item p {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-weight: 500;
}

#team {
    background-color: #f0f0f0;
}

#team .text-content {
    text-align: center;
}

#team h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

#team ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

#team li {
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

footer {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Animation Classes */
.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}