﻿:root {
  --bg: #06141b;
  --surface: rgba(9, 35, 46, 0.65);
  --surface-strong: rgba(10, 44, 58, 0.86);
  --text: #eaf8ff;
  --muted: #9dc3d4;
  --accent: #21e2b9;
  --accent-2: #ff9a3e;
  --line: rgba(159, 211, 234, 0.2);
  --maxw: 1180px;
  --radius: 20px;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.32);
  --scroll-progress: 0;
  --scroll-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1300px 700px at -10% -10%, rgba(29, 176, 149, 0.24), transparent 70%),
    radial-gradient(1200px 800px at 120% 120%, rgba(255, 154, 62, 0.18), transparent 72%),
    linear-gradient(160deg, #051018, #081d28 52%, #0a1f2c);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .logo { margin-top: 0; font-family: "Sora", "Segoe UI", sans-serif; letter-spacing: -0.02em; }
p { line-height: 1.7; }
a { color: inherit; }

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
  opacity: 0.56;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.6px);
  background-size: 5px 5px;
}

#scroll-aura {
  position: fixed;
  inset: -10%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at calc(8% + 35% * var(--scroll-progress)) 14%, rgba(33, 226, 185, 0.24), transparent 70%),
    radial-gradient(30% 30% at calc(92% - 50% * var(--scroll-progress)) 82%, rgba(255, 154, 62, 0.26), transparent 72%);
  transform: translateY(calc(var(--scroll-y) * -0.12));
  transition: background 0.25s linear;
}

#parallax-clouds {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.cloud.one { width: 320px; height: 110px; top: 18%; left: 8%; background: rgba(38, 211, 178, 0.4); animation: cloudA 14s ease-in-out infinite; }
.cloud.two { width: 360px; height: 120px; top: 52%; right: 10%; background: rgba(255, 160, 78, 0.34); animation: cloudB 18s ease-in-out infinite; }
.cloud.three { width: 240px; height: 90px; top: 75%; left: 40%; background: rgba(119, 216, 255, 0.3); animation: cloudC 16s ease-in-out infinite; }

#cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(33, 226, 185, 0.24) 0%, rgba(33, 226, 185, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

#loader {
  position: fixed;
  inset: 0;
  background: #041017;
  display: grid;
  place-content: center;
  gap: 18px;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { font-family: "Sora", sans-serif; text-transform: lowercase; font-size: clamp(1.6rem, 6vw, 3rem); letter-spacing: 0.08em; }
.loader-line {
  width: min(65vw, 280px);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}
.loader-line::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loaderMove 1.3s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96%, var(--maxw));
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 25, 34, 0.62);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.logo-text {
  font-size: 1.2rem;
  text-transform: lowercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #dffef7 0%, #9cf6e7 30%, #ffd29e 58%, #dffef7 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  animation: logoShine 4.5s linear infinite;
}

.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.25s ease; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn,
.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(9, 42, 56, 0.42);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lang-btn { min-width: 54px; font-weight: 700; }
.lang-btn:hover,
.ghost-btn:hover { transform: translateY(-2px); border-color: rgba(255, 154, 62, 0.65); }

.section { width: min(92%, var(--maxw)); margin: 0 auto; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-top: 90px;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 4rem); margin-bottom: 14px; line-height: 1.06; }
.hero-text { color: var(--muted); max-width: 58ch; }
.rotating { margin-top: 1.1rem; font-size: 1.1rem; }
#rotating-word { color: var(--accent-2); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; margin-top: 1.4rem; flex-wrap: wrap; }

