/* ==================== VARIABLES ==================== */
:root { --bg: #ffffff; --bg2: #f5f5f7; --bg3: #e8e8ed; --text: #1d1d1f; --muted: #6e6e73; --accent: #0071e3; --accent-hover: #0077ed; --border: #d2d2d7; --shadow-sm: 0 2px 8px rgba(0,0,0,0.06); --shadow-md: 0 4px 16px rgba(0,0,0,0.08); --shadow-lg: 0 8px 32px rgba(0,0,0,0.12); --shadow-xl: 0 16px 48px rgba(0,0,0,0.16); --transition: cubic-bezier(0.4, 0, 0.2, 1); --radius: 16px; }

/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.8; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.header { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; background: var(--bg2); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); transition: background 0.3s, box-shadow 0.3s; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.brand { font-size: 1.5em; font-weight: 900; letter-spacing: -1.5px; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; z-index: 1001; }
.brand-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.7em; font-weight: 900; }

/* ==================== NAV ==================== */
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.8em; font-weight: 500; transition: color 0.3s, opacity 0.3s; opacity: 0.75; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--transition); border-radius: 2px; }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav a:hover::after { width: 100%; }

/* ==================== MOBILE BUTTON ==================== */
.mobile-btn { display: none; background: none; border: none; font-size: 1.5em; color: var(--text); cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.3s; z-index: 1001; }

/* ==================== NAV OVERLAY ==================== */
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 998; display: none; opacity: 0; transition: opacity 0.3s; }
.nav-overlay.active { display: block; opacity: 1; }

/* ==================== MOBILE NAV ==================== */
@media (max-width: 768px) {
.header { padding: 12px 20px; }
.nav { position: fixed; top: 0; right: -100%; bottom: 0; width: 85%; max-width: 360px; background: var(--bg2); flex-direction: column; padding: 90px 25px 30px; gap: 0; transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; overflow-y: auto; align-items: flex-start; text-align: right; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15); display: flex !important; visibility: visible !important; opacity: 1 !important; height: 100vh; height: 100dvh; }
.nav.active { right: 0; }
.nav a { width: 100%; padding: 16px 0; font-size: 1.1em; font-weight: 600; opacity: 1; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--text); transition: color 0.3s, padding-right 0.3s; }
.nav a::after { content: '←'; font-size: 0.8em; opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: translateX(10px); position: static; width: auto; height: auto; background: none; }
.nav a:hover { color: var(--accent); padding-right: 10px; }
.nav a:hover::after { opacity: 1; transform: translateX(0); color: var(--accent); }
.mobile-btn { display: block; }
.header .btn { display: flex; padding: 8px 16px; font-size: 0.75em; }
.header .btn span { display: none; }
}

/* ==================== BUTTONS ==================== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 0.85em; border: none; cursor: pointer; transition: all 0.3s var(--transition); font-family: inherit; white-space: nowrap; background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3); }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4); }
.btn-sm { padding: 8px 16px; font-size: 0.8em; }
.btn-lg { padding: 16px 35px; font-size: 1em; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; box-shadow: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--bg); box-shadow: none; }
.btn-white { background: #fff; color: var(--accent); box-shadow: none; }
.btn-white:hover { background: #f5f5f7; transform: translateY(-2px); box-shadow: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; box-shadow: none; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); box-shadow: none; }

/* ==================== HERO ==================== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bg2); padding: 120px 20px 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,113,227,0.05) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,113,227,0.1); color: var(--accent); padding: 10px 20px; border-radius: 30px; font-size: 0.85em; font-weight: 600; margin-bottom: 25px; animation: fadeUp 0.8s both; }
.hero h1 { font-size: clamp(2em, 5vw, 3.5em); font-weight: 800; line-height: 1.4; letter-spacing: -1px; animation: fadeUp 0.8s 0.2s both; }
.gradient-text { background: linear-gradient(45deg, #0071e3, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--muted); font-size: 1.05em; max-width: 600px; margin: 20px auto; line-height: 2; animation: fadeUp 0.8s 0.4s both; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 30px; animation: fadeUp 0.8s 0.6s both; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; animation: fadeUp 0.8s 0.8s both; }
.stat { text-align: center; }
.stat-num { font-size: 2.5em; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85em; color: var(--muted); margin-top: 5px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 20px; }
.bg-gray { background: var(--bg2); }
.section-head { text-align: center; margin-bottom: 50px; }
.eyebrow { color: var(--accent); font-size: 0.75em; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8em, 4vw, 2.5em); font-weight: 800; letter-spacing: -1px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1em; }

/* ==================== REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s var(--transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ==================== FEATURES ==================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 35px 25px; text-align: center; transition: all 0.3s var(--transition); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 70px; height: 70px; background: var(--bg2); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8em; color: var(--accent); transition: all 0.3s; }
.feature-card:hover .feature-icon { background: var(--accent); color: #fff; transform: rotate(360deg); }
.feature-card h3 { font-size: 1.1em; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.85em; line-height: 1.8; }

/* ==================== ACCORDION ==================== */
.accordion { max-width: 800px; margin: auto; background: var(--bg); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.accordion-item { border-bottom: 1px solid var(--border); border-radius: 12px; margin-bottom: 5px; overflow: hidden; transition: background 0.3s; }
.accordion-item:last-child { border-bottom: none; margin-bottom: 0; }
.accordion-item:hover { background: var(--bg2); }
.accordion-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 18px 16px; cursor: pointer; font-family: inherit; font-size: 1em; font-weight: 600; color: var(--text); text-align: right; gap: 15px; }
.accordion-btn i { color: var(--accent); margin-left: 10px; }
.chevron { width: 20px; height: 10px; flex-shrink: 0; color: var(--muted); transition: transform 0.4s var(--transition); }
.chevron path { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.accordion-btn.active .chevron { transform: rotate(180deg); color: var(--accent); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--transition); }
.accordion-content.open { max-height: 200px; }
.accordion-content p { padding: 0 16px 15px; color: var(--muted); font-size: 0.9em; line-height: 2; }
.accordion-content .btn { margin: 0 16px 15px; }

