@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --surface: #1c1c27;
  --surface2: #222232;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0eff8;
  --muted: #9896b0;
  --accent: #6c5ff5;
  --accent2: #a08bff;
  --accent3: #f5a623;
  --green: #3ecf8e;
  --pink: #ff6b9d;
  --cyan: #00d4ff;
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.15; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; fill: white; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.02em; transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:1px; background:var(--accent2);
}
.nav-cta {
  background: var(--accent); color: white;
  padding: 9px 22px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,95,245,0.4); }

/* PAGE WRAPPER */
.page-wrap { padding-top: 72px; }

/* SECTION */
section { padding: 100px 5vw; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 520px; font-weight: 300; line-height: 1.8;
}
.section-head { margin-bottom: 4rem; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(108,95,245,0.45); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border2); color: var(--text);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent); }

/* STATS BAR */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.stat-item {
  padding: 2rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-size: 2.4rem;
  font-weight: 700; color: var(--accent2);
  display: block; margin-bottom: 4px;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  color: var(--text); display: block;
}
.service-card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(108,95,245,0.18);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.service-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 1.2rem; font-size: 0.82rem; color: var(--accent2);
  font-weight: 600; letter-spacing: 0.04em; transition: gap 0.2s;
}
.service-card:hover .service-arrow { gap: 8px; }

/* PROJECT CARDS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.project-thumb {
  height: 200px; display: flex; align-items: center;
  justify-content: center; font-size: 3rem;
}
.project-info { padding: 1.25rem; }
.project-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.project-info p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.project-links { display: flex; gap: 0.75rem; }
.proj-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-sm);
  text-align: center; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.proj-btn.live { background: var(--accent); color: white; }
.proj-btn.live:hover { box-shadow: 0 6px 20px rgba(108,95,245,0.4); }
.proj-btn.preview { background: var(--surface2); border: 1px solid var(--border2); color: var(--text); }
.proj-btn.preview:hover { border-color: var(--accent); }

/* TYPE CARDS (subtypes) */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.type-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; cursor: pointer;
  transition: all 0.3s; color: var(--text);
}
.type-card:hover { border-color: var(--accent2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(108,95,245,0.18); }
.type-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.type-card p { font-size: 0.85rem; color: var(--muted); }
.type-badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  background: rgba(108,95,245,0.15); color: var(--accent2);
}

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,5,10,0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 20px; width: 90vw; max-width: 900px;
  max-height: 85vh; overflow-y: auto;
  padding: 2.5rem; position: relative;
  transform: translateY(30px); transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; font-family: var(--font-body);
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.testi-stars { color: var(--accent3); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-text { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; font-family: var(--font-head);
}
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.8rem; color: var(--muted); }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item:first-child { grid-column: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-placeholder {
  width: 100%; height: 260px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; transition: transform 0.5s ease;
}
.gallery-item:first-child .gallery-placeholder,
.gallery-item:nth-child(4) .gallery-placeholder { height: 320px; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 1.5rem;
  transform: translateY(20px); opacity: 0; transition: all 0.35s;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
.gallery-cat { font-size: 0.8rem; color: var(--accent2); font-weight: 500; }

/* CLIENT LOGOS */
.logos-track-wrap { overflow: hidden; padding: 20px 0; }
.logos-track {
  display: flex; gap: 3rem; align-items: center;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.client-logo:hover { color: var(--text); border-color: var(--border2); }

/* MAP / CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--accent2); fill: none; stroke-width: 1.5; }
.contact-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-val { font-size: 0.95rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; height: 380px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: none; filter: invert(0.9) hue-rotate(180deg); }

/* FOOTER */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 60px 5vw 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.footer-about p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover { border-color: var(--accent); background: rgba(108,95,245,0.1); }
.social-link svg { width: 16px; height: 16px; fill: var(--muted); }

/* PAGE HERO */
.page-hero {
  padding: 80px 5vw 60px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.6rem,5vw,4.5rem); font-weight: 700; margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 600px; font-weight: 300; }
.grad { background: linear-gradient(135deg, var(--accent2), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-gold { background: linear-gradient(135deg, var(--accent3), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-cyan { background: linear-gradient(135deg, var(--cyan), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-green { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* PORTFOLIO FILTER */
.portfolio-filter { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); transition: all 0.2s; font-family: var(--font-body);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* ABOUT PAGE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual {
  position: relative; height: 460px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.about-gfx {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(108,95,245,0.2) 0%, transparent 60%);
}
.about-visual-inner { position: relative; z-index: 2; text-align: center; padding: 2rem; }
.about-big { font-family: var(--font-head); font-size: 7rem; font-weight: 700; color: var(--accent); opacity: 0.15; line-height: 1; }
.values-list { list-style: none; margin-top: 2rem; }
.values-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.75rem; font-size: 0.95rem; }
.val-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
}
.team-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.team-card p { font-size: 0.85rem; color: var(--muted); }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: var(--surface); }

/* HERO SLIDES */
.hero-slides { position: relative; height: calc(100vh - 72px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; padding: 0 5vw;
  opacity: 0; transition: opacity 0.9s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }
.hero-slide-bg { position: absolute; inset: 0; }
.s1bg { background: radial-gradient(ellipse at 60% 40%, #1a1040 0%, #0a0a0f 70%); }
.s2bg { background: radial-gradient(ellipse at 30% 60%, #0f2040 0%, #0a0a0f 70%); }
.s3bg { background: radial-gradient(ellipse at 70% 30%, #1a0f30 0%, #0a0a0f 70%); }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15; pointer-events: none;
}
.orb1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -100px; }
.orb2 { width: 400px; height: 400px; background: var(--pink); bottom: -100px; left: -100px; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,95,245,0.15); border: 1px solid rgba(108,95,245,0.3);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; color: var(--accent2);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 2.5rem; font-weight: 300; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 2rem; left: 5vw; z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: var(--accent2); width: 28px; border-radius: 3px; }

/* COLORS for placeholders */
.c1 { background: linear-gradient(135deg, #1a1040, #2d1b6e); }
.c2 { background: linear-gradient(135deg, #0f2b40, #1a4d7a); }
.c3 { background: linear-gradient(135deg, #2b0f40, #5a1a6e); }
.c4 { background: linear-gradient(135deg, #0f3040, #0f5a5a); }
.c5 { background: linear-gradient(135deg, #3d1a0f, #7a3b1a); }
.c6 { background: linear-gradient(135deg, #1a3020, #2d6e3a); }
.c7 { background: linear-gradient(135deg, #2a1a40, #4d3a7a); }
.c8 { background: linear-gradient(135deg, #0f2b1a, #1a5a3a); }
.c9 { background: linear-gradient(135deg, #1a1a1a, #3a3a3a); }
.c10 { background: linear-gradient(135deg, #1a0f40, #3a1a7a); }

/* BREADCRUMB */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { color: var(--text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child, .gallery-item:nth-child(4) { grid-column: auto; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 70px 5vw; }
}
