/* ============================================
   IPV Tech - Modern Design System
   Completely Self-Contained - No External Dependencies
   ============================================ */

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

:root {
  /* Color Palette - Warm & Professional */
  --primary: #e85d04;
  --primary-light: #f48c06;
  --primary-dark: #d00000;
  --secondary: #6a4c93;
  --accent: #ff006e;
  
  /* Neutrals */
  --bg: #0d1b2a;
  --bg-light: #1b263b;
  --bg-card: #415a77;
  --text: #e0e1dd;
  --text-muted: #778da9;
  --text-dim: #415a77;
  
  /* Functional */
  --success: #2a9d8f;
  --warning: #e9c46a;
  --danger: #e63946;
  --info: #00b4d8;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(232, 93, 4, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f8f9fa;
  --bg-light: #e9ecef;
  --bg-card: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --text-dim: #adb5bd;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-3xl) 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .navbar {
  background: rgba(248, 249, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
}

.nav-cta:hover {
  background: var(--primary-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 50%, var(--bg) 100%);
  z-index: -2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.3);
  padding: var(--space-sm) var(--space-md);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: var(--space-xl);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 93, 4, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Cards */
.card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

[data-theme="light"] .card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--space-lg);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Features Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.3);
  padding: var(--space-xs) var(--space-md);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-xl);
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--bg);
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.team-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* PDF Cards */
.pdf-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--bg-light);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .pdf-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pdf-card:hover {
  transform: translateX(8px);
  border-color: var(--primary);
}

.pdf-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.pdf-info h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.pdf-info p {
  font-size: 0.875rem;
  margin: 0;
}

/* Quote */
.quote {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  font-style: italic;
}

.quote p {
  color: var(--text);
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.quote cite {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

/* Contact Form */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Alert/Emergency */
.alert {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.alert-icon {
  color: var(--danger);
  flex-shrink: 0;
}

.alert-content h3 {
  color: var(--danger);
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.alert-content p {
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-3xl) 0 var(--space-xl);
}

[data-theme="light"] .footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
}

/* Page Header */
.page-header {
  padding: 140px 0 var(--space-3xl);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.page-header h1 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  
  .stats { grid-template-columns: 1fr; }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .team-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .pdf-card {
    flex-direction: column;
    text-align: center;
  }
}

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

.animate {
  animation: fadeInUp 0.6s ease forwards;
}
