﻿/* Hero Section */
.hero-section {
    min-height: 90vh;
    text-align: center;
    position: relative;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Offset for navbar */
    overflow: hidden;
    /* Clip decorations */
}

.hero-decoration {
    position: absolute;
    width: 300px;
    /* Adjust size as needed */
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.hero-decoration.top-left {
    top: -50px;
    left: -50px;
}

.hero-decoration.right-middle {
    top: 30%;
    right: -100px;
}



/* Hide default h2 if not needed or style it */
.hero-content h2 {
    display: none;
}

.subtitle-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    padding: 10px 40px;
    transform: rotate(-3deg);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    margin: -40px auto 30px;
    /* Negative margin to pull it up towards model */
    position: relative;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-weight: 500;
}

.hero-image-wrapper {
    width: 100%;
    padding-bottom: 70px;
    max-width: 1200px;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-group-photo {
    width: 100%;
    max-width: 100%;
    height: 520px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    margin: 0 auto;
}

/* Comment Bubbles */
#bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to 3D model */
    z-index: 20;
    overflow: visible;
}

.comment-bubble {
    position: absolute;
    background: #fff;
    padding: 8px 15px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    box-shadow: 8px 8px 0px var(--primary-red);
    /* Solid Red 3D shadow effect */

    max-width: 250px;
    width: max-content;
    white-space: normal;
    word-break: break-word;
    /* Allows long uninterrupted strings to break */
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s, opacity 0.2s, scale 0.2s;
    user-select: none;
    transform-origin: center bottom;
    text-align: center;
    translate: -50% 0;
}



.comment-bubble.removing {
    opacity: 0;
    scale: 0;
}

.comment-bubble::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-image: url('assets/decoration/fire_Bubble.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
    filter: drop-shadow(1px 1px 0px #282828);
}

/* Removed pointer tail */
.comment-bubble::after {
    display: none;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeBubble {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stats Section */
.stats-grid-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
    border-right: none;
}

/* Single unified size for ALL main stat numbers */
.stat-num {
    font-size: 3rem;
    font-weight: 800;
    display: inline;
    line-height: 1;
}

.stat-num--white {
    color: var(--white);
}

.stat-num--red {
    color: var(--primary-red);
}

/* The "/5" is visually smaller */
.stat-denom {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    vertical-align: middle;
}

.stat-label {
    font-size: 0.85rem;
    margin-top: 6px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Creative Areas Section */
.creative-areas-section {
    background-color: var(--primary-red);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 calc(100% - 4vw));
}

.creative-areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/decoration/logo-opacity.png');
    background-size: 300px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.creative-areas-section::after {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    background-image: url('assets/decoration/Logomark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.creative-areas-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
}

.mini-tag-container {
    display: inline-block;
    position: relative;
    z-index: 2;
}

.mini-tag {
    background-color: var(--primary-dark);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    transform: rotate(-3deg) translateY(10px);
    border-radius: 5px;
    letter-spacing: 1px;
}

.chili-icon {
    width: 24px;
    height: auto;
}

.section-title {
    font-size: 4rem;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border: 3px solid var(--primary-dark);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card:nth-child(1) {
    transform: rotate(-2deg);
}

.card:nth-child(2) {
    transform: rotate(2deg);
}

.card:nth-child(3) {
    transform: rotate(-1.5deg);
}

.card:nth-child(4) {
    transform: rotate(1.5deg);
}

.card:hover {
    transform: scale(1.03) rotate(0deg) !important;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.card-image-placeholder {
    height: 300px;
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-radius: 0px;
    position: relative;
    overflow: hidden;
}

.card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--white);
    border-top: 2px solid var(--primary-dark);
}

.card h3 {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--primary-dark);
    line-height: 1.1;
}

.arrow-btn {
    background: var(--primary-red);
    color: var(--white);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .arrow-btn {
    transform: rotate(45deg);
    background: var(--primary-dark);
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .hero-group-photo {
        width: 120%;
        height: 300px;
    }

    /* Stats Section — stack vertically on mobile */
    .stats-grid-row {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 15px 20px;
        width: 100%;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .stat-denom {
        font-size: 1.1rem;
    }

    /* Creative Areas Section */
    .creative-areas-section {
        padding: 60px 0;
        clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 calc(100% - 3vw));
    }

    .section-title {
        font-size: 3rem;
    }

    .grid-cards {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }

    .card {
        padding: 10px;
        border-width: 4px;
        box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }

    .card-image-placeholder {
        height: 180px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .card-footer {
        padding: 8px 10px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .card-footer h3 {
        font-size: 1.1rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .arrow-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }


    /* Bubbles Mobile Adjustments */
    .comment-bubble {
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 150px;
    }
}