/* Import the Vazir font for Persian text (already imported in HTML head) */
body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
#header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo: Scale the image while preserving the aspect ratio.
   Here we limit the width to 150px, which works well in the header. */
.logo img {
    width: 100%;
    max-width: 95px; /* The logo will scale up to 150px but not exceed it */
    height: auto;
}

/* Navigation */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #6FCF97;
}

.header-cta .cta-btn {
    padding: 10px 20px;
    background: #6FCF97;
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.header-cta .cta-btn:hover {
    background: #57b47c;
}

/* Hamburger Icon for Mobile */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(to left, #FFDC00, #00AEEF);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content .subheadline {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-content .intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
}

.hero-btn {
    padding: 12px 25px;
    background: #6FCF97;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #57b47c;
}

/* About Section */
#about {
    padding: 80px 0;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin: auto;
}

.icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.icon {
    text-align: center;
}

.icon img {
    width: auto;
    height: 50px;
    max-width: none; /* Ensure no maximum width is applied */
}

.icon p {
    margin-top: 10px;
    font-weight: bold;
}

/* Teams Section */
#teams {
    padding: 80px 0;
    background: #f7f7f7;
    text-align: center;
}

#teams h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: auto;
    height: 100px;
    object-fit: cover;
}

.team-card h3 {
    margin: 20px 0 10px;
}

.team-card p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-bottom: 20px;
    color: #00AEEF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #008db3;
}

/* Cooperation Section */
#cooperation {
    padding: 80px 0;
    text-align: center;
}

#cooperation h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#cooperation p {
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin: auto;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.partner-logos img {
    width: 100px;
    object-fit: contain;
}

/* Footer */
#footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6FCF97;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-media img:hover {
    filter: brightness(0) invert(0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav ul {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        display: none;
        padding: 20px;
        border: 1px solid #ddd;
    }

    .nav ul.active {
        display: flex;
    }

    .nav ul li {
        margin-bottom: 10px;
    }

    .hamburger {
        display: block;
    }
}
