/* ===== R STUDIO - MAIN STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');

:root {
    --bg-color: #0B1730; /* سورمه ای تیره */
    --bg-lighter: #132240;
    --gold: #C8A96B; /* طلایی */
    --gold-hover: #dcc08c;
    --text-main: #F5F5F5;
    --text-muted: #A0AABF;
    --border-color: rgba(200, 169, 107, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 15px 0; z-index: 999;
    background: rgba(11, 23, 48, 0.8);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.navbar .container { 
    display: flex; 
    flex-direction: row-reverse; /* جابه‌جایی لوگو و منو */
    justify-content: space-between; 
    align-items: center; 
}
.logo img { height: 45px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-main); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 28px; height: 2.5px; background: var(--gold); border-radius: 4px; transition: 0.3s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 12px 32px;
    background: var(--gold); color: var(--bg-color);
    font-weight: 700; font-size: 1rem; border-radius: 50px;
    transition: all 0.3s ease; border: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(200, 169, 107, 0.2); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg-color); }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; text-align: center; color: var(--text-main); }
.section-title span { color: var(--gold); }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; font-size: 1.1rem; }

/* ===== HERO ===== */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 80px; 
    position: relative; 
    overflow: hidden;
}

.hero-fullwidth {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    align-items: center;
    width: 100%;
    /* حذف پدینگ سمت چپ برای چسبیدن ویدیو به لبه */
    padding-left: 0; 
    padding-right: 5%; 
}

/* استایل متن‌ها */
.hero-text { 
    text-align: right; 
    padding-right: 40px; /* فاصله متن از ویدیو */
}

.hero-text h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    line-height: 1.3; 
}

.hero-text h1 .highlight { 
    color: var(--gold); 
}

.typing-wrapper { 
    font-size: 1.8rem; 
    color: var(--text-muted); 
    margin-bottom: 25px; 
    min-height: 40px; 
}

/* استایل ویدیو */
.hero-video {
    display: flex;
    justify-content: flex-start; /* ویدیو رو می‌چسبونه به سمت چپ */
    align-items: center;
    width: 100%;
}

.hero-video video {
    width: 100%;
    height: auto;
    max-height: 85vh; /* جلوگیری از بیرون زدن از صفحه */
    object-fit: cover;
    /* گوشه‌ها رو فقط سمت راست گرد می‌کنیم تا سمت چپ کاملا به لبه بچسبه */
    border-radius: 0 30px 30px 0; 
}

/* ===== CARDS & GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--bg-lighter); padding: 40px 30px; border-radius: 20px;
    border: 1px solid var(--border-color); transition: all 0.3s ease;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.card i { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.portfolio-item {
    background: var(--bg-lighter); border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border-color); transition: 0.3s;
}
.portfolio-item:hover { border-color: var(--gold); transform: translateY(-5px); }
.portfolio-img { width: 100%; height: 300px; object-fit: cover; background: #132240; border-bottom: 1px solid var(--border-color); }
.portfolio-info { padding: 30px; }
.portfolio-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--gold); }
.portfolio-info p { color: var(--text-muted); margin-bottom: 20px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.tag { background: rgba(200, 169, 107, 0.1); color: var(--gold); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border-color); }

/* ===== ABOUT ===== */
.about-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.about-img { width: 100%; border-radius: 20px; border: 2px solid var(--gold); padding: 5px; background: var(--bg-lighter); }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.about-features { list-style: none; margin-top: 20px; }
.about-features li { margin-bottom: 10px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.about-features li i { color: var(--gold); }

/* ===== CONTACT ===== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 20px;
    background: var(--bg-lighter); border: 1px solid var(--border-color);
    border-radius: 10px; color: var(--text-main); font-family: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-info-box { background: var(--bg-lighter); padding: 40px; border-radius: 20px; border: 1px solid var(--border-color); }
.contact-info-box h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--gold); }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.contact-item i { font-size: 1.5rem; color: var(--gold); width: 30px; text-align: center; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border-color); padding: 40px 0; text-align: center; color: var(--text-muted); }
footer .footer-logo { height: 40px; margin-bottom: 20px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px;
    background: #25D366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 2rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-fullwidth {
        grid-template-columns: 1fr;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-text { 
        text-align: center; 
        padding-right: 0;
        order: 2; /* متن‌ها در موبایل زیر ویدیو قرار بگیرن */
    }
    .hero-video { 
        justify-content: center; 
        order: 1; /* ویدیو در موبایل بالا قرار بگیره */
        margin-bottom: 30px;
    }
    .hero-video video {
        border-radius: 20px; /* در موبایل گوشه‌ها گرد بشن */
    }
    .hero-text h1 { font-size: 2.5rem; }
    .typing-wrapper { font-size: 1.3rem; }
    
    .portfolio-grid, .about-wrapper, .contact-wrapper { grid-template-columns: 1fr; }
    .about-img { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: var(--bg-color); flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s ease; border-left: 1px solid var(--border-color);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: flex; z-index: 1001; }
    .hero-text h1 { font-size: 2rem; }
    .typing-wrapper { font-size: 1.2rem; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 1.6rem; }
}