/* ============================================
   Equandia - MODERN DESIGN SYSTEM
   Mobile-First, Glassmorphism, Smooth Animations
   ============================================ */

:root {
  /* Colors - Vibrant & Modern */
  --bg-primary: #FAFBFC;
  --bg-gradient-1: #F0FDF4;
  --bg-gradient-2: #FEF3C7;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;

  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-glow: rgba(16, 185, 129, 0.3);

  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.3);

  --highlight: #8B5CF6;
  --highlight-glow: rgba(139, 92, 246, 0.3);

  --danger: #EF4444;
  --success: #10B981;

  /* Spacing - Mobile First */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-12: 4rem;
  --space-16: 6rem;

  /* Radius - Smooth & Modern */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Shadows - Layered Depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --nav-height: 70px;

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, var(--bg-gradient-1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, var(--bg-gradient-2) 0%, transparent 50%),
    var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

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

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

/* ============================================
   UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--highlight));
  border-radius: inherit;
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.glow:hover::before {
  opacity: 0.6;
}

/* ============================================
   NAVIGATION - Modern & Minimal
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.navbar__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.navbar__brand:hover {
  transform: translateY(-2px);
}

.navbar__brand:hover::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--primary-glow);
  border-radius: inherit;
  filter: blur(8px);
  z-index: -1;
}

.navbar__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.navbar__brand:hover .navbar__logo {
  transform: rotate(-5deg) scale(1.1);
}

.navbar__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Menu Toggle */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--transition-base);
}

.navbar__toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar__toggle:hover span {
  background: white;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Desktop Menu */
.navbar__menu {
  display: none;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .navbar__menu {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }
}

.navbar__link {
  position: relative;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  overflow: hidden;
}

.navbar__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar__link:hover {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.navbar__link:hover::before {
  width: 80%;
}

.navbar__link.active {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.15);
  font-weight: 800;
}

.navbar__link.active::before {
  width: 80%;
}

/* Mobile Menu Drawer */
@media (max-width: 767px) {
  .navbar__menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--nav-height));
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    gap: var(--space-3);
    transition: right var(--transition-slow);
    overflow-y: auto;
  }

  .navbar__menu.active {
    right: 0;
  }

  .navbar__link {
    width: 100%;
    padding: var(--space-4);
    text-align: left;
    border-radius: var(--radius-md);
  }
}

/* ============================================
   HERO - Eye-Catching & Animated
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-12)) var(--space-4) var(--space-12);
  overflow: hidden;
}

/* Animated Background Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-100px) translateX(50px); }
  50% { transform: translateY(-50px) translateX(-50px); }
  75% { transform: translateY(-150px) translateX(25px); }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 900px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-8);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* ============================================
   BUTTONS - Modern & Interactive
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   CARDS - Glassmorphic & Modern
   ============================================ */

.card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.3);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   SECTIONS - Spacious & Clean
   ============================================ */

.section {
  padding: var(--space-16) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   GRID LAYOUTS - Responsive
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   FOOTER - Modern & Minimal
   ============================================ */

.footer {
  background: linear-gradient(180deg, var(--primary-dark), #064E3B);
  color: white;
  padding: var(--space-12) 0 var(--space-6);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer__content {
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.footer__brand:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.footer__link {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all var(--transition-base);
}

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

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
