/* ========================================
   AFRYX TECHNOLOGIES - MODERNIZED STYLES
   World-Class Design System
======================================== */

:root {
  /* Primary Colors */
  --af-primary: #0b3a6e;
  --af-primary-dark: #062949;
  --af-primary-light: #1a5a9e;
  --af-secondary: #0a2a4a;
  --af-accent: #f7a400;
  --af-accent-light: #ffb930;
  --af-light: #f5f8ff;
  --af-dark: #0b1220;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0a2a4a 0%, #0b3a6e 50%, #1a5a9e 100%);
  --gradient-accent: linear-gradient(135deg, #f7a400 0%, #ffb930 100%);
  --gradient-mesh: radial-gradient(at 15% 15%, rgba(42,167,255,0.3) 0%, transparent 50%),
                   radial-gradient(at 85% 20%, rgba(247,164,0,0.25) 0%, transparent 50%),
                   radial-gradient(at 50% 80%, rgba(11,58,110,0.2) 0%, transparent 50%),
                   linear-gradient(135deg, #0a2a4a, #0b3a6e);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11,58,110,0.08);
  --shadow-md: 0 8px 24px rgba(11,58,110,0.12), 0 2px 6px rgba(11,58,110,0.08);
  --shadow-lg: 0 20px 50px rgba(11,58,110,0.15), 0 5px 15px rgba(11,58,110,0.1);
  --shadow-xl: 0 30px 60px rgba(11,58,110,0.18), 0 10px 25px rgba(11,58,110,0.12);
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: blur(16px);
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
}

/* ========================================
   BASE STYLES & TYPOGRAPHY
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--af-dark);
  line-height: 1.6;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  overflow-x: hidden;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--af-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--af-primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--af-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--af-primary), var(--af-secondary));
  border-radius: 6px;
  border: 2px solid var(--af-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--af-primary-light), var(--af-primary));
}

/* ========================================
   TOP CONTACT BAR
======================================== */

.top-bar {
  background: linear-gradient(135deg, #041220, #0a2a4a);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(247,164,0,0.2);
  position: relative;
  z-index: 1031;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(247,164,0,0.5) 20%,
    rgba(247,164,0,0.5) 80%,
    transparent
  );
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: var(--fw-medium);
}

.top-bar-link:hover {
  color: var(--af-accent);
}

.top-bar-link i {
  font-size: 0.9rem;
  color: var(--af-accent);
  transition: transform 0.3s ease;
}

.top-bar-link:hover i {
  transform: scale(1.15);
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
  background: var(--gradient-accent);
  color: white;
  transform: translateY(-2px);
  border-color: var(--af-accent);
  box-shadow: 0 4px 12px rgba(247,164,0,0.3);
}

/* ========================================
   NAVIGATION & HEADER
======================================== */

.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 24px rgba(11,58,110,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1030;
  position: relative;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--af-primary) 15%,
    var(--af-accent) 50%,
    var(--af-primary) 85%,
    transparent
  );
  opacity: 0.8;
}

/* Sticky Header Behavior */
.navbar.scrolled {
  box-shadow: 0 8px 32px rgba(11,58,110,0.12);
}

.navbar.scrolled + .top-bar {
  transform: translateY(-100%);
}

/* Header Wrapper for Sticky */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 55px;
  width: auto;
  max-width: 260px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

@media (max-width: 767px) {
  .navbar-brand img {
    height: 42px;
    max-width: 200px;
  }
}

.navbar-nav .nav-link {
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,0.82);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover {
  background: rgba(11,58,110,0.08);
  color: var(--af-secondary);
  transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
  background: rgba(247,164,0,0.15);
  color: var(--af-secondary);
}

.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.dropdown-menu {
  border: 1px solid rgba(11,58,110,0.12);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  animation: dropdown-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin: 0.15rem 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(11,58,110,0.08);
  transform: translateX(4px);
}

/* Modern Hamburger Toggler */
.modern-toggler {
  border: none;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  position: relative;
  background: rgba(11,58,110,0.08);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-toggler:focus {
  box-shadow: 0 0 0 3px rgba(11,58,110,0.15);
  outline: none;
}

.modern-toggler:hover {
  background: rgba(11,58,110,0.12);
  transform: scale(1.05);
}

.toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--af-primary);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggler-icon:nth-child(1) {
  top: 12px;
}