.primary-btn,
.secondary-btn {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: "Sora", sans-serif;
}
.primary-btn { color: #07211c; background: linear-gradient(120deg, var(--accent), #89ffe3); box-shadow: 0 8px 26px rgba(33, 226, 185, 0.3); }
.secondary-btn { color: var(--text); background: rgba(14, 53, 69, 0.55); border-color: var(--line); }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.primary-btn:hover,
.secondary-btn:hover,
.contact-form button:hover,
.chat-form button:hover { transform: translateY(-2px); }
.primary-btn.small { padding: 10px 14px; font-size: 0.95rem; }

.hero-art {
  min-height: 420px;
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(300px 300px at 30% 30%, rgba(33, 226, 185, 0.35), transparent 70%),
    radial-gradient(220px 220px at 80% 70%, rgba(255, 154, 62, 0.35), transparent 66%),
    rgba(9, 34, 45, 0.46);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  background: rgba(8, 43, 56, 0.74);
  border: 1px solid rgba(184, 232, 255, 0.25);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: #d8f5ff;
  backdrop-filter: blur(8px);
}
.hero-badge.one { top: 18%; left: 12%; animation: floatA 4.5s ease-in-out infinite; }
.hero-badge.two { top: 42%; right: 12%; animation: floatB 5.3s ease-in-out infinite; }
.hero-badge.three { bottom: 16%; left: 26%; animation: floatC 6.2s ease-in-out infinite; }
.pulse-ring {
  position: absolute;
  width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(33, 226, 185, 0.65);
  box-shadow: 0 0 0 0 rgba(33, 226, 185, 0.46);
  animation: pulse 2.6s infinite;
}

.stats { margin-top: -36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; backdrop-filter: blur(8px); }
.stat-card h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); color: #b7fff0; }
.stat-card p { margin: 0.35rem 0 0; color: var(--muted); }

.marquee-wrap {
  margin: 3rem auto 2rem;
  width: min(100%, 1300px);
  border-top: 1px solid rgba(170, 217, 235, 0.16);
  border-bottom: 1px solid rgba(170, 217, 235, 0.16);
  padding: 14px 0;
  overflow: hidden;
}
.marquee { display: flex; gap: 26px; white-space: nowrap; animation: marqueeMove 24s linear infinite; }
.marquee span { color: #d0ebf8; font-weight: 700; }

.section-head { margin-bottom: 1.3rem; }
.section h2 { font-size: clamp(1.55rem, 3.4vw, 2.7rem); margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(11, 43, 57, 0.6), rgba(9, 29, 39, 0.54));
  min-height: 180px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover { border-color: rgba(255, 154, 62, 0.52); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); }

.portfolio-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 8px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}
.portfolio-card h3 {
  margin: 0;
  line-height: 1.25;
}
.portfolio-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid rgba(173, 223, 243, 0.24);
  overflow: hidden;
  background: rgba(6, 25, 34, 0.55);
}
.portfolio-summary {
  margin: 0;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portfolio-card.expanded .portfolio-summary {
  display: block;
  overflow: visible;
}
.portfolio-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.portfolio-more {
  border: 1px solid rgba(173, 223, 243, 0.28);
  background: rgba(8, 35, 46, 0.56);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 13px;
  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.portfolio-more:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 154, 62, 0.6);
}
.portfolio-link {
  margin-top: 0;
}

.timeline { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.timeline-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); position: relative; }
.timeline-item span { font-size: 0.9rem; font-weight: 800; color: var(--accent-2); }
.timeline-item h3 { margin: 8px 0; }
.timeline-item p { margin: 0; color: var(--muted); }

.drive-section { margin-top: 24px; margin-bottom: 26px; }
.drive-scroll { position: relative; height: 240vh; }
.drive-sticky {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(255, 154, 62, 0.34);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(28, 18, 8, 0.38);
  backdrop-filter: blur(8px);
}
.drive-road-wrap {
  position: relative;
  height: 92px;
  border-radius: 14px;
  background: rgba(6, 24, 31, 0.8);
  border: 1px solid rgba(173, 223, 243, 0.2);
  overflow: hidden;
}
.drive-road {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}
.drive-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 12px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s ease;
}
.drive-car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 120px;
  transform: translate(0, -50%);
  transition: transform 0.16s ease-out;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.drive-car svg { width: 100%; height: auto; display: block; }
.wheel { animation: wheelSpin 0.7s linear infinite; transform-origin: center; }

