:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --surface2: #14142a;
  --border: rgba(255,255,255,0.07);
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-dim: rgba(124,58,237,0.15);
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --rose: #fb7185;
  --blue: #60a5fa;
  --text: #f1f0ff;
  --muted: #8b8aab;
  --faint: #3a3a5c;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4vw;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.logo-text span { color: var(--violet-light); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 99px;
  color: var(--violet-light);
  font-family: 'Times New Roman', serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: rgba(124,58,237,0.3);
  border-color: var(--violet-light);
  color: #fff;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 4vw 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  font-family: 'Times New Roman', serif;
  color: var(--violet-light);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Times New Roman', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet-light) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-num span { color: var(--violet-light); }

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--faint);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 0.6s ease both;
}

.scroll-hint span {
  font-family: 'Times New Roman', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--faint);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px; height: 30px;
  border: 1px solid var(--faint);
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-arrow::after {
  content: '';
  width: 3px; height: 6px;
  background: var(--violet-light);
  border-radius: 2px;
  animation: scrollDown 1.5s ease infinite;
}

@keyframes scrollDown {
  0%   { opacity: 0; transform: translateY(-2px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(6px); }
}

/* ── SECTION HEADERS ── */
.section { padding: 6rem 4vw; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Times New Roman', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--violet);
}

.section-title {
  font-family: 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
}

/* ── PORTFOLIO GRID ── */
.portfolio-section { max-width: 1280px; margin: 0 auto; }

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Featured (first) card spans 2 cols */
.project-card:first-child {
  grid-column: span 2;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--card-color, var(--violet)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color, var(--violet));
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px -10px var(--card-color, var(--violet));
}

.project-card:hover::before { opacity: 0.06; }

/* Browser Mockup */
.card-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-card:first-child .card-visual { height: 260px; }

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.35rem;
  z-index: 2;
}

.bb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.bb-dot:nth-child(1) { background: #ff5f57; }
.bb-dot:nth-child(2) { background: #febc2e; }
.bb-dot:nth-child(3) { background: #28c840; }

.bb-url {
  margin-left: 0.6rem;
  flex: 1;
  height: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', serif;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.card-scene {
  position: absolute;
  top: 32px; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

/* ── Scene styles per card ── */
.scene-logistics {
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 100%);
}

.scene-logistics .scene-el {
  position: absolute;
}

.scene-construction {
  background: linear-gradient(135deg, #1a0e00 0%, #2a1800 100%);
}

.scene-turbo {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 100%);
}

.scene-realty {
  background: linear-gradient(135deg, #001a1a 0%, #003030 100%);
}

.scene-travel {
  background: linear-gradient(135deg, #000d1a 0%, #001a33 100%);
}

.scene-lms {
  background: linear-gradient(135deg, #06001a 0%, #0f0030 100%);
}

.scene-zdoda {
  background: linear-gradient(135deg, #060614 0%, #10103a 100%);
}

/* Decorative elements inside scenes */
.scene-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

/* Navigation mockup inside cards */
.scene-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.scene-nav-dot { width: 28px; height: 5px; border-radius: 3px; }
.scene-nav-logo { width: 18px; height: 14px; border-radius: 2px; margin-right: 4px; }

.scene-hero-text {
  position: absolute;
  left: 16px;
  top: 38px;
}

.sht-line {
  border-radius: 3px;
  margin-bottom: 5px;
}

.scene-card-row {
  position: absolute;
  bottom: 10px; left: 12px; right: 12px;
  display: flex;
  gap: 8px;
}

.scene-mini-card {
  flex: 1;
  border-radius: 6px;
  padding: 6px 7px;
  background: rgba(255,255,255,0.06);
}

.smc-line { height: 4px; border-radius: 2px; margin-bottom: 3px; }

/* ── Card content ── */
.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid;
}

.tag-industry {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--muted);
}

.tag-type {
  background: var(--violet-dim);
  border-color: rgba(124,58,237,0.25);
  color: var(--violet-light);
}

.card-name {
  font-family: 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-card:first-child .card-name { font-size: 1.5rem; }

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--faint);
  font-family: 'Times New Roman', serif;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-link:hover {
  background: var(--violet-dim);
  border-color: rgba(124,58,237,0.4);
  color: var(--violet-light);
}

.card-link svg { width: 12px; height: 12px; }

/* ── FEATURED LABEL ── */
.featured-badge {
  position: absolute;
  top: 50px; right: 14px;
  background: linear-gradient(135deg, var(--violet), #4f46e5);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-family: 'Times New Roman', serif;
  letter-spacing: 0.08em;
  color: #fff;
  z-index: 10;
}

/* ── SERVICES BANNER ── */
.services-banner {
  padding: 3rem 4vw;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-family: 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-light);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── INDUSTRIES ── */
.industries-section { max-width: 1280px; margin: 0 auto; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.industry-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ic-color, var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.industry-card:hover::after { transform: scaleX(1); }

.industry-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--surface2);
}

.ic-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ic-title {
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ic-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CTA ── */
.cta-section {
  padding: 6rem 4vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.cta-section h2 {
  font-family: 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-section h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--violet);
  border: 1px solid var(--violet);
  border-radius: 12px;
  color: #fff;
  font-family: 'Times New Roman', serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Times New Roman', serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ── FOOTER ── */
footer {
  padding: 2rem 4vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .foot-left {
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

footer .foot-left span { color: var(--violet-light); }

footer .foot-right {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Times New Roman', serif;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: span 2; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 1.5rem; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-column: span 1; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 1.2rem; }
  .stat-num { font-size: 1.8rem; }
  nav { padding: 1rem 1rem; }
}
