/* Globale Einstellungen und Farben für den Dark Mode */
:root {
    --background-color: #0a0714; 
    --primary-color: #f0f0f0; 
    --secondary-color: #9ca3af; 
    --card-background: #1f1d2c; 
    --accent-start: #a855f7; 
    --accent-end: #3b82f6;   
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; 
}

/* =================================== */
/* A. STYLE FÜR ALLE FULL-HEIGHT SEKTIONEN */
/* =================================== */

.header-section, 
.projects-section,
.skills-section,
.connect-section {
    /* Streckt die Sektion auf mindestens die volle Höhe des Viewports */
    min-height: 100vh;
    
    /* Flexbox für die vertikale Zentrierung des Inhalts */
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert horizontal */
    text-align: center;
    padding: 5vh 0; /* Minimales vertikales Padding als Puffer */
}

/* =================================== */
/* B. HEADER / INTRO (FULL-SCREEN mit speziellem Layout) */
/* =================================== */

.header-section {
    /* Passt die Verteilung an, um den Titel unten zu zeigen */
    justify-content: space-between; 
}

.header-content {
    /* Positioniert den Namen vertikal zentriert zwischen Rand und Titel */
    margin-top: 20vh;
    margin-bottom: auto;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}

.title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.scroll-arrow {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.header-project-title {
    /* Überschrift für den nächsten Abschnitt, am unteren Rand des Headers */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 5vh; 
}


/* =================================== */
/* C. PROJECTS SEKTION */
/* =================================== */

.projects-section {
    /* Zentriert den Inhalt (Titel und Grid) vertikal in der 100vh Höhe */
    justify-content: center;
    /* Da der Titel im Header ist, wird hier ein neuer, interner Container benötigt */
    padding: 5vh 0;
}

/* Der Titel ist bereits im Header, aber falls du einen weiteren willst: */
/*
.projects-section > .section-title {
    margin-bottom: 60px;
}
*/

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: auto 0; /* Wichtig: Sorgt für vertikale Zentrierung des Grids */
    max-width: 100%;
}

.project-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 300px; 
    color: var(--primary-color);
    text-align: left; /* Text in der Karte linksbündig */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    background-color: #2c293d; 
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
    margin-right: 15px;
    transition: background-color 0.2s;
}

.project-links a:hover {
    background-color: #433d6b;
}


/* =================================== */
/* D. SKILLS SEKTION */
/* =================================== */

.skills-section {
    justify-content: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin-top: 60px;
}

.skill-tag {
    background-color: var(--card-background);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* =================================== */
/* E. CONNECT / CONTACT SEKTION */
/* =================================== */

.connect-section {
    justify-content: center;
}

.connect-motto {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-top: 40px;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #374151; 
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--card-background); 
    color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: var(--accent-end); 
    color: var(--primary-color);
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: var(--accent-start);
}

.view-resume-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 20px;
}

.view-resume-link:hover {
    color: var(--accent-end);
}