/* ============================================================
   VIZAPP — main.css
   Shared styles, variables, reset, components
   ============================================================ */

/* --- Google Fonts are loaded in each HTML file --- */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --bg:            #080810;
  --bg-2:          #0d0d1a;
  --accent:        #7c3aed;
  --accent-2:      #2563eb;
  --accent-cyan:   #0891b2;
  --text-primary:  #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary:  rgba(255, 255, 255, 0.35);

  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.1);
  --glass-blur:    blur(20px);
  --glass-radius:  20px;
  --glass-hover-bg: rgba(255, 255, 255, 0.08);
  --glass-hover-border: rgba(255, 255, 255, 0.18);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-subtle:  linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(37,99,235,0.15) 100%);
  --gradient-text:    linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max:   1200px;
  --container-pad:   clamp(20px, 5vw, 60px);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-medium: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* Shadows */
  --shadow-card:  0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow:  0 40px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow-hover: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   Container
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.heading-xl {
  font-size: clamp(44px, 6.5vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}

.heading-lg {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 600;
}

.heading-md {
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: -0.01em;
}

.text-gradient {
  color: #ffffff;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-medium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #080810;
  box-shadow: none;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-ghost:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 100px;
}

/* ============================================================
   Glassmorphism Card
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  background: var(--glass-hover-bg);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Background Shapes (Blurred)
   ============================================================ */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-shape--purple {
  width: 600px;
  height: 600px;
  background: #7c3aed;
  opacity: 0.18;
  top: -150px;
  right: -100px;
}

.bg-shape--blue {
  width: 500px;
  height: 500px;
  background: #2563eb;
  opacity: 0.15;
  bottom: 10%;
  left: -100px;
}

.bg-shape--cyan {
  width: 400px;
  height: 400px;
  background: #0891b2;
  opacity: 0.12;
  top: 40%;
  left: 40%;
}

.bg-shape--purple-2 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  opacity: 0.10;
  bottom: 20%;
  right: 20%;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.navbar__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.navbar__cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 14px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile nav */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 16, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile-link {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--text-primary);
}

.navbar__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.navbar__close:hover {
  background: var(--glass-hover-bg);
}

/* ============================================================
   Section Labels
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #a78bfa;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   Input styles (shared)
   ============================================================ */
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition-fast);
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.input-field:focus {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer__text {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.footer__email {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--text-primary);
}

.footer__links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

/* ============================================================
   Utility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .navbar__nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 15px;
  }
}
