/* Hero Section Styling */

.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(
    180deg,
    #040b14 0%,
    #081525 48%,
    #030811 100%
  );
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 200, 192, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 192, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse 800px 400px at center -100px, rgba(0, 200, 192, 0.08) 0%, transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-position: center top;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, #030811 0%, rgba(3, 8, 17, 0.86) 72px, transparent 170px),
    linear-gradient(0deg, rgba(3, 8, 17, 0.92) 0%, transparent 200px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

/* Hero icon - floating animation only on center logo */
.hero-icon {
  animation: floatIcon 3s ease-in-out infinite;
  background: none !important;
  display: block;
  width: auto;
  max-width: min(280px, 70vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  text-align: left;
  word-spacing: 0.15em;
}

.hero-title-accent {
  color: var(--text-primary);
  display: inline;
}

.hero-subtitle {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ff4444;
  margin-top: 0.5rem;
  text-align: right;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: default;
  background-color: rgba(3, 8, 17, 0.58);
}

.tag:hover {
  border-color: var(--border-strong);
  color: var(--accent-teal);
  background-color: rgba(3, 8, 17, 0.72);
  box-shadow: 0 0 20px rgba(0, 200, 192, 0.1);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin: 1rem 0;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-teal);
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px rgba(0, 200, 192, 0.3);
  margin-top: 1rem;
  text-decoration: none;
}

.hero-cta:hover {
  background-color: #00d9d0;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 200, 192, 0.4);
  text-decoration: none;
}

.hero-cta:active {
  transform: translateY(-1px);
}

.products-section {
  padding: 96px 20px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) calc(100% - 160px), var(--bg-section-blue) 100%);
}

.products-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.products-header {
  text-align: center;
  margin-bottom: 56px;
}

.products-eyebrow {
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

.products-title {
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.products-description {
  color: #7a94b0;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.product-filter {
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(0, 200, 192, 0.2);
  border-radius: 999px;
  background-color: rgba(0, 200, 192, 0.06);
  color: #7a94b0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.product-filter.active {
  border-color: transparent;
  background-color: var(--accent-teal);
  color: var(--bg-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 288px));
  justify-content: center;
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 192, 0.1);
  border-radius: 16px;
  background-color: #0f2035;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.product-image-wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
  background-color: #07111f;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 32, 53, 0.85) 0%, transparent 60%);
}

.product-content {
  display: flex;
  flex: 1;
  min-height: 210px;
  flex-direction: column;
  padding: 1.25rem;
}

.product-content h3 {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.product-content p {
  flex: 1;
  color: #7a94b0;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-card {
  grid-column: 1 / -1;
  max-width: 912px;
  width: 100%;
}

.project-image-wrap {
  height: 360px;
}

.project-image-wrap .product-image {
  object-fit: cover;
}

.project-content {
  min-height: auto;
  text-align: center;
}

.project-content h3 {
  font-size: 1.25rem;
}

.project-content p {
  flex: 0;
  font-size: 1rem;
}

.product-card.is-hidden {
  display: none;
}

.manual-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 200, 192, 0.3);
  border-radius: 12px;
  background-color: rgba(0, 200, 192, 0.1);
  color: var(--accent-teal);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.manual-button:hover {
  background-color: rgba(0, 200, 192, 0.18);
  text-decoration: none;
}

.plug-play-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-blue {
  padding: 80px 20px;
  text-align: center;
  min-height: 100vh;
  background-color: var(--bg-section-blue);
}

.about-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 96px;
  padding-bottom: 72px;
}

.about-container {
  width: 100%;
  max-width: 720px;
}

.about-title {
  color: var(--accent-teal);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-copy {
  color: #8fb7e6;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.about-copy p {
  margin: 0 auto 1.5rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 52px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.about-stat strong {
  color: var(--accent-teal);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-stat span {
  color: #8fb7e6;
  font-size: 0.78rem;
  line-height: 1.4;
}

.contact-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 96px;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 192, 0.12) 16%,
    rgba(0, 200, 192, 0.45) 36%,
    rgba(0, 217, 208, 0.95) 50%,
    rgba(0, 200, 192, 0.45) 64%,
    rgba(0, 200, 192, 0.12) 84%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(0, 200, 192, 0.32);
  pointer-events: none;
}

.contact-container {
  width: 100%;
  max-width: 900px;
}

.contact-title {
  color: var(--accent-teal);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.contact-description {
  color: #8fb7e6;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 48px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 210px;
  min-height: 58px;
  padding: 0.9rem 1.65rem;
  border-radius: 15px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-button:hover {
  text-decoration: none;
  opacity: 1;
}

.contact-button-outline {
  border: 1px solid rgba(0, 200, 192, 0.38);
  background-color: rgba(0, 200, 192, 0.04);
  color: var(--accent-teal);
}

.contact-button-primary {
  border: 1px solid transparent;
  background-color: var(--accent-teal);
  color: var(--bg-primary);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
  line-height: 1;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-scroll-indicator {
  margin-top: 2rem;
  animation: bounceDown 2s infinite;
  color: var(--accent-teal);
  opacity: 0.7;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 16px;
  }

  .hero-title {
    word-spacing: 0;
  }

  .hero-tags {
    gap: 0.5rem;
  }

  .tag {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
  }

  .products-section {
    padding: 72px 16px;
  }

  .products-grid {
    grid-template-columns: minmax(0, 288px);
  }

  .project-card {
    grid-column: auto;
    max-width: 288px;
  }

  .project-image-wrap .product-image {
    object-fit: contain;
  }

  .project-content {
    text-align: left;
  }

  .products-header {
    margin-bottom: 40px;
  }

  .about-section {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .about-copy {
    font-size: 0.95rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 40px;
  }

  .contact-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 36px;
  }

  .contact-button {
    width: min(100%, 320px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 288px));
  }

  .project-card {
    grid-column: 1 / -1;
    max-width: 600px;
  }
}

/* General Styles */
section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 96px;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}
