*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --accent: #6C63FF; --accent-dim: rgba(108,99,255,0.15); --accent-border: rgba(108,99,255,0.35);
    --bg: #0a0a0f; --bg2: rgba(255,255,255,0.03); --text: #f0f0f0;
    --text-muted: rgba(255,255,255,0.5); --text-dim: rgba(255,255,255,0.35);
    --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.14);
    --radius: 12px; --radius-sm: 8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; direction: rtl; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }

header { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; border-bottom: 0.5px solid var(--border); position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.logo img { height: 42px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.login-btn { background: var(--accent); color: #fff; text-decoration: none; padding: 8px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; transition: all 0.2s; }
.login-btn:hover { background: #5a52e0; transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 98; }
.overlay.show { display: block; }
.mobile-menu { position: fixed; top: 0; left: -100%; width: 260px; height: 100vh; background: #111118; border-right: 0.5px solid var(--border); z-index: 99; padding: 80px 32px 40px; display: flex; flex-direction: column; gap: 8px; transition: left 0.35s cubic-bezier(0.4,0,0.2,1); }
.mobile-menu.show { left: 0; }
.mobile-menu a { font-size: 16px; font-weight: 600; color: var(--text-muted); text-decoration: none; padding: 10px 14px; border-radius: var(--radius-sm); transition: all 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--accent-dim); color: #fff; }

.hero { padding: 70px 48px 55px; position: relative; overflow: hidden; border-bottom: 0.5px solid var(--border); }
.hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 400px; background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 65%); pointer-events: none; }
.hero h1 { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 14px; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 500px; line-height: 1.7; position: relative; }

.works-grid { padding: 60px 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.work-card {
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s;
    opacity: 0;
    transform: translateY(24px);
}
.work-card.show { opacity: 1; transform: translateY(0); }
.work-card:hover { border-color: var(--accent-border); transform: translateY(-4px); }

.work-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card:hover .work-img img { transform: scale(1.04); }

.work-info { padding: 20px; }
.work-info h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.work-info p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.work-btn { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-dim); border: 0.5px solid var(--accent-border); padding: 6px 16px; border-radius: 99px; text-decoration: none; transition: all 0.2s; }
.work-btn:hover { background: var(--accent); color: #fff; }

footer { border-top: 0.5px solid var(--border); padding: 32px 48px; text-align: center; color: var(--text-dim); font-size: 13px; }
.footer-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.footer-icon { width: 38px; height: 38px; background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; text-decoration: none; }
.footer-icon:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.footer-icon svg { fill: var(--text-muted); transition: fill 0.2s; }
.footer-icon:hover svg { fill: #fff; }

@media (max-width: 768px) {
    header { padding: 14px 20px; }
    .nav-links { display: none; }
    .burger { display: flex; }
    .hero { padding: 50px 20px 40px; }
    .hero h1 { font-size: 26px; }
    .works-grid { padding: 30px 20px; grid-template-columns: 1fr; }
    footer { padding: 28px 20px; }
}