html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
/* ------------------------------------------------------------------------------ */
/*                                  Font imports                                  */
/* ------------------------------------------------------------------------------ */
@font-face {
    font-family: 'NotesEsa';
    src: url('../fonts/NotesEsaReg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NotesEsa';
    src: url('../fonts/NotesEsaRegIta.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'NotesEsa';
    src: url('../fonts/NotesEsaBol.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'NotesEsa';
    src: url('../fonts/NotesEsaBolIta.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}
/* ------------------------------------------------------------------------------ */
/*                       CSS Variables for consistent theming                     */
/* ------------------------------------------------------------------------------ */
:root {
    --primary: #003247;
    --accent:  #00619e;
    --bg:      #f4f4f9;
    --text:    #333;
    --priority-high:    #1e3378;        /* TRUSTY AZURE +2 */
    --priority-medium:  #00619e;        /* TRUSTY AZURE +1 */
    --priority-low:     #009bdb;        /* TRUSTY AZURE */
    --section-content-max-width: 1500px;  /* Define max-width for section content */
    
}
/* ------------------------------------------------------------------------------ */
/*                       Universal box-sizing and smooth scroll                   */
/* ------------------------------------------------------------------------------ */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
/* ------------------------------------------------------------------------------ */
/*                                   Body styling                                 */
/* ------------------------------------------------------------------------------ */
body {
    margin: 0;
    font-family: 'NotesEsa', 'Segoe UI', sans-serif; /* Using the custom font, with fallback */
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;                             /* Prevent horizontal scroll */
    padding-top: 0;                                 /* Will be adjusted by JS when sticky nav appears */
}
/* ------------------------------------------------------------------------------ */
/*                                   Main styling                                 */
/* ------------------------------------------------------------------------------ */
main {
    position: relative;
    z-index: 2;
    background: transparent;                        /* keep original look */
}
/* ------------------------------------------------------------------------------ */
/*                                   Video Hero                                   */
/* ------------------------------------------------------------------------------ */
.hero {
    position: relative;                 /* For overlay positioning */
    width: 100%;
    height: auto;                       /* Changed from 60vh to auto */
    max-height: 40vh;                   /* Added to limit max height on large screens */
    overflow: visible;                  /* Hide anything outside the hero box */
}
/* Video element within the hero */
.hero iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* Ensures video covers the area without distortion */
}

.responsive-vimeo-bg {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
}

.responsive-vimeo-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* ------------------------------------------------------------------------------ */
/*                        Overlay for the video hero (now a static image)         */
/* ------------------------------------------------------------------------------ */
/* Overlay for text and menu*/
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 40vh;
    background: rgba(0, 0, 0, 0.6);     /* Semi-transparent black background */
    display: flex;
    flex-direction: column;               /* Arrange content vertically */
    align-items: center;
    justify-content: center;              /* Center content vertically */
    text-align: center;
    transition: background 0.3s ease, transform 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition for background, transform, and opacity */
}
/* Allow pointer events for hamburger and nav inside header-overlay (for hero only) */
.header-overlay .hamburger,
.header-overlay nav {
    pointer-events: auto;
}

/* Mask image overlay for the video hero */
.video-mask-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;           /* Prevent mask from overflowing below sticky header */
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    pointer-events: none;           /* Make sure it does not cover sticky header */
}
/* Styling for the main title within the video overlay */
.header-overlay h1 {
    color: white;
    font-size: 5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);   /* Text shadow for readability */
    margin-bottom: 60px;                              /* Space below the title 20px before*/      
    transition: all 0.3s ease;                        /* Transition for all properties */
    position: relative;                               /* Needed for z-index */
    z-index: 2;                                       /* Ensure it's above the nav */
}

/* Styling for the ESA logo */
.esa-logo {
    position: absolute;             /* Absolute positioning within the video overlay */
    top: 0px;                       /* Distance from the top */
    left: 0px;                      /* Distance from the left */
    width: 220px;                   /* Adjust as needed */
    height: auto;                   /* Maintain aspect ratio */
    z-index: 1001;                  /* Ensure it's above other elements in the overlay, and the nav */
    transition: all 0.3s ease;      /* Smooth transition for logo */
}

/* Navigation menu within the video overlay */
nav {
    background: rgba(0, 50, 71, 1);
    color: white;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;             /* Add horizontal padding */
    position: absolute;
    bottom: 0;                      /* Align to the bottom of the video hero */
    width: 100%;                    /* Take full width of the hero */
    z-index: 1000;                  /* Ensure it stays on top */
    transition: all 0.3s ease;      /* Smooth transition for navigation */
}

/* Styling for navigation links */
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;              /* smaller font for sticky nav links, was: 0.9rem */
    transition: color 0.3s;         /* Smooth color transition on hover */
}

