/* VisiblAir Modern Theme - Making the Invisible Visible */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #2563eb;
  --secondary-blue: #1e40af;
  --light-blue: #dbeafe;
  --accent-cyan: #06b6d4;
  --clean-white: #ffffff;
  --pure-white: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --air-particle: rgba(37, 99, 235, 0.1);
  --visibility-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.display-4 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: var(--pure-white) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px var(--shadow-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
  letter-spacing: -0.025em;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background: var(--visibility-gradient);
  color: var(--primary-blue) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background: var(--primary-blue);
  color: var(--clean-white) !important;
}

/* Hero Section */
.hero {
  background: var(--visibility-gradient);
  background-attachment: fixed;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="air-particles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="rgba(37,99,235,0.1)"/><circle cx="12" cy="8" r="0.3" fill="rgba(6,182,212,0.1)"/><circle cx="18" cy="15" r="0.4" fill="rgba(37,99,235,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23air-particles)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.hero .btn {
  background: var(--primary-blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
  background: var(--secondary-blue);
}

/* Glassmorphism Cards */
.card {
  background: var(--pure-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-heavy);
}

.product-card {
  height: 100%;
}

.card-img-top {
  height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  background: var(--primary-blue);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--clean-white);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clean-white);
}

/* Sections */
section {
  padding: 5rem 0;
}

#products {
  background: var(--clean-white);
  position: relative;
}

#products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--visibility-gradient);
  opacity: 0.5;
}

#products .container {
  position: relative;
  z-index: 1;
}

#about {
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(255, 255, 255, 0.8) 100%);
}

#blog {
  background: var(--clean-white);
}

#contact {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--clean-white);
}

#contact h2 {
  color: var(--clean-white);
}

/* Footer */
footer {
  background: var(--text-primary);
  color: var(--clean-white);
  padding: 2rem 0;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .hero .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }
}

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

/* Focus states */
.btn:focus,
.card:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Table Styles */
.table thead th {
  vertical-align: middle;
  min-height: 70px;
  padding: 0.5rem 0.25rem;
}

.table thead th div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-blue);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}
