/*
 * AOI Systems - Dark Industrial Premium Design
 * Swiss-German industrial premium (ZEISS/Trumpf aesthetic)
 */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1526;
  --bg-card: rgba(0, 212, 255, 0.06);
  --bg-surface: #141b2d;
  --accent-cyan: #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #8892a4;
  --text-tertiary: #4a5568;
  --grid-line: rgba(0, 212, 255, 0.05);
  --border-subtle: rgba(0, 212, 255, 0.12);
  --success: #00ff88;
  
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* 1. BODY & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  position: relative;
  overflow-x: hidden;
}

/* Animations */
@keyframes pulseGrid {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  animation: pulseGrid 4s infinite alternate ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 2. HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.site-header .logo svg, .site-header .logo img {
  height: 40px;
  fill: var(--text-primary);
}

.site-header nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.site-header nav a {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent-cyan);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
}

/* 3. HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 40px 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-left-col {
  width: 60px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
}

.vertical-text {
  transform: rotate(-90deg);
  color: var(--accent-cyan);
  letter-spacing: 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.hero-content {
  flex: 1;
  padding-left: 80px;
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 14px;
  margin-bottom: 16px;
  display: block;
}

#hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

#hero h1 span {
  color: var(--accent-cyan);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.hero-image-area {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-area img {
  max-width: 100%;
  height: auto;
  z-index: 1;
}

/* 4. STATS STRIP */
.stats-strip {
  width: 100%;
  background-color: #060a14;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

.stat-separator {
  color: var(--text-tertiary);
}

/* 5. CALLOUT ANNOTATIONS */
.callout {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.callout-circle {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  background: var(--bg-primary);
  position: relative;
}

.callout-line {
  height: 1px;
  background-color: var(--accent-cyan);
  width: 50px;
  animation: drawLine 1s ease forwards;
}

.callout-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 8px;
  white-space: nowrap;
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 50px; }
}

/* Positioning examples (to be adjusted inline or with specific classes) */
.callout-top { top: 10%; left: 40%; }
.callout-right { top: 40%; right: 10%; flex-direction: row-reverse; }
.callout-right .callout-text { padding-left: 0; padding-right: 8px; }
.callout-bottom-left { bottom: 20%; left: 20%; }
.callout-bottom-right { bottom: 30%; right: 20%; flex-direction: row-reverse; }

/* 6. FEATURES SECTION */
#features {
  background-color: var(--bg-secondary);
  padding: 100px 40px;
}

.section-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 40px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
  transform: translateY(-5px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  fill: var(--accent-cyan);
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
}

/* 7. PRODUCT SECTION */
#product {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.product-info {
  flex: 1;
}

.product-info h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 24px;
}

.product-info p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.product-list {
  list-style: none;
  margin-bottom: 40px;
}

.product-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-primary);
}

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
}

.product-diagram {
  flex: 1;
}

.product-diagram img {
  width: 100%;
  height: auto;
}

/* 8. REVOLUTION SECTION */
#revolution {
  background-color: var(--bg-primary);
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

#revolution h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.revolution-sub {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 60px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--accent-cyan);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 9. PARALLAX / SHOWCASE */
.showcase-parallax {
  min-height: 70vh;
  background-image: url('../images/showcase-bg.jpg'); /* placeholder path */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-parallax::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(10, 14, 26, 0.85);
}

.showcase-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
}

/* 10. CONTACT SECTION */
#contact {
  background-color: var(--bg-secondary);
  padding: 100px 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.contact-card img.flag {
  width: 48px;
  height: auto;
  margin-bottom: 24px;
}

.contact-card h4 {
  font-size: 22px;
  margin-bottom: 16px;
}

.contact-card p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

/* 11. CONTACT FORM & 18. LOGIN FORM */
.contact-form-container, .login-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  background-color: var(--accent-cyan);
  color: var(--bg-primary);
  border: none;
  padding: 16px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #00bfff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* 12. TABS */
.tabs-container {
  max-width: 1000px;
  margin: 60px auto;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  background-color: var(--bg-surface);
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(20, 27, 45, 0.8);
}

.tab-btn.active {
  border-bottom-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tab-content {
  background-color: var(--bg-surface);
  padding: 40px;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-subtle);
  border-top: none;
  display: none;
}

.tab-content.active {
  display: block;
}

/* 13. FOOTER */
.site-footer {
  background-color: #060a14;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 40px;
  color: var(--text-primary);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h5 {
  font-size: 18px;
  margin-bottom: 24px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--accent-cyan);
}

/* 15. ANIMATIONS (Fade in up) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 16. SWIPER OVERRIDES */
.swiper-pagination-bullet {
  background: var(--text-secondary) !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent-cyan) !important;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--accent-cyan) !important;
}

/* 17. MOBILE MENU */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-overlay nav ul {
  list-style: none;
  text-align: center;
}

.mobile-menu-overlay nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.mobile-menu-overlay nav a:hover,
.mobile-menu-overlay nav a.active {
  color: var(--accent-cyan);
}

/* 14. RESPONSIVE */
@media (max-width: 1024px) {
  #hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-left-col {
    display: none;
  }
  
  .hero-content {
    padding-left: 0;
    margin-bottom: 60px;
  }
  
  #hero h1 {
    font-size: 42px;
  }
  
  .hero-subtitle {
    margin: 0 auto 32px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #product {
    flex-direction: column;
    text-align: center;
  }
  
  .product-list {
    text-align: left;
    display: inline-block;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .site-header nav {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  #hero h1 {
    font-size: 32px;
  }
  
  .features-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-inner {
    flex-direction: column;
  }
  
  .callout {
    display: none; /* Hide callouts on small screens for better visibility */
  }
  
  .stats-strip {
    flex-direction: column;
    gap: 12px;
  }
  .stat-separator {
    display: none;
  }
}
