:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-background: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

section {
    margin-bottom: 4rem;
}

h1, h2, h3 {
    color: var(--secondary-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    margin-top: -4rem;  /* Move the main title up */
}

section#methodology h2 {
    margin-top: -5rem;  /* Keep the working adjustment for methodology */
}

.methodology-grid,
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.method-card,
.importance-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.method-card:hover,
.importance-card:hover {
    transform: translateY(-5px);
}

.method-card h3,
.importance-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.full-width-image {
    width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-container {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.example-container {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

#example-selector {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.2rem;
    background-color: white;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#example-selector:hover, #example-selector:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

#example-content {
    transition: opacity 0.3s ease;
}

#example-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#example-content ol {
    padding-left: 1.5rem;
}

footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .methodology-grid,
    .importance-grid {
        grid-template-columns: 1fr;
    }
}
