/* Root Variables */
:root {
  --background-color: #0050ff; /* Define the background color as a variable */
  --nav_background-color: #ffffff; /* Define the nav background color as a variable */
  --link-color: #82dcfa; /* Define the nav background color as a variable */
  --nav-height: 80px; /* Define the height as a variable */
  --logo-height: 48px; /* Define the logo height as a variable */
  --padding-lg: 68px; /* Padding for large screens */
  --padding-md: 68px; /* Padding for medium screens */
  --padding-sm-xs: 16px; /* Padding for small and extra-small screens */
  /*Hero Variables*/
  --hero-padding-lg: 68px; /* Padding for large screens */
  --hero-padding-md: 68px; /* Padding for medium screens */
  --hero-padding-sm-xs: 16px; /* Padding for small and extra-small screens */
  --hero-margin-top: 30px; /* Margin-top for all screens */
  --hero-margin-bottom: 68px; /* Margin-bottom for all screens */
  /*Main Section Variables*/
  --box-shadow-equalization-margin-right: 8px;
  --box-shadow-equalization-margin-left: 8px;
  --box-shadow-equalization: 8px;
}

/* Base styles */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'O2 OnAir', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: 1; /* Ensures the body takes up remaining space */
}

/* Navigation Bar */
nav {
  height: var(--nav-height);
  background-color: var(--nav_background-color);
  display: flex;
  align-items: center;
  padding: 0 var(--padding-lg); /* Default padding for large screens */
}

nav .logo img {
  height: var(--logo-height);
}

nav .logo {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Adjust padding for medium screens (MD) */
@media (max-width: 992px) {
  nav, .main, .hero {
    padding-left: var(--padding-md);
    padding-right: var(--padding-md);
  }
}

/* Adjust padding for small and extra-small screens (SM, XS) */
@media (max-width: 768px) {
  nav, .main, .hero {
    padding-left: var(--padding-sm-xs);
    padding-right: var(--padding-sm-xs);
  }
}

/* Optionally, if you want a separate rule just for XS screens (below 576px) */
@media (max-width: 576px) {
  nav, .main, .hero {
    padding-left: var(--padding-sm-xs);
    padding-right: var(--padding-sm-xs);
  }
}

/* Remove responsiveness for screens larger than 1440px */
@media (min-width: 1440px) {
  nav,
  .hero,
  main {
    padding-left: var(--padding-lg); /* Fixed padding for extra-large screens */
    padding-right: var(--padding-lg); /* Fixed padding for extra-large screens */
  }
}

/* Hero Section */
.hero {
  background-image: url('../img/hero_desk.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: var(--hero-margin-top) 0;
  position: relative;
  text-align: left;
  display: flex;
  justify-content: center;
}

.hero-content {
  width: 80%;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 20px;
}

.hero p {
  font-size: 20px;
  line-height: 1.5;
}

.hero a {
  color: var(--link-color);
  text-decoration: none;
}

.hero a:hover {
  text-decoration: underline;
}

h1 sub {
  font-size: 0.6em; /* Subscript size relative to the parent */
  vertical-align: sub; /* Align it as subscript */
}

@media (max-width: 576px) {
  .hero {
    background-image: url('../img/hero_mob.png');
    text-align: start;
  }
}

/* Main Section */
.main .carousel {
  display: grid;
  flex-direction: column;
  align-items: center;
  width: 80%;
}

.cards-carousel {
  width: 100%;
  overflow-x: auto; /* Allow horizontal scrolling */
  scroll-snap-type: x mandatory; /* Enable snapping to each card */
  display: flex;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide the scrollbar in the carousel */
.cards-carousel {
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Ensure snapping to each card */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

.cards-carousel::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.main {
  margin-top: -50px;
  display: flex;
  justify-content: center;
}

.card {
  /*flex: 0 0 25%; /* Adjust this according to your screen size needs */
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1); /* This creates a softer, more natural shadow */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.card img {
  width: 100%;
  display: block;
}
/* For medium screens (MD, assuming max-width of 992px) */
@media (max-width: 992px) {
  .card {
    flex: 0 0 33.33%; /* This ensures three cards fit in a row */
  }
}

/* For small screens (SM, assuming max-width of 768px) */
@media (max-width: 768px) {
  .cards {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  }
  
  .card {
    flex: 0 0 50%; /* This ensures two cards fit in a row */
  }
}

/* For extra-small screens (XS, assuming max-width of 576px) */
@media (max-width: 576px) {
  .main .carousel {
    padding: 0 var(--hero-padding-sm-xs);
  }

  .card {
    flex: 0 0 85%; /* This ensures one card fits with a bit of the next one visible */
  }

  .cards {
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory;
  }
}

/* Footer */
footer {
  background-color: var(--background-color); /* Set footer background color */
  color: white; /* White text color */
  text-align: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: bold;
  margin-top: auto; /* Pushes footer to the bottom */
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: text-decoration 0.2s ease-in-out; /* Optional smooth transition for underline */
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

footer span {
  color: white;
  margin: 0 5px;
}

.logo-wrapper {
  width: 90%;
}
