/* ==============================
   GLOBAL RESET
============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #0f1115;
  color: #e5e5e5;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================
   HEADER
============================== */

header {
  position: sticky;
  top: 0;
  background: rgba(15,17,21,0.95);
  backdrop-filter: blur(10px);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}

nav a {
  margin-left: 25px;
  color: #aaa;
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,80,0,0.05), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,120,255,0.05), transparent 40%),
    #0f1115;
}


/* ==============================
   LOGO
============================== */

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-container img {
  height: 60px;
  width: auto;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  gap: 8px;
}

.usa-text {
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(
    90deg,
    #c8102e 0%,
    #ffffff 45%,
    #002868 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================
   HERO
============================== */

.hero {
  position: relative;
  background: url("hero-led-visual-usa.webp") center center / cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.65)
  );
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 750px;
  margin: 0 auto 30px auto;
}

.hero h1 {
  text-shadow:
    0 0 10px rgba(255,120,0,0.4),
    0 0 20px rgba(255,80,0,0.2);
}

.hero {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { background-size: 100%; }
  to   { background-size: 110%; }
}

/* ==============================
   BUTTONS
============================== */

.button {
  background: linear-gradient(90deg, #e10600, #ff3c00);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease;
  display: inline-block;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255,60,0,0.3);
}

/* ==============================
   SECTIONS
============================== */

.section {
  padding: 80px 60px;
}

.section h2 {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
}

.card {
  background: #1a1d24;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,60,0,0.5);
}

/* ==============================
   CAROUSEL
============================== */

.carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0f1115, transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0f1115, transparent);
}

.carousel-track {
  display: flex;
  gap: 40px;
  /* animation: scrollLoop 30s linear infinite; */
  will-change: transform;
}

@keyframes scrollLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.product-card {
  flex: 0 0 340px;
  background: #1a1d24;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.product-card:hover {
  transform: scale(1.04);
}

.product-card img {
  width: 100%;
  /* height: auto; /*          /* allow full image height */
  display: block;
  object-fit: contain;
  height: 240px;    /* show full image without cropping */
  background: #000;       /* optional: clean background if image ratio varies */
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card h3 {
  text-align: center;     /* center the text */
  padding: 18px 12px;
  font-size: 1rem;
}

@keyframes scrollLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--scroll-distance)));
  }
}


/* ==============================
   MODAL
============================== */

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 9999;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  text-align: center;
  transform: scale(0.9);
  transition: 0.4s ease;
}

.product-modal.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 16px;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* ==============================
   FOOTER
============================== */

footer {
  background: #0b0d11;
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px) {

  header {
    flex-direction: column;
    gap: 15px;
  }

  .section {
    padding: 60px 25px;
  }

  .product-card {
    min-width: 260px;
  }

}

/* ==============================
   CONTACT SECTION
============================== */

.contact-section {
  padding: 100px 60px;
  background: #111827;
}

.contact-container {
  max-width: 800px;
  margin: auto;
  background: rgba(255,255,255,0.03);
  padding: 50px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-container button {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
  padding: 16px 48px;
  font-size: 1rem;
  letter-spacing: 1px;
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 25px;
}

input, textarea {
  width: 100%;
  padding: 14px;
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #ff3c00;
  box-shadow: 0 0 10px rgba(255,60,0,0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==============================
   CONTACT BUTTON RESPONSIVE
============================== */

.contact-container button {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
  padding: 16px 48px;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
}

/* Full width on mobile only */
@media (max-width: 768px) {
  .contact-container button {
    width: 100%;
  }
}

/* ==============================
   BUTTON LOADING STATE
============================== */

.contact-container button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.contact-container button.loading::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ==============================
   FORM MESSAGE
============================== */

.form-message {
  text-align: center;
  margin-bottom: 25px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.form-message.show {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 25px;
}

.form-message.success {
  background: rgba(0, 150, 80, 0.15);
  border: 1px solid rgba(0, 150, 80, 0.4);
  color: #4ade80;
}

.form-message.error {
  background: rgba(200, 30, 30, 0.15);
  border: 1px solid rgba(200, 30, 30, 0.4);
  color: #ff6b6b;
}

/* ==============================
   CTA
============================== */

.cta {
  background: linear-gradient(135deg, #1a1d24, #111827);
  text-align: center;
  padding: 100px 40px;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta p {
  margin-bottom: 30px;
  color: #bbb;
}

/* ==============================
   FOOTER
============================== */

footer {
  background: #0b0d11;
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==============================
   Stage Section
============================== */

.stage-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.stage-text {
  flex: 1;
}

.stage-image {
  flex: 1;
}

.stage-image img {
  width: 100%;
  border-radius: 16px;
}