/* Maxwell Electronics — electrical engineering */
:root {
  --bg-deep: #060b14;
  --bg-panel: #0d1524;
  --bg-card: #111c2e;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-warm: #f5a623;
  --text: #e8eef7;
  --text-muted: #8b9cb8;
  --border: rgba(0, 212, 170, 0.15);
  --glow: 0 0 40px rgba(0, 212, 170, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Circuit grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a1018 100%);
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.bg-grid::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06), transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-warm);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 3px;
  background: var(--bg-card);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-switch a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

/* Hero + background video */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.55) 0%, rgba(6, 11, 20, 0.75) 50%, rgba(6, 11, 20, 0.92) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0, 212, 170, 0.08), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 5rem;
  width: 100%;
}

.hero-text {
  max-width: 42rem;
}

.hero-text .hero-tagline {
  margin-left: auto;
  margin-right: auto;
}

.hero-text .hero-cta {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.25rem;
  color: rgba(232, 238, 247, 0.88);
  margin: 0 0 2rem;
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.45);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 3rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.35);
  box-shadow: var(--glow);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Parking highlight */
.parking-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  margin-top: 2rem;
}

/* Parking slideshow (1.png … 15.png) */
.parking-slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  overflow: hidden;
  background: var(--bg-deep);
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(6, 11, 20, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.slideshow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
}

.slideshow-prev {
  left: 0.75rem;
}

.slideshow-next {
  right: 0.75rem;
}

.slideshow-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0.65rem;
  background: linear-gradient(transparent, rgba(6, 11, 20, 0.92));
}

.slideshow-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.slideshow-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  padding: 0 0.25rem;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(139, 156, 184, 0.45);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.slideshow-dot:hover {
  background: var(--text-muted);
}

.slideshow-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.parking-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.parking-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.parking-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-warm);
}

.parking-list li:last-child {
  border-bottom: none;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about-image img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Contact */
.contact-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-info--solo {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.contact-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact-list-item:hover {
  border-color: rgba(0, 212, 170, 0.35);
}

.contact-list-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.contact-list-value {
  font-size: 1.05rem;
  color: var(--text);
}

a.contact-list-value:hover {
  color: var(--accent);
}

.contact-info a.phone {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.3;
}

.contact-info a.phone:hover {
  color: var(--accent);
}

.contact-info a.phone-secondary {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .brand-footer {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding-block: 0.25rem;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: flex;
    margin-left: -4px;
  }

  .brand {
    display: none;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-shrink: 0;
  }

  .header-nav {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    flex: none;
  }

  .about-grid,
  .parking-block {
    grid-template-columns: 1fr;
  }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-panel);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-main.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 1.5rem;
  }

  .parking-block {
    padding: 1.25rem;
  }

  .contact-list-item {
    padding: 1.1rem 1.15rem;
  }
}
