/* ==========================================================================
   1. GLOBAL SYSTEM BASE STYLES
   ========================================================================== */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  overflow-x: hidden;
}

/* Base Navigation Container Properties */
.navbar {
  background: linear-gradient(180deg, rgba(4, 24, 43, 0.95) 0%, rgba(4, 24, 43, 0.8) 100%) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(4px);
  z-index: 1030;
}

/* Scrolled Navbar Overlay Trigger */
.navbar.scrolled {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.98), rgba(4, 31, 53, 0.98)) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px) !important;
}

/* Navigation Link Legibility Constraints */
.nav-item a {
  color: #fff !important;
  font-weight: 500;
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  background: rgba(34, 34, 34, 0.95);
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 200px;
}

.dropdown-item {
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: normal;
  overflow-wrap: break-word;
}

.dropdown-item:hover {
  background: #0066cc;
  color: #fff;
}

/* Fixed Global Logo Constraint */
.heroLogo {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain;
  margin-right: 10px;
}

/* Footer Architecture */
footer {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(4, 31, 53, 0.98));
  color: #bbb;
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

/* Back to Top Interactive Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
  background: linear-gradient(90deg, #0066cc, #0099ff);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: linear-gradient(90deg, #0052a3, #0077cc);
  transform: translateY(-3px);
}

/* Custom Interactive Cursor Nodes */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #ff6600;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 2px solid #0066cc;
  position: fixed;
  top: -16px;
  left: -16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease-out;
}


/* ==========================================================================
   2. INDEX PAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Section Specifics */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  height: 550px; /* Shortened desktop profile constraint */
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 24, 43, 0.75), rgba(0, 102, 204, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  padding-top: 100px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
  animation: fadeInDown 1.2s ease-out;
}
.hero .EI { color: #fff; }
.hero .DE { color: #ff6600; }

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 1.5rem 0;
  animation: fadeInUp 1.2s ease-out 0.5s;
  animation-fill-mode: both;
}

.hero .btn-primary {
  background: linear-gradient(90deg, #0066cc, #0099ff);
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero .btn-primary:hover {
  background: linear-gradient(90deg, #0052a3, #0077cc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}

.hero .btn-primary:hover::after {
  left: 100%;
}

/* About Section Specifics */
#about {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#about h2 {
  font-weight: 700;
  color: #003366;
  position: relative;
  display: inline-block;
}

#about h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #0099ff);
}

#about p, #about li {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

#about img {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Unified Card Styling for Index Sections */
.service-card, .why-card, .industry-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 1;
  perspective: 1000px;
  cursor: pointer;
}

.service-card::before, .why-card::before, .industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #143c5b, #0099ff);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.service-card:hover::before, .why-card:hover::before, .industry-card:hover::before {
  opacity: 1;
}

.service-card:hover, .why-card:hover, .industry-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card .card-body, .why-card .card-body, .industry-card .card-body {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  transition: color 0.5s ease;
}

.service-card i, .why-card i, .industry-card i {
  font-size: 3rem;
  color: #0066cc;
  transition: transform 0.5s ease, color 0.5s ease;
}

.service-card:hover i, .why-card:hover i, .industry-card:hover i {
  color: #fff;
  transform: scale(1.2) rotate(10deg);
  animation: pulse 1.5s infinite;
}

.service-card h5, .why-card h5, .industry-card h5 {
  font-weight: 700;
  font-size: 1.5rem;
  color: #003366;
  margin: 1rem 0;
  transition: color 0.5s ease;
}

.service-card p, .why-card p, .industry-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.5s ease;
}

.service-card:hover h5, .service-card:hover p, .why-card:hover h5, .why-card:hover p, .industry-card:hover h5, .industry-card:hover p {
  color: #fff;
}

@keyframes pulse {
  0%, 100% { transform: scale(1.2) rotate(10deg); }
  50% { transform: scale(1.3) rotate(10deg); }
}

/* Services Section Specifics */
#services {
  padding: 6rem 0;
  background: url('https://images.unsplash.com/photo-1516321310762-479437144403?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
}

#services h2 {
  font-weight: 700;
  color: #003366;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

/* Why Choose Us Section Specifics */
#why-choose-us {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#why-choose-us video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

#why-choose-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,249,250,0.9), rgba(233,236,239,0.9));
  z-index: 0;
}

#why-choose-us h2 {
  font-weight: 700;
  color: #003366;
  position: relative;
  z-index: 1;
}

/* Special About Section Specifics */
#special-about {
  padding: 6rem 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
  color: #fff;
}

#special-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,51,102,0.7), rgba(0,102,204,0.4));
}

#special-about h2 {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

#special-about ul {
  list-style: none;
  padding: 0;
}

#special-about li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  animation: slideInLeft 0.8s ease-out;
  animation-fill-mode: both;
}

#special-about li:nth-child(1) { animation-delay: 0.2s; }
#special-about li:nth-child(2) { animation-delay: 0.4s; }
#special-about li:nth-child(3) { animation-delay: 0.6s; }
#special-about li:nth-child(4) { animation-delay: 0.8s; }

#special-about li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #ff6600;
  font-size: 1.2rem;
}

/* Work With Us Section Specifics */
#work-with-us {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#work-with-us h2 {
  font-weight: 700;
  color: #003366;
}

/* Stats Section Specifics */
#stats {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: #fff;
  position: relative;
}

.stats .counter {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stats p {
  font-size: 1.2rem;
}

/* Clients Section Specifics */
#clients {
  padding: 6rem 0;
  background: #fff;
}

.clients img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 10px;
  max-height: 80px;
}

.clients img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

.clients .slick-slide {
  margin: 0 15px;
}


/* ==========================================================================
   3. RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .hero { height: 420px; }
  .hero h1 { font-size: 2.8rem; }
  .stats .counter { font-size: 2.5rem; }
  #about img { margin-top: 2rem; }
  .service-card, .why-card, .industry-card {
    margin-bottom: 1.5rem;
    transform: none !important;
  }
  .service-card:hover, .why-card:hover, .industry-card:hover {
    transform: translateY(-10px) !important;
  }
}

.WWS {
  font-size: 1rem !important;
}
