:root {
  --primary-color: #ED6017;
  --section-padding: 100px;
}

.content-section {
   padding: var(--section-padding) 0;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #156582;
  border-color: #156582;
}

.form-control:focus {
  border-bottom-color: var(--primary-color);
}

#top {
  background-image: url("/assets/rough-sailing-8fa4e99b.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  width: 100vw;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 10;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.logo-container,
.claim,
.main-image-container,
.secondary-image-container {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  padding-top: 5rem;
  max-height: 25%;
}

.claim {
  max-height: 15%;
  color: white;
  text-align: center;
  font-size: 2rem;
}

.main-image-container {
  max-height: 50%;
}

.secondary-image-container {
  max-height: 15%;
  padding-bottom: 5rem;
}

.secondary-image-container img {
  max-width: 240px !important;
}

/* Ensure images are responsive within their containers */
.logo-container img,
.main-image-container img,
.secondary-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  height: auto;
}

.main-image:hover {
  transition: transform 0.2s;
  transform: scale(1.03);
}

.parallax-container {
  position: relative;
  height: 35vh;
  overflow: hidden;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("/assets/rough-sailing-8fa4e99b.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Darkened overlay */
  z-index: 0;
}

.parallax-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.huge-text {
  color: white;
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  padding: 0 20px;
}

section {
  background-color: rgba(255, 255, 255, 1);
  z-index: 2;
}

@media (max-width: 768px) {
  .huge-text {
    font-size: 2rem;
  }
}

.hamburger-menu.active span {
  background-color: var(--primary-color);
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* When menu is active, keep the blue color */
.hamburger-menu.active span {
  background-color: var(--primary-color);
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.navbar {
  position: fixed;
  top: 0;
  right: -300px;
  height: 100vh;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.95);
  transition: right 0.3s ease;
  padding: 80px 20px 20px 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navbar.active {
  right: 0;
}

.navbar-nav {
  flex-direction: column;
  position: absolute;
  top: 6rem;
}

.nav-item {
  margin: 10px 0;
}

.navbar-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 150px;
}

.navbar-logo img {
  max-width: 100%;
  height: auto;
}

.form-control {
  height: calc(3.5rem + 2px);
  position: relative;
  background-color: rgba(255, 255, 255, 0.7) !important;
  border: none;
  border-bottom: 4px solid var(--primary-color);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: black !important;
  font-size: 1.25rem;
  /* Match button font size */
}

.form-control:focus {
  box-shadow: none;
  border: none;
  border-bottom: 4px solid #156582;
}

.form-control::placeholder {
  color: #156582;
  font-size: 1.25rem;
}

.form-floating>label {
  padding: 1rem 0.75rem;
}

.award-logo {
  max-width: 150px;
  height: auto;
  margin: 20px;
  filter: grayscale(100%);
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.service-icon {
  background-color: #fff;
  color: var(--primary-color);
  height: 7rem;
  width: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
  margin: 0 auto 1rem auto;
  transition: transform 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.05);
}

@media (min-width: 200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.device-card {
  border: 1px solid #eee;
  border-radius: 8px;
  transition: transform 0.2s;
}

.device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.device-image {
  aspect-ratio: 3/5;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.badge {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.badge-inactive {
  background-color: #ccc !important;
  color: #444 !important;
}

@media (min-width: 1200px) {
  .col-xl-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
}

.feature-list {
  column-count: 2;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .feature-list {
    column-count: 3;
  }
}

.feature-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.device-list {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 767px) {
  .device-list {
    column-count: 2;
  }
}

.mobile-break {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

/* Step Numbers Styling */
.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  transition: all 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(237, 96, 23, 0.3);
}

/* Enhanced Mobile Breakpoints */

/* Extra small devices (phones, up to 576px) */
@media (max-width: 575px) {
  .huge-text {
    font-size: 1.5rem;
  }

  .claim {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .content-section {
    padding: 50px 0;
  }

  .service-icon {
    height: 5rem;
    width: 5rem;
    font-size: 1.75rem;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .device-list {
    column-count: 1;
  }

  .feature-list {
    column-count: 1;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .huge-text {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-list {
    column-count: 2;
  }

  .feature-list {
    column-count: 2;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .huge-text {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile-specific form improvements */
@media (max-width: 767px) {
  .form-control {
    height: calc(3rem + 2px);
    font-size: 1rem;
  }

  .form-control::placeholder {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Better mobile spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Mobile card adjustments */
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Better mobile typography */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Mobile navigation improvements */
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }

  /* Mobile button improvements */
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .device-card:hover,
  .service-icon:hover,
  .step-number:hover {
    transform: none;
    box-shadow: none;
  }

  .main-image:hover {
    transform: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper images on retina displays */
  .device-image,
  .logo-container img,
  .main-image-container img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation improvements */
@media (orientation: landscape) and (max-height: 500px) {
  #top {
    height: 100vh;
  }

  .hero-overlay {
    padding: 1rem 0;
  }

  .logo-container {
    padding-top: 2rem;
    max-height: 20%;
  }

  .claim {
    max-height: 10%;
    font-size: 1.5rem;
  }

  .main-image-container {
    max-height: 60%;
  }

  .secondary-image-container {
    max-height: 10%;
    padding-bottom: 2rem;
  }
}

/* Print styles */
@media print {
  .hamburger-menu,
  .navbar,
  .mobile-hamburger,
  .mobile-nav-menu,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
  }
}