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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1019365c 0, #0516100d 45%, #020410db 100%),
    url("../images/bg/futuristic_it.png") center / cover no-repeat fixed,
    #020410;
  color: #fff;
  line-height: 1.2;
  overflow-x: hidden;
}

/* ============================================================
   GLOBAL CONTAINER & SECTIONS
============================================================ */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 150px auto;
}

.section {
  padding: 150px 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #e9f1ff;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 60px;
  opacity: 0.8;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn.primary {
  background: rgba(0, 112, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 112, 255, 0.4);
  margin-top: 15px;
  color: #fff;
}

.btn.primary:hover {
  background: rgba(0, 112, 255, 0.9);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   HERO SLIDER (Widecom Solutions)
   - Full-width, full-height on desktop
   - Responsive & centered content
   - Works with existing HTML structure
============================================================ */

/* ------------ BASE LAYOUT ------------ */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;              /* Base height for smaller screens */
  overflow: hidden;
  background-color: #02040a; /* Fallback color behind images */
}

/* Medium screens: a bit taller */
@media (min-width: 768px) {
  .hero-section {
    height: 80vh;
  }
}

/* Desktop: full-screen hero */
@media (min-width: 1024px) {
  .hero-section {
    height: 100vh;           /* Full viewport height */
    min-height: 680px;       /* Keep it visually strong on laptops */
  }
}

/* Very large desktop (optional) */
@media (min-width: 1440px) {
  .hero-section {
    min-height: 760px;
  }
}

/* Wrapper translated by JS for slide changes */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;             /* Slides arranged horizontally */
  transition: transform 0.8s ease;
}

/* ------------ SLIDE ------------ */
.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;

  /* Center content on each slide */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: fade/scale for active slides (if JS toggles .is-active) */
.slide.is-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* ------------ BACKGROUND IMAGE & OVERLAY ------------ */
.hero-bg {
  position: absolute;
  inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Fills hero without distortion */
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
  z-index: 2;
}

/* ------------ CONTENT ------------ */
.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: center;
  max-width: 780px;
  padding: 16px 20px;
  margin: 0 auto;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive typography using clamp */
.hero-content h1 {
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 3.3vw + 0.7rem, 3.3rem);
}

.hero-content p {
  margin-bottom: 20px;
  opacity: 0.92;
  line-height: 1.5;
  font-size: clamp(0.98rem, 1.1vw + 0.55rem, 1.2rem);
}

/* Button inside hero (special styling) */
.hero-section .btn.primary {
  background: #0056ff;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.hero-section .btn.primary:hover,
.hero-section .btn.primary:focus-visible {
  background: #0041c4;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.hero-section .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Focus outline for accessibility */
.hero-section .btn.primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ------------ NAVIGATION ARROWS ------------ */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #ffffff;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.slider-prev:active,
.slider-next:active {
  transform: translateY(-50%) scale(0.98);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Keyboard focus */
.slider-prev:focus-visible,
.slider-next:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ------------ INDICATORS (DOTS) ------------ */
.slider-indicators {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.indicator {
  width: 11px;
  height: 11px;
  background: #ffffff80;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.indicator:hover {
  background: #ffffffcc;
  transform: scale(1.1);
}

.indicator.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* ============================================================
   SERVICES GRID & CARDS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.35s;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 60, 0.2);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 112, 255, 0.5);
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #dce8ff;
}

.service-card p {
  opacity: 0.8;
}

/* ============================================================
   SERVICE ICONS – ALIGNMENT
============================================================ */
.service-icon,
.service-card img.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  opacity: 0.9;
}

.service-card:hover .service-icon,
.service-card:hover img.service-icon {
  filter: brightness(0) invert(1) hue-rotate(210deg) saturate(5);
  opacity: 1;
  transform: scale(1.1);
}

.service-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: #dce8ff;
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   ALT SECTION
============================================================ */
.alt-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

/* ============================================================
   CONTACT SECTION – GLASS + FADE
============================================================ */
.contact-section {
  padding: 120px 0 80px;
  background: radial-gradient(circle at top left, rgba(0,112,255,0.35), rgba(5,10,20,0.96));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0,188,212,0.18), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.contact-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: #e9f1ff;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.contact-section .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Contact layout wrapper */
.contact-form-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   FORM – GLASS CARD
============================================================ */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(
    145deg,
    rgba(7, 12, 32, 0.97),
    rgba(10, 24, 52, 0.96)
  );
  padding: 32px;
  border-radius: 20px;
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: contactCardFade 0.7s ease-out both;
}

