:root {
    --primary-color: #135351; /* Main theme colour */
    --secondary-color: #0E3C3A; /* Darker theme colour */
    --tertiary-color: #D4A40C; /* Third colour scheme */
    --text-color: #FFFFFF; /* Text colour */
    --font-family: "Raleway", sans-serif; /* Font family */
    --h2-font-size: 6vw; /* Font size for h2 elements (based on height rather than width)*/
    --p-font-size: 4vw; /* Font size for p elements (also based on height)*/
}


/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family); /* Use the defined font family */
    background-color: var(--primary-color); /* Theme colour background */
    color: var(--text-color); /* Text colour */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: var(--primary-color); /* Theme colour background for the navbar */
    padding: 0 20px;
    display: flex;
    align-items: center; /* Vertically centers everything inside */
    justify-content: space-between;
    text-align: right;
    z-index: 1000; /* Ensures it's above other content */
    border-bottom: 2px solid var(--secondary-color); /* Border at the bottom of the navbar */
}

/* Logo Styles */
.logo-container img {
    height: 65px; /* Adjust logo size */
    width: auto;;
}

.logo-container img:hover {
    transform: scale(1.05); /* Slightly enlarge logo on hover */
    transition: transform 0.3s ease; /* Smooth transition */
}

.logo-container a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Navbar styles */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center; /* Ensures all list items align vertically */
    margin: 0;
    padding: 0;
    height: 100%; /* Makes sure it takes the full height of the navbar */
    
}

.navbar ul li {
    display: inline-block;
    margin: 0 35px; /* Space between links */
    padding: 0; /* Remove unnecessary padding */
}

.navbar ul li a{
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    font-family: var(--font-family); /* Use the defined font family */
    transition: 0.3s;
    padding-top: 15px; /* Align text towards bottom of header */
    display: inline-block; /* Ensures padding works properly */
}

.navbar ul li a:hover {
    color: var(--tertiary-color); /* Change third colour scheme on hover */
}

.nav-link.active {
    color: #e6b30d; /* Change to similar third colour scheme for active link */    
}

/* Hamburger menu styles */
#hamburger-menu {
    display: none; /* Hide by default */
    flex-direction: column;
    cursor: pointer;
    color: var(--tertiary-color);
}

#nav-list-small {
    display: none; /* Hide by default */
    flex-direction: column;
    position: absolute;
    top: 65px; /* Position below the navbar */
    left: 0;
    width: 100%;
    background-color: #1A706E; /* Theme colour background for the navbar */
    padding: 10px 0;

    border-bottom: var(--secondary-color) 2px solid; /* Border at the bottom of the navbar */

}

#nav-list-small a {
  color: inherit;               /* Use the surrounding text color */
  text-decoration: none;        /* Remove underline */
  font-family: var(--font-family); /* Use the defined font family */
  font-size: 16px;              /* Adjust size as needed */
  font-weight: bold;
  padding: 10px 0;              /* Add space between items */
  display: block;               /* Make each link take a full line */
  margin-right: 20px;

  transition: 0.3s ease; /* Smooth transition */
}


#nav-list-small a:hover {
    color: var(--tertiary-color); /* Change third colour scheme on hover */
}

#nav-list-small.visible {
    display: block; /* Show when hamburger menu is clicked */
}

#nav-list-small li {
    display: block; /* Stack items vertically */
    margin: 10px 0; /* Space between links */
    font-family: var(--font-family);
    color: var(--text-color);
}

/* Top header contact info styles */
.contact-info {
    position: fixed;
    top: 0;
    left: 0;
    height: 20px;
    width: 100%;
    background-color: var(--secondary-color); /* Darker main colour for contact info */
    font-family: "Abel", sans-serif;
    font-size: 12px;
    color: var(--text-color);
    text-align: left;
    padding: 2px 5px;
    padding-top: 4px; /* Remove top padding to align with navbar */
    z-index: 1000; /* Ensures it's above other content */
}

.contact-info span {
    padding: 1%;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
}

