:root {
/* Colors */
    --base-clr: #324B50;
    --line-clr: #42434a;
    --hover-clr: rgba(149, 176, 182, 0.3);
    --text-clr: #e6e6ef;
    --accent-clr: #81cad9;
    --secondary-text-clr: #b0b3c1;
    --Tertiary-Color: #95b0b6; /* Light Greyish/Blue */
    --Header-Color: #e4eef2;
    --text-color: rgb(0, 0, 0);
    --Dark-Gray: #505050;
    --Light-Gray: #d1d1d1;

/* Font */
    --ff:'Figtree', sans-serif;
    --h1: bold 4rem/1em var(--ff);
    --h2: bold 3rem/1.2em var(--ff);
    --h3: bold 2.25rem/1.2em var(--ff);
    --h4: bold 1.5rem/1.6em var(--ff);
    --big: 1.25rem/1.6em var(--ff);
    --p: 1rem/1.6em var(--ff);
    --small: 0.75rem/2em var(--ff);

/* Spacing */
    font-size: 16px;
    --margin-xxs: .25rem;
    --margin-xs: .5rem;
    --margin-s: .75rem;
    --margin-m: 1rem;
    --margin-l: 1.25rem;
    --margin-xl: 1.75rem;
    --margin-xxl: 2.5rem;
}

body, html {
    height: 100%; /* Make the body and html fill the viewport height */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: #ffffff;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styling */
header {
    background-color: var(--Header-Color);
    padding: 1% 1%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fix the header to the top */
    top: 0; /* Ensure it stays at the very top */
    left: 0;
    width: 100%; /* Make sure the header spans the full width of the page */
    height: 12%; /* Set the height of the header */
    z-index: 1000; /* Ensure it stays above other content */
}

.header-container {
    display: flex;
    justify-content: space-between; /* Push logo to the left and buttons to the right */
    align-items: center; /* Vertically align items */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.header-buttons {
    display: flex;
    gap: 0.5rem; /* Add spacing between the buttons */
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 4rem; /* Set the height of the logo */
    width: 4rem; /* Set the width of the logo */
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.75rem;
    vertical-align: middle;
    line-height: 1;
}
.darkblue-font {
    color: var(--base-clr);
}

.blue-font {
    color: var(--Tertiary-Color);
}

.darkblue-font, .blue-font {
    font-weight: 800;
}
/* Navigation Styling */
nav {
    position: absolute; /* Position the nav absolutely within the header */
    left: 50%; /* Move nav to the horizontal center */
    transform: translateX(-50%); /* Adjust to truly center the nav */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--base-clr);
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s;
    display: flex;
    align-items: center; /* Aligns text and arrow vertically */
}

nav ul li a:hover {
    color: var(--Tertiary-Color);
}
.active {
    color: var(--base-clr);
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--base-clr);
    background-color: var(--Tertiary-Color);
}
.active:hover {
    color: white;
}
.active2 {
    color: var(--base-clr);
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    background-color: var(--Tertiary-Color);
}
.active2:hover {
    color: white;
}
.logo-text-link {
    display: flex; /* Align the logo and text horizontally */
    align-items: center; /* Vertically align the logo and text */
    text-decoration: none; /* Remove underline from the link */
    transition-duration: 80ms;
    transition-property: transform;
    transition-timing-function: ease-in;
}

.logo-text-link:hover {
    transform: scale(1.1);
}
.logo-link img{
    display: flex; /* Align the logo and text horizontally */
    align-items: center; /* Vertically align the logo and text */
    transition-duration: 80ms;
    transition-property: transform, width;
    transition-timing-function: ease-in;
}

.logo-link:hover img{
    transform: scale(1.2);
}

/* Arrow Styling */
.arrow {
    font-size: 0.8rem; /* Makes the arrow smaller */
    margin-left: 5px; /* Adds space between the text and the arrow */
    vertical-align: middle; /* Aligns the arrow with the text */
    transition: transform 0.3s; /* Adds a smooth rotation effect */
}