/* Hover effect for navigation links */
nav a:hover {
    color: var(--accent);           /* Accent color on hover */
}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 50, 71, 1);              /* Primary color with 90% opacity */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;                 /* Space out elements */
    padding: 0.5rem 2rem;                           /* Padding for spacing was: 0.5rem 2rem;*/   
    height: 70px;                                   /* Fixed height for the sticky bar */
    flex-direction: row;                            /* Ensure elements are in a row */
    opacity: 0;                                     /* Start invisible */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, background 0.3s ease;
}
/* New class to reveal the sticky header */
.sticky-header.show {
    opacity: 1;
}
/* Target the existing logo with sticky class */
.sticky-header .esa-logo {
    position: static;           /* Remove absolute positioning */
    width: 150px;               /* Smaller logo in sticky bar */
    height: auto;
    margin-right: 1rem;         /* Space between logo and title */
    top: auto;                  /* Reset top */
    left: auto;                 /* Reset left */
}

/* Target the existing h1 with sticky class */
.sticky-header h1 {
    position: static;                       /* Remove absolute positioning */
    font-size: 1.5rem;                      /* Smaller title in sticky bar */
    margin: 0;                              /* Remove margin */
    text-shadow: none;                      /* Remove text shadow for cleaner look */
    flex-grow: 1;                           /* Allow title to take available space */
    text-align: left;                       /* Align title to the left */
    transform: none;                        /* Resets any existing transformations */
    transition: opacity 0.5s ease-in-out;   /* Only transition the opacity */
}

/* Target the existing nav with sticky class */
.sticky-header nav {
    position: static;                       /* Remove absolute positioning */
    background: rgba(0, 50, 71, 0.5);     /* Primary color with 50% opacity */
    width: auto;
    bottom: auto;                           /* Reset bottom */
    padding: 0;
    justify-content: flex-end;              /* Align links to the right */
    gap: 1rem;                              /* Smaller gap for links */
}

.sticky-header nav a {
    font-size: 1.1rem;                      /* smaller font for sticky nav links, was: 0.9rem */
    padding: 0.5rem 0.8rem;
}

/* ---------- General section styling - initial hidden state for all sections ---------- */
section {
    position: relative;
    padding: 1rem 0;                /* Adjust padding to 0 horizontally for full width background, was 1rem 0 */
    opacity: 0;                     /* Initially hidden for animation */
    transform: translateY(50px);    /* Starts further down for a consistent slide-up */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Inner container for section content to keep it centered */
.section-content {
    max-width: var(--section-content-max-width);    /* Use CSS variable for consistency */
    margin: 0 auto;                                 /* Center the content within the full-width section */
    padding: 0 2rem;                                /* Apply horizontal padding here, was 0 2rem*/
    position: relative;
}

/* Odd sections (starting from Background) */
section:nth-of-type(odd) {
    background-color: white;
}

/* Even sections */
section:nth-of-type(even) {
    background-color: #f5f5f7;
}

/* Class to apply when element is in view to trigger animation (consistent for all) */
section.is-in-view {
    opacity: 1;
    position: relative;
    transform: translateY(0); /* Final state for all sections (slide up) */
}

/* Heading 2 styling */
h2 {
    color: var(--primary);
    font-size: 3.45rem;      /* Increased by 15% from 3rem (3 * 1.15 = 3.45) */
    margin-bottom: 0rem;     /* was margin-bottom: 1rem;*/
    margin-top: 0.5rem;
    position: relative;      /* Needed for the ::after pseudo-element */
    display: flex;
    justify-content: space-between;
    align-items: end;
}

h2::after {
    content: none;          /* Remove the underline */
    position: relative;
}
/* Paragraph styling */
p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Heading 2 styling */
h3 {
    color: var(--primary);
    font-size: 2.5rem;      /* Increased by 15% from 3rem (3 * 1.15 = 3.45) */
    margin-bottom: 0rem;     /* was margin-bottom: 1rem;*/
    margin-top: 0.5rem;
    position: relative;      /* Needed for the ::after pseudo-element */
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.ratio-sim-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin: 2rem 0 1rem 0;
}
.number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
}
.number-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.number-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}
/* Responsive for mobile */
@media (max-width: 700px) {
    .ratio-sim-numbers {
        gap: 16px;
    }
    .number-item {
        width: 45vw;
        max-width: 100px;
    }
    .number-item img {
        width: 40px;
        height: 40px;
    }
    .number-text {
        font-size: 0.95rem;
    }
}

