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

:root {
    --background: hsl(0, 0%, 7%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(0, 0%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(160, 60%, 45%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(0, 0%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(0, 0%, 15%);
    --muted-foreground: hsl(0, 0%, 60%);
    --border: hsl(0, 0%, 20%);
    --input: hsl(0, 0%, 20%);
    --ring: hsl(160, 60%, 45%);
    --radius: 0.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.hero-content {
    max-width: 56rem;
    width: 100%;
    animation: fade-in 1s ease-out forwards;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: slide-up 0.8s ease-out forwards;
}

.hero-subtitle {
    margin-bottom: 2rem;
    animation: slide-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    animation: slide-up 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.location-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary);
    border-radius: 50%;
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about-content {
    max-width: 56rem;
    margin: 0 auto;
}

.about-text p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.skills li {
    padding: 1rem;
    background-color: var(--card);
    border-radius: var(--radius);
    color: var(--card-foreground);
    border: 1px solid var(--border);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--secondary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.project-card.hidden {
    display: none;
}

.project-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--muted);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 300;
}

.project-year {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.project-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    background-color: hsla(160, 60%, 45%, 0.1);
    color: var(--primary);
}

/* Contact Section */
.contact-content {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(160, 60%, 45%, 0.2);
}

.submit-btn {
    padding: 0.75rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: hsl(160, 60%, 40%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background-color: var(--background);
    padding: 3rem 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-nav a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Impressum Page */
.impressum-page {
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

.impressum-page h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.impressum-section {
    margin-bottom: 2rem;
}

.impressum-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.impressum-section h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 1.5rem 0 1rem;
}

.impressum-section p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.back-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--secondary);
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--primary);
    transform: translateX(-4px);
}

/* Note boxes */
.note {
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}