/* Reset & Core */
:root {
    --bg-color: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-dark: #1e40af;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Navbar */
.navbar { padding: 24px 0; position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); z-index: 100; border-bottom: 1px solid var(--border); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }
.btn-nav { background: var(--text-main); color: white !important; padding: 10px 20px; border-radius: 8px; }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.badge { background: #eff6ff; color: var(--accent); padding: 6px 14px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 24px; }
h1 { font-size: 3.5rem; letter-spacing: -1.5px; margin-bottom: 24px; line-height: 1.1; font-weight: 800; max-width: 900px; margin-left: auto; margin-right: auto; }
.highlight { color: var(--accent); }
.hero-sub { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

.tech-stack { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 32px; }
.tech-stack p { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.stack-list { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.stack-list span { font-weight: 600; color: var(--text-main); opacity: 0.8; font-size: 0.95rem; }

/* Projects */
.section-title { font-size: 2.25rem; margin-bottom: 60px; text-align: center; letter-spacing: -1px; font-weight: 800; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.project-card.reverse { direction: rtl; }
.project-card.reverse .project-info { direction: ltr; }
.tag { color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 12px; }
.project-info h3 { font-size: 1.8rem; margin-bottom: 16px; font-weight: 700; }
.project-tech { font-family: monospace; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.project-desc { font-size: 1.05rem; margin-bottom: 24px; }
.link-arrow { font-weight: 700; color: var(--accent); }

.project-visual { height: 320px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.placeholder-img { text-align: center; color: var(--text-muted); font-weight: 600; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.service-box { background: white; padding: 40px; border-radius: 12px; border: 1px solid var(--border); transition: 0.3s; }
.service-box:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.service-box h3 { margin-bottom: 16px; font-size: 1.3rem; font-weight: 700; }

/* Stats in About */
.about-flex { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text h2 { font-size: 2.25rem; margin-bottom: 24px; font-weight: 800; }
.stats-list { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stats-list li { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.stats-list li strong { display: block; font-size: 1.8rem; color: var(--accent); margin-bottom: 4px; }

/* Buttons */
.btn-primary { background: var(--accent); color: white; padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-block; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: white; border: 1px solid var(--border); padding: 14px 28px; border-radius: 8px; font-weight: 700; display: inline-block; margin-left: 12px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.socials a { margin-left: 24px; font-weight: 700; color: var(--text-main); }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .project-card { grid-template-columns: 1fr; gap: 40px; direction: ltr !important; }
    .nav-links { display: none; }
    .btn-secondary { margin-left: 0; margin-top: 12px; display: block; }
}