.toggler-icon:nth-child(2) {
  top: 20px;
}

.toggler-icon:nth-child(3) {
  top: 28px;
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Nav Icons */
.nav-icon {
  display: none;
  margin-right: 0.5rem;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

@media (max-width: 991px) {
  .nav-icon {
    display: inline-block;
  }
}

.nav-link:hover .nav-icon {
  transform: scale(1.15);
}

/* Dropdown Arrow */
.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  min-width: 600px;
  max-width: 700px;
  border: 1px solid rgba(11,58,110,0.12);
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-xl);
  animation: mega-menu-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mega-menu-expanded {
  min-width: 900px;
  max-width: 1000px;
}

@keyframes mega-menu-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mega-menu-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 1.5rem;
  gap: 1.5rem;
}

.mega-menu-three-col {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
}

.mega-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu-title {
  font-size: 0.75rem;
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--af-primary);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(11,58,110,0.12);
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(11,18,32,0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mega-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-item:hover {
  background: rgba(11,58,110,0.06);
  transform: translateX(5px);
  color: var(--af-primary);
}

.mega-menu-item:hover::before {
  transform: scaleY(1);
}

.mega-menu-item i {
  font-size: 1.25rem;
  color: var(--af-primary);
  transition: all 0.3s ease;
  min-width: 24px;
}

.mega-menu-item:hover i {
  transform: scale(1.15) rotate(-5deg);
  color: var(--af-accent);
}

.item-title {
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--af-dark);
}

.item-desc {
  font-size: 0.8rem;
  color: rgba(11,18,32,0.6);
  line-height: 1.3;
}

.mega-menu-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(11,58,110,0.15) 20%,
    rgba(11,58,110,0.15) 80%,
    transparent
  );
}

/* CTA Button Enhancement */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.btn-cta:hover::after {
  transform: translateX(100%) rotate(45deg);
}

/* Mobile Menu Enhancements */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11,58,110,0.1);
  }

  .navbar-nav {
    gap: 0.25rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .mega-menu,
  .mega-menu-expanded {
    min-width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    border-radius: 12px;
  }

  .mega-menu-content,
  .mega-menu-three-col {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .mega-menu-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(11,58,110,0.15) 20%,
      rgba(11,58,110,0.15) 80%,
      transparent
    );
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ========================================
   BUTTONS
======================================== */

.btn {
  font-weight: var(--fw-bold);
  border-radius: 14px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-afryx {
  --bs-btn-bg: var(--af-primary);
  --bs-btn-border-color: var(--af-primary);
  --bs-btn-hover-bg: var(--af-primary-dark);
  --bs-btn-hover-border-color: var(--af-primary-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(11,58,110,0.4);
  position: relative;
}

.btn-afryx:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(11,58,110,0.3);
}

.btn-afryx:active {
  transform: translateY(0);
}

.btn-outline-afryx {
  --bs-btn-color: var(--af-primary);
  --bs-btn-border-color: rgba(11,58,110,0.35);
  --bs-btn-hover-bg: var(--af-primary);
  --bs-btn-hover-border-color: var(--af-primary);
  --bs-btn-hover-color: #fff;
  border-width: 2px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn-outline-afryx::before {
  background: var(--gradient-primary);
}

.btn-outline-afryx:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  padding: 22px 0 0;
}

.hero-carousel {
  position: relative;
}

.carousel,
.carousel .carousel-inner,
.carousel .carousel-item {
  border-radius: 24px;
  overflow: hidden;
}

.carousel .carousel-item {
  min-height: 520px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(42,167,255,0.28), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(247,164,0,0.22), transparent 60%),
    linear-gradient(120deg, var(--af-secondary), var(--af-primary) 55%, #104a8b);
  animation: gradient-shift 15s ease-in-out infinite;
}

.slide-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(42,167,255,0.15), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(247,164,0,0.12), transparent 60%),
    linear-gradient(120deg, rgba(10,42,74,0.55), rgba(11,58,110,0.60) 55%, rgba(16,74,139,0.55));
  z-index: 1;
}

.slide-bg.alt1 {
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(247,164,0,0.24), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(42,167,255,0.24), transparent 60%),
    linear-gradient(120deg, #051a33, var(--af-secondary) 45%, #0f4c8e);
  animation: gradient-shift-alt 15s ease-in-out infinite;
}

