/* ggaji.com - Candy Playground Design */
/* Colors: Bubblegum Pink #FF6B9D, Lemon Drop #FFD93D, Sky Taffy #6BC5F8,
   Mint Chew #4ECDC4, Grape Fizz #A66CFF, Vanilla Cream #FFF8F0,
   Marshmallow #FFFFFF, Licorice #2D2B3D, Taffy Gray #7B7894 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: #2D2B3D;
    background-color: #FFF8F0;
    overflow-x: hidden;
    line-height: 1.75;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

/* ===========================
   Scroll Progress Bar
   =========================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #FF6B9D, #A66CFF, #6BC5F8);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ===========================
   Hero Section
   =========================== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF8F0;
    overflow: hidden;
}

#hero-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

#domain-name {
    display: inline-flex;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 9rem);
    color: #2D2B3D;
    letter-spacing: 0.02em;
}

#domain-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100vh);
}

#domain-suffix {
    font-family: 'Grandstander', cursive;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: #FF6B9D;
    opacity: 0;
    transform: translateX(40px);
    display: inline-block;
    margin-left: 0.1em;
}

/* Hero decorations container */
#hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===========================
   Scroll Chevron
   =========================== */
#scroll-chevron {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
}

.chevron-lines {
    width: 30px;
    height: 30px;
    position: relative;
}

.chevron-lines::before,
.chevron-lines::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 3px;
    background-color: #4ECDC4;
    border-radius: 2px;
}

.chevron-lines::before {
    top: 50%;
    left: 0;
    transform: rotate(45deg);
    transform-origin: left center;
}

.chevron-lines::after {
    top: 50%;
    right: 0;
    transform: rotate(-45deg);
    transform-origin: right center;
}

@keyframes chevronBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

#scroll-chevron.visible {
    opacity: 1;
    animation: chevronBounce 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===========================
   Floating Candy Elements
   =========================== */
.floating-candy {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    animation: floatBob var(--duration, 4s) cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    pointer-events: none;
}

.floating-candy.tiny {
    position: absolute;
    left: var(--x, 0);
    top: var(--y, 0);
}

@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Lollipop */
.floating-candy.lollipop {
    width: 50px;
    height: 70px;
}

.floating-candy.lollipop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #A66CFF;
    box-shadow: inset -8px -8px 0 rgba(0,0,0,0.08);
}

.floating-candy.lollipop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background-color: #7B7894;
    border-radius: 2px;
}

.floating-candy.lollipop.pink::before {
    background-color: #FF6B9D;
}

.floating-candy.lollipop.mint::before {
    background-color: #4ECDC4;
}

.floating-candy.lollipop.tiny {
    width: 30px;
    height: 42px;
}

.floating-candy.lollipop.tiny::before {
    width: 24px;
    height: 24px;
}

.floating-candy.lollipop.tiny::after {
    height: 18px;
    width: 3px;
}

/* Star */
.floating-candy.star {
    width: 40px;
    height: 40px;
    position: absolute;
}

.floating-candy.star::before,
.floating-candy.star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #FFD93D;
}

.floating-candy.star::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

.floating-candy.star::after {
    transform: translate(-50%, -50%) rotate(30deg);
}

.floating-candy.star.tiny {
    width: 24px;
    height: 24px;
}

.floating-candy.star.tiny::before,
.floating-candy.star.tiny::after {
    width: 12px;
    height: 12px;
}

/* Wrapped candy */
.floating-candy.wrapped {
    width: 60px;
    height: 30px;
    position: absolute;
}

.floating-candy.wrapped::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 15px;
    width: 30px;
    height: 26px;
    background-color: #FF6B9D;
    border-radius: 6px;
}

.floating-candy.wrapped::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 60px;
    height: 14px;
    background: transparent;
    border-left: 12px solid #FF6B9D;
    border-right: 12px solid #FF6B9D;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.floating-candy.wrapped.blue::before {
    background-color: #6BC5F8;
}

.floating-candy.wrapped.blue::after {
    border-left-color: #6BC5F8;
    border-right-color: #6BC5F8;
}

.floating-candy.wrapped.tiny {
    width: 36px;
    height: 18px;
}

.floating-candy.wrapped.tiny::before {
    top: 1px;
    left: 9px;
    width: 18px;
    height: 16px;
    border-radius: 4px;
}

.floating-candy.wrapped.tiny::after {
    top: 5px;
    width: 36px;
    height: 8px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-top-width: 4px;
    border-bottom-width: 4px;
}

/* Gumdrop */
.floating-candy.gumdrop {
    width: 35px;
    height: 30px;
}

.floating-candy.gumdrop::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 25px;
    background-color: #4ECDC4;
    border-radius: 50% 50% 10% 10%;
}

.floating-candy.gumdrop.tiny {
    width: 22px;
    height: 18px;
}

