* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0b0f1a;
  color: #fff;
  overflow-x: hidden;
}
/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #050b1a, #02040a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Loader Content */
.loader-content {
  text-align: center;
}

/* Logo Animation */
.loader-content img {
  width: 180px;
  max-width: 80%;
  margin-bottom: 25px;
  animation: glowPulse 2.8s ease-in-out infinite;
}

/* Loading Bar */
.loader-bar {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin: auto;
  position: relative;
}

.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, #00d4ff, #0066ff);
  animation: loadingMove 1.6s ease-in-out infinite;
  border-radius: 10px;
}

/* Animations */
@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(0, 212, 255, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
  }
}

@keyframes loadingMove {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .loader-content img {
    width: 140px;
  }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  padding: 15px 8%;
  z-index: 999;
}

.navbar a {
  margin-left: 20px;
  color: #fff;
  text-decoration: none;
}

/* ===== LOGO BASE ===== */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

/* Text Styles */
.logo-main {
  color: #ffffff;
}

.logo-highlight {
  position: relative;
  background: linear-gradient(45deg, #00d4ff, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Idle glow animation */
  animation: glowPulse 3.5s ease-in-out infinite;
}

.logo-sub {
  color: #00d4ff;
  font-weight: 600;
}

/* ===== UNDERLINE (STAYS SUBTLE) ===== */
.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #0066ff);
  border-radius: 5px;
  opacity: 0.4;
}

/* ===== GLOW KEYFRAMES ===== */
@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 4px rgba(0, 212, 255, 0.3),
      0 0 8px rgba(0, 102, 255, 0.2);
  }
  50% {
    text-shadow:
      0 0 10px rgba(0, 212, 255, 0.8),
      0 0 20px rgba(0, 102, 255, 0.6);
  }
  100% {
    text-shadow:
      0 0 4px rgba(0, 212, 255, 0.3),
      0 0 8px rgba(0, 102, 255, 0.2);
  }
}

/* ===== HOVER BOOST (OPTIONAL) ===== */
.logo:hover .logo-highlight {
  animation-play-state: paused;
  text-shadow:
    0 0 14px rgba(0, 212, 255, 1),
    0 0 28px rgba(0, 102, 255, 0.9);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }
}

/* ===== RESPONSIVE NAVBAR ===== */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 70px;
    right: 8%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: 0.4s ease;
  }

  .navbar nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar nav a {
    margin: 10px 0;
  }
}

/* ===== GLOBAL RESPONSIVE FIXES ===== */
img {
  max-width: 100%;
  height: auto;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

section {
  padding: 70px 6%;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }

  .hero {
    height: 90vh;
  }

  .hero-content {
    top: 35%;
    padding: 0 20px;
  }

  .contact-grid,
  .team-grid,
  .gallery-grid,
  .service-boxes {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 14px 5%;
  }

  .btn {
    padding: 10px 22px;
  }
}

/* ===== HERO FIX ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* Dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  text-align: center;
  top: 38%;
  padding: 0 20px;
}


.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg,#00d4ff,#0066ff);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  margin-top: 20px;
}

/* Sections */
section {
  padding: 80px 8%;
}

.about {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 20px;
}

.services .service-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px;
}

.service {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  text-align: center;
  border-radius: 20px;
}

.service i {
  font-size: 40px;
  color: #00d4ff;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 15px;
}

/* Team */
/* ===== TEAM SECTION FIX ===== */
.team {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.member {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 30px 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.member:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 212, 255, 0.15);
}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00d4ff;
  margin-bottom: 15px;
}

.member h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.member span {
  font-size: 0.9rem;
  color: #00d4ff;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .member {
    padding: 25px 15px;
  }

  .member img {
    width: 100px;
    height: 100px;
  }
}


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
}

form button {
  padding: 12px;
  background: #00d4ff;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: #05080f;
}