/* ---------------------------- Projects Section Specific Styling ------------------------------- */
.projects-container {
    position: relative;
}

/* Search bar styling */
.search-bar {
    margin-bottom: 0.5rem;      /* Made closer to the table */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;               /* Made smaller */
    box-sizing: border-box;     /* Include padding and border in the element's total width and height */
    font-size: 1rem;            
    float: right;               /* Justified to the right */
}

.projects-table {
    width: 100%;
    border-collapse: collapse;  /* Collapse borders between cells */
    margin-top: 2rem;
    font-size: 0.85em;          /* Slightly smaller font for table content */
    display: block;             /* For horizontal scrolling on small screens */
    overflow-x: auto;           /* Enable horizontal scrolling */
    clear: both;                /* Ensures the table starts below the floated search bar */
    max-height: 300px;          /* Adjusted to be more compact */
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;   /* Smooth transition for expand/collapse */
    position: relative;         /* For the fade-out effect */
}

.projects-table.expanded {
    max-height: none;           /* Remove max-height when expanded */
}

/* Fade-out effect for collapsed table */
.projects-table:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;              /* Height of the fade-out */
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    pointer-events: none;       /* Allows clicks on content below */
}

.projects-table th,
.projects-table td {
    border: 1px solid #ddd;
    /* Light grey border */
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: left;
    vertical-align: top;
    /* Align content to the top */
    white-space: normal;
    /* Allow text to wrap within cells after all */
    flex-grow: 1;
    line-height: 1.1;
}

.projects-table th {
    background-color: var(--primary);
    /* Dark background for headers */
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.projects-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    opacity: 0.6;
}

.projects-table th.sortable.asc::after {
    border-bottom-color: white;
    margin-top: -4px;
    /* Adjust position for asc arrow */
}

.projects-table th.sortable.desc::after {
    border-top-color: white;
    margin-top: 4px;
    /* Adjust position for desc arrow */
}

/* Specific styling for the 'Features' table headers */


#featuresTable thead th {
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 1.1;
    /* Center align the 4 main feature columns */
}

#featuresTable thead th:nth-child(4),
#featuresTable thead th:nth-child(5),
#featuresTable thead th:nth-child(6),
#featuresTable thead th:nth-child(7) {
    text-align: center;
}

/* The first and second row of the features table header will inherit the default font size (same as body) */
/* Style for the note under the features table */
.features-note {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #333;
    font-style: italic;
}

#featuresTable td {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 1px;
    padding-right: 1px;
    line-height: 1.1;
}

#featuresTable tr {
    height: 22px;
}

#featuresTable thead tr:first-child th:first-child {
    /* Targets the empty cell next to Priority */
    border: none;
    background-color: transparent;
    padding: 0;
}

#featuresTable thead tr:first-child th:nth-child(2) {
    /* Targets the 'Priority' header */
    text-align: center;
}

.projects-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
    /* Zebra striping for readability */
}

.projects-table tbody tr:hover {
    background-color: #ddd;
    /* Highlight row on hover */
}

.projects-table tr {
    height: 22px;
    /* Optional: set a minimum row height for compactness */
}

/* Priority cell color coding - Desktop view fix */
/* Reset TD background for desktop to avoid conflict with span */
#featuresTable td:nth-child(4),
#featuresTable td:nth-child(5),
#featuresTable td:nth-child(6),
#featuresTable td:nth-child(7) {
    background-color: transparent;
    text-align: center;
}

/* Apply background colors and styles to the span to fill the cell */
#featuresTable td .priority-tag {
    color: white;
    font-weight: bold;
    display: block;
    /* Make the span fill the whole cell */
    width: 100%;
    height: 100%;
    padding: 4px 8px;
    border-radius: 0;
    /* Remove border-radius to fill corners */
    min-width: unset;
    display: flex;
    /* Use flexbox to center content */
    justify-content: center;
    align-items: center;

}