.drive-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.drive-card {
  border: 1px solid rgba(173, 223, 243, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 30, 40, 0.7);
  opacity: 0.45;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.drive-card h3 { margin: 0 0 6px; font-size: 1rem; }
.drive-card p { margin: 0; color: #cbe7f5; font-size: 0.95rem; line-height: 1.5; }
.drive-card.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(33, 226, 185, 0.7);
  background: rgba(10, 43, 56, 0.88);
}

.contact-section { margin-top: 20px; margin-bottom: 80px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; }
.contact-copy { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.contact-points { margin-top: 1rem; color: #cde8f6; }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface-strong);
  display: grid;
  gap: 10px;
}
.contact-form label { display: grid; gap: 6px; font-size: 0.95rem; color: #d4eef9; }
.contact-form input,
.contact-form textarea,
.contact-form select,
.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(173, 223, 243, 0.2);
  background: rgba(4, 19, 26, 0.8);
  color: var(--text);
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.chat-form input:focus,
.chat-form textarea:focus { outline: none; border-color: rgba(33, 226, 185, 0.8); }

.form-status { min-height: 24px; margin: 4px 0 0; color: #cde8f6; }
.form-status.error { color: #ffd4ce; }

.site-footer { width: min(92%, var(--maxw)); margin: 0 auto 26px; border-top: 1px solid rgba(170, 217, 235, 0.2); padding-top: 18px; color: #8db3c4; }

.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(140deg, var(--accent), #59f6d5);
  color: #083126;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  z-index: 50;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 78px;
  width: min(360px, calc(100% - 20px));
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 26, 35, 0.95);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 60;
  overflow: hidden;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-header h3 { margin: 0; font-size: 1rem; }
.chat-header button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 8px;
}

.chat-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.chat-bubble { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 0.94rem; line-height: 1.45; }
.chat-bubble.user { align-self: flex-end; background: rgba(33, 226, 185, 0.26); border: 1px solid rgba(33, 226, 185, 0.5); }
.chat-bubble.bot { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.chat-intro-text { margin-bottom: 8px; }
.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-quick-btn {
  border: 1px solid rgba(173, 223, 243, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #d9f6ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  line-height: 1.1;
  cursor: pointer;
}
.chat-quick-btn:hover {
  border-color: rgba(36, 223, 186, 0.72);
  background: rgba(36, 223, 186, 0.16);
  color: #ebfffa;
}
.chat-form { padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-file-field {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #cde8f6;
}
.chat-file-field small {
  color: #9ec3d3;
  line-height: 1.35;
}
.chat-attachment {
  margin-top: 8px;
  display: grid;
  gap: 2px;
  border: 1px dashed rgba(173, 223, 243, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  color: #d7f6ff;
  text-decoration: none;
}
.chat-attachment strong {
  font-size: 0.88rem;
  line-height: 1.3;
}
.chat-attachment span {
  font-size: 0.76rem;
  color: #9cc4d6;
}
.chat-attachment:hover {
  border-color: rgba(255, 154, 62, 0.6);
  color: #fff2dd;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; padding-bottom: 22px; }
  .hero-art { min-height: 300px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: 1fr; }
  .drive-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { top: 8px; padding: 10px 12px; width: 98%; }
  .nav { display: none; }
  .stats { grid-template-columns: 1fr; margin-top: 0; }
  .service-grid,
  .timeline,
  .drive-cards { grid-template-columns: 1fr; }
  .drive-scroll { height: 280vh; }
  .drive-sticky { top: 78px; }
  .chat-toggle { right: 12px; bottom: 12px; }
  .chat-panel { right: 8px; width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes loaderMove {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(70%); }
  100% { transform: translateX(220%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 226, 185, 0.4); transform: translate(-50%, -50%) scale(0.95); }
  70% { box-shadow: 0 0 0 22px rgba(33, 226, 185, 0); transform: translate(-50%, -50%) scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(33, 226, 185, 0); transform: translate(-50%, -50%) scale(0.95); }
}

@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes floatC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes marqueeMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes cloudA { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(45px) translateY(-14px); } }
@keyframes cloudB { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(-40px) translateY(18px); } }
@keyframes cloudC { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(35px) translateY(-10px); } }
@keyframes wheelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes logoShine { from { background-position: 0% 0; } to { background-position: 240% 0; } }
