:root {
  --primary: #5a6bff;
  --secondary: #8b5cf6;
  --border: #1b2c55;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

body {
  background: #020617;
  color: var(--text);
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  z-index: 10;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 80px;
}

.brand-main {
  color: #8b8dff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.cta-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 10px 22px;
  border-radius: 8px;
  color: #fff;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* SLIDER */
.heroSwiper {
  position: absolute;
  inset: 0;
}

.heroSwiper .swiper-slide {
  background-size: cover;
  background-position: center;
}

.heroSwiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.slide1 {
  background-image: url("images/home-banner.jpg");
}

.slide2 {
  background-image: url("images/access1.jpg");
}

.slide3 {
  background-image: url("images/camera1.jpg");
}

.slide4 {
  background-image: url("images/networks.jpg");
}

.slide5 {
  background-image: url("images/homeautomat.jpg");
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 140px 80px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 48px;
}

.hero-content span {
  color: #8b8dff;
}

.hero-content p {
  margin: 15px 0;
  color: var(--muted);
}

.primary-btn,
.secondary-btn {
  padding: 12px 26px;
  border-radius: 8px;
  margin-right: 10px;
}

.primary-btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.secondary-btn {
  border: 1px solid var(--primary);
}

/* SERVICES */
.services-ref {
  padding: 80px 20px;
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-header h2 {
  color: #8b8dff;
  font-size: 42px;
}

.services-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-box {
  background: #0c1a33;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  position: relative;
}

.service-box img {
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

.icon-box {
  position: absolute;
  top: 165px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-box h3 {
  margin: 35px 0 10px;
}

/* PORTFOLIO */
.portfolio {
  padding: 80px 20px;
  text-align: center;
}

.portfolio h2 {
  color: #8b8dff;
  margin-bottom: 40px;
}

.portfolio-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.portfolio-item img {
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
/* ===== FOOTER PREMIUM ===== */
.site-footer {
  background: radial-gradient(circle at top, #0b1430, #020617 70%);
  margin-top: 80px;
}

.footer-top {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  text-align: left;
}

/* Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 50px;
}

.footer-logo h3 {
  color: #8b8dff;
  line-height: 1.1;
}

.footer-logo span {
  font-size: 12px;
  color: #9ca3af;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.phone {
  color: #d1d5ff;
  margin-bottom: 15px;
}
.phone.landline {
  color: #9ca3af;
  font-size: 14px;
}

/* Social */
.socials a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: #0c1a33;
  border-radius: 50%;
  margin-right: 8px;
  color: #8b8dff;
  transition: 0.3s;
}

.socials a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-3px);
}

/* Links */
.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #9ca3af;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #8b8dff;
}

/* CTA */
.footer-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 16px;
}

/* Footer Button */
.footer-btn {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(139, 141, 255, 0.35);
  transition: 0.3s;
}

.footer-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(139, 141, 255, 0.55);
}

/* WhatsApp */
.footer-whatsapp {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.footer-whatsapp a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.45);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.footer-whatsapp a:hover {
  transform: scale(1.05);
}

.footer-whatsapp i {
  font-size: 20px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #9aa3ff;
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #020617;
    flex-direction: column;
    display: none;
    padding: 30px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

@media (max-width: 900px) and (min-width: 600px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
  }
  .footer-logo {
    justify-content: flex-start;
  }
}

@media (max-width: 599px) {
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 120px 25px;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-whatsapp {
    justify-content: center;
  }
}
