/* 
  Michael Bösch - Portfolio Design
  Clean, Minimalist, Bold Red on White
*/

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

:root {
    --primary-red: #DC2626;
    /* Main brand red */
    --hover-red: #B91C1C;
    --text-dark: #1F2937;
    /* Dark gray for readability */
    --bg-white: #FFFFFF;
    --max-content-width: 800px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding: 0;
}

/* Typography Hierarchy */
h1,
h2,
h3 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--primary-red);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

a:hover {
    text-decoration: underline;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

/* Layout Containers */
header,
footer {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

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

section {
    padding: 4rem 0;
    text-align: left;
}

/* Sticky Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    border-bottom: 1px solid #f1f1f1;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    text-decoration: none;
}

.header-content {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--primary-red);
    font-weight: 400;
}

/* Profiles & Lists */
ul.profile-list,
ul.project-list {
    list-style: none;
}

ul.profile-list li,
ul.project-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.label {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* CV Styles */
.cv-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: baseline;
}

.year {
    color: var(--primary-red);
    font-weight: 700;
    min-width: 60px;
    flex-shrink: 0;
}

.description {
    color: var(--text-dark);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Info */
.contact-info p {
    font-size: 1.1rem;
}

/* Footer */
footer {
    border-top: 1px solid #f1f1f1;
    margin-top: 4rem;
    padding: 2rem;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.5rem;
    }

    .cv-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 0.75rem;
    }
}