/* =================== Global Styles =================== */
body {
    font-family: Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #181f34;
    font-size: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow-x: hidden;
    box-sizing: border-box;
    /* Ensures consistent sizing */
}
  

/* =================== Smooth Page Transitions =================== */
.page-transition {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.page-transition.loaded {
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* =================== Animations =================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================== Header & Navigation =================== */
header {
    background-color: #181f34;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 29px;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation Bar – Using Bootstrap’s .navbar */
.navbar {
    background-color: #181f34;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar Logo */
.navbar-logo {
    position: absolute;
    top: 10px;
    left: 0;
    /* Moves it fully to the left */
    width: 150px;
    /* Increase size */
    height: auto;
    max-width: 20vw;
    /* Adjust scaling */
}

/* Existing nav link styling */
.navbar-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #181f34;
    border-radius: 5px;
}

/* New rule for the active nav link */
.navbar-nav .nav-link.active {
    color: #9eb7c6;
}

/* === Appendices Page Title & Subtitle === */
/* 1) Target any H1 that has the .my-5 class. */
h1.my-5 {
    text-align: left;
    /* Shift title to the left */
    color: #9eb7c6;
    /* Make title light blue */
    font-weight: bold;
    /* Make title bold */
    margin-left: 25px;
}

/* 2) Target the paragraph immediately following that H1. */
h1.my-5+p {
    text-align: left;
    /* Shift subtitle to the left */
    color: rgb(219, 222, 230);
    /* Make subtitle text white */
    margin-left: 25px;
    /* make text samller*/
    font-size: 1rem;
    font-weight: 400;
    margin-top: -20px;

}

/* =================== Title and Logo Section =================== */
.title-logo-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 30px;
    padding: 10px;
    width: 100%;
    height: 400px;
    box-sizing: border-box;
}

.title-logo-section h1 {
    font-size: 8rem;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    max-width: 90vw;
}

.title-logo-section .logo {
    width: 33%;
    /* Increase size */
    height: 200px;
    margin-left: 300px;
    /* Adjust left spacing */
}

/* =================== Slogan =================== */
.slogan {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-left: 30px;
}

/* =================== Main Content =================== */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
    box-sizing: border-box;
}


section {

    padding: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
}
    .severity-key {
        border: 1px solid #ccc;
        background-color: #f0f0f0;
        padding: 8px;
        font-size: 1rem; /* Half the normal size */
        color: #333;
        display: inline-block; /* Shrinks the box to fit content */
        margin: 10px 0;
    }

    #references {
        font-size: 0.5em;  /* Half the normal font size */
        color: #333;       /* Dark grey color */
      }

/* Insert a line before each section, except the first, and position it halfway (2rem) above */
section+section::before {
    content: "";
    display: block;
    width: 65px;
    /* Line width */
    height: 5px;
    /* Line thickness */
    background-color: #edefd9;
    margin: -2rem auto 2rem auto;
    /* Explanation of the margins:
       -2rem pulls the line 2rem up, so it's in the middle of the 4rem gap.
        2rem auto adds 2rem space below the line, then auto-centers horizontally.
    */
    border-radius: 2px;
    /* Slight rounding of line edges (optional) */
}


/* =================== Hero Section - Title & Logo =================== */
.hero-section {
    display: flex;
    flex-direction: row;
    /* Ensures the text and logo are on the same row */
    align-items: center;
    justify-content: center;
    /* Centers both the text and logo */
    background-color: #181f34;
    color: white;
    padding: 50px;
    border-radius: 10px;
    max-width: 1400px;
    margin: 20px auto;
    position: relative;
}

/* Title styling */
.hero-text h1 {
    font-size: 6rem;
    margin: 0;
    text-align: center;
    /* Center the title */
}

/* Slogan styling */
.hero-text .slogan {
    font-size: 1.5rem;
    margin-top: 10px;
    text-align: center;
    /* Ensure slogan is also centered */
}

/* Logo styling */
.hero-logo {
    width: 33%;
    /* 1/3 of the screen width */
    max-width: 400px;
    /* Optional: Max limit for larger screens */
    height: auto;
    object-fit: contain;
    margin-left: 20px;
    /* Space between the logo and the text */
    animation: bounce 2s ease-in-out infinite;
    /* Apply the bounce animation with smooth easing */
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        /* Start and end position */
    }

    50% {
        transform: translateY(-15px);
        /* Return to start position */
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        max-width: 60%;
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-logo {
        max-width: 70%;
    }
}

