/* Grundlegende Styles */
html, body {
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode a {
    color: #1e90ff;
}

/* Links */
a {
    color: #1e90ff;
    text-decoration: none;
}

a:hover {
    color: #63b3ed;
}

/* Navigation */
.navbar {
    background-color: #1c1c1c;
}

.navbar.light-mode {
    background-color: #f8f9fa;
}

.nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: #63b3ed !important;
}

body.light-mode .nav-link {
    color: #000000 !important;
}

body.light-mode .nav-link:hover {
    color: #1e90ff !important;
}

/* Titel und Überschriften */
.title {
    font-size: 4rem;
    font-weight: bold;
    margin-top: 2rem;
}

.title2 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* Tipp-Effekt Cursor */
#typing-title {
    display: inline-block;
    border-right: 2px solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-cursor 0.7s steps(40) infinite normal;
}

@keyframes blink-cursor {
    from { border-right-color: rgba(255, 255, 255, 0.75); }
    to { border-right-color: transparent; }
}

body.light-mode #typing-title {
    border-right-color: #000000;
}

/* Responsive Titelgrößen */
@media (max-width: 991px) {
    .title {
        font-size: 3rem;
    }
    .title2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 2.5rem;
    }
    .title2 {
        font-size: 1.2rem;
    }
}

/* Boxen für Skills und Projekte */
.box, .projectCard {
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 20px;
    color: #ffffff;
    text-align: center;
}

.box:hover, .projectCard:hover {
    background-color: #2a2a2a;
}

body.light-mode .box, body.light-mode .projectCard {
    background-color: #f0f0f0;
    color: #000000;
}

body.light-mode .box:hover, body.light-mode .projectCard:hover {
    background-color: #e0e0e0;
}

/* Icons */
.iconWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2a2a2a;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
}

.iconWrapper i {
    font-size: 4rem;
    color: inherit;
}

body.light-mode .iconWrapper {
    background-color: #e0e0e0;
}

/* Farben für verschiedene Bereiche */
.webentwicklung {
    color: #1e90ff;
}

.softwareentwicklung {
    color: #38a169;
}

.elektroniker {
    color: #d69e2e;
}

/* Projektbilder */
.projectImg {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.projectImg:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1c1c1c;
    color: #ffffff;
    padding: 1rem 0;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: #63b3ed;
}

body.light-mode footer {
    background-color: #f8f9fa;
    color: #000000;
}

body.light-mode footer a {
    color: #000000;
}

body.light-mode footer a:hover {
    color: #1e90ff;
}

/* Parallax */
.parallax {
    position: relative;
    overflow: hidden;
    height: 500px; /* Passe die Höhe nach Bedarf an */
}

/* Parallax Hintergrund */
.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 200px); /* Extra Höhe für den Parallax-Effekt */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Hintergrundbilder für die einzelnen Parallax-Abschnitte */
.parallax1 .parallax-background {
    background-image: url('/img/parallax1.webp');
}


.parallax2 .parallax-background {
    background-image: url('/img/parallax2.webp');
}

.parallax3 .parallax-background {
    background-image: url('/img/parallax3.webp');
}

.parallax4 .parallax-background {
    background-image: url('/img/parallax4.webp');
}

/* .parallax5 {
    background-image: url('/img/parallax5.jpg');
} */

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fortschrittsbalken */
.progress {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

body.light-mode .progress {
    background-color: #e0e0e0;
}

.progress-bar {
    background-color: #1e90ff;
    width: 0%;
    height: 20px;
    transition: width 2s;
}

.skill h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Kontaktformular */
#kontakt .form-control {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #444444;
}

body.light-mode #kontakt .form-control {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

#kontakt .form-control:focus {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.light-mode #kontakt .form-control:focus {
    background-color: #f0f0f0;
    color: #000000;
}

#form-success {
    display: none;
}

.alert-success {
    background-color: #28a745;
    color: #ffffff;
}

body.light-mode .alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Social Media Icons */
.social-media a {
    color: #ffffff;
    margin: 0 10px;
    font-size: 1.5rem;
}

.social-media a:hover {
    color: #63b3ed;
}

body.light-mode .social-media a {
    color: #000000;
}

body.light-mode .social-media a:hover {
    color: #1e90ff;
}

/* Filter Buttons */
.filter-buttons .btn {
    margin: 0 5px;
}

.filter-buttons .btn.active {
    background-color: #1e90ff;
    color: #ffffff;
}

body.light-mode .filter-buttons .btn.active {
    background-color: #1e90ff;
    color: #ffffff;
}

/* Styles für Projektseiten */
.project-header {
    background-color: #1c1c1c;
    color: #ffffff;
    padding: 2rem 0;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #dddddd;
}

body.light-mode .project-header {
    background-color: #f8f9fa;
    color: #000000;
}

body.light-mode .project-description {
    color: #333333;
}