.floating-candy.gumdrop.tiny::before {
    width: 22px;
    height: 15px;
}

/* Cloud */
.floating-candy.cloud {
    width: 70px;
    height: 40px;
}

.floating-candy.cloud::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    width: 50px;
    height: 22px;
    background-color: #FFFFFF;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(166, 108, 255, 0.1);
}

.floating-candy.cloud::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 20px;
    width: 30px;
    height: 22px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(166, 108, 255, 0.08);
}

.floating-candy.cloud.tiny {
    width: 42px;
    height: 24px;
}

.floating-candy.cloud.tiny::before {
    bottom: 3px;
    left: 6px;
    width: 30px;
    height: 14px;
    border-radius: 7px;
}

.floating-candy.cloud.tiny::after {
    bottom: 10px;
    left: 12px;
    width: 18px;
    height: 14px;
}

/* Smiley face */
.floating-candy.face {
    width: 40px;
    height: 40px;
}

.floating-candy.face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: #FFD93D;
    border-radius: 50%;
}

.floating-candy.face::after {
    content: '\25CF  \25CF';
    position: absolute;
    top: 10px;
    left: 8px;
    font-size: 7px;
    color: #2D2B3D;
    letter-spacing: 8px;
}

.floating-candy.face.tiny {
    width: 24px;
    height: 24px;
}

.floating-candy.face.tiny::before {
    width: 24px;
    height: 24px;
}

.floating-candy.face.tiny::after {
    top: 6px;
    left: 5px;
    font-size: 4px;
    letter-spacing: 5px;
}

/* ===========================
   Content Sections
   =========================== */
.content-section {
    padding: 6vh 5%;
    position: relative;
}

/* ===========================
   Wavy Dividers
   =========================== */
.wavy-divider {
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
}

.wavy-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wavy-divider[data-color="pink"] svg path {
    fill: #FF6B9D;
}

.wavy-divider[data-color="yellow"] svg path {
    fill: #FFD93D;
}

.wavy-divider[data-color="mint"] svg path {
    fill: #4ECDC4;
}

.wavy-divider[data-color="purple"] svg path {
    fill: #A66CFF;
}

.wavy-divider[data-color="blue"] svg path {
    fill: #6BC5F8;
}

@keyframes waveDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.wavy-divider svg {
    animation: waveDrift 6s ease-in-out infinite;
}

/* ===========================
   Content Bubbles
   =========================== */
.content-bubble {
    max-width: 650px;
    padding: 2.5rem 3rem;
    background-color: #FFFFFF;
    border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%;
    box-shadow: 0 8px 32px rgba(166, 108, 255, 0.15);
    position: relative;
    opacity: 0;
    transform: scale(0.3) translateY(60px);
    animation: wobbleBorder 8s ease-in-out infinite;
}

@keyframes wobbleBorder {
    0%, 100% { border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; }
    25% { border-radius: 48% 52% 50% 50% / 55% 45% 52% 48%; }
    50% { border-radius: 55% 45% 48% 52% / 45% 55% 50% 50%; }
    75% { border-radius: 50% 50% 52% 48% / 48% 52% 45% 55%; }
}

.content-bubble.visible {
    animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, wobbleBorder 8s ease-in-out 0.6s infinite;
}