.slide-bg.alt2 {
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(42,167,255,0.22), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(247,164,0,0.28), transparent 60%),
    linear-gradient(120deg, #071f3d, #0b3a6e 55%, #103c72);
  animation: gradient-shift 15s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(5deg) brightness(1.05); }
}

@keyframes gradient-shift-alt {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(-5deg) brightness(1.05); }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), rgba(0,0,0,0.15), rgba(0,0,0,0));
  z-index: 2;
}

.carousel-caption {
  position: static;
  text-align: left;
  padding: 64px 56px;
  z-index: 3;
}

.carousel-caption h1 {
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4);
  animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.carousel-caption p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  animation: fade-in-up 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.carousel-caption .d-flex {
  animation: fade-in-up 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.95);
  font-weight: var(--fw-extrabold);
  font-size: 0.9rem;
  animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.kicker .dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--af-accent);
  box-shadow: 0 0 0 6px rgba(247,164,0,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ========================================
   SECTIONS & CONTENT
======================================== */

.section-title {
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--af-primary), var(--af-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.small-muted {
  color: rgba(11,18,32,0.72);
}

/* Feature Cards */
.feature-card {
  border: 1px solid rgba(11,58,110,0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(11,58,110,0.18);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11,58,110,0.1), rgba(11,58,110,0.06));
  color: var(--af-primary);
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .icon-badge {
  transform: scale(1.1) rotate(-5deg);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11,58,110,0.25);
}

/* Card Soft */
.card-soft {
  border: 1px solid rgba(11,58,110,0.1);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Gradient Band */
.gradient-band {
  background: var(--gradient-mesh);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.gradient-band::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(247,164,0,0.5), rgba(247,164,0,0) 60%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, -10px) scale(1.05); }
}

