/* I2O Analytics - Responsive & Dark Mode Styles */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f0f4ff;
  --text-primary: #363636;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --accent-primary: #3273dc;
  --accent-secondary: #2366d1;
  --border-light: rgba(0,0,0,0.1);
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 15px rgba(0,0,0,0.15);
  --shadow-strong: 0 10px 30px rgba(0,0,0,0.2);
  --highlight-bg: #ffd700;
  --success: #48c78e;
  --warning: #ffe08a;
  --error: #f14668;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #1e2836;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-primary: #5da3f5;
    --accent-secondary: #4a8ce3;
    --border-light: rgba(255,255,255,0.1);
    --shadow-light: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.4);
    --shadow-strong: 0 10px 30px rgba(0,0,0,0.5);
    --highlight-bg: #d4af37;
    --success: #00d1b2;
    --warning: #ffdd57;
    --error: #ff3860;
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: clamp(14px, 2vw, 16px);
}

/* Navigation Styles */
nav {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: clamp(1.3rem, 4vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.25rem); }

p {
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.8;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border: 2px solid var(--accent-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-width: 120px;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--accent-primary);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* Card Styles */
.card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--highlight-bg) 60%);
  padding: 0 3px;
  font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-link {
    padding: 1rem 0;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border-light: currentColor;
    --shadow-light: none;
    --shadow-medium: none;
    --shadow-strong: none;
  }
  
  .card {
    border: 2px solid var(--text-primary);
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Print Styles */
@media print {
  nav,
  .hamburger,
  .btn {
    display: none !important;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .hero-section,
  .methods-section,
  .contact-section {
    padding-top: 1rem !important;
  }
}