/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at top left, #e3f2fd, #e0f2f1 40%, #ffebee 80%, #ffe0b2);
}

/* ========== SCROLLABLE CONTENT ========== */
.scroll-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 5rem);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 0;
}

/* ========== BIG TITLE ========== */
.big-title {
    font-size: 10vw;
    font-weight: 900;
    color: #8c3a44;
    opacity: 0.8;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* ========== FROSTED CARD ========== */
.frosted-card {
    width: 26rem;
    height: 21rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
    z-index: 2;
    flex-shrink: 0;
    margin-top: -2%;
    position: relative;
}

.card-title {
    color: #8c3a44;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.card-subtitle {
    color: #5c5c5c;
    font-size: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.cta-btn {
    padding: 0.75rem 2.2rem;
    background: #ffffff;
    border: none;
    border-radius: 3.125rem;
    color: #8c3a44;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.cta-btn:hover {
    transform: scale(1.05);
}

/* ========== CHARACTERS ROW ========== */
.characters-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: -15rem;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    pointer-events: none;
}

.char img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Spacer = 1/3 of card width (26rem / 3 ≈ 8.67rem) */
.char-spacer {
    width: 8.67rem;
    flex-shrink: 0;
}

.char-left {
    width: 18rem;
    flex-shrink: 0;
}

.char-right {
    width: 14rem;
    flex-shrink: 0;
}

/* Glowing Aura */
.old-man-glow {
    filter: drop-shadow(0 0 2.2rem rgba(255, 224, 178, 0.6));
}

/* ========== FIXED FOOTER ========== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    z-index: 20;
    background: transparent;
}

.footer-logo {
    height: 2rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #5c5c5c;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #8c3a44;
    transform: translateY(-0.125rem);
}

/* ========== INTERACTIVE SEQUENCE ========== */
.hidden {
    display: none !important;
}

.card-content-section {
    transition: opacity 0.5s ease;
    width: 100%;
}

#boy-container {
    position: relative;
}

#cube-img {
    width: 8rem;
    height: auto;
    margin: 0 auto;
    z-index: 10;
}

.chaos-spin {
    animation: chaotic-spin 0.3s linear infinite;
    transform-origin: center;
}

@keyframes chaotic-spin {
    0% { transform: perspective(600px) translate(0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); }
    25% { transform: perspective(600px) translate(10px, -10px) rotateX(180deg) rotateY(90deg) rotateZ(45deg) scale(1.2); }
    50% { transform: perspective(600px) translate(-10px, 10px) rotateX(360deg) rotateY(180deg) rotateZ(90deg) scale(0.8); }
    75% { transform: perspective(600px) translate(10px, 10px) rotateX(540deg) rotateY(270deg) rotateZ(135deg) scale(1.2); }
    100% { transform: perspective(600px) translate(-10px, -10px) rotateX(720deg) rotateY(360deg) rotateZ(180deg) scale(1); }
}

.explosion-piece {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 1.5s ease;
}

/* ========== RESPONSIVE (small screens) ========== */
@media (max-width: 48rem) {
    .big-title {
        font-size: 18vw;
        line-height: 0.85;
        white-space: normal;
        text-align: center;
    }

    .frosted-card {
        width: 85%;
        max-width: 21.25rem;
        height: 19rem;
        padding: 1.8rem 1.5rem;
        margin-top: -3%;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .char-spacer {
        display: none;
    }

    .characters-row {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .char-left {
        width: 45%;
        max-width: 15rem;
        margin-right: -1rem;
    }

    .char-right {
        width: 35%;
        max-width: 12rem;
        margin-left: -1rem;
    }
}