/* Button styles */
button {
    background-color: #e7e7e7; /* Theme colour for buttons */
    color: #000000;
    border: none;
    font-size: 2vw;
    padding: 10px 3%; /* dynamic padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners */
    font-family: var(--font-family);
    transition: 0.3s; /* Smooth transition for hover effect */
}

/* Hero Heading styles */
.hero h1 {
    font-size: 7vw; /* Responsive font size */
    font-weight: 800;
    font-family: var(--font-family);
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255 , 0.6); /* Semi-transparent white background */
    border-radius: 10px; /* Rounded corners */
    padding: 0px 20px; /* Padding around the text */
}

.hero h2 {
    font-size: 6vw; /* Responsive font size */
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255 , 0.6); /* Semi-transparent white background */
    border-radius: 10px; /* Rounded corners */
    padding: 0px 20px; /* Padding around the text */
}

/* Text image overlay styles */
.hero {
    display: inline-block;
    position: relative;
    width: 100%;
    height: auto; /* Full viewport height */
    margin-bottom: 0; /* Remove bottom margin */
    padding-bottom: 0px;
}

.hero .background-image {
    /* Matches container size to image height */
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    z-index: -1; /* Pushes it behind the text */
    padding-bottom: 0; /* Remove bottom padding */
    margin-bottom: 0; /* Remove bottom margin */
  }
  
.hero span {
    position: absolute;

    left : 50%;
    top: 30%;
    transform: translate(-50%, -50%);
  }
  
.hero-button {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);

  }
  
.hero-border {
    position: absolute;
    display: block;
    top: 94%;
    width: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-bottom: 0; /* Remove bottom padding */
  }




/* Main content spacing to prevent overlap with navbar */
main {
    padding-top: 85px; /* Adjust based on navbar height */
}

/* image styles */
img {
    display: block;
    width: 100%;
    height: auto;
    padding-bottom: 0; /* Remove bottom padding */
    margin-bottom: 0; /* Remove bottom margin */
  }



/* Button hover effect */
button:hover {
    background-color: #c9c9c9;
}


/* Content styles text over coloured background*/
.content {
    margin: 0 0; /*ensure no top margin */
    padding-top: 0;
    position: relative;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--primary-color); /* Theme colour background for content */
    text-align: center; /* Center text */
}

.content-text {
    padding: 30px 20%; /* Padding around the text */
}

.content h2 {
    font-size: var(--h2-font-size); 
    font-weight: 700;
    margin-bottom: 20px; /* Space below the heading */
    color: var(--text-color);
    text-decoration: none;
}

.content p {
    font-size: var(--p-font-size);
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 20px; /* Space below paragraphs */
}

/* Google map styles */
#GoogleMap {
    position: relative;
    height: 400px;
    width: 100%;
    margin-bottom: 20px; /* space between map and text */
}

#GoogleMap iframe {
    display: block; /* Ensures no extra space around the iframe */
    width: 100%;
    height: 100%;
    border: 0;
}

/* Break styles (text over white background)*/
.break {
    position: relative;
    padding: 30px 10%; /* Padding around the content */
    font-family: var(--font-family);
    text-align: center; /* Center text */
    align-items: center;
    background-color: #fff;
    color: var(--secondary-color); /* Text colour */
}

.break h2 {
    font-size: var(--h2-font-size);
    font-weight: 700;
    margin-bottom: 20px; /* Space below the heading */
}

.break p {
    font-size: var(--p-font-size);
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 20px; /* Space below paragraphs */
}

/* Employment position styles */
.position1 {
    position: relative;
    padding: 30px 20%; /* Padding around the content */

    font-family: var(--font-family);
    color: var(--text-color);
    text-align: center; /* Center text */

    background-color: #2D7A78; /* Different colour for position1 */
}
.position1 h2 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 30px; /* Space below the heading */
}
.position1 p {
    font-size: 18px;
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 30px; /* Space below paragraphs */
}

.position2 {
    position: relative;
    padding: 30px 20%; /* Padding around the content */

    font-family: var(--font-family);
    color: var(--text-color);
    text-align: center; /* Center text */

    background-color: #1A706E; /* Different colour for position1 */
}

