:root {
  --bg-0: #000000;
  --bg-1: #0b0b0c;
  --bg-2: #121214;
  --text: #ffffff; /* Ubuntu white */
  --muted: #ffffff;
  --brand: #6ee7ff;
  --brand-strong: #22d3ee;
  --card: #15161a;
  --border: #26272b;
  --focus: #7dd3fc;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  color: var(--text);
  font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.4px;
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.nav-list a { color: var(--text); text-decoration: none; }

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 96px 0 72px;
  text-align: left;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.15;
}

.hero-subtitle { margin: 0 0 28px; color: var(--text); max-width: 62ch; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #001018;
  border: none;
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: #111216; }

.section { padding: 56px 0; }
.section-title { margin: 0 0 22px; font-size: 1.75rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
}

.grid.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.work-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0f1013; }
.work-thumb { height: 140px; background: linear-gradient(135deg, #1f2030, #0c0d12); border-bottom: 1px solid var(--border); }
.work-title { margin: 12px 12px 0; }
.work-copy { margin: 6px 12px 14px; color: var(--text); }

.contact-form { display: grid; gap: 14px; max-width: 560px; }
.form-row { display: grid; gap: 6px; }
.form-row label { color: var(--text); }
.form-row input, .form-row textarea {
  background: #0a0b0e;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.form-row input:focus, .form-row textarea:focus, .btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-footer { border-top: 1px solid var(--border); margin-top: 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.small { color: var(--text); font-size: 0.9rem; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hover motion */
.card { transition: transform 240ms ease, box-shadow 240ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(34, 211, 238, 0.15), 0 10px 30px rgba(0,0,0,0.35); }

.work-item { transition: transform 240ms ease; }
.work-item:hover { transform: translateY(-4px); }
.work-thumb { transition: transform 320ms ease, filter 320ms ease; }
.work-item:hover .work-thumb { transform: scale(1.03); filter: brightness(1.1) saturate(1.1); }

.btn { transition: transform 160ms ease, filter 160ms ease; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 120%; height: 100%; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.22) 40%, rgba(255,255,255,0.06) 60%, transparent 100%); transform: skewX(-20deg); }
.btn:hover::after { animation: shine 900ms ease forwards; }
@keyframes shine { to { left: 120%; } }

/* Floating chat buttons */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  transition: transform 180ms ease, filter 180ms ease;
  animation: pulse 3s ease-in-out infinite;
}

.fab:hover { transform: translateY(-3px); }

.fab-whatsapp { background: #25D366; }
.fab-telegram { background: #229ED9; }

@media (max-width: 640px) {
  .chat-fab { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 48px; height: 48px; }
}

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.0); } 50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.12); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-text {
  font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.4px;
}

/* Responsive navigation */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; position: absolute; right: 4%; top: 60px; flex-direction: column; background: #0a0b0e; border: 1px solid var(--border); padding: 10px; border-radius: 12px; }
  .nav-list.open { display: flex; }
}

/* Mobile-first refinements */
@media (max-width: 640px) {
  .header-inner { padding: 12px 0; }
  .brand { font-size: 1.15rem; }

  .hero { padding: 72px 0 48px; }
  .hero-title { font-size: clamp(1.8rem, 7.2vw, 2.4rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; height: 48px; }

  .section { padding: 42px 0; }
  .section-title { font-size: 1.4rem; }

  .cards { grid-template-columns: 1fr; }
  .grid.work-grid { grid-template-columns: 1fr; }

  .form-row input, .form-row textarea { font-size: 1rem; }
  label, input, textarea, button { touch-action: manipulation; }
}


