/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans';
    src: url('fonts/IRANSansWeb.woff2') format('woff2');
    color: #ffffff;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #E8E9ED;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #0A0E27 0%, #1A1E3D 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.typing-text {
    font-size: 1.8rem;
    color: #F7B801;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    color: #E8E9ED;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-text p strong {
    color: #F7B801;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: transparent;
    border-color: #FF6B35;
    color: #FF6B35;
}

.btn-secondary:hover {
    background: #FF6B35;
    color: white;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 20px;
    background: #1A1E3D;
    border-radius: 8px;
    color: #E8E9ED;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #FF6B35;
    border-radius: 20px;
    z-index: -1;
}

.image-box img {
    width: 100%;
    border-radius: 20px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* About Section */
.about {
    background: #050714;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E8E9ED;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: #1A1E3D;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: #FF6B35;
    transform: translateX(-5px);
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: #F7B801;
}

.info-item span {
    color: #E8E9ED;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    padding: 8px 16px;
    background: #1A1E3D;
    border: 1px solid rgba(247, 184, 1, 0.3);
    border-radius: 20px;
    color: #F7B801;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(247, 184, 1, 0.1);
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    background: #0A0E27;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: #1A1E3D;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #FF6B35;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.skill-info span:last-child {
    color: #F7B801;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise-list li {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.expertise-list li:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(-5px);
}

/* Portfolio Section */
.portfolio {
    background: #050714;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10,14,39,0.95) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    align-self: flex-start;
}

.portfolio-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Experience Section */
.experience {
    background: #0A0E27;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #FF6B35 0%, #F7B801 100%);
}

.timeline-item {
    position: relative;
    padding-right: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    right: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #FF6B35;
    border-radius: 50%;
    border: 4px solid #0A0E27;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
}

.timeline-content {
    background: #1A1E3D;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(247, 184, 1, 0.1);
    color: #F7B801;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.timeline-content h4 {
    color: #9CA3AF;
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #F7B801;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.highlight {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-weight: 600;
}

.timeline-content ul {
    margin-top: 12px;
}

.timeline-content li {
    padding: 8px 0;
    color: #E8E9ED;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content li:last-child {
    border-bottom: none;
}

.timeline-content li::before {
    content: '✓ ';
    color: #FF6B35;
    font-weight: bold;
    margin-left: 5px;
}

/* Contact Section */
.contact {
    background: #050714;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #1A1E3D;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #FF6B35;
    transform: translateX(-5px);
}

.contact-item .icon {
    font-size: 2rem;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.contact-item a {
    color: #E8E9ED;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: #FF6B35;
}

.contact-item p {
    color: #E8E9ED;
}

/* Contact Form */
.contact-form {
    background: #1A1E3D;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    background: #0A0E27;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-content p {
    color: #9CA3AF;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7B801 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-box {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}
/* ===================================
   Video Modal
   =================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    transform: rotate(90deg);
}

.modal-content {
    background: #1A1E3D;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 30px;
}

.video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.video-info p {
    color: #E8E9ED;
    line-height: 1.7;
    margin-bottom: 20px;
}

.video-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.video-meta span {
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    color: #FF6B35;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Loading Spinner */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-close {
        top: -45px;
        width: 40px;
        height: 40px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-info h3 {
        font-size: 1.4rem;
    }
}