:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 10%;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: #e9d8a6;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #ee9b00;
}

section {
    padding: 4rem 10%;
}

.bg-light {
    background-color: var(--bg-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-weight: bold;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    border-radius: 8px;
}

footer {
    background-color: #222;
    color: #ccc;
    padding: 3rem 10%;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-logos {
    margin-top: 1rem;
    display: flex;          /* Places the logos in a row */
    align-items: center;    /* Centers them vertically if they are different heights */
    flex-wrap: wrap;        /* Allows them to stack neatly on mobile screens */
    gap: 20px;              /* Adds consistent space between them */
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

.video-section {
    position: relative;
    overflow: hidden; /* Keeps the video from spilling out of the section */
    padding: 6rem 10%; /* Adjust padding to give the video breathing room */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stretches the video to fill the space without distorting it */
    z-index: 0; /* Puts the video at the very back */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 30, 0.75); /* The dark tint */
    z-index: 1; /* Puts the overlay on top of the video */
}

.video-section .content {
    position: relative;
    z-index: 2; /* Puts the text on top of everything */
    color: white;
    text-align: center;
}

.navbar {
    position: fixed; /* Keeps it at the top of the viewport */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 32, 45, 0.95); /* Dark, slightly transparent background */
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between; /* Pushes logo left, burger right */
    align-items: center;
    z-index: 1000; /* Ensures it floats above all images and videos */
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 80px; /* Restricts logo height */
    width: auto;
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001; /* Keeps the burger above the slide-out menu */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.nav-links {
    position: fixed;
    right: -100%; /* Hides the menu completely off-screen by default */
    top: 0;
    height: 100vh; /* Full screen height */
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px; /* Width of the menu */
    transition: right 0.4s ease; /* Smooth slide animation */
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.nav-links.active {
    right: 0; /* Slides the menu onto the screen when active */
}

.nav-links li {
    margin: 1.5rem 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e9d8a6; /* Highlight color when hovering over links */
}

/* Because the nav is 'fixed', it removes itself from the document flow. 
   We must push the hero section down so the text doesn't hide behind the navbar. */
#hero {
    padding-top: 120px; 
}

#hero {
    /* The gradient creates a dark overlay for text readability */
    background-image: linear-gradient(rgba(0, 20, 30, 0.8), rgba(0, 20, 30, 0.8)), url('../images/Sea-background.png');
    background-size: cover;          /* Scales image to fill the viewport */
    background-position: center;        /* Centers the image */
    background-repeat: no-repeat;       /* Prevents the image from tiling */
    color: white;                       /* Ensures text is white */
}

#resources {
    background-image: linear-gradient(rgba(248, 249, 250, 0.7), rgba(248, 249, 250, 0.7)), url('../images/Sea-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Using a light overlay here so dark text remains readable */
}

#consultancy {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/Sea-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; 
}

#training {
    background-image: linear-gradient(rgba(248, 249, 250, 0.7), rgba(248, 249, 250, 0.7)), url('../images/Sea-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Using a light overlay here so dark text remains readable */
}

/* Because we made some sections dark, we need to ensure the headings inside them are also white */
#consultancy h2, #consultancy p {
/*#training h2, #training p {*/
    color: white;
}