#featuresTable span.priority-high {
    background-color: var(--priority-high);
    font-size: 0.75rem;
}

#featuresTable span.priority-medium {
    background-color: var(--priority-medium);
    font-size: 0.75rem;
}

#featuresTable span.priority-low {
    background-color: var(--priority-low);
    font-size: 0.75rem;
}

/* Equal width for the 4 priority columns */
#featuresTable th:nth-child(4),
/* Digital Twin & Simulation header */
#featuresTable td:nth-child(4),
/* Digital Twin & Simulation cells */
#featuresTable th:nth-child(5),
/* Operations support header */
#featuresTable td:nth-child(5),
/* Operations support cells */
#featuresTable th:nth-child(6),
/* Training header */
#featuresTable td:nth-child(6),
/* Training cells */
#featuresTable th:nth-child(7),
/* Outreach header */
#featuresTable td:nth-child(7) {
    /* Outreach cells */
    width: 12.5%;

}


/* "Show More" Button Styling */
.toggle-button {
    display: block;
    /* Takes full width */
    width: fit-content;
    /* Adjusts to content width */
    margin: 0.5rem auto 0 auto;
    /* Center the button and add top margin */
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'NotesEsa', sans-serif;
}

.toggle-button:hover {
    background-color: #0056b3;
    /* Darker accent on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
}

.toggle-button a:link {
    color: white;
    text-decoration: none;
}

.toggle-button-white {
    display: block;
    /* Takes full width */
    width: fit-content;
    /* Adjusts to content width */
    margin: 0 auto 0 auto;
    /* Center the button and add top margin */
    padding: 10px 20px;
    background-color: white;
    color: var(--accent);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'NotesEsa', sans-serif;
}

.toggle-button-white:hover {
    background-color: whitesmoke;
    /* Darker accent on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
}


.toggle-button-white:active {
    transform: translateY(0);
    /* Reset on click */
}


/* New CSS for the image to fit */
#usecases img,
#Roadmap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

#Roadmap {
    background-color: #004053;
    /* Apply the solid color directly to the section */
    color: white;
    /* Ensure text color is white for readability */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#Roadmap h2 {
    color: white;
    /* Make sure the header color is white */
}

/* Container for the image and overlay buttons */
.use-cases-container {
    position: relative;
    /* CHANGE: Changed from absolute to relative */
    width: 100%;
    /* Stays 100% of its parent (.section-content) */
    padding-top: 56.25%;
    /* ADD: This creates an aspect ratio of 16:9 (height is 56.25% of width) */
    margin-top: 2rem;
    /* ADD: Space between heading and image/buttons */
    /* Ensure content doesn't get cut off by the container's overflow */
    overflow: visible;
    /* Allow tooltips to pop out */
    z-index: 1;
    /* Ensure this container is above the parallax background but below tooltips */
}

.use-cases-container img {
    display: block;
    width: 100%;
    height: auto;
}

.overlay-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: var(--section-content-max-width);
    /* Match section-content max-width */
    max-height: 700px;
    margin: 0 auto;
    /* Center the overlay buttons */
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    /* Allow tooltips to pop out */
    z-index: 10;
    /* Ensure buttons and tooltips are above the image */
}

.overlay-button {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    z-index: 10;
    /* Ensure buttons are above the image */
}

.overlay-button img {
    width: 175px;
    /* Base size of the button image */
    height: auto;
    transition: transform 0.3s ease;
}

/* Hover effect: scale up the button and show the tooltip */
.overlay-button:hover {
    transform: translate(-50%, -50%) scale(1.25);
    /* Scale up on hover */
    z-index: 20;
    /* Bring hovered button to the front */
}

/* Tooltip styling */
.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;                             /* Position further above the button to prevent cropping */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 50, 71, 0.9); /* Dark blue background */
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 20;                             /* Ensure tooltip is on top */
    font-family: 'NotesEsa', sans-serif;
}

/* Tooltip arrow */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;               /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(0, 50, 71, 0.9) transparent transparent transparent;
}

.overlay-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.tooltip p {
    color: #e0e0e0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 0rem; /* was 2rem*/
}