.contact-form:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 188, 212, 0.65);
  box-shadow: 0 22px 60px rgba(0, 188, 212, 0.35);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 188, 212, 0.9);
  background: rgba(8, 16, 40, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 188, 212, 0.6);
}

.contact-form button {
  align-self: flex-start;
  padding: 14px 36px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, rgba(0, 112, 255, 0.85), rgba(0, 188, 212, 0.9));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 14px 34px rgba(0, 112, 255, 0.6);
}

.contact-form button:hover {
  background: linear-gradient(135deg, rgba(0, 188, 212, 1), rgba(0, 112, 255, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 188, 212, 0.7);
}

/* ============================================================
   CONTACT INFO – GLASS CARD
============================================================ */
.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* New glass container for info content */
.contact-info-card {
  width: 100%;
  background: linear-gradient(
    150deg,
    rgba(6, 12, 32, 0.96),
    rgba(10, 22, 48, 0.97)
  );
  border-radius: 20px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: contactCardFade 0.8s ease-out both;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 0 0, rgba(0, 188, 212, 0.24), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 112, 255, 0.22), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  pointer-events: none;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.contact-info-card p {
  margin: 4px 0;
  position: relative;
  z-index: 1;
}

.contact-info-card a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-info-card a:hover {
  color: #00bcd4;
}

.contact-info-divider {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin: 16px 0 14px 0;
  position: relative;
  z-index: 1;
}

/* Existing social links, now inside the glass card if you use them */
.contact-info .footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.contact-info .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.contact-info .social-link:hover {
  color: #ffffff;
  background: rgba(0, 112, 255, 0.8);
  transform: scale(1.2);
}

/* ============================================================
   MAP INSIDE CONTACT SECTION (if used)
============================================================ */
.contact-section iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 20px;
  margin-top: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 60, 0.3);
}

/* ============================================================
   RESPONSIVE – CONTACT SECTION
============================================================ */
@media (max-width: 992px) {
  .contact-form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .contact-form,
  .contact-info-card {
    padding: 26px 22px;
  }

  .contact-form button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 90px 0 70px;
  }

  .contact-form,
  .contact-info-card {
    padding: 22px 18px;
  }
}

/* ============================================================
   ANIMATION – FADE IN FOR CARDS
============================================================ */
@keyframes contactCardFade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================================
   MEGA MENU (Responsive)
============================================================ */
/* These depend on header.html classes: .mega-menu, .nav-item.mega, .mega-column, etc. */

@media (max-width: 992px) {
  .mega-menu {
    position: static;
    width: 100%;
    flex-direction: column;
    padding: 20px 15px;
    background: rgba(5, 10, 20, 0.95);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-item.mega .mega-menu.show,
  .nav-item.mega.open .mega-menu {
    max-height: 900px;
    opacity: 1;
    visibility: visible;
  }

  .mega-column {
    max-width: none;
    margin: 18px 0;
    padding: 0 10px;
    text-align: center;
  }

  .mega-header img.nav-icon {
    width: 24px;
    height: 24px;
  }

  .mega-header h3 {
    font-size: 1.1rem;
  }

  .mega-column ul li a {
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mega-column ul li a {
    font-size: 0.9rem;
  }
}

/* ============================================================
   MOBILE MENU TOGGLE
============================================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
  position: relative;
  transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 992px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    flex-direction: column;
    display: none;
    background: rgba(10, 15, 30, 0.95);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(20px);
  }

  .nav-list.active {
    display: flex;
  }

  .mega-menu {
    position: static;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  .mega-column {
    margin-bottom: 20px;
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 992px) {
  .contact-form-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .contact-section .section-title {
    font-size: 2.2rem;
  }

  .contact-section .section-subtitle {
    font-size: 1rem;
  }

  .contact-form {
    padding: 30px;
  }
}

/* Small extra hero tweaks */
@media (max-width: 600px) {
  .hero-section {
    height: 65vh;
  }

  .hero-content {
    padding: 14px 16px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 5vw + 0.4rem, 2.1rem);
  }

  .slider-prev,
  .slider-next {
    font-size: 20px;
    padding: 7px 11px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slider-wrapper {
    transition: none;
  }

  .hero-content,
  .slider-prev,
  .slider-next,
  .indicator {
    transition: none;
  }
}
