html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  min-height: 100%;
  position: relative;
  /* Prevent overscroll/rubber band effect */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

body {
  background-color: #0d1117; /* Dark tech background */
  color: #c9d1d9; /* Light text for contrast */
  margin: 0;
  padding-top: 56px; /* Add padding for fixed navbar */
  /* Prevent overscroll/rubber band effect */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Component floating up animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.3s;
}
.fade-in-up.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent animation overflow */
main {
  overflow: visible;
}

/* Optional: Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Company logo styling for better mobile experience */
.company-logo {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
  .company-logo {
    max-width: 100px;
    max-height: 70px;
  }

  /* Ensure better spacing on mobile */
  .card .row {
    text-align: center;
  }

  /* Stack content vertically on mobile */
  .card .col-12 {
    margin-bottom: 1rem;
  }

  .card .col-12:last-child {
    margin-bottom: 0;
  }
}

/* Navbar fixes for industry-level stickiness */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transform: translateZ(0); /* Force hardware acceleration */
  will-change: transform; /* Optimize for animations */
}

/* Prevent navbar from moving on overscroll */
.navbar.sticky-top {
  position: fixed !important;
  top: 0 !important;
}

/* Footer styling to ensure it sticks to bottom */
footer {
  margin-top: auto;
  background-color: #0d1117 !important;
  border-top: 1px solid #30363d;
}

footer a:hover {
  text-decoration: none !important;
  opacity: 0.7;
  color: #58a6ff;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

footer a img {
  transition: all 0.3s ease;
}

footer a:hover img {
  filter: brightness(0.8);
}

/* Ensure body takes full height */
main {
  flex: 1;
  overflow: visible;
}

/* Professional enhancements */
.min-vh-50 {
  min-height: 50vh;
}

/* Card hover effects for professional look */
.card {
  transition: all 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px !important;
}

/* Better text styling */
.text-light-emphasis {
  color: #e6edf3 !important;
}

/* Icon improvements */
.devicon {
  transition: all 0.3s ease;
}

.list-group-item:hover .devicon {
  transform: scale(1.1);
}

/* Improved button styling */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Professional gradient accents */
.gradient-accent {
  background: linear-gradient(45deg, #0dcaf0, #198754, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}