/* CSS for bold text (strong tag) */
strong {
    font-weight: bold;
    /* Explicitly ensure bold weight */
}

/* Styling for unordered lists */
ul {
    list-style-type: disc;
    /* Default bullet style (filled circle) */
    margin-left: 20px;
    /* Indentation for the list */
    padding-left: 0;
    /* Remove default padding */
}

/* Styling for list items */
ul li {
    margin-bottom: 5px;
    /* Space between list items */
    font-size: 1.1rem;
    /* Match paragraph font size */
    line-height: 1.7;
    /* Match paragraph line height */
}

/* Inline Image with Text Wrap */
.developers-inline-image {
    float: right;
    /* Floats the image to the right */
    width: 250px;
    /* Adjust image width as needed */
    height: auto;
    /* Maintain aspect ratio */
    margin: 0 0 20px 20px;
    /* Top, Right, Bottom, Left margin (adjust as needed) */
    shape-outside: url('images/AxiomModel.png');
    /* Attempts to wrap around non-transparent pixels */
    shape-image-threshold: 0.5;
    /* Threshold for transparency (0.0-1.0) */
    object-fit: contain;
    /* Ensures the entire image is visible within its box */
}

/* Clear float after the content if needed (good practice) */
.developers-content::after {
    /* This rule is now less relevant as .developers-content is removed, but harmless */
    content: "";
    display: table;
    clear: both;
}

/* Parallax background for Use Cases section */
.parallax-bg {
    background-image: url('images/XR_Use_Cases_1.jpeg');
    /* Set your background image here */
    background-size: auto 200%;
    /* MODIFIED: Zoom in background to prevent mosaic effect */
    background-position: center;
    background-attachment: scroll;
    /* This is key for the parallax effect */
    /*min-height: 56.25vw; /* Sets a minimum height based on the image aspect ratio */
    max-height: 800px;
    /* Set a maximum height for the use cases section */
    color: white;
    /* Adjust text color for better contrast on background image */
    position: relative;
    /* Needed for z-index of content */
    overflow: visible;
    /* Hide any overflow from parallax movement */
    padding: 3rem 0;
    /* Re-added vertical padding to the section itself for overall spacing */
}

.parallax-bg:nth-child(even) {
    transform: scaleX(-1);

}

/* Ensure content within parallax section is visible and readable */
.parallax-bg .section-content {
    position: relative;
    z-index: 2;
    /* Ensure content is above the background and buttons */
    max-width: var(--section-content-max-width);
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0);
    /* Semi-transparent overlay for readability */
    padding: 2rem;
    /* Add padding to the content area */
    border-radius: 10px;

}

/* Hide the original image within the parallax section */
.parallax-bg .use-cases-container img {
    display: none;
}

/* New style for the overlay text */
.use-cases-overlay-text {
    position: absolute;
    color: white;
    font-size: 2rem;
    /* Adjust font size as needed */
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 15;
    /* Ensure it's above buttons but below tooltips */
    pointer-events: none;
    /* Allows clicks to pass through to buttons */
    text-align: center;
    width: 100%;
    transform: translate(-50%, -50%);
    /* Center the text based on its own dimensions */
}

.use-cases-overlay-title {
    position: absolute;
    color: white;
    font-size: 4rem;
    /* Adjust font size as needed */
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 15;
    /* Ensure it's above buttons but below tooltips */
    pointer-events: none;
    /* Allows clicks to pass through to buttons */
    text-align: center;
    width: 100%;
    transform: translate(-50%, -50%);
    /* Center the text based on its own dimensions */
}

/* -------------------- News Section Specific Styling -------------------------- */
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 2rem;
    position: relative;
}

.news-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: calc(var(--section-content-max-width) / 5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.news-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;    /* Optional: adds rounded corners to the image */
    margin-bottom: 15px;   /* Adds some space below the image */
}

.news-item h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.news-item p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.news-date {
    font-size: 0.6em;
    color: #777;
    margin-top: 10px;
    display: block;
}

.tags-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 2px;       /* vertical space between rows */
    column-gap: 5px;    /* horizontal space between tags */
}

.tag {
    border: 2px solid #00619e;
    border-radius: 12px;
    padding: 5px 5px;
    font-size: 0.6em;
    display: flex;
    line-height: 1;
}

