:root {
    --bg: #050505;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --primary: #d9232d;
    --primary-hover: #b81d25;
    --text: #ffffff;
    --text-muted: #888888;
    --border: #222222;
    --font-main: 'Vazirmatn', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--text); font-weight: 700; margin-bottom: 15px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.section-title { font-size: 2rem; margin-bottom: 30px; }
.section-subtitle { color: var(--primary); font-size: 0.9rem; margin-bottom: 10px; display: block; font-weight: bold; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 8px; font-weight: bold; transition: all 0.3s;
    cursor: pointer; gap: 8px; border: none; font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.logo span { color: var(--primary); }
.menu-btn { font-size: 1.5rem; cursor: pointer; color: var(--text); background: none; border: none; }

.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 0 5%; background: linear-gradient(to bottom, rgba(5,5,5,0.3), var(--bg)), url('hero-bg.jpg') center/cover;
    text-align: center; margin-top: 60px;
}
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; text-align: center; padding: 40px 5%;
}
.feature-item { padding: 20px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.feature-item i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }

.services-list { padding: 40px 5%; display: flex; flex-direction: column; gap: 15px; }
.service-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border);
}
.service-info { display: flex; align-items: center; gap: 15px; }
.service-info i { color: var(--primary); font-size: 1.5rem; }
.service-number { font-size: 1.5rem; font-weight: 900; color: var(--border); }

.portfolio { padding: 40px 5%; }
.filters { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.filter-btn { padding: 8px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; white-space: nowrap; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portfolio-card { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.portfolio-img { position: relative; width: 100%; height: 350px; background: var(--surface-light); }
.portfolio-img img, .portfolio-img video { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); color: #fff; border: 1px solid #fff; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 2;}
.portfolio-info { padding: 20px; }
.portfolio-info h3 { margin-bottom: 10px; }
.portfolio-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; }

.process { padding: 60px 5%; }
.timeline { position: relative; margin-top: 40px; }
.timeline::before { content: ''; position: absolute; right: 24px; top: 0; height: 100%; width: 2px; border-right: 2px dashed var(--border); }
.timeline-item { position: relative; padding-right: 70px; margin-bottom: 40px; }
.timeline-icon { position: absolute; right: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; z-index: 2; }
.timeline-content h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.timeline-content h4 span { color: var(--text-muted); font-size: 0.9rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; }

.cta-banner { margin: 40px 5%; padding: 60px 20px; background: linear-gradient(rgba(217, 35, 45, 0.8), rgba(217, 35, 45, 0.9)), url('chair-bg.jpg') center/cover; border-radius: 20px; text-align: center; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 20px; }
.cta-banner .btn { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.contact-links { display: flex; flex-direction: column; gap: 15px; padding: 40px 5%; }
.contact-item { display: flex; align-items: center; gap: 15px; background: var(--surface); padding: 15px 20px; border-radius: 12px; border: 1px solid var(--border); }
.contact-item i { color: var(--text); font-size: 1.2rem; }

footer { padding: 40px 5%; background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-logo { margin-bottom: 15px; }
.footer-links h4 { color: var(--primary); margin-bottom: 15px; font-size: 1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--text-muted); transition: color 0.3s; }
.footer-links ul li a:hover { color: var(--text); }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { color: var(--text-muted); font-size: 1.2rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--text); }

@media(min-width: 768px) {
    .hero-btns { flex-direction: row; }
}
