:root {
  --bg-deep: #1a0a22;
  --bg-mid: #2d0b35;
  --purple: #4a1a5c;
  --orange: #ff8c32;
  --orange-bright: #ffb347;
  --red: #e85d4c;
  --gold: #f5c842;
  --text: #f5f0f8;
  --text-muted: #b8a8c4;
  --border: rgba(255, 140, 50, 0.25);
  --glow: rgba(255, 140, 50, 0.35);
  --font: 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --container: min(1100px, 92vw);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: var(--container); margin: 0 auto; }

/* Background effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 500px; height: 500px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0.25;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  bottom: 20%; left: -150px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  opacity: 0.15;
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,140,50,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,50,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 10, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  position: relative;
  z-index: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.logo-img { border-radius: 8px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  color: #1a0a22;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}
.btn-outline {
  background: transparent;
  color: var(--orange-bright);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--orange);
  background: rgba(255, 140, 50, 0.08);
}
.btn-nav { display: none; }
.btn-full { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(26, 10, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #1a0a22;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-bright);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 50, 0.4) 0%, transparent 65%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.devices {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.device {
  background: linear-gradient(145deg, #3d1f4a, #2a1535);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.device.laptop {
  width: 220px;
  padding: 10px 10px 14px;
  border-radius: 10px 10px 4px 4px;
}
.device.phone {
  width: 72px;
  padding: 8px 6px 10px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.device-screen {
  background: #1a0a22;
  border-radius: 4px;
  padding: 10px;
  min-height: 100px;
}
.device.phone .device-screen { min-height: 120px; }

.ui-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 3px;
  margin-bottom: 8px;
  width: 60%;
}
.ui-blocks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ui-blocks.vertical { flex-direction: column; }
.ui-blocks span {
  display: block;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--purple), rgba(255,140,50,0.3));
  flex: 1;
  min-width: 40px;
}
.ui-blocks.vertical span { min-width: 100%; height: 22px; }

.float-icon {
  position: absolute;
  font-size: 1.2rem;
  color: var(--orange);
  opacity: 0.5;
  font-family: monospace;
}
.icon-code { top: 15%; left: 5%; }
.icon-plus { top: 40%; right: 8%; font-size: 1.5rem; }
.icon-gear { bottom: 25%; left: 15%; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-title .accent {
  color: var(--orange-bright);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: -1.5rem auto 2.25rem;
  max-width: 720px;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(160deg, rgba(74, 26, 92, 0.4) 0%, rgba(26, 10, 34, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 50, 0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 52px; height: 52px;
  margin-bottom: 1.25rem;
  color: var(--orange);
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card strong { color: var(--orange-bright); }

/* Projects */
.projects { background: rgba(45, 11, 53, 0.22); }
.project-card { display: flex; flex-direction: column; gap: 0.75rem; }
.project-link { margin-top: 0.5rem; width: fit-content; }

/* Why */
.why { background: rgba(45, 11, 53, 0.4); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.why .section-title { text-align: left; margin-bottom: 1.5rem; }

.check-list {
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.consult-box {
  background: linear-gradient(135deg, rgba(255, 140, 50, 0.12) 0%, rgba(232, 93, 76, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.consult-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange-bright);
  margin-bottom: 0.75rem;
}
.consult-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Contact */
.contact-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-intro { color: var(--text-muted); margin-bottom: 2rem; }

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 2rem;
  background: rgba(74, 26, 92, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  min-width: 220px;
}
.contact-item:hover {
  border-color: var(--orange);
  background: rgba(255, 140, 50, 0.1);
}
.contact-icon {
  width: 32px; height: 32px;
  color: var(--orange);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-value { font-weight: 600; font-size: 1rem; }

.contact-form {
  text-align: left;
  background: rgba(26, 10, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 50, 0.15);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-inner p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-logo {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.footer-copy { font-size: 0.8rem !important; opacity: 0.7; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 300px; order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .why .section-title { text-align: center; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links, .btn-nav { display: none; }
  .lang-switcher { order: 3; margin-left: auto; margin-right: 0.5rem; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(26, 10, 34, 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav.open .btn-nav {
    display: inline-flex;
    margin: 0 1.5rem 1rem;
  }
  .hero { padding-top: 6rem; min-height: auto; }
  .section { padding: 3.5rem 0; }
}

/* ── Footer social ── */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover {
  color: var(--orange-bright);
  border-color: var(--orange);
  background: rgba(255, 140, 50, 0.08);
}