/* =================== Headings =================== */
h2 {
    color: #9eb7c6;
}

h3,
h4 {
    color: #9eb7c6 !important;
}

/* =================== Responsive Design =================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .title-logo-section {
        flex-direction: column;
        text-align: center;
    }

    .title-logo-section h1 {
        font-size: 5rem;
        max-width: 85vw;
    }

    .title-logo-section .logo {
        margin-left: 0;
        margin-top: 10px;
    }

    .navbar-logo {
        width: 100px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .title-logo-section h1 {
        font-size: 4rem;
    }

    .title-logo-section .logo {
        width: 80px;
    }

    .slogan {
        font-size: 16px;
    }

    section {
        width: 95%;
        padding: 15px;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .navbar-logo {
        width: 80px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .title-logo-section h1 {
        font-size: 3rem;
        max-width: 80vw;
    }

    .slogan {
        font-size: 14px;
    }

    section {
        width: 98%;
        padding: 10px;
    }

    h2,
    h3,
    h4 {
        font-size: 1.2rem;
    }

    .navbar-logo {
        width: 60px;
    }
}

/* =================== Video Section =================== */
.video-section {
    text-align: center;
    margin: 50px auto;
}

.video-section video {
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
}

/* =================== Team Section =================== */
.team-section {
    text-align: center;
    margin: 50px auto;
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.team-member {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease-in-out;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 10px;
    font-size: 22px;
    color: #181f34;
}

.team-member p {
    font-size: 16px;
    color: #555;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 5px;
}

.social-icons img {
    width: 24px;
    transition: transform 0.3s ease-in-out;
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* =================== Quote Styling =================== */
#abstract blockquote {
    display: block;
    background-color: #181f34;
    /* Dark Blue Background */
    color: white;
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
    /* Soft Shadow */
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
}

#abstract blockquote span {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    color: #9eb7c6;
}

/* Move the features.png image down slightly */
.features-img {
    margin-top: 5rem;
    /* Adjust as needed for more/less space */
}

/* Pull the next section up by reducing its default top margin */
.next-section {
    margin-top: 5rem !important;
    /* This overrides .my-5 which is 3rem, for example */
}


/* =================== Social Icons =================== */
.social-icons a {
    color: #181f34;
    font-size: 24px;
    margin: 0 5px;
    transition: transform 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #0073b1;
    /* LinkedIn blue */
    transform: scale(1.2);
}

/* =================== Gantt Chart =================== */
.project-management {
    text-align: center;
    margin: 50px auto;
}

.project-management img {
    width: 100%;
    max-width: 1500px;
}

/* =================== Footer Section =================== */
footer {
    background-color: #181f34;
    color: white;
    padding: 20px;
    text-align: center;
}

.social-links {
    margin-bottom: 10px;
}

.social-links a {
    font-size: 24px;
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    color: #ff7f00;
    /* Optional hover color */
}

/* =================== Footer Logos Styling =================== */
.footer-logos {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Space between the logos */
}

.footer-logo {
    width: 100px;
    /* Set width for logos */
    height: auto;
    object-fit: contain;
}

.footer-logo:hover {
    opacity: 0.7;
    /* Optional hover effect */
}

/* =================== Custom Margins for Images =================== */

.custom-margin {
    margin-bottom: 0;
}

/* Style the tables within the #use-cases section to fit 60% of the page */
/* Container grid styling to display two use cases per row,
   with the overall container set to 80% width and centered on the page */
#use-cases .use-cases-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 95%;
    margin: 0 auto;
}

/* Optional styling for each use case container */
#use-cases .use-case {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table styling within each use case */
#use-cases .use-case table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Table header and cell styling */
#use-cases .use-case table th,
#use-cases .use-case table td {
    padding: 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
}

/* Table header background */
#use-cases .use-case table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* Even row background color */
#use-cases .use-case table tr:nth-child(even) {
    background-color: #f4f4f4;
}


/* Style for the persona container to display personas side by side and take 90% of the page width */
/* Style for the persona container to display personas side by side and take 90% of the page width */
#personas .persona-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
}

/* Center align text within each persona block */
#personas .persona {
    text-align: center;
    flex: 1;
}

/* Ensure the images scale within their container */
#personas .persona img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

  .section-nav-btn {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #9eb7c6;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 6px #9eb7c6;
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s;
  }

  .section-nav-btn:hover {
    opacity: 1;
    transform: scale(1.05);
  }

  #topSection {
    bottom: 20px;
  }