.position2 h2 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 30px; /* Space below the heading */
}
.position2 p {
    font-size: 18px;
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 30px; /* Space below paragraphs */
}

/* Footer styles */
footer {
    background-color: var(--secondary-color); /* Theme colour background for the footer */
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    font-family: var(--font-family);
    font-size: 14px;
    position: relative; /* Allows for absolute positioning of child elements */
}

.footer-button {
    margin: 10px 0; /* Space between buttons */
    font-size : 12px;
    padding : 5px 10px;
}

/* Gallery/swiper styles */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto; /* Center the gallery */
    padding-top: 20px; /* Space around the gallery */
    background-color: var(--primary-color); /* Theme colour background for the gallery */
}
.swiper {
    width: 80%;
    height: fit-content;
    border: #0E3C3A 2px solid; /* Border around the gallery */
}

.swiper-slide img {
    width: 100%;

}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background-color: rgba(79, 79, 79, 0.7); 
  padding: 16px; /* Increase padding to grow the box */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s, transform 0.2s;
  width: auto; /* Let padding define size */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slight scale effect on hover */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(87, 87, 87, 0.9);
  transform: scale(1.1);
}

/* Pagination styles */
.swiper-pagination {
    background-color: rgba(79, 79, 79, 0.7); /* dark transparent background */
    padding: 10px 20px;
    width: fit-content;
    margin: 0 auto; /* center it */
  }

/* Pagination dots */
.swiper-pagination-bullet {
    background: #ffffff;
  }

/* Active (highlighted) bullet color */
.swiper-pagination-bullet-active {
    transform: scale(1.2);
  }


/* Specification DASS (Dynamic Aircraft Specification System) styles */
/* Section container */
.specifications {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: var(--font-family);
}

/* Base plane image */
.specifications img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Spec nodes */
.spec-node {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--tertiary-color);
  border: 2px solid rgba(255, 255, 255);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.spec-node:hover {
  transform: scale(1.2);
}

/* Popup box base styling */
.specifications .engine,
.specifications .carriage,
.specifications .wing,
.specifications .landing {
  position: absolute;
  background-color: rgb(14, 60, 58, 0.9);
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  width: 280px;
  z-index: 100;
  display: none;
  list-style: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* show popups when they get .open class */
.specifications .engine.open,
.specifications .carriage.open,
.specifications .wing.open,
.specifications .landing.open {
  display: block;
}

/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
  #hamburger-menu {
      display: block; /* Show on smaller screens */
  }
  #nav-list {
      display: none; /* Hide the normal navbar */
  }
  .navbar {
    position: absolute; /* Keep navbar fixed at the top */
    top: 0; /* Position at the top */
  }
  main {
    padding-top: 65px; /* Adjust main content padding for smaller screens */
  }
  .contact-info {
    display: none; /* Hide contact info on smaller screens */
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none; /* Hide swiper buttons on smaller screens */
  }
  .contact-buttons{
    display: flex;
    flex-direction: column;
  }
  .phone-button {
    width : 100%;
  }
  .email-button {
    width: 100%;
  }
  .social-button {
    width : 100%;
  }
  :root {
    --h2-font-size: 6vw; /* Adjust h2 font size for smaller screens */
    --p-font-size: 4vw; /* Adjust p font size for smaller screens */
  }
 
}

@media only screen and (min-width: 768px) {
  #nav-list-small {
      display: none; /* Hide the small navbar */
  }
  #hamburger-menu {
      display: none; /* Hide the hamburger menu */
  }
  .navbar {
    position: fixed; /* Keep navbar fixed at the top */
    top: 20px; /* Position at the top */
  }
  main {
    padding-top: 85px; /* Adjust main content padding for larger screens */
  }
  .contact-info {
    display: block; /* Show contact info on larger screens */
    position: fixed; /* Keep contact info fixed */
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: flex; /* Show swiper buttons on larger screens */
  }
  :root {
    --h2-font-size: 3vw; /* Adjust h2 font size for larger screens */
    --p-font-size: 2vw; /* Adjust p font size for larger screens */
  }
}