:root {
    --bg: #080c12;
    --bg2: #0d1320;
    --bg3: #111827;
    --accent: #3b82f6;
    --accent2: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --text: #f1f5f9;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border: rgba(59, 130, 246, 0.12);
    --border-hover: rgba(59, 130, 246, 0.35);
    --radius: 12px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 12, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
}

.lang-switcher {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 8px;
}

.lang-switcher:hover {
    color: var(--accent);
    border-color: var(--border-hover);
    background: var(--accent-glow);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 .blue {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── SECTION ── */
section {
    padding: 100px 5%;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--text-muted);
    font-weight: 400;
}

/* ── FILTER TABS ── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    background: var(--bg3);
    color: var(--text-dim);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--border-hover);
}

/* ── GRID ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hover);
}

.project-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg3);
    display: block;
}

.project-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg3) 0%, #1e2d45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-placeholder svg {
    opacity: 0.2;
}

.project-info {
    padding: 20px;
}

.project-cat {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.stat-box .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── CONTACT ── */
.contact-wrapper {
    max-width: 600px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.contact-link:hover {
    border-color: var(--border-hover);
    background: var(--accent-glow);
}

.contact-link .icon {
    width: 36px;
    height: 36px;
    background: var(--accent-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-link .info strong {
    display: block;
    font-size: 0.9rem;
}

.contact-link .info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ── EMPTY STATE ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg2);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 32px;
}

.modal-cat {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-desc {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.modal-wrapper {
    position: relative;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ── CONTACT GRID ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 72px;
    align-items: start;
}

.contact-form-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 7px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
    margin-bottom: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.cf-group:last-of-type { margin-bottom: 24px; }

.form-error-msg {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-sent {
    text-align: center;
    padding: 48px 20px;
}

.form-sent svg { margin-bottom: 16px; color: #4ade80; }
.form-sent h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }
.form-sent p { color: var(--text-muted); font-size: 0.9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { padding: 16px 5%; }
    .nav-links { gap: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    section { padding: 70px 5%; }
    footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
