@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;400;700&display=swap');

:root {
    --header-height: 80px;
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f1c40f;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --whatsapp-color: #25D366;
    --transition-speed: 0.3s;
}

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

html {
    scroll-padding-top: var(--header-height);
    scroll-behavior: smooth;
}

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

/* بهبود هدر */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('uploads/dubai-skyline.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    white-space: nowrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

section {
    padding: 5rem 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background-color: var(--light-bg);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.team {
    background-color: var(--light-bg);
    text-align: center;
}

.team-container {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.team-member-combined {
    position: relative;
    overflow: visible;
}

.team-member-combined::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.team-member-combined:hover::before {
    opacity: 0.1;
}

.team-member-combined .image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
}

.team-info {
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
}

.member-details {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.member-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
}

.member-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.phone {
    font-size: 1.2rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    direction: ltr;
}

.phone i {
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--whatsapp-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    transform: translateY(0);
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: white;
}

.whatsapp-btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all var(--transition-speed);
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.6s;
}

.whatsapp-btn:hover::after {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0.2;
}

.whatsapp-btn:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5);
}

.cta {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    z-index: -1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 1.2rem 2.5rem;
}

.btn-primary:hover {
    background-color: #f39c12;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-30px) translateX(-50%);
    }
    60% {
        transform: translateY(-15px) translateX(-50%);
    }
}

.about-description {
    margin: 2rem auto;
    max-width: 600px;
    line-height: 1.8;
}

.cta-description {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn i {
    margin-left: 0.5rem;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .scroll-down {
        display: none;
    }
    
    .social-links {
        left: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-btn i {
        font-size: 1.1rem;
    }
    
    .team-info {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .member-divider {
        width: 100%;
        height: 1px;
        background: #ddd;
    }
    
    .team-member-combined .image-placeholder {
        height: 300px;
    }

    .video-wrapper {
        padding-bottom: 75%;
        margin: 0 -1rem;
    }

    .video-description {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cta h2, .cta-description {
        padding: 0.8rem 1.5rem;
        margin: 0.3rem;
    }

    .member-details {
        padding: 1.5rem;
    }

    .member-details h3 {
        font-size: 1.5rem;
    }

    .phone {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .whatsapp-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        min-width: 160px;
    }

    .whatsapp-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .team-member-combined .image-placeholder {
        height: 250px;
    }

    .feature-card {
        margin: 0 1rem;
    }

    .hero-buttons {
        padding: 0 1rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .member-details {
        padding: 1rem;
    }

    .phone {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0.8rem 0;
    }

    .whatsapp-btn {
        padding: 0.6rem 1.2rem;
        min-width: 140px;
        font-size: 0.9rem;
    }

    .whatsapp-btn i {
        font-size: 1.1rem;
    }
}

.video-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 2rem;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    margin: 3rem auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-description {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a2634;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-placeholder:hover {
    background-color: #2c3e50;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.projects {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.project-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.project-card p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #666;
}

@media (max-width: 768px) {
    .project-row {
        grid-template-columns: 1fr;
    }
}

/* استایل‌های جدید برای آیکون‌های واتس‌اپ */
.member-social {
    margin-top: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    min-width: 200px;
}

.whatsapp-btn i {
    font-size: 1.4rem;
    margin-left: 0.5rem;
}

.whatsapp-btn span {
    font-size: 1rem;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .project-info p {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        padding: 0.7rem 1.8rem;
        min-width: 180px;
    }
    
    .whatsapp-btn i {
        font-size: 1.2rem;
    }
    
    .whatsapp-btn span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 2rem auto 0;
    }
    
    .project-card {
        aspect-ratio: 0.8;
    }
    
    .whatsapp-btn {
        padding: 0.6rem 1.5rem;
        min-width: 160px;
    }
    
    .whatsapp-btn i {
        font-size: 1.1rem;
    }
    
    .whatsapp-btn span {
        font-size: 0.85rem;
    }
}

.cta h2, .cta-description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin: 0.5rem;
}

footer p {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

@supports not (backdrop-filter: blur(10px)) {
    .hero-content,
    .video-description,
    .cta h2,
    .cta-description,
    footer p {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* اضافه کردن انیمیشن لودینگ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* بهبود استایل‌های اصلی */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f1c40f;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --whatsapp-color: #25D366;
}

html {
    scroll-behavior: smooth;
}

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

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    white-space: nowrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

section {
    padding: 5rem 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background-color: var(--light-bg);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.team {
    background-color: var(--light-bg);
    text-align: center;
}

.team-container {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.team-member-combined {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member-combined .image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
}

.team-info {
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
}

.member-details {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.member-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
}

.member-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.phone {
    font-size: 1.2rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    direction: ltr;
}

.phone i {
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--whatsapp-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    transform: translateY(0);
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: white;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    max-width: 100%;
}

.whatsapp-btn span {
    white-space: nowrap;
}

.whatsapp-btn i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.whatsapp-btn:hover {
    background-color: #1a9247;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.cta {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    z-index: -1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 1.2rem 2.5rem;
}

.btn-primary:hover {
    background-color: #f39c12;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-30px) translateX(-50%);
    }
    60% {
        transform: translateY(-15px) translateX(-50%);
    }
}

.about-description {
    margin: 2rem auto;
    max-width: 600px;
    line-height: 1.8;
}

.cta-description {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn i {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .hero-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .scroll-down {
        display: none;
    }
    
    .social-links {
        left: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .whatsapp-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-btn i {
        font-size: 1.1rem;
    }
    
    .team-info {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .member-divider {
        width: 100%;
        height: 1px;
        background: #ddd;
    }
    
    .team-member-combined .image-placeholder {
        height: 300px;
    }

    .video-wrapper {
        padding-bottom: 75%;
        margin: 0 -1rem;
    }

    .video-description {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cta h2, .cta-description {
        padding: 0.8rem 1.5rem;
        margin: 0.3rem;
    }

    .member-details {
        padding: 1.5rem;
    }

    .member-details h3 {
        font-size: 1.5rem;
    }

    .phone {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .whatsapp-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        min-width: 160px;
    }

    .whatsapp-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .team-member-combined .image-placeholder {
        height: 250px;
    }

    .feature-card {
        margin: 0 1rem;
    }

    .hero-buttons {
        padding: 0 1rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .member-details {
        padding: 1.2rem;
    }

    .phone {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin: 0.8rem 0;
    }

    .whatsapp-btn {
        padding: 0.6rem 1.2rem;
        min-width: 140px;
        font-size: 0.9rem;
    }

    .whatsapp-btn i {
        font-size: 1.1rem;
    }
}

.video-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 2rem;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    margin: 3rem auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-description {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a2634;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-placeholder:hover {
    background-color: #2c3e50;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.projects {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 0.75;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-info {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    text-align: right;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
}

/* اضافه کردن اسکرول نرم برای سافاری */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* بهینه‌سازی برای صفحه‌نمایش‌های بزرگ */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
}

/* بهینه‌سازی برای صفحه‌نمایش‌های کوچک */
@media (max-height: 600px) {
    .hero {
        min-height: 120vh;
    }
}

/* اضافه کردن پشتیبانی از حالت تاریک سیستم عامل */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --text-color: #ffffff;
    }
    
    .member-details,
    .project-card {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .phone {
        color: #ffffff;
    }
}

/* Fixed WhatsApp Icons */
.fixed-social-links {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fixed-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fixed-social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .fixed-social-links {
        left: 10px;
    }
    
    .fixed-social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 