/* Mercedes-Benz / Luxury Editorial Corporate Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #e5e5e5;
    --hover-effect: #404040;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Elegant Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 2rem;
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 1rem;
    display: inline-block;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

/* Minimalist Header & Navigation */
header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.logo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
}

.site-logo {
    width: 50px;
    height: auto;
    filter: grayscale(100%) contrast(150%);
}

.primary-title h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    font-weight: 300;
}

.primary-title p {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    max-width: 100%;
}

nav {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1rem 0;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Edge-to-Edge Cinematic Layout */
main {
    padding-top: 140px; /* offset for fixed header */
    width: 100%;
}

section {
    padding: 6rem 10%;
    text-align: center;
    background: var(--bg-primary);
}

section:nth-of-type(even) {
    background: var(--bg-secondary);
}

/* Immersive Hero & Imagery */
.hero-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
    filter: brightness(0.7) contrast(1.1);
}

/* Dashboard / Analytics Restyling */
.ai-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
}

.widget {
    background: var(--bg-tertiary);
    padding: 3rem 2rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.5s ease;
}

.widget:hover {
    transform: translateY(-5px);
}

.widget h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.weather-data .temp {
    font-size: 4rem;
    font-weight: 200;
    line-height: 1;
    margin: 2rem 0;
}

.weather-data .details p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

#traffic-map {
    height: 300px;
    width: 100%;
    filter: grayscale(100%) invert(100%) contrast(1.2); /* Mercedes map look */
    margin-top: 2rem;
}

/* Legacy 50/50 Split Section */
#about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
}

#about .legacy-text {
    flex: 1;
    min-width: 300px;
}

#about img {
    flex: 1;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Elegant Borderless Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    margin-top: 4rem;
}

.gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%) brightness(0.6);
    transition: all 0.8s ease;
    cursor: pointer;
}

.gallery img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

/* Footer */
footer {
    padding: 4rem 10%;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Responsive Architecture */
@media (max-width: 900px) {
    .logo-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-image {
        height: 50vh;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    .hero-image {
        height: 40vh;
        margin-bottom: 2rem;
    }
    section {
        padding: 3rem 5%;
    }
    main {
        padding-top: 180px; 
    }
    nav ul {
        gap: 0.5rem;
    }
    .weather-data .temp {
        font-size: 2.5rem;
    }
    .ai-dashboard {
        gap: 1.5rem;
    }
}