body {
    margin: 0;
    background: radial-gradient(circle at top, #8b0000, #2b0000);
    font-family: 'Poppins', sans-serif;
    color: white;
    overflow-x: hidden;
    /* allow vertical scroll */
}

/* CONTAINER */
.container {
    text-align: center;
    padding: 40px 20px;
    min-height: 150vh;
    /* allows scrolling */
}

/* TEXT */
.main-text {
    font-size: 3.5em;
    color: gold;
    text-shadow: 0 0 20px gold;
}

.sub-text {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 40px;
}

/* COLLAGE */
.collage {
    position: relative;
    width: 100%;
    height: 900px;
}

/* IMAGES */
.img {
    position: absolute;
    width: 140px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid gold;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatImg 6s ease-in-out infinite;
}

/* DIFFERENT DELAYS (important for natural feel) */
.i1 {
    animation-delay: 0s;
}

.i2 {
    animation-delay: 1s;
}

.i3 {
    animation-delay: 2s;
}

.i4 {
    animation-delay: 3s;
}

.i5 {
    animation-delay: 4s;
}

.i6 {
    animation-delay: 5s;
}

/* FLOATING EFFECT */
@keyframes floatImg {

    0%,
    100% {
        transform: translateY(0px) rotate(var(--rot));
    }

    50% {
        transform: translateY(-15px) rotate(var(--rot));
    }
}

/* HOVER (FIXED — no conflict) */
.img:hover {
    transform: scale(1.2) rotate(0deg) !important;
    box-shadow: 0 0 50px gold;
    z-index: 10;
}

/* POSITIONS + ROTATION VIA VARIABLE */
.i1 {
    top: 5%;
    left: 10%;
    --rot: -10deg;
}

.i2 {
    top: 4%;
    left: 36%;
    --rot: 8deg;
}

.i3 {
    top: 30%;
    left: 70%;
    --rot: -5deg;
}

.i4 {
    top: 50%;
    left: 20%;
    --rot: 6deg;
}

.i5 {
    top: 60%;
    left: 50%;
    --rot: -8deg;
}

.i6 {
    top: 20%;
    left: 75%;
    --rot: 10deg;
}

.i7 {
    top: 70%;
    left: 10%;
    --rot: -6deg;
}

.i8 {
    top: 40%;
    left: 5%;
    --rot: 5deg;
}

.i9 {
    top: 10%;
    left: 60%;
    --rot: -7deg;
}

.i10 {
    top: 55%;
    left: 75%;
    --rot: 9deg;
}

.i11 {
    top: 56%;
    left: 36%;
    --rot: -4deg;
}

.i12 {
    top: 25%;
    left: 25%;
    --rot: 7deg;
}

.i13 {
    top: 35%;
    left: 55%;
    --rot: -9deg;
}

.i14 {
    top: 65%;
    left: 65%;
    --rot: 6deg;
}

.i15 {
    top: 45%;
    left: 85%;
    --rot: -5deg;
}

.i16 {
    top: 80%;
    left: 20%;
    --rot: 8deg;
}

.i17 {
    top: 5%;
    left: 80%;
    --rot: -6deg;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}



/* 🔥 FIX: TEXT FLOAT ANIMATION (WAS MISSING) */
@keyframes riseText {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

.img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* subtle breathing effect */
.large {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.1);
    }
}