html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

header {
  flex-shrink: 0;
}

.container-fluid.px-0 {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

.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;
}

/* Ensure container is properly centered on all devices */
.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Better button transitions */
.btn {
  transition: all 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a {
  transition: color 0.2s ease;
}

/* Better mobile navigation */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-item {
    padding: 0.25rem 0;
  }
}

/* Utility classes for spacing */
.section-padding {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* Improve image responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Better card shadows */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}