/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --background: hsl(206, 22%, 97%);
    --foreground: hsl(216, 17%, 8%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(216, 17%, 8%);
    --primary: hsl(210, 66%, 14%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(208, 17%, 27%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(206, 22%, 97%);
    --muted-foreground: hsl(210, 12%, 40%);
    --accent: hsl(28, 72%, 41%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(207, 18%, 90%);
    --nav-bg: hsl(0, 0%, 100%);
    
    /* Typography */
    --font-display: 'Montserrat', 'Inter', -apple-system, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(210, 66%, 14%, 0.15);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 0.6rem;
}

body {
    font-family: var(--font-serif);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 6.24rem;
    width: auto;
    object-fit: contain;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--foreground);
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-mobile {
    display: none;
    border-top: 1px solid var(--border);
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.nav-mobile.active {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-link-mobile {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--foreground);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background-color: hsla(210, 66%, 14%, 0.8);
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 6rem 2rem 9rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 9rem 2rem;
    }
}

.hero-text {
    max-width: 48rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.9);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-link {
    color: var(--primary-foreground);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.hero-link:hover {
    opacity: 0.8;
}

.hero-link.secondary {
    text-decoration-color: hsla(28, 72%, 41%, 0.8);
}

/* Stats Section */
.stats {
    padding: 4rem 0 6rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats {
        padding: 6rem 2rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        border-top: none;
        border-left: 1px solid var(--border);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .stat-item {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    
    .stat-item:nth-child(2n) {
        border-right: none;
    }
}

@media (min-width: 768px) {
    .stat-item {
        border-right: 1px solid var(--border);
        border-bottom: none;
    }
    
    .stat-item:nth-child(2n) {
        border-right: 1px solid var(--border);
    }
    
    .stat-item:last-child {
        border-right: none;
    }
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

.stat-unit {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.stat-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Section Styles */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
}

/* Why It Matters Section */
.why-matters {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.matters-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .matters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.matter-item {
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.matter-item:hover {
    box-shadow: var(--shadow-elegant);
}

.matter-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.matter-number {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.matter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.matter-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* About Project Section */
.about-project {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .about-project {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-content {
    max-width: 100%;
}

.project-text {
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.project-text:first-of-type {
    margin-top: 0;
}

.project-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(210, 66%, 14%, 0.25);
    mix-blend-mode: multiply;
}

/* Impact Section */
.impact {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .impact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.impact-intro {
    color: var(--muted-foreground);
    margin-top: 0;
}

.impact-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--muted-foreground);
}

.impact-list li {
    margin-bottom: 0.5rem;
}

.impact-list strong {
    color: var(--foreground);
}

.impact-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.impact-img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .impact-img {
        height: 20rem;
    }
}

.impact-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(210, 66%, 14%, 0.25);
    mix-blend-mode: multiply;
}

/* Roadmap Section */
.roadmap {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

@media (min-width: 768px) {
    .roadmap {
        padding: 6rem 2rem;
    }
}

.roadmap-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.roadmap-item {
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.roadmap-item:hover {
    box-shadow: var(--shadow-elegant);
}

.roadmap-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.roadmap-icon {
    flex-shrink: 0;
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    background-color: hsla(210, 66%, 14%, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .roadmap-icon {
        height: 3.5rem;
        width: 3.5rem;
    }
}

.roadmap-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .roadmap-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}

.roadmap-text {
    padding-top: 0.125rem;
}

.roadmap-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.roadmap-description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Contact Section */
.contact-section {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 6rem 2rem;
    }
}

.contact-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link.secondary {
    text-decoration-color: hsla(28, 72%, 41%, 0.8);
}

/* Footer Styles */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: hsla(0, 0%, 100%, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-foreground);
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid hsla(0, 0%, 100%, 0.2);
    text-align: center;
    color: hsla(0, 0%, 100%, 0.6);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .strategic-advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .strategic-advantages-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        padding: 4rem 1rem 6rem;
    }
    
    .stats {
        padding: 3rem 1rem 4rem;
    }
    
    .why-matters,
    .about-project,
    .impact,
    .roadmap,
    .contact-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}