/* ===========================
   EHITRAIT SOLUTION — style.css
   =========================== */

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

:root {
  --bg: #07080a;
  --bg2: #0d0f13;
  --surface: #12151c;
  --border: rgba(255,255,255,0.07);
  --text: #e8eaf0;
  --muted: #7a7f94;
  --accent: #5cf0a0;
  --accent2: #3b82f6;
  --accent3: #a855f7;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(92,240,160,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(7,8,10,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 40px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text); text-decoration: none;
  margin-right: auto;
}
.logo-e { color: var(--accent); }
.logo-dot { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #07080a;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 120px 80px 80px;
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(92,240,160,0.06);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(59,130,246,0.06);
  bottom: 100px; left: 50px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  color: var(--muted); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -2px; margin-bottom: 24px;
}
.accent-text {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
}

.hero-sub {
  color: var(--muted); font-size: 17px;
  max-width: 440px; margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--accent); color: #07080a;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(92,240,160,0.3);
}
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  color: var(--text); border: 1px solid var(--border);
  padding: 13px 28px; border-radius: 10px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* Code card */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.code-dots {
  display: flex; gap: 7px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.code-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border);
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

code { font-family: 'Courier New', monospace; line-height: 1.9; }
pre { padding: 20px 24px; overflow-x: auto; }

.c-key { color: #c792ea; }
.c-var { color: #82aaff; }
.c-fn  { color: #5cf0a0; }
.c-prop{ color: #f07178; }
.c-str { color: #c3e88d; }
.c-num { color: #f78c6c; }
.c-comment { color: #546e7a; }

/* ---- SERVICES ---- */
.services {
  padding: 100px 0;
  background: var(--bg2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: rgba(92,240,160,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--accent); margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.service-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: var(--accent2); text-transform: uppercase;
}

/* ---- ABOUT ---- */
.about { padding: 100px 0; }
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.stats-row { display: flex; gap: 40px; margin-top: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat span { color: var(--accent); font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.about-card-stack { position: relative; height: 320px; }
.acard {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; width: 280px;
}
.acard-icon { font-size: 28px; margin-bottom: 10px; }
.acard p { font-size: 14px; color: var(--muted); }
.acard-1 { top: 0; left: 0; z-index: 3; }
.acard-2 { top: 90px; left: 40px; z-index: 2; border-color: rgba(59,130,246,0.2); }
.acard-3 { top: 180px; left: 80px; z-index: 1; border-color: rgba(168,85,247,0.2); }

/* ---- WORK ---- */
.work { padding: 100px 0; background: var(--bg2); }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.work-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.work-info { padding: 24px; }
.work-info h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.work-info p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.work-tech { font-size: 11px; color: var(--accent3); letter-spacing: 1px; text-transform: uppercase; }

/* ---- CONTACT ---- */
.contact { padding: 100px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 16px;
}
.contact-text p { color: var(--muted); margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.contact-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--accent); text-align: center; min-height: 20px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 120px 24px 60px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .work-grid { grid-template-columns: repeat(2,1fr); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-card-stack { height: 200px; }
  .acard { width: 260px; }
}
@media (max-width: 640px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 70px 0 0 0;
    background: var(--bg); padding: 40px 24px; gap: 28px;
  }
  .nav-links.open a { font-size: 22px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-title { letter-spacing: -1px; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
}
