/* =============================================
   SANOTEMA — style.css
   Dark moderne · Violet-cyan gradient
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Colors */
  --bg:           #0a0a0f;
  --bg-2:         #111118;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-hov:  rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --border-hov:   rgba(139,92,246,0.5);

  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;

  /* Gradient */
  --grad-start:   #8b5cf6;  /* violet */
  --grad-end:     #06b6d4;  /* cyan   */
  --gradient:     linear-gradient(135deg, var(--grad-start), var(--grad-end));

  /* Glow */
  --glow-violet:  rgba(139,92,246,0.3);
  --glow-cyan:    rgba(6,182,212,0.3);

  /* Misc */
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px var(--glow-violet);

  /* Transitions */
  --transition:   0.25s ease;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none !important; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(139,92,246,0); }
}

@keyframes scrollLine {
  0%        { transform: scaleY(0); transform-origin: top; }
  50%       { transform: scaleY(1); transform-origin: top; }
  50.001%   { transform: scaleY(1); transform-origin: bottom; }
  100%      { transform: scaleY(0); transform-origin: bottom; }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s 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; }


/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition), border-bottom var(--transition);
}

#navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.logo-primary { color: var(--text); }
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-card-hov); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(139,92,246,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(6,182,212,0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  font-size: 0.82rem;
  font-weight: 500;
  color: #a78bfa;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grad-start), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}


/* =============================================
   SECTIONS — shared
   ============================================= */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-2);
  position: relative;
}
.section-alt::before,
.section-alt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.section-alt::before { top: 0; }
.section-alt::after  { bottom: 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a78bfa;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
}

.section-desc {
  max-width: 540px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(139,92,246,0.5);
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-card);
}

.btn-full { width: 100%; }

.btn-loader {
  animation: spin 0.8s linear infinite;
}


/* =============================================
   SERVICES CARDS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.card-featured {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.06);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.15), 0 8px 32px rgba(139,92,246,0.1);
}
.card-featured:hover {
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 16px 48px rgba(139,92,246,0.2);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--gradient);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon {
  width: 26px;
  height: 26px;
  color: #a78bfa;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.card-features li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1.5px;
  background: var(--gradient);
  border-radius: 2px;
}


/* =============================================
   TECHNOLOGIES
   ============================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: default;
}
.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.tech-icon {
  width: 40px;
  height: 40px;
  transition: transform var(--transition);
}
.tech-card:hover .tech-icon { transform: scale(1.1); }
.tech-icon svg { width: 100%; height: 100%; }

.tech-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.tech-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}
.tech-note em { font-style: normal; color: #a78bfa; }


/* =============================================
   CONTACT
   ============================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: #a78bfa;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.required { color: #f87171; }

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.04);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 16px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  color: #6ee7b7;
  font-size: 0.88rem;
  font-weight: 500;
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

.form-error-global {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #fca5a5;
  font-size: 0.88rem;
}


/* =============================================
   FOOTER
   ============================================= */
#footer {
  padding: 48px 0 36px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  text-align: right;
}
.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-copy a {
  color: #a78bfa;
  transition: opacity var(--transition);
}
.footer-copy a:hover { opacity: 0.8; }


/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }
  .nav-cta {
    margin-left: 0;
    font-size: 1.1rem;
    padding: 14px 32px;
  }
  .hamburger { display: flex; }

  #hero { padding: 100px 24px 60px; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-scroll-hint { display: none; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .tech-grid { grid-template-columns: repeat(3, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 24px 20px; }
}

/* Small mobile — ≤ 480px */
@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .btn-ghost { width: auto; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { max-width: 100%; }
}
