:root {
    --primary-blue: #003366; /* Deep Government Blue */
    --secondary-blue: #336699; /* Lighter Accent Blue */
    --text-dark: #333333; /* Dark Gray for primary text */
    --background-white: #FFFFFF; /* Clean White for main backgrounds */
    --background-light-gray: #F0F0F0; /* Light Gray for subtle section breaks */
    --border-color: #E0E0E0; /* Consistent border color */
    --card-background: var(--background-white); /* Use new variable */
    --footer-background: var(--background-light-gray); /* Use new variable */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--background-white); /* Use new variable */
    color: var(--text-dark); /* Use new variable */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6; /* Improved readability */
}

a {
    text-decoration: none;
    color: var(--secondary-blue); /* Use new variable for links */
    font-weight: 500;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Lighter header background */
    padding: 1rem 2rem; /* Slightly reduced padding */
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98); /* Less transparent when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark); /* Use new variable */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-dark); /* Use new variable */
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-blue); /* Use new variable */
}

/* Main Content */
main {
    padding: 0 1rem; /* Adjusted for better overall balance */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Section visibility animations (for JavaScript) */
.hidden-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}


/* Icons */
.card i {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    width: 38px; /* Slightly larger icons */
    height: 38px;
    stroke-width: 1.8; /* Slightly thicker stroke for icons */
    animation: pulse 1.5s infinite ease-in-out; /* Subtle pulse animation */
}

.step-icon {
    background-color: var(--primary-blue);
    color: #fff;
    width: 65px; /* Slightly larger step icons */
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; /* Larger font for step numbers */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.step-icon span {
    font-size: 2rem; /* Ensure the number inside is also larger */
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    max-width: none; /* Remove max-width for full-width hero */
    margin: 0; /* Remove margin for full-width hero */
    background-color: var(--primary-blue); /* Solid primary blue background */
    color: #fff; /* Ensure text is visible on the background */
    border-radius: 0; /* Remove border-radius */
    margin-top: 0; /* Remove margin-top */
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: none; /* Remove the overlay */
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Constrain content width */
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem; /* Slightly increased for impact */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff; /* White text on blue background */
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem; /* Slightly increased */
    max-width: 700px; /* Wider for more text */
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.85); /* Lighter white for readability */
}

.cta-button {
    display: inline-block;
    background-color: var(--background-white); /* White CTA button */
    color: var(--primary-blue); /* Primary blue text on CTA */
    padding: 1rem 2rem;
    border-radius: 980px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: 1px solid transparent;
}

.cta-button:hover {
    background-color: var(--background-light-gray); /* Slightly gray on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Features Section */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.card {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    animation: fadeInUp 0.8s ease-out forwards; /* Apply fade-in animation */
    opacity: 0; /* Start invisible */
}




/* Platform Support Section */
#platform-support {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#platform-support h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.platform-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.category-item {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 15px; /* Slightly more rounded */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Subtle shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Expected Outcomes Section */
#expected-outcomes {
    padding: 6rem 0;
    max-width: 900px; /* Make it narrower for better readability */
    margin: 0 auto;
    text-align: center;
}

#expected-outcomes h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

#expected-outcomes p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Problem-Solution Section */
#problem-solution {
    padding: 6rem 0;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#problem-solution h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.solution-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.point-item {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.point-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.point-item i {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    width: 38px;
    height: 38px;
    stroke-width: 1.8;
    animation: pulse 1.5s infinite ease-in-out;
}

.point-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.point-item p {
    color: var(--text-dark);
    line-height: 1.6;
}


/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--footer-background);
    color: var(--text-dark);
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Space out content better */
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem; /* Add padding for content */
    text-align: left;
}

.footer-content > div {
    flex: 1 1 auto; /* Allow items to grow and shrink */
    min-width: 200px; /* Adjust min-width for better wrapping */
    margin: 1rem;
}

.footer-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-content p, .footer-content ul li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li a {
    color: var(--text-dark); /* Use text-dark for default link color */
    transition: color 0.3s;
}

.footer-content ul li a:hover {
    color: var(--primary-blue); /* Primary blue on hover */
}

.copyright {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 1rem;
    }

    nav ul {
        display: none; /* For simplicity. A hamburger menu would be better for a real app. */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .steps {
        flex-direction: column;
        gap: 3rem;
    }

    .platform-categories {
        grid-template-columns: 1fr; /* Stack categories on small screens */
    }

    .solution-points {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}