:root {
    --german-black: #1a1a1a;
    --german-red: #C0392B;
    --german-gold: #F1C40F;
    --bg-light: #fdfdfd;
    --text-dark: #2c3e50;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
    background: var(--german-black);
    padding: 1rem 5%;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
    color: var(--german-gold);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li { margin-left: 1.5rem; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--german-gold); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/Generated.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 5%;
    text-align: center;
    
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }

/* --- Layout Containers --- */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

/* Responsive Grids */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.grid-update { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}

/* Professional Cards */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--german-red);
    transition: var(--transition);
    height: 100%;
}

.card:hover { transform: translateY(-5px); }

.btn {
    margin-left: 0 !important; /* Removes the side margin that pushes them off-center */
        width: 200px;              /* Sets a fixed width for uniform look */
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    background: var(--german-red);
    color: white;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover { background: #962d22; transform: scale(1.02); }

/* --- Methodology Styles --- */
.pillar-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--german-red);
    margin-bottom: 15px;
}

.highlight-list { list-style: none; padding: 0; }
.highlight-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

footer { 
    background: var(--german-black); 
    color: #888; 
    text-align: center; 
    padding: 40px 20px; 
    margin-top: 40px; 
}

/* --- Media Queries for Mobile --- */
@media (max-width: 768px) {
.navbar {
        flex-direction: row-reverse; /* This will push the icon to the right */
        justify-content: space-between;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }

    .hero h1 { font-size: 1.8rem; }
    
    .container { padding: 20px 15px; }
    
    .grid, .grid-update {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Hamburger Menu Styles --- */
.menu-icon {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: var(--german-gold);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex; /* Show icon on mobile */
    }

.nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--german-black);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        text-align: right; /* Change this from 'center' or 'left' to 'right' */
        align-items: flex-end; /* Add this to align the items to the right */
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    /* This class is toggled by JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
}