/* ============================================================
   Technologies Budgie — Global Stylesheet
   ============================================================ */



/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #07080a;
  --bg-2:        #0d0f13;
  --bg-3:        #13161c;
  --surface:     #181c24;
  --border:      rgba(255,255,255,0.07);
  --border-hi:   rgba(255,255,255,0.15);

  --accent:      #00c8ff;
  --accent-2:    #0085ff;
  --accent-warm: #ff6b35;
  --green:       #00e5a0;

  --text-1:      #f0f2f7;
  --text-2:      #9aa3b5;
  --text-3:      #5a6278;

  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --transition:    0.4s var(--ease-out-expo);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Noise texture overlay ──────────────────────────────────── */
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='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-xl { font-size: clamp(3rem, 7vw, 6rem); }
.display-lg { font-size: clamp(2.2rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 120px 0; }
.section--sm { padding: 80px 0; }

/* ── Gradient text ──────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-warm {
  background: linear-gradient(135deg, #fff 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 0 32px rgba(0,136,255,0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 48px rgba(0,200,255,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,200,255,0.05);
}
.btn-ghost {
  color: var(--text-2);
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--text-1); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(7,8,10,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.nav__logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover, .nav__link.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile nav ─────────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,8,10,0.97);
  backdrop-filter: blur(32px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 32px;
}
.nav__mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.card__body { color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  margin: 0;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid;
}
.badge--blue {
  background: rgba(0,133,255,0.1);
  border-color: rgba(0,133,255,0.3);
  color: var(--accent);
}
.badge--green {
  background: rgba(0,229,160,0.1);
  border-color: rgba(0,229,160,0.3);
  color: var(--green);
}
.badge--orange {
  background: rgba(255,107,53,0.1);
  border-color: rgba(255,107,53,0.3);
  color: var(--accent-warm);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer__brand p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 260px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  color: var(--text-2);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--text-1); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { color: var(--text-3); transition: color 0.2s; }
.footer__bottom-links a:hover { color: var(--text-2); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scan {
  0%   { top: 0; }
  100% { top: 100%; }
}

/* ── Reveal on scroll ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Grid utilities ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Section header ─────────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 16px;
  line-height: 1.75;
}
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ── Glow effects ───────────────────────────────────────────── */
.glow-blue {
  box-shadow: 0 0 80px rgba(0,133,255,0.15);
}
.glow-cyan {
  box-shadow: 0 0 80px rgba(0,200,255,0.12);
}

/* ── Status pill ────────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.2);
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: pulse 1.8s infinite;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links, .nav__actions .btn-outline { display: none; }
  .nav__hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Lang toggle ────────────────────────────────────────────── */
#lang-toggle {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
#lang-toggle:hover {
  color: var(--text-1);
  border-color: var(--accent);
  background: rgba(0,200,255,0.05);
}
