/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Grundlegendes Layout */
/* Allgemeines Styling für den Body */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(270deg, #1c1c3b, #111122, #1c1c3b);
    background-size: 300% 300%;
    animation: gradientAnimation 20s ease infinite; /* Animiert den Verlauf */
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    text-align: center;
    overflow: auto; /* Verhindert Scrollbalken bei Animationen */
}

/* Animation für den Hintergrund */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Coole Hover-Effekte für Links */
a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff5f7e;
    text-shadow: 0 0 10px #ff5f7e, 0 0 20px #ff5f7e;
}

/* Wabernder Text-Effekt */
h1, h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: waveText 5s infinite ease-in-out alternate;
    position: relative;
}

@keyframes waveText {
    0% {
        text-shadow: 0px 0px 5px #ff5f7e, 0px 0px 15px #ff5f7e;
        transform: translateY(0px);
    }
    50% {
        text-shadow: 0px 0px 15px #ff5f7e, 0px 0px 30px #00d4ff;
        transform: translateY(-10px);
    }
    100% {
        text-shadow: 0px 0px 5px #00d4ff, 0px 0px 15px #00d4ff;
        transform: translateY(0px);
    }
}

/* Bewegt schwebende Partikel */
@keyframes floatingParticles {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-20px);
    }
}
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatingParticles 4s infinite ease-in-out alternate;
    opacity: 0.8;
    z-index: 1;
}
.particle:nth-child(1) {
    width: 50px;
    height: 50px;
    left: 10%;
    top: 30%;
    animation-duration: 6s;
}
.particle:nth-child(2) {
    width: 30px;
    height: 30px;
    left: 70%;
    top: 50%;
    animation-duration: 4s;
}
.particle:nth-child(3) {
    width: 70px;
    height: 70px;
    left: 40%;
    top: 10%;
    animation-duration: 8s;
}
.particle:nth-child(4) {
    width: 20px;
    height: 20px;
    left: 80%;
    top: 70%;
    animation-duration: 3s;
}


a {
    color: #00b4d8;
    text-decoration: none;
    transition: color 0.3s;
}

/* LinkedIn Icon Styling in Header */
header a.linkedin-icon {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.linkedin-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ff4081;
}

.linkedin-icon:hover img {
    transform: scale(1.1); /* Slight scale on hover for effect */
}

/* Navigation für mobile Ansicht */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1c1c1c;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav a {
    color: #b3b3b3;
    text-decoration: none;
    margin-left: 30px;
}

nav a::after {
    content: '';
    width: 0px;
    height: 3px;
    background: #ff4081;
    transition: width 0.3s;
}

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

nav a:hover {
    color: grey;
}

/* Hero Section */
/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(270deg, #1c1c3b, #111122, #1c1c3b);
    background-size: 300% 300%;
    animation: gradientAnimation 20s ease infinite;
}

/* Hintergrundverlauf-Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Überschrift mit Glow und Animation */
.hero h1 {
    font-size: 80px;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff5f7e, #00d4ff, #ff5f7e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowText 5s ease infinite;
    text-shadow: 0 0 20px rgba(255, 95, 126, 0.8), 0 0 40px rgba(0, 212, 255, 0.6);
}

/* Animierter Farbverlauf für die Überschrift */
@keyframes glowText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hover-Effekt für die Überschrift */
.hero h1:hover {
    text-shadow: 0 0 30px #ff5f7e, 0 0 60px #00d4ff, 0 0 90px #ff5f7e;
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

/* Subtext */
.hero p {
    font-size: 24px;
    color: #cccccc;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Profilbild-Styling */
.profile-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ff4081;
}

/* Scrollverhalten verbessern */
html {
    scroll-behavior: smooth;
}

/* Über Mich Section */
.about-section {
    background: transparent; /* Hintergrund bleibt transparent */
    padding: 100px 20px;
    animation: gradientAnimation 20s ease infinite; /* Gleiche Animation wie bei Über Mich */
    color: #dcdcdc;
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: transform 0.5s;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-picture:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.5);
}

