/* Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Fuzzy Bubbles', cursive;
    color: #333;
}

/* Front page with sky background */
.intro {
    position: relative;
    background: url('images/introbg.png') no-repeat center center;
    background-size: cover;
    height: 1038px;
    overflow: hidden;
    text-align: center;
    color: rgb(240, 237, 185);
}

/* Header inside front page */
.intro header {
    padding: 60px 20px 20px;
    font-family: 'Chewy', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.intro header h1 {
    font-size: 3rem;
    margin: 0 0 10px;
}

.intro header p {
    font-size: 1.4rem;
    margin: 0;
}

/* Individual clouds */
.cloud {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
}

.cloud:hover {
    transform: scale(1.2) translateY(-10px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
    z-index: 10;
    opacity: 1;
}

.cloud img, .cloud-deco img {
    width: 200px;
    max-width: 300px;
    max-height: 300px;
    min-width: 50px;
    min-height: 50px;
    object-fit: contain;
    height: auto;
    display: block;
}

.cloud-wrapper {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cloud-deco {
    position: absolute;
    animation: float 8s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.cloud-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 20px;
    font-family: 'Fuzzy Bubbles', cursive;
    color: #333;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.cloud:hover .cloud-wrapper {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

/* Cloud positions */
.cloud1 { top: 80%; left: 75%; animation-delay: 0s; z-index: 3; }
.cloud2 { top: 20%; left: 5%; animation-delay: 2s; z-index: 4; }
.cloud3 { top: 10%; left: 70%; animation-delay: 4s; z-index: 5; }
.cloud4 { top: 30%; left: 40%; animation-delay: 6s; z-index: 6; }
.cloud5 { top: 65%; left: 0%; animation-delay: 8s; z-index: 7; }
/* Decorative cloud positions */
.deco1 { top: 50%; left: 20%; animation-delay: 1s; }
.deco2 { top: 0%; left: 10%; animation-delay: 3s; }
.deco3 { top: 40%; left: 80%; animation-delay: 5s; }
.deco4 { top: 60%; left: 55%; animation-delay: 7s; }
.deco5 { top: 80%; left: 30%; animation-delay: 9s; }

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
 
@media (max-width: 768px) {
    .cloud img, .cloud-deco img {
        width: 25vw;
        max-width: 150px;
        min-width: 40px;
    }

    .intro header h1 {
        font-size: 2rem;
    }

    .intro header p {
        font-size: 1rem;
    }
}

/* About section */
#about {
    position: relative;
    background: url('images/aboutbg.png') no-repeat center center;
    background-size: cover;
    padding: 2em;
    text-align: center;
    font-family: 'Fuzzy Bubbles', cursive;
    color: #ffadc6;
    overflow: hidden;
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.4);
}

#about h2 {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

/* Position stars */
.star {
    position: absolute;
    z-index: 0;
    opacity: 0.8;
    animation: twinkle 2s infinite ease-in-out;
    pointer-events: none;
}

.star img {
    width: 60px;
    height: 60px;
}

/* Twinkling animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.3); }
}

/* Custom positions for 8 stars */
.star1 { top: 10%; left: 5%; animation-delay: 0s; }
.star2 { top: 40%; left: 80%; animation-delay: 0.3s; }
.star3 { top: 35%; left: 35%; animation-delay: 0.6s; }
.star4 { top: 60%; left: 15%; animation-delay: 0.9s; }
.star5 { top: 65%; left: 90%; animation-delay: 1.2s; }
.star6 { top: 45%; left: 10%; animation-delay: 1.5s; }
.star7 { top: 15%; left: 85%; animation-delay: 1.8s; }
.star8 { top: 55%; left: 70%; animation-delay: 2.1s; }

.profile-pic {
    width: 500px;;
    height: auto;
    object-fit: contain;
    border-radius: 0%;
}

.about-photo {
    text-align: center;
    margin: 0 auto;
}

.about-text {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 2em auto;;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1em;
}

.spotify-player {
    margin-top: 1.5em;
    text-align: center;
}

/* Projects section */
#projects {
    background-color: #ffadc6;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Fuzzy Bubbles', cursive;
    color: #ffb6c1;
}

#projects h1 {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #07325e;
}

#projects h2 {
    font-family: 'Fuzzy Bubbles', cursive;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #07325e;
}

.project-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project {
    background: #ffffff;
    border: 2px dashed #ffb6c1;
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.2s;
}

.project:hover {
    transform: translateY(-5px);
}

.project h3 {
    font-family: 'Chewy', cursive;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.project p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.project-card {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #07325e;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card video {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    padding: 15px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.projects-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    flex: 0 0 45%;
    max-width: 45%;
    box-sizing: border-box;
}

.project-card img,
.project-card video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

footer {
    background-image: url('images/introbg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 30px 20px;
    font-family: 'Fuzzy Bubbles', cursive;
    font-size: 1rem;
    color: white;
}

@media screen and (min-width: 1024px) {
    .about-text {
        max-width: 1000px;
    }

    #about p {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .about-text {
        width: 95%;
        font-size: 1rem;
    }

    .profile-pic {
        width: 200px;
        height: auto;
    }

    .spotify-player iframe {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .project-card {
        flex: 1 1 100%;
        max-width: 90%;
    }
}
