:root {
  --bg: #09090b;
  --bg-soft: #111113;
  --surface: #18181b;
  --border: #27272a;
  --border-light: #3f3f46;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-green: #84cc16;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-hover: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; object-fit: cover; object-position: center; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.logo {
  display: flex; align-items: center; text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.menu-btn {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* BUTTONS - original gradient style */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.88rem; }

.nav-cta {
  background: var(--gradient) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  opacity: 0.92;
  color: white !important;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7.5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -12%; right: -8%;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  bottom: 5%; left: -8%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2.5rem;
  max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.28);
  color: #c4b5fd;
  font-size: 0.78rem; font-weight: 500;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}
.hero-location {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

.hero-main {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem; align-items: end;
  position: relative; z-index: 2;
}
.hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-side p {
  color: var(--text-secondary);
  font-size: 1.1rem; line-height: 1.7;
  margin-bottom: 1.6rem; max-width: 340px;
}
.hero-side a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
}
.hero-side a:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-image {
  max-width: 1200px; width: 100%;
  margin: 3.5rem auto 0;
  height: 38vh; min-height: 280px;
  border-radius: 12px; overflow: hidden;
  position: relative; z-index: 2;
  border: 1px solid var(--border);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* SECTIONS */
section { padding: 6rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.5rem;
}
.section-num {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.section-label-right {
  font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

/* WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all 0.3s ease;
  display: block;
}
.work-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.work-card:nth-child(3n+1) { grid-column: span 2; }
.work-thumb {
  aspect-ratio: 16/10;
  overflow: hidden; background: #1a1a1a;
}
.work-card:nth-child(3n+1) .work-thumb { aspect-ratio: 21/9; }
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.work-body h3 { font-size: 1.1rem; font-weight: 600; }
.work-tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2); white-space: nowrap;
}

/* SERVICES */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  opacity: 0; transition: opacity 0.3s;
  border-radius: 12px 12px 0 0;
}
.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0.85rem;
}
.service-card h3 {
  font-size: 1.15rem; font-weight: 600; margin-bottom: 0.55rem;
}
.service-card p {
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65;
}

/* ABOUT */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-text p {
  color: var(--text-secondary); font-size: 1.05rem;
  margin-bottom: 1.1rem; line-height: 1.7;
}
.stats-row {
  display: flex; gap: 2.5rem;
  margin-top: 2.2rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.stat-item h4 {
  font-size: 2rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: 0.85rem; color: var(--text-muted); }
.about-visual {
  height: 420px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* CTA */
.cta-section { text-align: center; padding: 5.5rem 2.5rem; }
.cta-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  max-width: 680px; margin: 0 auto;
}
.cta-box h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.cta-box p { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* CONTACT */
.contact { background: var(--bg-soft); }
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}
.contact-info h2 {
  font-size: 2.1rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 0.85rem;
}
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-meta { display: flex; flex-direction: column; gap: 1.1rem; }
.meta-item { color: var(--text-secondary); font-size: 0.95rem; }
.meta-item strong { color: var(--text); display: block; font-weight: 600; margin-bottom: 0.1rem; }
.meta-item a { color: var(--accent-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.35rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2.2rem 2.5rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.25rem;
}
.footer-logo img { height: 28px; width: auto; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(3n+1) { grid-column: span 1; }
  .work-card:nth-child(3n+1) .work-thumb { aspect-ratio: 16/10; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 1.25rem;
    border-bottom: 1px solid var(--border); gap: 1rem;
  }
  .menu-btn { display: block; }
}
@media (max-width: 640px) {
  section, .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-top: 6.5rem; }
  .work-grid, .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 1.4rem; }
}