/* Rotate the arrow when the dropdown is hovered */
.dropdown:hover .arrow {
    transform: rotate(180deg); /* Rotates the arrow 180 degrees */
}

/* Dropdown Styling */
.dropdown-content {
    display: none; /* Hidden by default */
    list-style: none;
    padding: 0;
    margin: 0; /* Remove extra spacing */
    background-color: var(--Header-Color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
}

.dropdown-content li {
    padding: 0.5rem 1rem; /* Add padding inside each dropdown item */
}

.dropdown-content a {
    text-decoration: none;
    color: var(--base-clr);
    font-weight: 500;
}

.dropdown-content.active {
    display: block; /* Show the dropdown when active */
    margin-top: 0.5rem; /* Add spacing between the dropdown and the link */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    min-width: 150px;
    border-radius: 10px;
}

.dropdown-content li {
    padding: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* End of Demo Button Styling */
.demo-btn {
    color: var(--base-clr);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--base-clr);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

.demo-btn:hover {
    background-color: var(--base-clr);
    color: white;
}

.login-btn {
    background-color: var(--base-clr);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--base-clr);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

.login-btn:hover {
    background-color: white;
    color: var(--base-clr);
}
main {
    flex: 1; /* Allow the main content to grow and take up available space */
    margin-top: 5%; /* Adjust for the fixed header */
}
/* Styling for the footer*/
.footer {
    background-color:white;
    color: var(--base-clr);
    padding: 1rem 0;
    text-align: left;
    border-top: 1px solid var(--base-clr); /* Add a top border to separate the footer */
    width: 100%; /* Ensure the footer spans the full width of the page */
    margin: 0; /* Remove any default margin */
    position: relative; /* Allow the footer to flow naturally with the content */
    left: 0; /* Align the footer to the far left */
    box-sizing: border-box; /* Include padding and border in the width calculation */
    bottom: 0; /* Position the footer at the bottom of the page */
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Push items to the far left and right */
    align-items: center; /* Vertically align items */
    width: 100%; /* Ensure the content spans the full width of the footer */
    margin: 0; /* Remove any centering margin */
    padding: 0 1rem; /* Add padding inside the footer for spacing */
    box-sizing: border-box; /* Include padding in the width calculation */
}

.footer-links {
    color: var(--base-clr);
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* Space between links */
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: var(--base-clr);
    text-decoration: none;
    font-size: 0.75rem;
    transition-duration: 200ms;
    transition-property: color;
    transition-timing-function: ease-in-out;
}

.footer-links a:hover {
    color: var(--accent-clr);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--base-clr);
    text-align: right; /* Align text to the right */
}
/* End of Footer Styling */
/* Scroll Animations CSS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    will-change: transform;
}

.slide-in {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate {
    display: inline-block;
    transition: transform 0.2s ease-out;
}
.drop-in {
    opacity: 0;
    transform: translateY(-100px); /* Start above the viewport */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.drop-in.visible {
    opacity: 1;
    transform: translateY(0); /* Move to its original position */
}
.slide-in-right {
    opacity: 0;
    transform: translateX(100px); /* Start off-screen to the right */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0); /* Move to its original position */
}
.fade-in2 {
    opacity: 0.25; /* Start 25% visible */
    transition: opacity 1.0s ease-in; /* Smooth fade-in effect */
}

.fade-in2.visible {
    opacity: 1; /* Fully visible */
}
/* Mobile Menu Styling */
.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute; /* Position it relative to the header */
    top: 25px;
    right: 10px;
    z-index: 1000; /* Ensure it appears above other elements */
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--base-clr);
    position: relative; /* Ensure the button stays in its original position */
    z-index: 1100; /* Keep the button above the dropdown */
    padding: 0; /* Remove any padding that might cause movement */
    margin: 0; /* Remove any margin that might cause movement */
    transition: none; /* Remove any hover or active transition effects */
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--base-clr); /* Keep the color consistent */
    transform: none; /* Remove any transform effects on hover or focus */
    outline: none; /* Remove focus outline */
}

