body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

/* Navbar Styles */
.navbar {
  transition: all 0.3s ease;
  z-index: 1050;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1) rotate(5deg);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1a4b6f;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:before {
  width: 70%;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  animation: dropdownFade 0.3s ease;
}

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

.dropdown-item {
  transition: all 0.2s ease;
  padding: 0.65rem 1.2rem;
}

.dropdown-item:hover {
  background: rgba(26, 75, 111, 0.1);
  transform: translateX(5px);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: #f8f9fa;
  --bs-dropdown-link-active-color: #6c757d;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #f8f9fa;
  color: #6c757d !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-section .carousel-inner {
  height: 100vh;
  position: relative;
  z-index: 3;
}

.hero-section .carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 1.2s ease-in-out;
}

.carousel-item.active h1 {
  animation: fadeInUp 0.8s ease forwards;
}

.carousel-item.active p {
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bg-1 {
  background-image: url('/static/images/hero1.jpg');
}
.hero-bg-2 {
  background-image: url('/static/images/hero2.jpg');
}
.hero-bg-3 {
  background-image: url('/static/images/hero3.jpg');
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section,
.hero-section h1,
.hero-section p,
.hero-section .container {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-section h1 {
  font-weight: 800;
  letter-spacing: -1px;
  opacity: 0;
}

.hero-section p {
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  font-size: 1.25rem;
}

/* Card Styles */
.card {
  border-radius: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card .card-body {
  padding: 1.8rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: #0d6efd;
  border: none;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-3px);
}

.btn i {
  transition: transform 0.2s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Sections */
section {
  scroll-margin-top: 80px;
  padding: 5rem 0;
}

section h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #1a4b6f;
}

/* Footer */
footer {
  font-size: 1rem;
  background: #222;
}

footer a {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

footer a:hover {
  transform: translateX(3px);
}

/* Toast Notifications */
.toast {
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  animation: toastFadeIn 0.5s ease;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Elements */
.form-control, .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  box-shadow: none;
}

.form-control:focus, .form-select:focus {
  border-color: #1a4b6f;
  box-shadow: 0 0 0 3px rgba(26, 75, 111, 0.15);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section .carousel-inner, .hero-section .carousel-item {
    height: 60vh;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Global Animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.modal-dialog {
  transition: transform 0.3s ease !important;
}

.modal.fade .modal-dialog {
  transform: scale(0.95) translateY(-30px);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}
