/* 
   DURHAM'S ELECTRONICS - THEME STYLES
   Material Design + Electronics Laboratory Aesthetic
   Based on Bulma CSS Framework
*/

:root {
  /* Electronics Color Palette */
  --primary-dark-navy: #1a1a2e;
  --secondary-dark-navy: #16213e;
  --electric-cyan: #00d4ff;
  --neon-teal: #20e3b2;
  --lime-accent: #32cd32;
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --bg-glass-dark: rgba(0, 0, 0, 0.3);
  --border-glass: rgba(255, 255, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Custom Bulma Colors */
.bulma-theme {
  --primary: var(--electric-cyan);
  --primary-dark: var(--neon-teal);
  --link: var(--electric-cyan);
  --info: var(--neon-teal);
  --success: var(--lime-accent);
  --warning: #ffa500;
  --danger: #ff4757;
  --light: var(--text-secondary);
  --dark: var(--primary-dark-navy);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, var(--primary-dark-navy) 0%, var(--secondary-dark-navy) 100%);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Effects */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-dark);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--electric-cyan);
}

/* Header Styles */
.header-container {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-brand {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.header-brand:hover {
  color: var(--electric-cyan);
}

.header-brand .logo-icon {
  font-size: 1.8rem;
  color: var(--neon-teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.header-container .header-nav .navbar-item {
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.header-container .header-nav .navbar-item:hover,
.header-container .header-nav .navbar-item.is-active {
  color: var(--electric-cyan);
  background: transparent;
}

.header-container .header-nav .navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-cyan), var(--neon-teal));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-container .header-nav .navbar-item:hover::after,
.header-container .header-nav .navbar-item.is-active::after {
  width: 80%;
}

/* Mobile Menu Styles */
.header-container .navbar-burger {
  color: var(--text-primary);
  border: none;
  background: transparent;
}

.navbar-menu {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 0 0 16px 16px;
  margin-top: 8px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, 
    rgba(26, 26, 46, 0.9) 0%, 
    rgba(22, 33, 62, 0.9) 50%, 
    rgba(0, 212, 255, 0.1) 100%),
    url('https://images.pexels.com/photos/162031/pexels-photo-162031.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(32, 227, 178, 0.2) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-teal));
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  color: var(--primary-dark-navy);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--electric-cyan);
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--electric-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--electric-cyan);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--primary-dark-navy);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.section.has-background {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--electric-cyan), var(--neon-teal));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.service-card, .team-card, .testimonial-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before, .team-card::before, .testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--electric-cyan), var(--neon-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before, .team-card:hover::before, .testimonial-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover, .team-card:hover, .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
  border-color: var(--electric-cyan);
}

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

.service-card-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-teal);
  margin-bottom: 1rem;
}

.service-card-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Image Styles */
.featured-image {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

/* Form Styles */
.form-container {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-dark);
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--electric-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  outline: none;
}

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

.form-button {
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-teal));
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark-navy);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-dark);
  z-index: 10000;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.5s ease;
}

.cookie-consent-banner.hidden {
  transform: translateY(100px);
  opacity: 0;
}

.cookie-banner-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-banner-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background: var(--neon-teal);
  color: var(--primary-dark-navy);
  border-color: var(--neon-teal);
}

.cookie-btn-accept:hover {
  background: var(--electric-cyan);
  border-color: var(--electric-cyan);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-glass);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--electric-cyan);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* Loading Animation */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-cyan);
  animation: loading 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    padding: 2rem 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
  
  .service-card, .team-card, .testimonial-card {
    padding: 1.5rem;
  }
  
  .cookie-consent-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero-content {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card-title {
    font-size: 1.3rem;
  }
  
  .service-card-price {
    font-size: 1.6rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --bg-glass: rgba(255, 255, 255, 0.2);
    --border-glass: rgba(255, 255, 255, 0.4);
    --text-secondary: #ffffff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .header-container,
  .cookie-consent-banner,
  .btn-primary,
  .btn-secondary,
  .form-container {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
}

strong {
  color: var(--text-primary);
}