/* ==================== GRID 2 ==================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; max-width: 800px; margin: auto; }
.text-center { text-align: center; }

/* ==================== WORK CARDS ==================== */
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s var(--transition); text-decoration: none; color: var(--text); display: block; background: var(--bg); }
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--text); }
.work-visual { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3em; color: #fff; }
.work-body { padding: 20px; }
.work-label { color: var(--accent); font-size: 0.7em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.work-body h3 { font-size: 1.15em; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 0.85em; }
.work-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-top: 1px solid var(--border); font-size: 0.85em; font-weight: 600; color: var(--accent); transition: background 0.3s; }
.work-link:hover { background: var(--bg2); }

/* ==================== CTA ==================== */
.cta-box { background: linear-gradient(135deg, #0071e3 0%, #764ba2 100%); color: #fff; text-align: center; padding: 70px 30px; border-radius: 30px; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-box h2 { font-size: clamp(1.8em, 4vw, 2.5em); font-weight: 800; margin-bottom: 15px; position: relative; z-index: 1; }
.cta-box p { opacity: 0.9; margin-bottom: 30px; font-size: 1.05em; position: relative; z-index: 1; }
.cta-box .hero-btns { position: relative; z-index: 1; }

/* ==================== PAGE HERO ==================== */
.page-hero { background: var(--bg2); text-align: center; padding: 130px 20px 50px; }
.page-hero h1 { font-size: clamp(1.8em, 4vw, 2.5em); font-weight: 800; animation: fadeUp 0.6s both; }
.page-hero p { color: var(--muted); margin-top: 10px; animation: fadeUp 0.6s 0.2s both; }

/* ==================== SERVICE DETAIL ==================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-detail-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 25px; transition: all 0.3s var(--transition); text-align: right; }
.service-detail-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-detail-icon { width: 60px; height: 60px; background: var(--bg2); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5em; color: var(--accent); margin-bottom: 20px; }
.service-detail-card h3 { font-size: 1.1em; margin-bottom: 10px; }
.service-detail-card p { color: var(--muted); font-size: 0.85em; margin-bottom: 15px; }
.service-detail-card ul { list-style: none; padding: 0; }
.service-detail-card li { color: var(--muted); font-size: 0.85em; padding: 5px 0; }
.service-detail-card li i { color: #27AE60; margin-left: 8px; font-size: 0.8em; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 750px; margin: auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--bg); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--bg2); border: none; padding: 18px 20px; cursor: pointer; font-family: inherit; font-size: 0.95em; font-weight: 600; color: var(--text); gap: 15px; text-align: right; }
.faq-btn i { color: var(--accent); flex-shrink: 0; transition: transform 0.3s; }
.faq-btn.active i { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--transition); }
.faq-content p { padding: 15px 20px; color: var(--muted); font-size: 0.9em; line-height: 2; }
.faq-cta { margin-top: 40px; text-align: center; background: var(--bg2); border-radius: var(--radius); padding: 30px; }

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.contact-icon { width: 45px; height: 45px; background: var(--bg2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1em; color: var(--accent); flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.95em; margin-bottom: 3px; }
.contact-info-item p { color: var(--muted); font-size: 0.85em; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 40px; height: 40px; background: var(--bg2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; transition: all 0.3s; }
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.contact-form-wrapper { background: var(--bg2); border-radius: var(--radius); padding: 30px; }
.contact-form-wrapper h3 { font-size: 1.2em; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85em; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-family: inherit; font-size: 0.9em; transition: all 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ==================== ABOUT ==================== */
.about-content { max-width: 700px; }
.about-content h2 { font-size: 2em; margin-bottom: 20px; }
.about-content p { color: var(--muted); margin-bottom: 15px; }
.quote { margin-top: 40px; background: var(--bg2); border-right: 3px solid var(--accent); padding: 20px; border-radius: 0 12px 12px 0; font-weight: 600; }

/* ==================== FOOTER ==================== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 50px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h3 { margin-bottom: 15px; }
.footer h4 { margin-bottom: 15px; font-size: 1em; }
.footer p { color: var(--muted); font-size: 0.85em; }
.footer a { display: block; color: var(--muted); text-decoration: none; font-size: 0.85em; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.footer i { margin-left: 8px; color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8em; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
.features-grid { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; }
.form-row { grid-template-columns: 1fr; gap: 0; }
.hero { padding: 100px 15px 40px; }
.hero h1 { font-size: 1.7em; }
.hero-stats { gap: 25px; }
.stat-num { font-size: 1.8em; }
.page-hero { padding: 110px 15px 40px; }
.section { padding: 60px 15px; }
.btn-lg { padding: 14px 25px; font-size: 0.9em; }
.accordion { padding: 15px; }
.accordion-btn { padding: 15px 12px; font-size: 0.9em; }
}


.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}