:root {
  --primary: #1a4b8c;
  --primary-rgb: 26, 75, 140;
  --secondary: #e63946;
  --secondary-rgb: 230, 57, 70;
  --accent: #ffc107;
  --light: #f8f9fa;
  --dark-black: #343a40;
  --white: #ffffff;
  --light-gray: #e9ecef;
  --dark: #000000;
  --medium-gray: #adb5bd;
  --dark-gray: #495057;
  --transparent-white-02: rgba(255, 255, 255, 0.2);
  --transparent-white-01: rgba(255, 255, 255, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --red-hover: #c1121f;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  padding-top: 80px;
  /* Add padding to body to account for fixed navbar */
}

/* Enhanced Navbar Styling */
.navbar {
  transition: all 0.4s ease;
  padding: 5px 0;
  background-color: var(--white) !important;
  box-shadow: 0 2px 10px var(--shadow-light);
}

/* Responsive logo */
.navbar-brand .logo {
  max-height: 70px; /* Adjust as needed */
  width: auto;
  transition: all 0.3s ease;
}

/* Optional: shrink logo on scroll */
.navbar.navbar-scrolled .navbar-brand .logo {
  max-height: 45px;
}

.navbar-scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-section {
  background: linear-gradient(
      rgba(var(--primary-rgb), 0.8),
      rgba(var(--primary-rgb), 0.9)
    ),
    url("https://images.unsplash.com/photo-1582750433449-648ed127bb54?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2067&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0 100px;
  position: relative;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-3px) scale(1.05);
}

.btn-outline-light {
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  transform: translateY(-3px) scale(1.05);
}

.highlight-bar {
  background-color: var(--transparent-white-02);
  border-radius: 10px;
  padding: 20px;
  margin-top: 50px;
}

.highlight-item {
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: scale(1.1);
}

.highlight-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.section-title {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

.why-germany-card {
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all 0.4s ease;
  border: 1px solid var(--light-gray);
  background: var(--white);
}

.why-germany-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.why-germany-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.why-germany-card:hover i {
  color: var(--secondary);
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: all 0.4s ease;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.program-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.program-body {
  padding: 25px;
  flex-grow: 1;
  /* takes up all remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* keeps content + button apart */
}

.program-feature {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.program-feature:hover {
  transform: translateX(5px);
}

.program-feature i {
  color: var(--secondary);
  margin-right: 10px;
  margin-top: 3px;
}

.program-body a.btn {
  margin-top: auto;
  /* pushes button to the bottom */
}

/* Process Section - Enhanced Timeline with Animations */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s ease;
}

.timeline.appear::after {
  transform: scaleY(1);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.appear {
  opacity: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
  transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
  left: 50%;
  transform: translateX(50px);
}

.timeline-item.appear {
  transform: translateX(0);
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 10px 25px var(--shadow-medium);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: -15px;
  border: medium solid var(--white);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--white);
}

.timeline-item:nth-child(even) .timeline-content::after {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: -15px;
  border: medium solid var(--white);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.timeline-number {
  position: absolute;
  width: 40px;
  height: 40px;
  right: -20px;
  background-color: var(--secondary);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .timeline-number {
  transform: scale(1.2);
  background-color: var(--primary);
  border-color: var(--secondary);
}

.timeline-item:nth-child(even) .timeline-number {
  left: -20px;
  right: auto;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-light);
  height: 100%;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-medium);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-author img {
  transform: scale(1.1);
}

.stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
  border-radius: 15px;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.2rem;
}

.blog-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: all 0.4s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.contact-section {
  background-color: var(--light);
}

.contact-info {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px;
  transition: box-shadow 0.3s ease;
}

.contact-info:hover {
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.contact-info i {
  font-size: 1.5rem;
  margin-right: 15px;
  width: 30px;
  transition: color 0.3s ease;
}

.contact-info:hover i {
  color: var(--accent);
}

/* Form Enhancements */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--secondary-rgb), 0.25);
  transform: scale(1.02);
}

/* Footer Enhancements */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
  overflow: hidden;
}

.footer-links h5 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--light-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--transparent-white-01);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary);
  transform: translateY(-5px) rotate(360deg);
}

/* Active menu item underline */
.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
    /* Adjust for mobile */
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-number {
    left: -18px !important;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-content::after {
    left: -15px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
  }

  /* Mobile menu active item */
  .nav-link.active::after {
    width: 30px;
    left: 15px;
  }
}

/* WhatsApp Floating Button */
/* WhatsApp Floating Button - Fixed for Mobile */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
}

.whatsapp-float i {
  text-decoration: none !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive adjustments - Fixed for better mobile visibility */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 28px;
    /* Ensure it's always visible */
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}
