@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f4f7fd;
  color: #1d1d1d;
  text-align: center;
  line-height: 1.6;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 07px 10%;
  background: white;
  box-shadow: 0 2px 10px rgba(31, 59, 147, 0.08);
  z-index: 1000;
  border-bottom: 3px solid #1f3b93;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #1f3b93;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #162c6d;
}

.btn-login {
  background: linear-gradient(to right, #4b6cb7, #1f3b93);
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #162c6d;
}

.menu-icon {
  display: none;
  font-size: 24px;
  color: #1f3b93;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    z-index: 1100;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    text-align: center;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    height: auto;
    padding: 10px 0;
  }

  .nav-links li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }
}

#userEmail {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  padding: 0 10px;
  color: #1f3b93;
}

.nav-gap {
  height: 58px;
}

/* ========== Global Enhancements ========== */
body {
  overflow-x: hidden;
  position: relative;
}

/* Floating Icons Background */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.15);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Particle background for hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  z-index: 0;
  animation: particleMove 20s infinite linear;
}

@keyframes particleMove {
  from {
    background-position: 0 0, 20px 20px;
  }
  to {
    background-position: 40px 40px, 60px 60px;
  }
}

/* ========== Enhanced Hero Section ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 5%;
  background: linear-gradient(135deg, #5c6bc0, #1f3b93);
  color: #fff;
  margin-top: 70px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: fadeInHero 1.2s ease-in;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 8s infinite linear;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

@keyframes fadeInHero {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  flex: 1;
  max-width: 50%;
  animation: fadeInText 1.5s ease-in;
  position: relative;
  z-index: 2;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4);
  }
}

.hero-text h2 {
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #dce3ff;
  margin-bottom: 15px;
  animation: slideIn 1s ease-out;
}

.hero-text p {
  font-size: 18px;
  color: #e0e8ff;
  margin-bottom: 30px;
  animation: fadeIn 2s ease-in;
}

.btn {
  background: #ffffff;
  color: #1f3b93;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin: 5px;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: #e3ebff;
  color: #162c6d;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 1s ease-out, opacity 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero-img::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(31, 59, 147, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.hero-img.show {
  opacity: 1;
  transform: translateX(0);
}

.hero-img img {
  max-width: 400px;
  width: 100%;
  height: auto;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  animation: floatImage 4s infinite ease-in-out;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding: 60px 5%;
  }
  .hero-text {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .hero-img img {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .hero-img {
    transform: translateX(-60%);
  }
  .hero-img img {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 36px;
  }
  .hero-text h2 {
    font-size: 22px;
  }
  .hero-text p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .btn {
    padding: 12px 18px;
  }
  .hero-img img {
    max-width: 280px;
  }
}

/* ========== Enhanced Mission & Vision ========== */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 50px 8%;
  position: relative;
}

.mission, .vision {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 480px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.mission::before, .vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #5c6bc0 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.mission:hover::before, .vision:hover::before {
  opacity: 0.05;
}

.mission:hover, .vision:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(92, 107, 192, 0.1);
}

.mission h2, .vision h2 {
  color: #1f3b93;
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.mission h2::after, .vision h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #5c6bc0, #1f3b93);
  transition: width 0.5s ease;
}

.mission:hover h2::after, .vision:hover h2::after {
  width: 100%;
}

.mission p, .vision p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  transition: transform 0.3s ease;
}

.mission:hover p, .vision:hover p {
  transform: translateX(5px);
}

/* ========== Enhanced Achievements Section ========== */
.achievements {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 50px 10%;
  background: #ffffff;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.achievements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(92, 107, 192, 0.03) 0%, transparent 70%);
  z-index: 0;
}

.achievement {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #1f3b93;
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.achievement:hover {
  background: rgba(92, 107, 192, 0.05);
  transform: translateY(-5px);
}

.achievement span {
  font-size: 42px;
  color: #1f3b93;
  animation: counterZoom 1.5s ease-in-out;
  display: block;
  margin-bottom: 5px;
  position: relative;
}

.achievement span::after {
  content: '+';
  position: absolute;
  right: -15px;
  top: 0;
  font-size: 24px;
}

@keyframes counterZoom {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========== Enhanced Team Section ========== */
.team {
  padding: 50px 10%;
  text-align: center;
  background: #f5f8ff;
  position: relative;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='%235c6bc0' fill-opacity='0.1'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  z-index: 0;
}

.team h2 {
  font-size: 32px;
  color: #1f3b93;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.team-member {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease-in-out;
  border-bottom: 5px solid #1f3b93;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #5c6bc0, #1f3b93);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.team-member:hover::before {
  transform: scaleX(1);
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0px 10px 22px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  filter: grayscale(20%);
}

.team-member:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
  font-size: 18px;
  color: #1f3b93;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.team-member:hover h3 {
  transform: translateY(-3px);
}

.team-member p {
  font-size: 14px;
  color: #555;
  transition: transform 0.3s ease;
}

.team-member:hover p {
  transform: translateY(-3px);
}

.team-member.show {
  transform: translateY(0);
  opacity: 1;
}

/* Social icons for team members */
.team-social {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.team-member:hover .team-social {
  bottom: 20px;
  opacity: 1;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #5c6bc0;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: #1f3b93;
  transform: translateY(-3px);
}

/* ========== Enhanced Office Section ========== */
.office {
  padding: 50px 10%;
  background: white;
  text-align: center;
  position: relative;
}

.office::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.03) 0%, transparent 70%);
  z-index: 0;
}

