* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 100%;
    overflow-x: hidden;
}

.row {
    margin-right: 0;
    margin-left: 0;
}
/* Header */
.navbar {
    background-color: #1e3a8a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 120px;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f194ea;
}

/* Left Side: Profile Picture and Details */
.left-side {
    background-color: #6CBADE;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.moon-overlay {
    position: absolute;
    top: 60%;
    left: 40%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    animation: floatMoon 3s infinite ease-in-out;
}

@keyframes floatMoon {
    0% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -55%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

.profile-details h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #0e397a;
}

.profile-details p {
    font-size: 1.2em;
    margin: 5px 0;
}

/* Right Side: Descriptions and Projects */
.right-side {
    padding: 20px;
    background-color: #ede6e2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-section h2 {
    font-size: 1.8em;
    letter-spacing: 0.5px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.portfolio-section p {
    font-size: 1em;
    color: #555;
}

.portfolio-section .row {
    justify-content: center;
  }
  

.projects-box {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .skill-item {
    display: flex;
    flex-direction: column; /* Damit Icon oben und Text darunter */
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background-color: #4a3267;
    border-radius: 12px;
    color: white;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
  }
  
  .skill-item:hover {
    transform: scale(1.05);
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }  

.project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

footer {
    text-align: center;
    background-color: #1e3a8a;
    color: white;
    padding: 20px;
}

/* Modal */
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

#image-modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    z-index: 2001;
}

/* Easter Egg */
.purple-heart {
    font-size: 2rem;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s;
    display: inline-block;
}

.purple-heart:hover {
    transform: scale(1.2);
}

.balloon-button .click-text {
    color: #0e397a;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
  }
/* .balloon-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */

/* Balloon Styles */
@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100vh);
    }
}

/* Dimmed background */
.dimmed::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    pointer-events: none;
}

/* Stop button */
.stop-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#balloon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: transparent;
    z-index: 999; /* Below balloons and stop button, above rest */
    display: none;
}

.stop-btn:hover {
    transform: scale(1.1);
}

/* Updated balloon animation */
@keyframes float {
    from {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }
    to {
        transform: translateY(-100vh) translateX(20px) rotate(5deg);
    }
}

.balloon-wrapper {
    position: fixed;
    pointer-events: none;
    animation: float 8s linear forwards;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: -100px;
    will-change: transform;
}

.balloon {
    width: 200px;
    max-width: 40vw; /* passt sich an kleine Screens an */
    height: auto;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.balloon:hover {
    transform: scale(1.1) rotate(5deg);
}

.ribbon {
    position: relative;
    top: -15px;
    width: 55px;
    left: 8%;
    pointer-events: none;
    z-index: 1;
}

.confetti-pop {
    position: absolute;
    width: 280px;
    height: 380px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .profile-container {
        width: 150px;
        height: 150px;
    }

    .moon-overlay {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .skills-list {
        justify-content: center;
    }

    .project-card {
        width: 100%;
    }

    .navbar-brand {
        margin-right: 0;
    }
}