@keyframes bounceEnter {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(60px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.content-bubble h2 {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    letter-spacing: 0.02em;
    color: #2D2B3D;
    margin-bottom: 0.8rem;
}

.content-bubble p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    max-width: 38em;
    color: #2D2B3D;
    margin-bottom: 1rem;
}

/* Bubble color accents */
.bubble-1 { border-top: 4px solid #FF6B9D; }
.bubble-2 { border-top: 4px solid #6BC5F8; }
.bubble-3 { border-top: 4px solid #4ECDC4; }
.bubble-4 { border-top: 4px solid #A66CFF; }
.bubble-5 { border-top: 4px solid #FFD93D; }
.bubble-6 { border-top: 4px solid #FF6B9D; }

/* Sinusoidal path positioning */
.bubble-1 { margin-left: 5%; margin-right: auto; }
.bubble-2 { margin-left: auto; margin-right: 12%; }
.bubble-3 { margin-left: 8%; margin-right: auto; }
.bubble-4 { margin-left: 15%; margin-right: auto; }
.bubble-5 { margin-left: auto; margin-right: 6%; }
.bubble-6 { margin-left: 10%; margin-right: auto; }

/* ===========================
   Speech Bubbles
   =========================== */
.speech-bubble {
    position: relative;
}

.speech-bubble.speech-left::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: -18px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 20px solid #FFFFFF;
}

.speech-bubble.speech-right::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: -18px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #FFFFFF;
}

/* ===========================
   Feature Tags
   =========================== */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    font-family: 'Grandstander', cursive;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    padding: 6px 16px;
    border-radius: 30px;
    color: #2D2B3D;
    display: inline-block;
}

.tag-pink { background-color: #FF6B9D; color: #FFFFFF; }
.tag-yellow { background-color: #FFD93D; }
.tag-blue { background-color: #6BC5F8; color: #FFFFFF; }
.tag-mint { background-color: #4ECDC4; color: #FFFFFF; }

/* ===========================
   Candy Button
   =========================== */
.candy-button {
    display: inline-block;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 36px;
    background-color: #FF6B9D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                filter 0.3s ease;
    margin-top: 0.5rem;
}

.candy-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
    filter: brightness(1.1);
}

/* ===========================
   Wavy Link Underline
   =========================== */
.content-bubble a:not(.candy-button) {
    color: #6BC5F8;
    text-decoration: none;
    position: relative;
    display: inline;
}

.content-bubble a:not(.candy-button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0 3 Q10 0 20 3 Q30 6 40 3' stroke='%23FFD93D' fill='none' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
    background-size: 40px 6px;
    animation: waveFlow 2s linear infinite;
    transition: height 0.2s ease;
}

.content-bubble a:not(.candy-button):hover::after {
    height: 3px;
    animation-duration: 1s;
}

@keyframes waveFlow {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* ===========================
   Floating Navigation
   =========================== */
#floating-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

#nav-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FF6B9D;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease;
    position: relative;
    z-index: 10;
}

#nav-toggle:hover {
    transform: scale(1.08);
}

#nav-toggle.active {
    background-color: #2D2B3D;
}

.nav-icon {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    position: relative;
    transition: background-color 0.3s ease;
    border-radius: 1px;
}

.nav-icon::before,
.nav-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-icon::before { top: -7px; }
.nav-icon::after { top: 7px; }

#nav-toggle.active .nav-icon {
    background-color: transparent;
}

#nav-toggle.active .nav-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle.active .nav-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

#nav-items {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.nav-item {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

#nav-items.open .nav-item {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#nav-items.open .nav-item:nth-child(1) {
    transform: translate(-75px, -10px) scale(1);
    transition-delay: 0s;
}

#nav-items.open .nav-item:nth-child(2) {
    transform: translate(-65px, -60px) scale(1);
    transition-delay: 0.05s;
}

#nav-items.open .nav-item:nth-child(3) {
    transform: translate(-30px, -100px) scale(1);
    transition-delay: 0.1s;
}

#nav-items.open .nav-item:nth-child(4) {
    transform: translate(15px, -115px) scale(1);
    transition-delay: 0.15s;
}

#nav-items.open .nav-item:nth-child(5) {
    transform: translate(10px, -65px) scale(1);
    transition-delay: 0.2s;
}

.nav-item:hover {
    filter: brightness(1.15);
}

/* ===========================
   Bubble Decorations
   =========================== */
.bubble-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.bubble-decorations .floating-candy {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.content-bubble.visible .bubble-decorations .floating-candy {
    opacity: 0.8;
}

/* ===========================
   Footer
   =========================== */
#footer-area {
    position: relative;
    padding: 10vh 5%;
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#footer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-text {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #2D2B3D;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.footer-sub {
    font-family: 'Grandstander', cursive;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #7B7894;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

/* ===========================
   Confetti
   =========================== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty-start)) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--tx) + var(--drift)), var(--ty-end)) rotate(var(--rot));
    }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .content-bubble {
        margin-left: 3% !important;
        margin-right: 3% !important;
        max-width: 100%;
        padding: 2rem 2rem;
        border-radius: 30px;
    }

    .content-bubble.visible {
        animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .speech-bubble.speech-left::after,
    .speech-bubble.speech-right::after {
        display: none;
    }

    .content-section {
        padding: 4vh 3%;
    }

    .wavy-divider {
        height: 50px;
    }

    #floating-nav {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-candy:not(.tiny) {
        transform: scale(0.7);
    }

    #hero-decorations .floating-candy {
        transform: scale(0.6);
    }

    .feature-tags {
        gap: 6px;
    }

    .tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .content-bubble {
        padding: 1.5rem 1.5rem;
    }

    #nav-toggle {
        width: 50px;
        height: 50px;
    }

    .nav-item {
        width: 38px;
        height: 38px;
    }

    #nav-items.open .nav-item:nth-child(1) {
        transform: translate(-60px, -8px) scale(1);
    }

    #nav-items.open .nav-item:nth-child(2) {
        transform: translate(-52px, -50px) scale(1);
    }

    #nav-items.open .nav-item:nth-child(3) {
        transform: translate(-24px, -82px) scale(1);
    }

    #nav-items.open .nav-item:nth-child(4) {
        transform: translate(12px, -92px) scale(1);
    }

    #nav-items.open .nav-item:nth-child(5) {
        transform: translate(8px, -52px) scale(1);
    }
}