.office h2 {
  font-size: 32px;
  color: #1f3b93;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.office img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.office img:hover {
  transform: scale(1.02);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
}

.office p {
  font-size: 16px;
  color: #333;
  margin: 12px 0;
  position: relative;
  z-index: 1;
}

.location-btn {
  background: #1f3b93;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 12px;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.location-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.location-btn:hover::before {
  left: 100%;
}

.location-btn:hover {
  background: #162c6d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(31, 59, 147, 0.3);
}

/* ========== Super Enhanced Contact Section ========== */
#reach {
    background: linear-gradient(135deg, #f4f6fb 0%, #e8eef9 100%);
    padding: 80px 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#reach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f3b93' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

#reach h2 {
    font-size: 38px;
    color: #1f3b93;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    width: 280px;
    box-shadow: 0 8px 25px rgba(31, 59, 147, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: contactBoxEntrance 0.8s ease-out forwards;
}

.contact-box:nth-child(1) { animation-delay: 0.1s; }
.contact-box:nth-child(2) { animation-delay: 0.2s; }
.contact-box:nth-child(3) { animation-delay: 0.3s; }

@keyframes contactBoxEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contact-box:hover::before {
    transform: scaleX(1);
}

.contact-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 59, 147, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-box:hover::after {
    opacity: 1;
}

.contact-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(31, 59, 147, 0.2);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e1e9ff;
    transition: all 0.4s ease;
    position: relative;
}

.contact-box:hover .icon-container {
    background: #1f3b93;
    transform: rotateY(180deg);
}

.contact-box:hover .icon-container img {
    filter: brightness(0) invert(1);
}

.icon-container img {
    width: 44px;
    transition: all 0.4s ease;
}

.contact-box h3 {
    font-size: 20px;
    margin: 10px 0 8px;
    color: #1f3b93;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-box:hover h3 {
    color: #162c6d;
}

.contact-box p {
    color: #333;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.contact-box:hover p {
    color: #444;
}

/* Floating elements for contact section */
.contact-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.1);
    animation: floatContact 8s infinite ease-in-out;
}

.contact-floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 15px;
    height: 15px;
    animation-delay: 0s;
    animation-duration: 10s;
}

.contact-floating-element:nth-child(2) {
    top: 60%;
    left: 85%;
    width: 25px;
    height: 25px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.contact-floating-element:nth-child(3) {
    top: 80%;
    left: 15%;
    width: 18px;
    height: 18px;
    animation-delay: 4s;
    animation-duration: 9s;
}

@keyframes floatContact {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@media (max-width: 768px) {
    #reach h2 {
        font-size: 30px;
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-box {
        width: 100%;
        max-width: 300px;
    }
}

/* ========== Super Enhanced Footer ========== */
footer {
    position: relative;
    background: linear-gradient(135deg, #dbe4f8 0%, #e1e7fa 100%);
    color: #333;
    padding: 80px 10% 40px;
    overflow: hidden;
    border-top: 5px solid #1f3b93;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f3b93' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-intro {
    max-width: 800px;
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-intro h2 {
    font-size: 32px;
    color: #1f3b93;
    margin-bottom: 15px;
    font-weight: 700;
    animation: fadeInRight 1s ease-out;
}

.underline {
    width: 460px;
    height: 3px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7, #1f3b93);
    margin-bottom: 20px;
    border-radius: 2px;
    animation: expandLine 1.5s ease-out;
}

@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 460px;
    }
}

.footer-intro p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 1.2s ease-out 0.4s both;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/circles-light.png');
    opacity: 0.08;
    animation: bgAnimation 15s infinite alternate;
    z-index: 0;
}

@keyframes bgAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: #1f3b93;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 12px 0;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #1f3b93;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    padding-left: 20px;
}

.footer-section ul li:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section ul li a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1f3b93;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1f3b93;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-section p a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section p a:hover {
    color: #1f3b93;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f3b93, #4b6cb7);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 15px rgba(31, 59, 147, 0.3);
}

.social-icons img {
    width: 24px;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icons a:hover img {
    filter: brightness(0) invert(1);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(31, 59, 147, 0.2);
    text-align: center;
    font-size: 15px;
    color: #333;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 8px 0;
}

.policy-link {
    color: #1f3b93 !important;
    text-decoration: none !important;
    font-weight: 600;
    position: relative !important;
    z-index: 9999 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.policy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f3b93;
    transition: width 0.3s ease;
}

.policy-link:hover {
    transform: translateY(-2px);
}

.policy-link:hover::after {
    width: 100%;
}

/* Floating elements for footer */
.footer-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-floating-element {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.08);
    animation: floatFooter 10s infinite ease-in-out;
}

.footer-floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.footer-floating-element:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.footer-floating-element:nth-child(3) {
    top: 80%;
    left: 15%;
    animation-delay: 6s;
    animation-duration: 18s;
}

@keyframes floatFooter {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 60px 5% 30px;
    }
    
    .footer-intro h2 {
        font-size: 28px;
    }
    
    .underline {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}