*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:         #0b1a2f;
  --navy-dark:    #07111f;
  --navy-mid:     #0f2240;
  --silver:       #b6bbc1;
  --silver-dim:   rgba(182, 187, 193, 0.25);
  --silver-mid:   rgba(182, 187, 193, 0.45);
  --white:        #ffffff;
  --white-70:     rgba(255, 255, 255, 0.70);
  --white-50:     rgba(255, 255, 255, 0.50);
  --black:        #000000;
  --text-body:    rgba(255, 255, 255, 0.76);
  --card-bg:      #b6bbc1;
  --card-hover:   rgba(255, 255, 255, 0.12);

  --section-pad:  96px 48px;
  --max-width:    1100px;
  --radius:       10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

svg:not(:root) {
  overflow: visible;
  overflow-clip-margin: initial;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(11, 26, 47, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 187, 193, 0.10);
  transition: background 0.35s;
}

nav.scrolled {
  background: rgba(11, 26, 47, 0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 100px;
  height: 100px;
  overflow: visible;
}

.nav-logo img {
  width: 60px;
  height: 60px;
  overflow: visible;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:nth-child(1) { background-image: linear-gradient(to bottom, rgba(11,26,47,0.55) 0%, rgba(7,17,31,0.95) 100%), url('/hero/hero1.jpg'); }
.hero-slide:nth-child(2) { background-image: linear-gradient(to bottom, rgba(11,26,47,0.55) 0%, rgba(7,17,31,0.95) 100%), url('/hero/hero2.jpg'); }
.hero-slide:nth-child(3) { background-image: linear-gradient(to bottom, rgba(11,26,47,0.55) 0%, rgba(7,17,31,0.95) 100%), url('/hero/hero3.jpg'); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
  animation: fadeUp 1.1s ease both;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white-50);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--white);
  transform: scale(1.4);
}

section, footer {
  scroll-margin-top: 80px;
}

.about-section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: center;
}

.about-heading {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.about-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--silver-dim);
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 48px 100px;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--silver-dim);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  background: var(--card-hover);
  border-color: var(--silver-mid);
  transform: translateY(-4px);
  color: var(--white);
}

.service-card:hover .service-icon svg {
  fill: var(--white);
}

.service-card:hover p{
  color: var(--white);
}

.service-card:hover h3{
  color: var(--white);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: block;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--black);
}


.service-card h3 {
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.65;
}

.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px 96px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  background: rgba(182, 187, 193, 0.12);
  border: 1px solid var(--silver-dim);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: rgba(182, 187, 193, 0.55);
}

.contact-section input:focus,
.contact-section textarea:focus {
  border-color: var(--silver-mid);
  background: rgba(182, 187, 193, 0.18);
}

.contact-section textarea {
  height: 130px;
  resize: vertical;
}

.btn-submit {
  margin-top: 16px;
  background: transparent;
  border: 1.5px solid var(--silver);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-submit:hover {
  background: var(--silver);
  color: var(--navy);
}

footer {
  border-top: 1px solid rgba(182, 187, 193, 0.12);
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 48px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-logo img {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.footer-logo svg {
  width: 130px;
  height: 130px;
  overflow: visible;
}

.footer-right {
  text-align: right;
}

.footer-legal p {
  font-size: 11.5px;
  color: var(--text-body);
  line-height: 2;
}

.footer-legal a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
  align-items: center;
}

.footer-social a {
  color: var(--white-70);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.partners-bar {
  border-top: 1px solid rgba(182, 187, 193, 0.10);
  align-items: center;
}

.partners-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.partner-logo {
  height: 24px;
  width: auto;
  opacity: 0.60;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
  object-fit: contain;
  display: block;
}

.partner-logo.cedia    { height: 20px; }
.partner-logo.control4 { height: 18px; }
.partner-logo.crestron { height: 16px; }
.partner-logo.knx      { height: 28px; }
.partner-logo.lutron   { height: 16px; }
.partner-logo.qsys     { height: 32px; }

.partner-logo:hover {
  opacity: 0.90;
}

.partner-logo.crestron { height: 20px; }
.partner-logo.knx      { height: 22px; }
.partner-logo.control4 { height: 22px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  :root { --section-pad: 64px 24px; }

  nav { padding: 12px 20px; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 24px;
  }

  .services-section,
  .contact-section { padding-left: 24px; padding-right: 24px; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .contact-row { grid-template-columns: 1fr; }

  .footer-main { flex-direction: column; }

  .footer-right { text-align: left; }

  .footer-social { justify-content: flex-start; }

  .partners-inner { gap: 24px; padding: 24px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }

  .nav-links { gap: 20px; }

  .nav-links a { font-size: 12px; }
}
