/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border: rgba(148, 163, 184, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

nav .container {
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}

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

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.lang-toggle { display: flex; gap: 0.25rem; background: var(--bg-card); border-radius: 6px; padding: 0.2rem; }

.lang-btn {
  background: none; border: none; color: var(--text-secondary);
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.6rem;
  border-radius: 4px; cursor: pointer; transition: all 0.2s;
  font-family: var(--font);
}

.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text-primary); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 5rem;
  background:
    radial-gradient(ellipse at 20% 50%, var(--accent-glow), transparent 60%),
    var(--bg-primary);
}

.hero-content { max-width: 720px; }

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent); background: var(--accent-glow);
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.hero p {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}

.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-primary); margin-left: 1rem;
}

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

/* ===== SECTION HEADERS ===== */
.section-tag {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 600px; margin-bottom: 3rem;
}

/* ===== SERVICES ===== */
#services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 2rem; margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary); margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.credentials {
  list-style: none;
  display: flex; flex-direction: column; gap: 1rem;
}

.credentials li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.credentials li .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

.credentials li strong { display: block; margin-bottom: 0.2rem; }

.credentials li span { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== CONTACT ===== */
#contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-secondary); font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-detail .icon { font-size: 1.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .btn { align-self: flex-start; }

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }

  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
  .hero .btn { display: block; text-align: center; }

  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
}