.menu-toggle.active {
    transform: none; /* Ensure no movement when active */
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Position it below the toggle button */
    right: 0;
    background-color: var(--Header-Color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000; /* Ensure it appears below the menu-toggle */
}

.menu-toggle.active + .mobile-dropdown {
    display: block; /* Show the dropdown when the button is active */
    width: 12rem;
    right: 0px;
    transform: none;
    position: absolute; /* Ensure the dropdown stays in the same location */
}
/*Mobile Menu Button Styling*/
.mobile-dropdown-btn {
    display: flex;
    justify-content: flex-start; /* Align text and arrow to the start */
    align-items: center; /* Vertically align the text and arrow */
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
    color: var(--base-clr);
    gap: 0.5rem; /* Add consistent spacing between the text and the arrow */
}
.mobile-arrow {
    font-size: 0.8rem;
    margin-left: 0; /* Remove any additional margin */
}
.active-mobile {
    color: var(--Tertiary-Color);
}
.mobile-dropdown-btn.active-mobile {
    color: var(--Tertiary-Color);
}
.mobile-dropdown-btn .mobile-arrow {
    transition: transform 0.3s ease-in-out; /* Smooth rotation */
    transform: rotate(-90deg);
}

.mobile-dropdown-btn.active-mobile .mobile-arrow {
    transform: rotate(0deg); /* Rotate 90 degrees */
}
/* Feature and Resources Dropdown Styling */
/* Position the dropdown to the left of the button */
#features-dropdown {
    position: absolute;
    top: 60px; /* Position it below the button */
    left: -180px; /* Align it to the left of the button */
    background-color: var(--Header-Color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 1000;
    width: 11rem; /* Set a fixed width for the dropdown */
}
#resources-dropdown {
    position: absolute;
    top: 120px; /* Position it below the button */
    left: -170px; /* Align it to the left of the button */
    background-color: var(--Header-Color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 1000;
    width: 10rem; /* Set a fixed width for the dropdown */
}
/* Mobile Demo and Login Button Styling */
/* End of Demo Button Styling */
.mobile-demo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--base-clr);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--base-clr);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--base-clr);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--base-clr);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}
/* Mobile Styling */
@media (max-width: 980px) {
    .header-container {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: flex-start; /* Align items to the left */
        justify-content: center;
    }
    header {
        height: 9%;
    }

    .header-buttons {
        display: none; /* Hide the original header buttons */
    }

    .mobile-menu {
        display: block; /* Show the mobile menu */
    }

    nav ul {
        display: none;
    }

    .logo img {
        height: 4rem; /* Adjust logo size for mobile */
        width: 4rem;
        margin-right: 0.25rem;
    }

    .logo h1 {
        font-size: 1.5rem; /* Adjust font size for mobile */
    }
}

/* Max 440px — iPhone 14 Pro, Larger Phones */
@media (max-width: 440px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    .logo img {
        height: 4rem;
        width: 4rem;
    }
    .mobile-menu {
        top: 28px;
        right: 20px;
    }
    .footer-content {
        font-size: 0.5rem;
    }
}

/* Max 420px — iPhone XR, Mid Sized Phones */
@media (max-width: 420px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    .logo img {
        height: 3.5rem;
        width: 3.5rem;
    }
    #resources-dropdown {
        left: -165px;
    }
    .mobile-menu {
        top: 25px;
        right: 20px;
    }
    .footer-content {
        font-size: 0.5rem;
    }
}

/* Max 380px - iPhone SE, Smaller Phones */
@media (max-width: 380px) {
    .logo h1 {
        font-size: 1.25rem;
    }
    .logo img {
        height: 3.3rem;
        width: 3.3rem;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .logo img {
        height: 3rem;
        width: 3rem;
    }
    .menu-toggle.active + .mobile-dropdown {
        width: 12rem;
    }
    #features-dropdown {
        width: 9rem;
        left: -160px; /* Adjusted to fit the screen */
    }
    #resources-dropdown {
        width: 8rem;
        left: -160px;
    }
    .mobile-menu {
        top: 14px;
        right: 20px;
    }
    .footer-content {
        font-size: 0.5rem;
    }
}