:root {
    --primary-color: #114188;  /* Main brand color */
    --secondary-color: #2c3e50; /* Darker accent */
    --background-color: #f8f9fa; /* Light background */
    --text-color: #333;        /* Dark text */
    --header-height: 70px;     /* Fixed header height */
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
}

.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

a {  /* Style all links */
    text-decoration: none; /* Remove underlines */
    color: var(--primary-color); /* Make link color the primary color */
    transition: color 0.3s ease; /* Smooth color transition */
}

a:hover {
    color: darken(var(--primary-color), 10%); /* Slightly darker on hover */
}


/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
    padding: 0 20px; /* Add padding to the header */
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

header.homepage {
    background-color: var(--primary-color); /* Dark blue background for homepage header */
    color: white;
}


header h1 {
    margin: 0;
    font-size: 1.8rem;  /* Slightly smaller h1 */
    font-weight: 500; /* Not too bold */
}

header.homepage h1 {
    color: white;
}

header .logo {
    height: 40px;
    margin-left: 15px;
}

header a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header a:hover {
    color: var(--primary-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 500;
}

.button:hover {
    background-color: #3a7abd;
    transform: translateY(-2px);
}


.logo-container {
    display: flex;
    align-items: center; /* Vertically center logo and title */
}

.logo {
    height: 50px; /* Adjust logo height */
    margin-left: 20px; /* Space between title and logo */
}

/* Main Content */
main {
    padding-top: calc(var(--header-height) + 40px); /* Space below fixed header */
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 2;
}



/* Sections */
section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Softer box-shadow */
    padding: 30px;
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 0; /* Reset margin */
    margin-bottom: 20px;
}

.description {
    background-color: lighten(var(--primary-color), 40%); /* Lighten primary color for background */
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px; /* Consistent radius */
}


ul, ol {
    padding-left: 20px;
}

/* Sidebar */
.sidebar {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 25%; /* Stick just below the header */
    height: 100%; /* Improve sticky behavior */
    align-self: flex-start;
    margin-bottom: 30px;


}



.tool-image {
    width: 100%; /* Keep responsive */
    max-width: 100%; /* Set a larger maximum width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--secondary-color);
    color: white;
}


/* Media Queries (Responsive Design) */

@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .tool-image {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }

    main {
        padding-top: 140px;
    }
}


/* Hero Image Container */
.hero-image {
    position: relative;
    width: 100%;
    height: 60vh; /* Full viewport height */
    overflow: hidden;
    text-align: center;
}

/* Text Styling */
.hero-image h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: -1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Add text shadow for readability */
}

.hero-image p {
    color: white; /* Ensure text stands out */
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Hero Image */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover the container */
}

/* Overlay Content */
.hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); /* Darken the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    text-align: center;
    border-radius: 5pt;
}

/* software.html */
#about {
    padding-top: calc(var(--header-height) + 60px); /* Adjust as needed */
    margin-top: -40px; /* This negative margin offsets the padding */
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: white; /* Grey background */
    border: none;
    text-decoration: none;
    color: var(--primary-color); /* Icon color */
    font-size: 1.5rem; /* Icon size */
    transition: background-color 0.3s ease;
}

.home-button:hover {
    color: var(--secondary-color);
}

.contact-image {
    width: auto;
    max-height: 20px;
    display: inline-block; /* Allow margin adjustments */
    vertical-align: middle; /* Align with the middle of the text */
    margin-top: -4px; /* Optional: Push the image down a bit */
}