:root {
  --bg: #080c14; --bg2: #0d1422; --bg3: #111827;
  --blue: #3b82f6; --cyan: #06b6d4; --green: #10b981;
  --text: #e2e8f0; --muted: #64748b; --border: rgba(59,130,246,0.15);
  --glow: 0 0 24px rgba(59,130,246,0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 6%; background: rgba(8,12,20,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo-wrap { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-wordmark .w1 { font-size: 1rem; font-weight: 900; letter-spacing: -0.5px; color: #fff; }
.logo-wordmark .w2 { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; color: var(--cyan); text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.lang-btn { padding: .35rem .7rem; background: transparent; border: none; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .82rem; transition: background .2s, color .2s; text-decoration: none; }
.lang-btn.active { background: var(--cyan); color: #000; }
.nav-cta { padding: .5rem 1.2rem; border-radius: 6px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; transition: opacity .2s, box-shadow .2s; }
.nav-cta:hover { opacity: .85; box-shadow: var(--glow); }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: background .2s; }
.nav-hamburger:hover span { background: var(--cyan); }

/* HERO */
#hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 6% 5rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(59,130,246,0.12) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 60%); }
.grid-overlay { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 99px; border: 1px solid rgba(6,182,212,0.35); background: rgba(6,182,212,0.08); font-size: .82rem; color: var(--cyan); font-weight: 600; letter-spacing: .05em; margin-bottom: 1.5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.2rem; }
h1 .grad { background: linear-gradient(135deg, #fff 30%, var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* SECTIONS */
section { padding: 6rem 6%; }
.section-label { font-size: .8rem; color: var(--cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 540px; margin-bottom: 3.5rem; }
.section-head { margin-bottom: 3.5rem; }

/* ABOUT */
#about { background: var(--bg2); }
.about-inner { max-width: 720px; }
.about-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }
.about-industries { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: 1rem 1.4rem; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); }
.industries-label { display: block; font-size: .75rem; color: var(--cyan); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.industries-text { color: var(--muted); font-size: .9rem; }
.about-vals { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.val { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.val-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); flex-shrink: 0; }

/* TECHNOLOGY */
#portfolio { background: var(--bg); }
.portfolio-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .portfolio-grid { grid-template-columns: 1fr; } }
.proj-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.proj-thumb { height: 120px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.proj-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(8,12,20,0.3); }
.proj-thumb .tech-label { position: absolute; z-index: 1; font-size: 1.4rem; font-weight: 900; letter-spacing: .06em; font-family: 'Courier New', monospace; white-space: nowrap; color: #fff; }
.t1 { background: linear-gradient(135deg, #0f2044, #1a3a6b); }
.t2 { background: linear-gradient(135deg, #071a1a, #0a3a3a); }
.t3 { background: linear-gradient(135deg, #1a0a2e, #2d1060); }
.t4 { background: linear-gradient(135deg, #0a1a0a, #0a3a1a); }
.t5 { background: linear-gradient(135deg, #07181f, #0d3040); }
.t6 { background: linear-gradient(135deg, #18130a, #2e2410); }
.proj-body { padding: 1.2rem; }
.proj-tag { display: inline-block; padding: .2rem .7rem; border-radius: 99px; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); font-size: .75rem; color: var(--blue); font-weight: 600; margin-bottom: .6rem; }
.proj-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* EXPERTISE */
#services { background: var(--bg2); }
.services-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: border-color .3s, transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: 0; transition: opacity .3s; }
.svc-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-4px); box-shadow: var(--glow); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { font-size: 2rem; margin-bottom: 1rem; }
.svc-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.svc-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* CONTACT */
#contact { background: var(--bg); text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner .section-sub { margin: 0 auto 2.5rem; }
.contact-email-block { display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.6rem; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); margin-bottom: 2rem; transition: border-color .2s; }
.contact-email-block:hover { border-color: var(--cyan); }
.contact-email-block a { color: var(--cyan); font-weight: 600; text-decoration: none; font-size: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea { width: 100%; padding: .85rem 1rem; border-radius: 8px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 130px; }
.submit-btn { display: block; padding: .9rem; border-radius: 8px; border: none; cursor: pointer; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.submit-btn:hover { box-shadow: var(--glow); transform: translateY(-2px); }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.2rem 6%; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.8rem; }
.footer-brand .footer-tagline { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-legal p { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.footer-legal p strong { color: #94a3b8; font-weight: 600; }
.footer-copy { margin-top: .4rem; width: 100%; border-top: 1px solid var(--border); padding-top: .8rem; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(8,12,20,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: .5rem 6%; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 1rem; }
}
