/* ========================================
   INDEX.PHP ENHANCED STYLES
   Modern, Interactive Design System
   ======================================== */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
  /* Colors */
  --primary-color: #0c359e;
  --secondary-color: #00224d;
  --accent-color: #4a90e2;
  --light-bg: #eeeeee;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-blue: linear-gradient(135deg, #0c359e 0%, #4a90e2 100%);
  --gradient-dark: linear-gradient(135deg, #00224d 0%, #0c359e 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.25);
  --glow-primary: 0 0 20px rgba(12, 53, 158, 0.3);
  --glow-accent: 0 0 30px rgba(74, 144, 226, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ========================================
   BACKGROUND ANIMATIONS
   ======================================== */

/* Animated Background Container */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

/* Floating Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  top: 20%;
  right: -5%;
  animation-delay: 5s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  bottom: -15%;
  left: 30%;
  animation-delay: 10s;
}

.orb-4 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  bottom: 10%;
  right: 20%;
  animation-delay: 15s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

/* Particle Network Animation */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* ========================================
   ENHANCED CARD STYLES
   ======================================== */

.feature-card {
  position: relative;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-card .card-body {
  padding: 2.5rem !important;
  position: relative;
  z-index: 1;
}

/* Card Icon Animation */
.feature-card .card-title svg {
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card:hover .card-title svg {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Card Variants */
.feature-card.card-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.feature-card.card-dark {
  background: var(--gradient-dark);
  color: white !important;
}

.feature-card.card-dark .card-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.feature-card.card-dark:hover {
  background: linear-gradient(135deg, #00224d 0%, #0c359e 100%);
  box-shadow: 0 12px 48px rgba(12, 53, 158, 0.4);
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ========================================
   BANNER SECTION ENHANCEMENTS
   ======================================== */

.banner-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 53, 158, 0.05) 0%,
    rgba(74, 144, 226, 0.05) 100%
  );
  z-index: -1;
}

.ban1 {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.ban1 h4 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ban1 p {
  font-size: 1.5rem;
  color: #666;
  font-weight: 300;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   TYPOGRAPHY ENHANCEMENTS
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
}

.titpara {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  padding-top: 0.3em;
}

#nin {
  color: var(--primary-color);
  padding: 1.5rem;
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

#nin::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.bout {
  margin: 6rem 0;
  position: relative;
}

.bout h2 {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.bout h2:first-child {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 2rem 0;
}

/* ========================================
   IMAGE ENHANCEMENTS
   ======================================== */

.featurette-image {
  transition: all var(--transition-slow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.featurette-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */

.b-example-divider {
  height: 3rem;
  background-color: transparent;
  border: 0;
  opacity: 0.1;
}

/* ========================================
   ENHANCED SHADOW & BORDER STYLES
   ======================================== */

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.rounded-3 {
  border-radius: var(--radius-lg) !important;
}

.border {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .ban1 h4 {
    font-size: 2rem;
  }

  .ban1 p {
    font-size: 1.2rem;
  }

  #nin {
    font-size: 1.8rem;
  }

  .bout h2:first-child {
    font-size: 2.2rem;
  }

  .titpara {
    font-size: 1.1rem;
  }

  .feature-card .card-body {
    padding: 1.5rem !important;
  }

  .orb-1,
  .orb-2,
  .orb-3,
  .orb-4 {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .ban1 h4 {
    font-size: 1.6rem;
  }

  .ban1 p {
    font-size: 1rem;
  }

  #nin {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .bout {
    margin: 3rem 0;
  }

  .bout h2:first-child {
    font-size: 1.8rem;
  }

  .orb-1,
  .orb-2,
  .orb-3,
  .orb-4 {
    width: 80px;
    height: 80px;
    filter: blur(24px);
  }
}

/* ========================================
   LOADING SPINNER ENHANCEMENT
   ======================================== */

.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner div {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: spinner 1.2s linear infinite;
}

.spinner div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}

.spinner div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}

.spinner div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}

.spinner div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}

.spinner div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}

.spinner div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}

@keyframes spinner {
  0%,
  20%,
  80%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