/* Wippende Animation für Unterüberschriften */
@keyframes bounceTitle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

h2 {
    animation: bounceTitle 1s ease-in-out infinite alternate;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #0066ff;
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 8px 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ff4081;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0px 15px 20px rgba(255, 64, 129, 0.5);
}

/* Portfolio Section */
.portfolio-section {
    padding: 50px 20px;
    text-align: center;
    background: transparent; /* Hintergrund transparent machen */
    animation: gradientAnimation 20s ease infinite; /* Gleiche Animation wie bei Über Mich */
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* Kontaktformular */
.contact-section {
    background-color: transparent; /* Hintergrund transparent machen */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-section {
    margin-top: 100px; /* Erhöht den Abstand am oberen Rand des Kontaktformulars */
	margin-bottom: 100px;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Optionaler grauer Hintergrund mit Transparenz */
    z-index: -1;
}

/* Übergang zwischen den Abschnitten */
.contact-section h2 {
    font-size: 36px;
    color: #ff4081;
    margin-bottom: 20px;
    animation: slideIn 1s ease forwards;
}

.contact-section p {
    color: #cccccc;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-section label {
    color: #b3b3b3;
    margin-bottom: 8px;
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    background-color: #222;
    color: #f5f5f5;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    box-shadow: inset 0 0 5px rgba(255, 64, 129, 0.8);
}

.contact-section button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #0066ff, #ff4081);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-section button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.5);
}


/* Equipment Section mit eigenem Hintergrund */
.equipment-section {
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden; /* Verhindert, dass das Bild über die Box hinausragt */
}

.equipment-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hintergrund2.png'); /* Hintergrundbild */
    background-size: cover; /* Bild skaliert, um die Box auszufüllen */
    background-position: center; /* Bild wird zentriert */
    opacity: 0.2; /* Reduziert die Sichtbarkeit des Bildes für bessere Lesbarkeit */
    z-index: -1; /* Bild hinter dem Text platzieren */
    border-radius: 10px; /* Bild passt sich der Box-Rundung an */
}


/* Impressum Section mit eigenem Hintergrund */
.impressum-section {
    background-color: #121212; /* Dunkler Hintergrund für den Abschnitt */
    color: #ffffff;
    padding: 40px 20px;
    border-top: 1px solid #333;
    text-align: center;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.7);
}



/* Responsive Anpassungen */
@media (max-width: 768px) {
    header h1 {
        font-size: 20px; /* Kleinere Schriftgröße für kleine Geräte */
    }

    /* Hero Section */
    .hero {
        padding: 80px 20px; /* Weniger Polsterung auf mobilen Geräten */
        height: auto; /* Keine feste Höhe, passt sich an */
    }

    .hero h1 {
        font-size: 8vw; /* Dynamische Schriftgröße */
    }

    .hero p {
        font-size: 1.5rem; /* Kleinere Schrift für den Text */
    }
	
 .about-section {
        flex-direction: column; /* Bild über Text */
        align-items: center; /* Zentriert den Inhalt */
        text-align: center; /* Optional: Text zentrieren */
		padding: 100px 20px;
    }
    .about-image, .about-text {
        width: 100%; /* Vollbreite fürs Handy */
    }

.about-content {
        flex-direction: column; /* Bild über Text */
        align-items: center; /* Zentriert den Inhalt */
        text-align: center;
		padding: 200px 20px;
    }

    .portfolio-section {
        padding: 30px 20px;
    }

    .contact-section {
        padding: 30px 20px;
    }
	
	    .equipment-section {
        padding: 40px 15px; /* Weniger Polsterung auf kleinen Geräten */
        max-width: 90%; /* Breite auf 90% des Viewports */
    }
	
	.equipment-section::before {
        background-size: contain; /* Für kleinere Geräte das gesamte Bild zeigen */
        background-position: top; /* Fokussiere den oberen Teil des Bildes */
    }
}