/* Allgemeine Stile */

@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);
body {
    font-family: 'Anonymous Pro', monospace;
    /* Use one font consistently */
    color: rgba(255, 255, 255, .75);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    background-color: rgb(25, 25, 25);
}


/* Content Wrapper, um den Footer am unteren Rand zu halten */

.content-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
    /* Add transition effect */
}


/* Ladebildschirm */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


/* Rotierende Code-Brackets */

.code-rotator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.bracket {
    font-size: 30px;
    color: #65a30d;
    margin: 0 10px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Code-Typing Effekt */

.typing-effect {
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
}


/* Verstecke den Loader, wenn .hidden hinzugefÃ¼gt wird */

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    /* Ensure the loader hides properly */
}


/* Hintergrund */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://img.freepik.com/free-photo/beautiful-mountains-hills-shot-black-white_181624-578.jpg?t=st=1728777179~exp=1728780779~hmac=8649b67ba25c8f3a1d5563b44bddc096a648e07e497a4ff856ad9c78714c968b&w=1380');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -2;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* Slide-In Animations */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(50%);
    }
}

@keyframes slideAThirdLeft {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(25%);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Container Animation beschleunigen */

.container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    flex: 34%;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.container:hover {
    transform: translateY(-5px);
}


/* Profilbild Animation beschleunigen */

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid #fff;
    transition: transform 0.3s;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.profile-pic:hover {
    transform: scale(1.05);
}


/* Titel Animation beschleunigen */

h1 {
    margin: 0 0 20px;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

h1:hover {
    transform: scale(1.1);
}


/* Ãœber mich Animation beschleunigen */

.about-me {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}


/* Links Animation beschleunigen */

.links {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.links a {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.links a i {
    margin-right: 10px;
    font-size: 20px;
}

.links a:hover {
    background: #333;
    transform: scale(1.05);
}


/* Footer Styling */

.footer {
    background: rgba(18, 18, 18, 0.9);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 1.8s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    flex: 1 1 300px;
    /* FlexibilitÃ¤t fÃ¼r kleinere Bildschirme */
    text-align: center;
}

.footer-left {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-right p {
    margin: 0;
    font-size: 14px;
}

.footer-right i {
    color: #ff6347;
    /* Herzfarbe anpassen */
}


/* Responsive Footer */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-left,
    .footer-right {
        flex: 1 1 100%;
        text-align: center;
    }
    .footer {
        padding: 15px 20px;
    }
    .footer-left {
        font-size: 14px;
    }
    .footer-right p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 10px 15px;
    }
    .footer-left {
        font-size: 12px;
    }
    .footer-right p {
        font-size: 10px;
    }
}


/* Weitere bestehende CSS-Regeln bleiben unverÃ¤ndert */


/* ... (Rest deines CSS bleibt hier) ... */


/* Modal Styles bleiben unverÃ¤ndert */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 60px;
}

.modal-content {
    position: relative;
    background-color: #333;
    color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
    word-wrap: break-word;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

.copy-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: #1e90ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #1c86ee;
}


/* Responsive Design bleibt unverÃ¤ndert */

@media (max-width: 768px) {
    .container,
    .projects {
        width: 95%;
        padding: 15px;
        /* Reduziere das Padding fÃ¼r kleinere Bildschirme */
    }
    .profile-pic {
        width: 80px;
        height: 80px;
    }
    h1 {
        font-size: 24px;
    }
    .links a {
        font-size: 14px;
    }
    .footer {
        font-size: 12px;
    }
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .container,
    .projects {
        width: 100%;
        padding: 10px;
        /* Weiteres Reduzieren des Paddings */
    }
    .profile-pic {
        width: 60px;
        height: 60px;
    }
    h1 {
        font-size: 20px;
    }
    .links a {
        font-size: 12px;
    }
    .footer {
        font-size: 10px;
    }
    .modal-content {
        width: 95%;
    }
}

.cv-container {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
    /* Start off-screen */
    flex: 66%;
    max-width: 400px;
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    color: #e0e0e0;
    overflow-y: auto;
    transition: right 0.5s ease-in-out;
    padding: 20px;
    z-index: 999;
    border-radius: 10px;
}

.cv-content {
    margin-bottom: 50px;
}

.cv-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.cv-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
}

.cv-item {
    background: rgba(255, 255, 255, 0.1);
    /* Light transparent background */
    border-radius: 10px;
    /* Circular shape */
    padding: 15px;
    margin: 10px 0;
    width: 80%;
    /* Adjust width for better view */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.cv-item:hover {
    transform: scale(1.05);
    /* Slightly enlarge on hover */
}

.close-cv {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-cv:hover {
    background-color: (0, 0, 0, 0.5);
}

.cv-container.hidden {
    display: none;
    /* Ensure it starts hidden */
}


/* Animations for Roadmap */

.hidden {
    right: -100%;
}

.visible {
    right: 0;
}

html {
    min-height: 100%;
    overflow: hidden;
}

.line-1 {
    position: relative;
    top: 50%;
    width: 24em;
    margin: 0 auto;
    font-size: 150%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
}

.anim-typewriter {
    display: inline-block;
    /* Use inline-block for better control */
    overflow: hidden;
    /* Ensures text doesn't wrap */
    white-space: nowrap;
    /* Prevents line breaks */
    min-height: 1em;
    /* Minimum height to maintain space; adjust this value as needed */
    height: 1em;
    /* Fixed height to prevent collapse */
    position: relative;
    /* Set position for the pseudo-element */
}

@keyframes blinkTextCursor {
    0% {
        background-color: rgba(255, 255, 255, 0.75);
    }
    100% {
        background-color: transparent;
    }
}