/* Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@700&display=swap');

:root {
  --vh: 1vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Desktop Top Menu */
.top-nav {
  display: none;
  background: white;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
  justify-content: space-between;
  align-items: center;
}

.top-nav .logo-text {
  font-size: 20px;
  font-weight: bold;
  color: rgb(104, 0, 0);
}

.top-nav .menu {
  display: flex;
  gap: 30px;
}

.top-nav .menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.top-nav .menu a:hover {
  color: rgb(255, 0, 0);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav a {
  text-align: center;
  font-size: 14px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: color 0.3s ease;
  flex-grow: 1;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: red;
}

.bottom-nav i {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

/* Desktop Styles */
@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }

  .top-nav {
    display: flex;
  }
}

/* Mobile Experience Improvements */
@media (max-width: 767px) {
  /* Ensure proper spacing for bottom navigation */
  body {
    padding-bottom: 60px;
  }
  
  /* Improve touch targets */
  .bottom-nav a {
    padding: 6px 4px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .bottom-nav i {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  /* Better text sizing for mobile */
  .bottom-nav {
    font-size: 11px;
    padding: 4px 0;
  }
  
  /* Improve scrolling on mobile */
  html {
    scroll-behavior: smooth;
  }
  
  /* Better button sizing for mobile */
  button, .btn, .contact-btn {
    min-height: 44px;
    font-size: 16px;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991px) {
  .bottom-nav a {
    font-size: 15px;
  }
  
  .bottom-nav i {
    font-size: 22px;
  }
}

/* Landscape mode improvements for small devices */
@media screen and (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .bottom-nav {
    padding: 3px 0;
  }
  
  .bottom-nav a {
    min-height: 50px;
    font-size: 11px;
  }
  
  .bottom-nav i {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  /* Reduce hero height in landscape */
  .hero {
    height: 60vh !important;
  }
  
  .contact-hero {
    height: 40vh !important;
  }
}

/* High DPI display improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}