/* Boise IT Solutions - Clean Tech Dark Theme */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --blue-primary: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --text-white: #f8fafc;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: #1e293b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

/* Container for all background effects */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Subtle grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Animated gradient orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-primary), transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
  animation-duration: 25s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* Animated lines */
.bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  animation: moveLine 8s linear infinite;
}

.bg-line:nth-child(1) {
  top: 20%;
  width: 30%;
  left: -30%;
  animation-delay: 0s;
}

.bg-line:nth-child(2) {
  top: 40%;
  width: 25%;
  left: -25%;
  animation-delay: -2s;
  animation-duration: 10s;
}

.bg-line:nth-child(3) {
  top: 60%;
  width: 35%;
  left: -35%;
  animation-delay: -4s;
  animation-duration: 12s;
}

.bg-line:nth-child(4) {
  top: 80%;
  width: 20%;
  left: -20%;
  animation-delay: -6s;
  animation-duration: 9s;
}

.bg-line:nth-child(5) {
  top: 30%;
  width: 40%;
  left: -40%;
  animation-delay: -1s;
  animation-duration: 14s;
}

@keyframes moveLine {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 100%));
  }
}

/* Vertical scan line effect */
.bg-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  animation: scan 8s linear infinite;
  opacity: 0.5;
}

@keyframes scan {
  0% {
    left: -2px;
  }
  100% {
    left: 100%;
  }
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 50%;
  opacity: 0;
  animation: particle 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; animation-delay: -1s; }
.particle:nth-child(10) { left: 15%; animation-delay: -3s; }
.particle:nth-child(11) { left: 35%; animation-delay: -5s; }
.particle:nth-child(12) { left: 55%; animation-delay: -7s; }
.particle:nth-child(13) { left: 75%; animation-delay: -9s; }
.particle:nth-child(14) { left: 85%; animation-delay: -11s; }
.particle:nth-child(15) { left: 95%; animation-delay: -13s; }

@keyframes particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--blue-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease;
}

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

/* Animated text shimmer */
.hero h1 span {
  position: relative;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--blue-primary);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s both;
  box-shadow: 0 0 20px var(--blue-glow);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--blue-glow);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Card glow effect on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--blue-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
}

/* Pulse animation on card icons */
.card:hover .card-icon {
  animation: pulse 1s ease-in-out;
}

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ========================================
   PRODUCTS/EQUIPMENT
   ======================================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animated border on hover */
.product-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
  transition: left 0.5s ease;
}

.product-item:hover::after {
  left: 100%;
}

.product-item:hover {
  border-color: var(--blue-primary);
  background: var(--bg-card-hover);
  transform: translateX(8px);
}

.product-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-info {
  text-align: center;
}

.contact-info p {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--blue-light);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.contact-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue-light);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-info a:hover::after {
  transform: scaleX(1);
}

.contact-info a:hover {
  color: var(--text-white);
  text-shadow: 0 0 20px var(--blue-glow);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.submit-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--blue-primary);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--blue-glow);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--blue-glow);
}

.submit-button:active {
  transform: translateY(0);
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards */
.card-grid .card:nth-child(1) { transition-delay: 0.1s; }
.card-grid .card:nth-child(2) { transition-delay: 0.2s; }
.card-grid .card:nth-child(3) { transition-delay: 0.3s; }
.card-grid .card:nth-child(4) { transition-delay: 0.4s; }
.card-grid .card:nth-child(5) { transition-delay: 0.5s; }
.card-grid .card:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 0.75rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .hero {
    padding: 3rem 1.5rem 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .product-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .product-item:hover {
    transform: translateX(0) translateY(-4px);
  }
  
  /* Reduce particle count on mobile for performance */
  .particle:nth-child(n+8) {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
