* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

/* Grid container */
.parent {
    height: 84vh;
    width: 84vw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 10px;
    animation: fadeIn 1s ease-in-out;
}

/* Grid children */
.child {
    background-color: rgb(101, 75, 75);
    color: rgb(88, 57, 57);
    overflow: hidden;
    border-radius: 9px;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    animation: slideUp 0.6s ease-in-out both;
}

/* Hover animation */
.child:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Image inside each child */
.child > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Slight zoom on image hover */
.child:hover > img {
    transform: scale(1.1);
}

/* Individual grid placement */
.child1 {
    grid-row: 1 / 4;
}
.child2 {
    grid-column: 2 / 4;
    height: 33vh;
    background-color: white;
}
.child3, .child5, .child6 {
    background-color: rgb(247, 240, 240);
}
.child4, .child7 {
    background-color: yellow;
}
.child4 {
    align-self: stretch;
}
.child8 {
    grid-row: 2 / 4;
    grid-column: 4 / 5;
}

/* Fade-in animation on load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide up on load */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Heading Style */
.heading {
    position: absolute;
    top: 14%;
    right: 11%;
    transform: translateX(-50%);
    font-size: 2.3rem;
   font-family: 'Pacifico', cursive;
    letter-spacing: 3px;
    text-align: center;
    

    /* Gradient Text */
    background: linear-gradient(90deg, #4fb7d1, #f76366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 150, 0.5);



    /* Animation */
    animation: slideDown 1s ease-out forwards;
    opacity: 0;
}

/* Slide-down animation */
@keyframes slideDown {
    0% {
        transform: translate(-50%, -30px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}
