/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100vw;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    direction: rtl
}

/* Container for content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section styling */
.hero-section {
    width: 100%;
    height: 50vh; /* Half of viewport height */
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distorting ratio */
    display: block;
    border-radius: 20px;
}

/* Main content section below hero */
.main-content {
    position: relative;
    margin-top: -50px; /* Pull content up to overlap with hero slightly */
    padding-bottom: 50px;
}

/* Profile box styling */
.profile-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: -100px auto 20px;
    display: block;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.bio {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Social links styling */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Social link hover effects */
.social-link:hover {
    transform: translateY(-3px);
}
.youtube:hover {
    background-color: #FF0000;
    color: white;
}

.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.twitter:hover {
    background-color: #1DA1F2;
    color: white;
}

.linkedin:hover {
    background-color: #0077B5;
    color: white;
}

.github:hover {
    background-color: #333;
    color: white;
}

/* Social platform specific colors */
/* استایل دکمه‌های شبکه‌های اجتماعی در موبایل */
@media (max-width: 768px) {
    .social-link {
        width: 80%;
        text-align: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* اطمینان از تغییر رنگ هنگام لمس */
    .youtube:hover, .youtube:active, .youtube:focus {
        background-color: #FF0000;
        color: white;
    }

    .instagram:hover, .instagram:active, .instagram:focus {
        background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
        color: white;
    }

    .twitter:hover, .twitter:active, .twitter:focus {
        background-color: #1DA1F2;
        color: white;
    }

    .linkedin:hover, .linkedin:active, .linkedin:focus {
        background-color: #0077B5;
        color: white;
    }

    .github:hover, .github:active, .github:focus {
        background-color: #333;
        color: white;
    }
}


/* Responsive styles */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }
    
    .profile-pic {
        width: 120px;
        height: 120px;
        margin-top: -80px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 80%;
        text-align: center;
    }
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    direction: ltr
}

.logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0077B5;
}
.about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.information {
    max-width: 1080px;
    width: 100%;
    padding: 40px;
    margin: 20px auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
}

.description {
    font-size: 16px;
    text-align: justify;
    color: #333;
    line-height: 2;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 10px;
    }
}
.about-me {
    opacity: 1;  /* از اول نمایش داده شود */
    transform: translateY(0); /* موقعیت اولیه */
    transition: none; /* حذف هرگونه انیمیشن اولیه */
}
.latest-vids {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}
.latest-vids .video-item {
    width: 300px;
    text-align: center;
}
.latest-vids iframe {
    width: 100%;
    height: 170px;
    border-radius: 10px;
}
.latest-vids p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}