/* CSS Reset and Base Custom Properties */
:root {
    --primary-color: #007bff; /* A professional blue */
    --secondary-color: #343a40; /* Dark gray for text/backgrounds */
    /*--light-color: #f8f9fa;*/
    /* --light-color: #f8f9fa; */
    --light-color: #E3F5FF;
    --medium-color: #DAE2EB;
    --dark-color: #212529;
    --cta-color: #28a745; /* Green for Call-to-Action */
    --card-color: #F0F9FF;
    --dark-background-color: #0e0d12;   /* dark blue background color to match the logo */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* color: var(--dark-color); */
    line-height: 1.6;
}

.container {

    /*
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
    */
}

/* Wrapper ensures content takes full height of page */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;              /* minimum height of 100% viewport height */
/*    background-color: #eefbff; */
    background-color: #C5DAE8;
}

/* 1. Header & Navigation */
header {
    display: flex;
    justify-content: space-between; /* space out the logo and login links */
    align-items: center;
    padding: 20px;
    background-color: var(--dark-background-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between; /* space out the logo and login links */
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.nav-content {
    display: flex;
    flex-grow: 1; /* Allows the element to take up any available extra space within its parent container. This pushes the content on the right (Search/Contact) further away from the content on the left (Logo), ensuring the menu occupies the horizontal center. */
    justify-content: center;    /* Centers the flex items horizontally within the available space of the navigation menu. This visually centers the menu items in the middle of the header. */
    align-items: center;
    padding: 15px 0;
    margin-right: 100px;
    color: var(--cta-color);
}

.logo {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    flex-grow: 1; /* This ensures the top logo section takes as much space as possible */
    flex-shink: 0; /* prevent from shrinking */
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin-left: 25px;
}
nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: var(--primary-color);
}

.utility {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.cta-button {
    background-color: var(--cta-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #218838;
}
.search-icon { /* Placeholder for a search icon */
    font-size: 1.2em;
    cursor: pointer;
}

/* 2. Hero Section */
.hero {
    background: var(--secondary-color); /* Dark background for impact */
    color: white;
    padding: 100px 0;
    text-align: center;
    background-image: url('/byte-continuum/images/byte-continuum-background-00.png'); /* Placeholder for a tech image */
    background-size: cover;
    background-position: center;
}
.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}
.hero-cta {
    display: inline-block;
    margin: 0 10px;
}
.hero-cta.primary {
    background-color: var(--primary-color);
    padding: 12px 30px;
}
.hero-cta.secondary {
    background-color: transparent;
    border: 2px solid white;
    padding: 10px 28px;
}
.hero-cta:hover {
    opacity: 0.8;
}

/* 3. Core Solutions & Services */
.solutions {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-color);
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
}

.solutions h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.solutions > p {
    font-size: 1.1em;
    margin-bottom: 50px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 95%;
    margin: 0 auto; /* This will center the grid items horizontally */
}

/* solution card items */
.solution-card {
    background: var(--card-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.solution-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.solution-card a {
    color: var(--cta-color);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}
.solution-card-img {
    width: 90%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px; /* Rounds all corners by 10 pixels */
}

/* 4. Featured Project/Impact Story */
.featured-project {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
}
.project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-content h2 {
    font-size: 2em;
    margin-top: 0;
}
.project-content p {
    margin-right: 40px;
}
.project-content .read-more {
    border: 2px solid white;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    white-space: nowrap;
}
.project-content .read-more:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 5. Differentiator & Value Proposition */
.value-prop {
    padding: 80px 0;
    text-align: center;
    background-color: var(--medium-color);
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
}
.value-prop h2 {
    margin-bottom: 40px;
    color: var(--dark-color);
}
.metric-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}
.metric {
    text-align: center;
}
.metric span {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: var(--cta-color);
}
.metric p {
    font-size: 1.1em;
    margin-top: 5px;
}

.skill-img {
    display: block; /* By default, <img> elements are inline elements. Methods like margin: auto for horizontal centering only work on block-level elements. Solution: Convert the image to a block-level element using display: block; */
    width: 128px; /* Sets the width to 300 pixels */
    height: 128px; /* Sets the height to 200 pixels */
    margin: 0 auto;   /* center the image */
}

/* 6. Insights & Thought Leadership */
.insights {
    padding: 60px 0;
    background-color: var(--light-color);
}
.insights h2 {
    margin-bottom: 30px;
    text-align: center;
}
.insight-list {
    list-style: none;
    padding: 0;
}
.insight-list li {
    background: var(--card-color);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.insight-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}
.insight-list li a:hover {
    text-decoration: underline;
}

/* 7. Footer */
footer {
    background: var(--dark-background-color);
    color: white;
    padding: 50px 0 20px;
    font-size: 0.9em;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.footer-section {
    width: 20%;
    min-width: 150px;
    margin-bottom: 20px;
}
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.footer-section ul li a:hover {
    color: white;
}
.contact-info p {
    margin: 5px 0;
}
.social-media a {
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    text-decoration: none;
}
.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

/* For smaller screens */
@media (max-width: 768px) {

    .container {
        width: 90%; /* Adjusts width for smaller screens */
        padding: 0 10px;
    }

    .header .text-section h1 {
        font-size: 20px;
    }

    .logo .text-section p {
        font-size: 11px;
    }

    .nav-content {
        display: none;  /* hide nav menu on smaller screens */
    }

}