/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

/* Custom Color Variables */
:root {
  --navy-blue: #1E3A8A;
  --orange: #F97316;
  --white: #FFFFFF;
}

/* Top Bar Menu Links */
.top-bar .menu-links {
  display: flex;
  gap: 20px;
}

.top-bar .menu-links a {
  font-weight: 500;
}

@media (max-width: 768px) {
  .top-bar .menu-links {
    display: none;
  }
}

/* Button Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Service Card Hover Effects */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--navy-blue) 0%, #1e40af 100%);
  color: var(--white);
  min-height: 400px;
  display: flex;
  align-items: center;
}

/* Navbar Customization */
.navbar-custom {
  background-color: var(--navy-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-custom .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--orange);
}

/* Footer Styles */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--orange);
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
  padding-left: 20px;
}

/* Card Enhancements */
.card {
  border-radius: 10px;
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--navy-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: var(--navy-blue);
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 300px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Utility Classes */
.text-navy {
  color: var(--navy-blue);
}

.text-orange {
  color: var(--orange);
}

.bg-navy {
  background-color: var(--navy-blue);
}

.bg-orange {
  background-color: var(--orange);
}

.border-navy {
  border-color: var(--navy-blue);
}

.border-orange {
  border-color: var(--orange);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.btn-animate {
  transition: all 0.3s ease;
}

.btn-animate:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px;
}

.dropdown-item {
  border-radius: 5px;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--navy-blue);
  color: white;
  transform: translateX(5px);
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

/* Image Enhancements */
img {
  max-width: 100%;
  height: auto;
}

.rounded-4 {
  border-radius: 1rem;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Gradient Backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, var(--navy-blue) 0%, #1e40af 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
}

/* Social Media Icons */
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Scroll Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}