/* Badge */
.badge-pill {
  border-radius: 999px;
  background: rgba(247,164,0,0.12);
  color: #7a4a00;
  border: 1px solid rgba(247,164,0,0.25);
  font-weight: var(--fw-bold);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

/* Grid Background */
.bg-grid {
  background-image:
    linear-gradient(rgba(11,58,110,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,58,110,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Counter */
.counter {
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-text {
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

/* Team Avatar */
.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-black);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
======================================== */

.footer {
  background: linear-gradient(135deg, #041220, #061a31, #0a2746);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0.6;
}

.footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer a:hover {
  color: var(--af-accent);
  transform: translateX(3px);
}

.footer-logo {
  height: 58px;
  width: auto;
  max-width: 280px;
  filter: brightness(1.2) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.3) drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

@media (max-width: 767px) {
  .footer-logo {
    height: 45px;
    max-width: 220px;
  }
}

/* ========================================
   FORMS
======================================== */

.form-control,
.form-select {
  border-radius: 14px;
  border: 2px solid rgba(11,58,110,0.2);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--af-primary);
  box-shadow: 0 0 0 0.25rem rgba(11,58,110,0.15), var(--shadow-md);
  outline: none;
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: rgba(11,18,32,0.5);
}

/* ========================================
   PAGE HERO
======================================== */

.page-hero {
  background:
    radial-gradient(750px 320px at 15% 10%, rgba(42,167,255,0.18), transparent 60%),
    radial-gradient(700px 420px at 80% 20%, rgba(247,164,0,0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--af-light) 55%, #ffffff 100%);
  padding: 72px 0 22px;
  position: relative;
}

.page-hero-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero-with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,42,74,0.92) 0%,
    rgba(11,58,110,0.88) 50%,
    rgba(10,42,74,0.92) 100%
  );
  z-index: 1;
}

.page-hero-with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(42,167,255,0.15), transparent 60%),
    radial-gradient(500px 350px at 80% 70%, rgba(247,164,0,0.12), transparent 60%);
  z-index: 2;
}

.page-hero-with-image .container {
  position: relative;
  z-index: 3;
}

.page-hero-with-image .breadcrumb {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}

.page-hero-with-image .breadcrumb-item,
.page-hero-with-image .breadcrumb-item a {
  color: rgba(255,255,255,0.9);
}

.page-hero-with-image .breadcrumb-item.active {
  color: var(--af-accent);
}

.page-hero-with-image .section-title,
.page-hero-with-image h1,
.page-hero-with-image .lead,
.page-hero-with-image p {
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.post-meta {
  font-size: 0.9rem;
  color: rgba(11,18,32,0.65);
}

/* ========================================
   ANIMATIONS
======================================== */

/* Fade In Sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation for Grid Items */
.stagger-animation > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.is-visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-animation.is-visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-animation.is-visible > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-animation.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading-skeleton {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    90deg,
    rgba(11,58,110,0.08) 0%,
    rgba(11,58,110,0.15) 50%,
    rgba(11,58,110,0.08) 100%
  );
  background-size: 1000px 100%;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 991px) {
  .carousel-caption {
    padding: 44px 26px;
  }
  
  .carousel .carousel-item {
    min-height: 500px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 16px 0 0;
  }
  
  .carousel-caption {
    padding: 32px 20px;
  }
  
  .carousel .carousel-item {
    min-height: 550px;
  }
  
  .carousel-caption h1 {
    font-size: 1.75rem !important;
  }
  
  .kicker {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .gradient-band {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ========================================
   ACCESSIBILITY & UTILITIES
======================================== */

/* Focus Visible */
*:focus-visible {
  outline: 3px solid var(--af-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .btn,
  .footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .carousel .carousel-item {
    display: block !important;
  }
}

/* Selection */
::selection {
  background: var(--af-accent);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background: var(--af-accent);
  color: white;
  text-shadow: none;
}

/* ========================================
   ABOUT PAGE STYLES
======================================== */

/* About Image Placeholder */
.about-image-wrapper {
  position: relative;
}

.about-image-placeholder {
  background: linear-gradient(135deg, var(--af-light), #fff);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed rgba(11,58,110,0.2);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder i {
  color: var(--af-primary);
  opacity: 0.3;
}

/* Feature Highlights */
.feature-highlight {
  display: flex;
  gap: 1rem;
  align-items-start;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-highlight:hover {
  background: rgba(11,58,110,0.04);
  transform: translateX(5px);
}

.feature-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Mission & Vision Icons */
.mission-vision-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--af-primary),
    var(--af-accent)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -3.45rem;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--af-accent);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--af-accent);
  z-index: 2;
}

.timeline-content {
  animation: fade-in-right 0.6s ease-out;
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Value Cards */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(11,58,110,0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--af-accent);
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11,58,110,0.1), rgba(11,58,110,0.05));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--af-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

/* Team Cards */
.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(11,58,110,0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-card-avatar {
  background: var(--gradient-mesh);
  padding: 2rem;
  text-align: center;
}

.team-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 3px solid white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--fw-black);
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.team-card-content {
  padding: 1.5rem;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  background: rgba(11,58,110,0.08);
  color: var(--af-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  border: 1px solid rgba(11,58,110,0.15);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--af-primary);
  color: white;
  transform: translateY(-2px);
}

/* Team Member Cards */
.team-member-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(11,58,110,0.1);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.team-member-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.team-member-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--af-light), #e8f0ff);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .team-member-image img {
  transform: scale(1.1);
}

.team-member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,58,110,0.95), rgba(11,58,110,0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .team-member-overlay {
  opacity: 1;
}

.team-social-links {
  display: flex;
  gap: 1rem;
}

.team-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.team-member-card:hover .team-social-link {
  transform: translateY(0);
  opacity: 1;
}

.team-member-card:hover .team-social-link:nth-child(1) {
  transition-delay: 0.1s;
}

.team-member-card:hover .team-social-link:nth-child(2) {
  transition-delay: 0.15s;
}

.team-member-card:hover .team-social-link:nth-child(3) {
  transition-delay: 0.2s;
}

.team-social-link:hover {
  background: var(--gradient-accent);
  transform: translateY(-3px) scale(1.1);
  border-color: var(--af-accent);
}

.team-member-info {
  padding: 1.5rem;
}

.team-skills-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(11,58,110,0.08);
  color: var(--af-primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  border: 1px solid rgba(11,58,110,0.15);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--af-primary);
  color: white;
}

@media (max-width: 991px) {
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline-marker {
    left: -2.45rem;
  }
  
  .value-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .team-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
}

/* Partners Section */
.partner-logo-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-logo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: rgba(11,58,110,0.2);
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo-card:hover .partner-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--af-dark);
  margin: 0;
}

@media (max-width: 767px) {
  .partner-logo-card {
    padding: 1.5rem;
  }
  
  .partner-logo {
    height: 60px;
  }
  
  .partner-name {
    font-size: 0.8rem;
  }
}
