:root {
  /* Next Gen High-Contrast Colors */
  --primary-dark: #071B3D;
  --primary-royal: #184EA6;
  --secondary-red: #E31E24;
  --secondary-red-soft: #FF3344;
  
  --bg-light: #F0F4F8;
  --bg-white: #FFFFFF;
  --text-dark: #0D1B2A;
  --text-gray: #5C677D;

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Background Animated Orbs for Next-Gen Graphic Feel */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: floatOrb 18s infinite alternate ease-in-out;
  pointer-events: none;
}
body::before {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(24, 78, 166, 0.15) 0%, rgba(24, 78, 166, 0) 70%);
  top: -10vw; left: -10vw;
}
body::after {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.12) 0%, rgba(227, 30, 36, 0) 70%);
  bottom: 10vh; right: -5vw;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1.0); }
  50% { transform: translate(8vw, 8vh) scale(1.15); }
  100% { transform: translate(-5vw, 15vh) scale(0.9); }
}

/* Typography Utilities */
.text-primary-dark { color: var(--primary-dark); }
.text-primary-royal { color: var(--primary-royal); }
.text-danger { color: var(--secondary-red) !important; }
.text-gray { color: var(--text-gray); }
.bg-primary { background-color: var(--primary-dark) !important; }
.tracking-wider { letter-spacing: 2px; }

/* Radiant Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-royal), var(--secondary-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Spacing */
.section-padding { padding: 120px 0; position: relative; z-index: 1; }
.section-title { 
  font-weight: 800; 
  color: var(--primary-dark); 
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -1px;
}
.section-subtitle { font-size: 1.15rem; color: var(--text-gray); max-width: 700px; line-height: 1.8; }

/* Logos */
.navbar-logo {
  height: 55px;
  width: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.6);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.navbar-logo:hover { transform: scale(1.05) rotate(-1deg); }

.footer-logo {
  height: 65px;
  width: auto;
  background-color: #ffffff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Navbar */
.navbar-custom {
  background-color: transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 25px 0;
}
.navbar-custom.scrolled {
  background: rgba(7, 27, 61, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-custom .navbar-brand {
  color: #fff !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-red-soft);
  transition: width 0.3s ease;
}
.navbar-custom .nav-link:hover::after, .navbar-custom .nav-link.active::after {
  width: 100%;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.navbar-toggler { border-color: rgba(255,255,255,0.3) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}
@media (max-width: 991px) {
  .navbar-custom { background-color: var(--primary-dark); padding: 15px 0; }
  .navbar-custom .navbar-collapse {
      background: var(--primary-dark);
      padding: 1rem;
      border-radius: 12px;
      margin-top: 15px;
      border: 1px solid rgba(255,255,255,0.1);
  }
}

/* Next Generation Glowing Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--secondary-red), #C21218);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 14px 35px;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(227, 30, 36, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.btn-primary-custom::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-royal), var(--primary-dark));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}
.btn-primary-custom:hover::after { opacity: 1; }
.btn-primary-custom:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(30, 91, 184, 0.4);
}

/* Graphic Header Backgrounds */
.page-header {
    padding: 180px 0 140px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}
.page-header::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(135deg, rgba(7,27,61,0.92) 0%, rgba(24,78,166,0.85) 100%);
    z-index: 0;
}
.about-header-bg    { background: url('https://images.unsplash.com/photo-1551076805-e18690c5e561?auto=format&fit=crop&q=80&w=2000') center/cover fixed; }
.services-header-bg { background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&q=80&w=2000') center/cover fixed; }
.contact-header-bg  { background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=2000') center/cover fixed; }

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}
.hero-image-bg {
    background: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&q=80&w=2000') center/cover fixed;
}
.hero-image-bg::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(135deg, rgba(7,27,61,0.88), rgba(227,30,36,0.8));
    z-index: 0;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Next-Gen Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
/* Glowing animated top border for cards */
.glass-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--primary-royal), var(--secondary-red), var(--primary-royal));
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: shineGradient 3s linear infinite;
  z-index: 0;
}
@keyframes shineGradient {
  to { background-position: 200% center; }
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(24, 78, 166, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(24, 78, 166, 0.2);
}

/* Advanced Floating Icons */
.icon-box {
  transition: transform 0.4s ease;
}
.glass-card:hover .icon-box {
  transform: scale(1.15) rotate(5deg);
}

/* Interactive Tabs Details */
.custom-pills .nav-link {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-gray);
    font-weight: 600;
    text-align: left;
    padding: 18px 30px;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.4);
}
.custom-pills .nav-link:hover {
    background: rgba(24, 78, 166, 0.08);
    color: var(--primary-royal);
    transform: translateX(10px);
}
.custom-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-royal), #0B3C8C);
    color: white;
    box-shadow: 0 15px 30px rgba(24, 78, 166, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* Badges */
.badge {
  padding: 0.7em 1.4em;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

/* Next-Gen Footer Graphic */
.footer {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, rgba(7,27,61,0) 60%);
  border-radius: 50%;
  pointer-events: none;
}
.footer::after {
  content: ''; position: absolute;
  bottom: -30%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(24,78,166,0.15) 0%, rgba(7,27,61,0) 60%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--secondary-red-soft);
  transform: translateX(8px);
}