/* ------------------------------------------------------------------------------ */
/*                       Adjustments for smaller screens                          */
/* ------------------------------------------------------------------------------ */
@media (max-width: 1111px) {
    .tags-list {
        display: none !important;
    }

    .developers-inline-image {
        float: none;            /* Remove float on small screens */
        margin: 20px auto;      /* Center image and add vertical margin */
        display: block;         /* Ensure it takes its own line */
        width: 80%;             /* Adjust width for smaller screens */
        max-width: 250px;       /* Keep a reasonable max-width */
    }

    /* Hide navigation in the video overlay (initial header) on smaller screens */
    .header-overlay nav {
        display: none !important;
    }

    /* Hamburger menu icon for mobile */
    .hamburger {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        width: 24px;        /* 60% of 40px */
        height: 24px;       /* 60% of 40px */
        z-index: 1100;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        height: 3px;        /* 60% of 5px */
        width: 100%;
        background: #fff;  
        margin: 4px 0;      /* 60% of 7px */
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Center hamburger vertically in sticky header */
    .sticky-header .hamburger {
        position: relative;
        top: 25%;
        right: 0.5rem;
        transform: translateY(-50%);
        margin-left: auto;
        margin-right: 0;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(40, 40, 40, 0.85);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .mobile-menu-overlay.active {
        display: flex;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .mobile-menu-links a {
        color: #fff;
        font-size: 2rem;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.2s;
    }

    .mobile-menu-links a:hover {
        color: var(--accent);
    }

    .sticky-header h1 {
        display: block;             /* Ensure the title is always visible in the sticky header */
        font-size: 1.2rem;          /* Reduce font size for small screens */
        text-align: left;           /* Ensure it aligns to the left next to the logo */
        margin: 0;
        white-space: nowrap;        /* Prevent wrapping */
        overflow: hidden;
        text-overflow: ellipsis;    /* Add ellipsis if needed */
    }

    h2 {
        font-size: 3.45rem;
    }

    .esa-logo {
        width: 110px;       /* Resize logo by 50% for smartphone view */
        height: auto;       /* Maintain aspect ratio */
    }

    /* Responsive adjustments for smaller screens */
    .overlay-button img {
        width: 60px;        /* Smaller button image on mobile */
    }

    .overlay-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        /* Less scaling on mobile */
    }

    .tooltip {
        min-width: 200px;
        padding: 10px;
        bottom: 110%;
        /* Adjust position for smaller screens */
    }

    .tooltip h3 {
        font-size: 1.1rem;
    }

    .tooltip p {
        font-size: 0.9rem;
    }

    /* Adjust parallax background for mobile to be less aggressive or static if needed */
    .parallax-bg {
        background-attachment: scroll;  /* Change to scroll on mobile for better performance */
    }

    .use-cases-overlay-text {
        font-size: 1rem;                /* Smaller font size for mobile */
    }

    .use-cases-overlay-title {
        font-size: 2rem;                /* Smaller font size for mobile */
    }

    .news-container {
        gap: 20px;
        margin-top: 2rem;
        position: relative;
    }

    .news-item {
        border-radius: 10px;
        padding: 15px;
        width: 100%;
        max-width: calc(var(--section-content-max-width) / 10);
    }

    .news-item h3 {
        font-size: 1rem;
    }

    .news-item p {
        font-size: 0.7rem;
    }

    .news-item a {
        font-size: 0.7rem;
    }

    .projects-table {
        font-size: 0.4rem;  /* Slightly smaller font for table content */
    }

    #featuresTable thead th {
        font-size: 0.4rem;
    }

    #featuresTable span.priority-high {
        font-size: 0.4rem;
    }

    #featuresTable span.priority-medium {
        font-size: 0.4rem;
    }

    #featuresTable span.priority-low {
        font-size: 0.4rem;
    }

    #featuresTable td:nth-child(1),
    #featuresTable td:nth-child(2),
    #featuresTable td:nth-child(3),
    #featuresTable th:nth-child(4),
    #featuresTable th:nth-child(5),
    #featuresTable td:nth-child(6),
    #featuresTable td:nth-child(7),
    #featuresTable td:nth-child(8) {
        font-size: 0.4rem;
    }
}
    /* Hide hamburger menu when the browser window is minimum width is more than 1111px*/
    @media (min-width: 1111px) {
        .hamburger {
            display: none !important;
        }
        .mobile-menu-links {
        display: none;
    }
    }