    body{
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        overflow-x: hidden;

    }
    .video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999; 
    transition: opacity 1s ease, visibility 1s ease;
    }

    .video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }


    .video-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    }

    .video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    background-color: #000;
    z-index: 9999;
    }


    .video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    transform: scale(1.2); 
    }
    .hero-section {
    width: 100%;
    height: 100vh; 
    background-image: url('img/361bef1e35d914898b4cb97b5721931b\ 2.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    }

      .hero-section .i{
        width: 140%;
      
      }

      .iiii{
        width: fit-content2;
        display: flex;
        justify-content: center;
        align-items: center;
      }

    .hero-section div{
        position: absolute;
        top: 130px;       
        right: 390px;       
             display: flex;
             flex-direction: column;
             gap: 20%;
             height: 50%;
        max-width: 250px;
        z-index: 10; 
        animation: marioJump 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        animation-delay: 52s
    }
    @keyframes marioJump {
        0% {
            opacity: 0;
            transform: translateY(-150px) scale(0.3);
        }
        70% {
            opacity: 1;
            transform: translateY(15px) scale(1.1, 0.9); 
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }


  

#marioScrollBtn:hover {
  background-color: #e52521;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 4px 8px 0px #000;
}

#marioScrollBtn:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0px #000;
}


header {
    position: absolute;
    width:90%;
    background: linear-gradient(135deg, #cc11113a 0%, #8b0000c4 100%);
    border: 1px solid #0000002d;
    border-radius: 12px;
    top: 0;
    height: fit-content;
    z-index: 1000;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
     border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}



header nav {
    width: 100%;
    margin: 0 auto;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 70%;
}

header nav img {
    height: 48px; 
    width: auto;
    object-fit: contain;
   
    transition: transform 0.2s ease;
}

header nav img:hover {
    transform: scale(1.08) rotate(-2deg); 
}





#marioNav img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 0px #000);
}

#marioMenu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}


#homeLink, #aboutLink, #contactLink {
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    text-shadow: 2px 2px #000;
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    display: inline-block;
}


#homeLink:hover {
    color: #ffcc00;
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #000;
}

#aboutLink:hover {
    color: #5c94fc; 
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #5c94fc;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #000;
}

#contactLink:hover {
    color: #4ade80; 
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #4ade80;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #000;
}

.scroll-down-btn {
         
            top: 100px;
            left: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            padding: 5px;
            background: transparent; 
            border: none; 
            text-align: center;
            font-family: "Luckiest Guy", cursive;
            font-weight: 700;
            font-size: 16px;
            color: white;
            letter-spacing: 1px;
            white-space: nowrap;
            text-shadow: 2px 2px #000; 
            gap: 6px;
            animation: marioBounce 1.5s infinite alternate;
            text-decoration: none;
        }

        .scroll-down-btn .img {
            width: 45px;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.6));
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .scroll-down-btn:hover .img {
            transform: scale(1.25) rotate(15deg); 
        }

        .scroll-down-btn:hover {
            background: transparent;
            box-shadow: none;
        }

        .scroll-down-btn:active {
            transform: translateY(2px);
        }

      
        @keyframes marioBounce {
            0% { transform: translateY(0); }
            100% { transform: translateY(8px); }
        }

        .s-2{
          
            position: relative;
        }
        

         .s-2 img{
            position: absolute;
            top: -6px;

         }



      .s-3 {
    width: 100%;
    background-image: url(img/Whimsical\ Mushroom\ Kingdom\ Vista\ 1.jpg);
    margin-top: 260px;
    background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        text-align: center;
        
   
}


.cards-container {
    position: relative;
    z-index: 3;
    display: grid;
     grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
   padding: 0 60px 0 60px;
    margin: 0 auto;
    margin-top: 70PX;
    box-sizing: border-box;
    margin-bottom: 100px;
}

.card {
    height: 490px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}


.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


.card-front {
    background-color: transparent;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}


.card-back {
    background-image: url('Gemini_Generated_Image_.jfif');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transform: rotateY(180deg);

    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: #ffffff;
}

.card-back h3 {
    font-family: 'Luckiest Guy', cursive;
    color: #ffe066;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.card-back p {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.78rem; 
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-back p strong {
    color: #ffcc00;
}

.btn-details {
    display: inline-block;
    width: 100%;
    padding: 8px 0;
    background-color: #e52521;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 2px solid #ffffff;
    transition: background-color 0.2s, transform 0.2s;
    box-sizing: border-box;
  
    margin-bottom: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.btn-details:hover {
    background-color: #ff4d4d;
    transform: scale(1.02);
}

.s-3 .sub-title {
    font-family: 'Fredoka', sans-serif;
    display: block;
    color: #d80913a5; 
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    margin-top: 100px;
}


.s-3 .main-title {
    font-family: 'Luckiest Guy', cursive;
    color: #ffffff; 
    font-size:50px;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
}


.s-3 .description {
    font-family: 'Fredoka', sans-serif;
    color: #b3b3b3;
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

        

 .mario-footer {
    background-color: #000000;
    color: #ffffff;
    padding-top: 40px;
    font-family: 'Fredoka', sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #e52521;
    margin-top: 10px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
}


.mario-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Luckiest Guy', cursive;
    line-height: 1;
    margin-bottom: 25px;
}

.logo-super {
    font-size: 1.8rem;
    color: #e52521;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #fff;
    letter-spacing: 2px;
}

.logo-mario {
    font-size: 3rem;
    background: linear-gradient(to bottom, #fbd000 0%, #e52521 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0px #000);
    letter-spacing: 3px;
}

.logo-tag {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbd000;
    letter-spacing: 3px;
    margin-top: 5px;
}


.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #e52521;
    transform: translateY(-2px);
}

.copyright {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}


.mario-pipe-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
}

.footer-mario-img {
    max-width: 450px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mario-pipe-wrapper:hover .footer-mario-img {
    transform: translateY(-8px);
}


.pipe-tooltip {
    position: absolute;
    top: 10px;
    right: 30%;
    background-color: #e52521;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

.mario-pipe-wrapper:hover .pipe-tooltip {
    opacity: 1;
    transform: translateY(0);
}