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

:root {
  --bg: #0b0f1a;
  --surface: #111827;
  --surface2: #1a2236;
  --accent: #5b9bd5;
  --accent2: #7ec8e3;
  --accent-glow: rgba(91,155,213,0.18);
  --text: #e8edf5;
  --muted: #7a8aaa;
  --border: rgba(91,155,213,0.13);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ─── NAV ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  backdrop-filter: blur(20px);
  background: rgba(11,15,26,0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
#navbar.scrolled { border-color: var(--border); padding: 14px 60px; }
.nav-logo { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 2px; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color var(--transition); letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff;
  padding: 10px 22px; border-radius: 40px;
  font-weight: 600; font-size: 0.85rem;
  transition: all var(--transition);
}
.nav-links .nav-cta:hover { background: var(--accent2); transform: translateY(-1px); color: #fff; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 140px 60px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(91,155,213,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,155,213,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(91,155,213,0.07), transparent);
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(91,155,213,0.1);
  color: var(--accent2);
  border: 1px solid rgba(91,155,213,0.3);
  padding: 6px 16px; border-radius: 40px;
  font-size: 0.8rem; letter-spacing: 1px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-title .line { display: block; animation: fadeUp 0.7s ease both; }
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; color: var(--accent); }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }
.hero-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 480px; margin-bottom: 36px; animation: fadeUp 0.7s ease 0.6s both; }
.hero-sub em { color: var(--text); font-style: normal; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 52px; animation: fadeUp 0.7s ease 0.7s both; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: 40px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition); display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(91,155,213,0.3); }
.btn-primary.full-width { width: 100%; text-align: center; padding: 16px; font-size: 1rem; }
.btn-ghost { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color var(--transition); }
.btn-ghost:hover { color: var(--text); }
.hero-stats { display: flex; gap: 40px; animation: fadeUp 0.7s ease 0.85s both; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

/* Browser Mockup */
.hero-visual { position: relative; z-index: 1; animation: fadeUp 0.8s ease 0.4s both; }
.browser-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(91,155,213,0.08);
}
.browser-bar { background: #151d2e; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-url { background: #1e2a40; flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; color: var(--muted); }
.browser-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-hero-block { height: 100px; background: linear-gradient(135deg, #1a2236, #243050); border-radius: 8px; animation: shimmer 2s infinite; }
.mock-row { display: flex; gap: 8px; }
.mock-card { flex: 1; height: 56px; background: #1a2236; border-radius: 6px; animation: shimmer 2s infinite; }
.mock-card:nth-child(2) { animation-delay: 0.2s; }
.mock-card:nth-child(3) { animation-delay: 0.4s; }
.mock-text-block { height: 10px; background: #1a2236; border-radius: 40px; animation: shimmer 2s infinite; }
.mock-text-block.short { width: 60%; }
.mock-btn-block { height: 32px; width: 120px; background: var(--accent); border-radius: 40px; opacity: 0.7; }

@keyframes shimmer { 0%,100% { opacity: 0.4; } 50% { opacity: 0.9; } }

.float-badge {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 40px;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}
.badge-1 { top: 10%; right: -5%; animation-delay: 0s; }
.badge-2 { bottom: 30%; right: -8%; animation-delay: 0.8s; }
.badge-3 { bottom: 5%; left: 5%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ─── MARQUEE ─── */
.marquee-wrap { overflow: hidden; background: var(--accent); padding: 14px 0; }
.marquee-track {
  display: flex; gap: 40px;
  width: max-content;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-track span { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 2px; color: #fff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS SHARED ─── */
section { padding: 100px 60px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; color: var(--accent2); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: 1px; line-height: 1.1; }
.accent-text { color: var(--accent); }

/* ─── SERVICES ─── */
.services { background: var(--surface); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.service-card {
  background: var(--bg); padding: 40px 36px;
  position: relative; transition: background var(--transition); cursor: default;
}
.service-card::before {
  content: attr(data-index); position: absolute; top: 20px; right: 24px;
  font-family: var(--font-display); font-size: 3.5rem; color: rgba(91,155,213,0.05); line-height: 1;
}
.service-card:hover { background: var(--surface2); }
.service-card.featured { background: var(--accent); }
.service-card.featured .service-icon,
.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-link { color: #fff; }
.service-card.featured:hover { background: #4a8ec4; }
.service-icon { font-size: 2rem; margin-bottom: 20px; display: block; color: var(--accent); }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.service-link { color: var(--accent2); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.service-link:hover { text-decoration: underline; }
.service-card.featured .service-link { color: #fff; }

/* ─── WORK ─── */
.work { background: var(--bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(91,155,213,0.2);
  border-color: rgba(91,155,213,0.3);
}

/* Live screenshot iframe embed */
.portfolio-preview {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #0d1525;
}
.portfolio-preview iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  filter: brightness(0.92);
}
.portfolio-preview-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, transparent 50%, var(--surface) 100%);
}
.portfolio-preview-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--accent); color: #fff;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
}

.portfolio-info { padding: 24px 28px 28px; }
.portfolio-rank {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 3px;
  color: var(--accent2); margin-bottom: 8px;
}
.portfolio-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-info p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.portfolio-tag-item {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem;
}
.portfolio-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: color var(--transition);
}
.portfolio-link:hover { color: var(--accent2); }

/* ─── PROCESS ─── */
.process { background: var(--surface); }
.process-steps { display: flex; align-items: flex-start; gap: 0; max-width: 1000px; margin: 0 auto; }
.process-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.process-line { flex: 0 0 40px; height: 1px; background: var(--border); align-self: flex-start; margin-top: 36px; }
.ps-num { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.ps-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.ps-body p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ─── CONTACT ─── */
.contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; max-width: 1100px; margin: 0 auto; }
.contact-left .section-tag { text-align: left; }
.contact-left h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; margin-bottom: 16px; }
.contact-left p { color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.cib { display: flex; align-items: center; gap: 16px; }
.cib-icon { font-size: 1.4rem; width: 48px; height: 48px; background: var(--surface2); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.cib-label { color: var(--muted); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.cib-value { font-weight: 600; color: var(--text); font-size: 0.95rem; text-decoration: none; }
.cib-value:hover { color: var(--accent); }

.contact-right form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; }
.form-msg { font-size: 0.88rem; margin-top: 8px; min-height: 20px; }
.form-msg.success { color: var(--accent2); }
.form-msg.error { color: #ff6b6b; }

/* ─── FOOTER ─── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 60px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 2rem; letter-spacing: 3px; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer-tagline { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 36px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom span { color: var(--muted); font-size: 0.82rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 120px 40px 60px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  section { padding: 70px 24px; }
  .hero { padding: 100px 24px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-line { width: 1px; height: 32px; flex: none; margin: 0; align-self: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  footer { padding: 40px 24px 24px; }
}
