@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

:root {
    --primary-color: #6C5CE7;
    --secondary-color: #a29bfe;
    --accent-color: #FD79A8;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --text-color: #2d3436;
    --polaroid-bg: #ffffff;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background: #f0f2f5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #a29bfe;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #74b9ff;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #ffeaa7;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(10deg); }
}

.container {
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.headline {
    font-weight: 900;
    font-size: 3rem;
    line-height: 1.1;
    color: #2d3436;
}

.subheadline {
    font-size: 1.25rem;
    color: #636e72;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.polaroid-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

.polaroid {
    background: var(--polaroid-bg);
    padding: 1rem 1rem 3.5rem 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform-origin: center;
    transition: transform 0.3s ease;
    width: 280px;
}

.polaroid:hover {
    transform: scale(1.05) rotate(0) !important;
    z-index: 10;
}

.polaroid.before {
    transform: rotate(-3deg);
}

.polaroid.after {
    transform: rotate(3deg);
}

.frame {
    width: 100%;
    aspect-ratio: 1/1; /* 1:1 for polaroid picture area */
    background: #eee;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.caption {
    position: absolute;
    bottom: -2.5rem; /* Adjusted to be in the bottom white space */
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Patrick Hand', cursive, sans-serif; /* Fallback to sans-serif */
    font-size: 1.5rem;
    color: #555;
}

.caption {
    font-family: 'Patrick Hand', cursive;
}


.magic-wand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.sparkles {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: sparkle-float 3s infinite ease-in-out;
    display: inline-block;
}

.arrow-icon {
    width: 80px;
    height: 50px;
    transform: rotate(-5deg);
    filter: drop-shadow(0px 2px 0px rgba(0,0,0,0.1));
    animation: arrow-bounce 2s infinite ease-in-out;
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(15deg) scale(1.2); }
}

@keyframes arrow-bounce {
    0%, 100% { transform: rotate(-5deg) translateX(0); }
    50% { transform: rotate(-5deg) translateX(5px); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366; /* WhatsApp Green */
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        /* Ensure content is centered but safe from being cut off at top */
        justify-content: flex-start; 
        min-height: auto; /* Let it grow naturally */
    }

    body {
        /* Allow scroll if needed but try to center if it fits */
        justify-content: flex-start;
        padding-top: 2rem; /* Add some top space */
    }

    .logo-header {
        margin-bottom: 0.5rem;
    }
    
    .headline {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .subheadline {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero {
        gap: 0.75rem;
    }
    
    .polaroid-showcase {
        flex-direction: row;
        gap: 0.25rem;
        flex-wrap: nowrap;
        margin: 0.5rem 0;
        align-items: center; /* Vertically center items */
    }
    
    .polaroid {
        width: 46%; /* Slightly smaller to ensure fit */
        max-width: none;
        padding: 0.4rem 0.4rem 1.8rem 0.4rem; /* Compact padding */
    }
    
    .caption {
        font-size: 1.1rem;
        bottom: -1.6rem;
    }
    
    .magic-wand {
        transform: rotate(0deg);
        margin: 0 -8px;
        z-index: 5;
    }
    
    .sparkles {
        font-size: 1.5rem; /* Smaller sparkles */
    }
    
    .arrow-icon {
        width: 50px; /* Smaller arrow */
        height: 30px;
    }

    .polaroid.before, .polaroid.after {
        transform: rotate(0);
    }
    
    .polaroid.before { transform: rotate(-2deg); }
    .polaroid.after { transform: rotate(2deg); }

    /* Prominent CTA */
    .cta-button {
        width: 90%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 1rem;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
        /* Ensure it pops */
        background: linear-gradient(45deg, #25D366, #128C7E);
        border: 2px solid rgba(255,255,255,0.2);
    }
}


.magic-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Shimmer Effect for Reveal */
.polaroid.after .frame {
    position: relative;
    overflow: hidden;
}

.polaroid.after .frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
}

.polaroid.after.shimmer .frame::after {
    animation: shine-reveal 1.2s ease-in-out;
}

@keyframes shine-reveal {
    0% { left: -150%; }
    100% { left: 150%; }
}
