/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Nunito:wght@400;700&display=swap');

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #5A4E66;
    line-height: 1.6;
    background-color: #FFF9FC;
    overflow-x: hidden;
    position: relative;
}

/* -------------------------------------------------- */
/* Keyframes Extravaganza */
/* -------------------------------------------------- */

/* 1. Floating background bubbles */
@keyframes riseAndSway {
    0% {
        transform: translateY(105vh) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% {
        transform: translateY(-10vh) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* 2. Soft bobbing/floating for images */
@keyframes floaty {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* 3. Shimmer text gradient animation */
@keyframes rainbowShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 4. Pulsing glow for action buttons */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(255, 112, 166, 0.4), 0 0 0 0 rgba(255, 112, 166, 0.3);
    }
    50% {
        box-shadow: 0 10px 25px rgba(255, 112, 166, 0.7), 0 0 0 12px rgba(255, 112, 166, 0);
    }
}

/* 5. Playful wiggle */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* 6. Heartbeat bounce for main headers */
@keyframes cuteBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* -------------------------------------------------- */
/* Floating Ambient Bubbles */
/* -------------------------------------------------- */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 182, 193, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: riseAndSway 12s infinite linear;
}

.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-duration: 10s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 25%; width: 25px; height: 25px; animation-duration: 14s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 55%; width: 50px; height: 50px; animation-duration: 11s; animation-delay: 1s; }
.bubble:nth-child(4) { left: 75%; width: 30px; height: 30px; animation-duration: 13s; animation-delay: 4s; }
.bubble:nth-child(5) { left: 90%; width: 45px; height: 45px; animation-duration: 9s; animation-delay: 3s; }

/* -------------------------------------------------- */
/* Navigation Bar */
/* -------------------------------------------------- */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    border-radius: 50px;
    border: 2px solid #FFE5EC;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
    transition: all 0.4s ease;
}

.navbar:hover {
    box-shadow: 0 12px 30px rgba(255, 112, 166, 0.4);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar ul li a {
    text-decoration: none;
    color: #7B688E;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
    position: relative;
}

/* Animated hover indicator dot */
.navbar ul li a::after {
    content: '•';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    color: #FF70A6;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar ul li a:hover::after,
.navbar a.active::after {
    transform: translateX(-50%) scale(1);
}

.navbar ul li a:hover,
.navbar a.active {
    color: #FF70A6;
    transform: translateY(-3px) scale(1.12);
    animation: wiggle 0.4s ease-in-out;
}

/* -------------------------------------------------- */
/* Sections & Text */
/* -------------------------------------------------- */
.section {
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: background-color 0.8s ease, color 0.8s ease;
}

.section.light {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFF9FC 100%);
    color: #5A4E66;
}

.section.dark {
    background: linear-gradient(135deg, #2B2D42 0%, #3D3B54 100%);
    color: #FFE5EC;
}

.section h1,
.section h2 {
    font-family: 'Fredoka', cursive;
    margin-bottom: 1.2rem;
    font-size: 2.8rem;
    letter-spacing: 0.5px;
    /* Shimmer Effect */
    background: linear-gradient(90deg, #FF70A6, #FF9770, #FFD166, #FF70A6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShimmer 6s ease infinite, cuteBounce 4s ease-in-out infinite;
}

.section p {
    max-width: 600px;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.section p:hover {
    transform: scale(1.02);
}

/* -------------------------------------------------- */
/* Scroll Reveal Animations */
/* -------------------------------------------------- */
.invisible {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------------------------------------------------- */
/* Image Animations */
/* -------------------------------------------------- */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.reverse {
    flex-direction: row-reverse;
}

.section-image {
    width: 280px;
    height: auto;
    border-radius: 24px;
    border: 5px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(255, 112, 166, 0.25);
    animation: floaty 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section-image:hover {
    animation-play-state: paused;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 20px 35px rgba(255, 112, 166, 0.45);
    border-color: #FFE5EC;
}

.text-block {
    max-width: 500px;
}

/* Interactive Project Cards */
.project-list p {
    font-size: 1.1rem;
    margin: 12px 0;
    background: #FFFFFF;
    padding: 14px 22px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.project-list p:hover {
    transform: translateX(12px) scale(1.03);
    border-color: #FF70A6;
    box-shadow: 0 8px 20px rgba(255, 112, 166, 0.2);
    background: #FFF0F5;
}

/* -------------------------------------------------- */
/* Contact Section & Pulsing Buttons */
/* -------------------------------------------------- */
#contact.section.light {
    background-color: #FFF0F5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-btn {
    background: linear-gradient(135deg, #FF70A6, #FF9770);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    animation: pulseGlow 2.5s infinite;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-btn:hover {
    transform: translateY(-6px) scale(1.1);
    animation: none;
    box-shadow: 0 15px 30px rgba(255, 112, 166, 0.6);
}

.social-btn:active {
    transform: translateY(-2px) scale(0.96);
}

/* -------------------------------------------------- */
/* Responsive Adjustments */
/* -------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.6rem 1rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .section h1, .section h2 {
        font-size: 2.2rem;
    }

    .row, .reverse {
        flex-direction: column;
    }

    .section-image {
        width: 100%;
        max-width: 280px;
    }
}
