/* Google Font CDN Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins%3Awght%40100%3B200%3B300%3B400%3B500%3B600&display=swap%27%29%3B');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}
*::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: black;
    transition: overflow 0.3s ease, scrollbar-gutter 0.3s ease;
  }

  body.modal-open {
    overflow: hidden; /* Disable scrolling */
}

/* In your CSS, add this */
body.modal-open {
  overflow: hidden;
}

  
  .parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Behind the main content */
  }
  
  /* This div will hold the scaled background image.
     Height is 200vh so it's taller than the viewport.
     By the bottom of the scroll, we will have revealed the entire image. */
  
  .page-content {
    position: relative;
    z-index: 1;
    /* Your normal content styling */
  }
  



/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
    width: 10px;
    transition: width 0.3s ease;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #333, #ffffff, #333); /* Dark to light to dark */
}

::-webkit-scrollbar-thumb {
    background-color: #ad1a1a;
    border-radius: 12px;
    transition: all .5s ease;
}

::-webkit-scrollbar-thumb:hover{
    background-color: red;
    cursor: pointer;
}

/* Class to change scrollbar width */
.scrollbar-thin::-webkit-scrollbar {
    width: 0px; /* Change to desired thin width */
}

nav{
    width: 100%;
    height: 10vh;
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding-left: 20px;
    width: 15vw;
}

.logo span{
    color: red;
    text-shadow: 0 4 10px red;
}

.hamburg, .cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2.5rem, .5rem + 5vw, 3rem);
}

.nav-container .links{
    display: flex;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: .3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 50%;
    width: 0%;
    height: 3px;
    background-color: #ad1a1a;
    transform: translateX(-50%);
    transition: .2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    background-color: #ad1a1a;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform:translateY(-500px);
    width: 100;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: .2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: .2s linear;
}

.dropdown .links a:hover{
    background-color: #ad1a1a;
}

section {
    width: 80%; /* Keep the section width slightly smaller for padding around */
    /* min-height: 100vh; */
    margin: 50px auto; /* Add spacing between sections */
    display: flex;
    justify-content:start;
    align-items: center;
    position: relative; /* Ensure the pseudo-element is contained */
    /* padding: 20px; Add padding for content spacing */
    border-radius: 30px; /* Rounded corners for the glass effect */
    overflow: hidden; /* Clip the child elements to the border-radius */
    background: rgba(0, 0, 0, 0.8);
    /*background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(20px); /* Apply the blur effect */
    box-shadow: 0 0px 50px white; /* Optional shadow for depth */
    border: 4px solid white;
    transition: border 0.5s ease, background 0.5s ease; /* Smooth transition */
    padding-top: 100px;
}

@media (max-width: 700px) {
    section {
        padding-top: 75px;
        width: 86%;
        border: 2px solid white;
        /* min-height: 200vw; */
        /* height: 1350px; */
    }
}

#contact {
    min-height: 500px;
}

#about {
    min-height: 500px;
}


section .main-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    max-width: 1200px;
    justify-content: flex-start;
  }
  
  .main-container .image {
    width: 300px; /* Fixed width for the image area */
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px rgb(255, 255, 255);
    flex: 0 0 auto; /* Prevent shrinking */
  }
  
  .main-container .image img {
    width: 100%;
    height: auto;
  }
  
  .main-container .content {
    flex: 1;
    min-width: 300px;
    /* margin-left: 20px; */
    box-sizing: border-box;
    color: white;
    width: 40%;
    text-align: center;
  }


  /* .streamer {
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    width: 100%;
  }

  #views {
    text-align: left;
  }

  .stream-box {

    display: flex;
    font-size: 2vh;
    font-weight: 500;
  }

  .stream-box span {
    font-size: 3rem;
  } */

  .summary {
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 30px;
  }

  #summary {
    font-size: large;
  }

  .slogan-wrap {
    display: flex;
    justify-content: center;
  }

  @keyframes continuousGradient {
    0% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .slogan {
    background: linear-gradient(to right, rgb(47, 66, 73), white, rgb(47, 66, 73));
    background-size: 200% 100%; /* Double the size for smooth looping */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: continuousGradient 20s linear infinite; /* Continuous movement */
    text-align: center;
    max-width: 70%;
  }
  

  @media (max-width: 700px) {
    .slogan {
        max-width: 100%; /* Increased max-width for smaller screens */
    }
}


  .slogan span {
    font-size: 2vh;
  }
  @media (max-width: 700px) {
    .slogan span {
        font-size: 3.5vw;
    }
  }

  .quote {
    margin-bottom: 3vh;
    font-size: 1.5vh;
  }
  
  /* MEDIA QUERY: When screen gets small enough that text wraps under the image */
  @media (max-width: 700px) {
    .main-container .image,
    .main-container .content 
    {
      width: 100%;       /* Make them full-width */
      margin-left: 0;     /* No left margin needed in stacked layout */
      text-align: center; /* Centers text inside content for a unified look */
    }
  
    .main-container .image {
      margin: 0 auto;     /* Center the image horizontally */
      margin-bottom: 20px;/* Spacing below the image before content starts */
    }
  }
  



.main-container .image:hover{
    animation: headshotScale 1s ease-in-out;
}

@keyframes headshotScale{
    0%{
        scale: 1;
    }

    25%{
        scale: 1.05;
    }

    100%{
        scale: 1;
    }
}

.content h1{
    font-size: clamp(1rem, 1rem + 10vw, 2rem);
    transition: transform 1s ease;
}

.modal-body h2{
    font-size: .8rem;
    font-weight: 300;
}

.content h1 span{
    font-size: 10vw;
    color: red;
    /* text-shadow: 0 0 40px red; */
    line-height: 1.4;
    /* animation: titleFade 1s ease-in-out infinite; */
}

.content h1:hover {
    transform: scale(1.04);
    cursor:default ;
}

@keyframes titleFade {
  0% {
    text-shadow: 0 0 0px red;
  }
  /* 30% {
      opacity: 100%;
  } */
  50% {
     text-shadow: 0 0 10px red;
  }
  /* 70% {
      opacity: 100%;
  } */
  100% {
     text-shadow: 0 0 0px red;
  }
}


@media (max-width: 700px) {
    .content h1 span {
        font-size: 16vw; /* Replace this value with your desired size */
    }
}

.content .typewriter {
    font-size: 3vh;
    font-weight: 600;
    margin-bottom: 30px;
    /* text-align: left; Ensure left alignment */
    display: inline-block; /* Prevent full-width container */
    white-space: nowrap; /* Prevent wrapping */
    margin-top: 20px;
    color: white;
    }

@media (max-width: 700px) {
    .content .typewriter {
        margin-top: 30px; /* Replace this value with your desired size */
        font-size: 5vw;
    }
}

.content .typewriter-text{
    color: red;
    text-shadow: 0 0 20px white;
}

.auto-type {
    text-shadow: 0 0 30px white;
    display: inline; /* Prevent block layout chnges */
    white-space: nowrap; /* Prevent wrapping */
    visibility: visible; /* Ensure visibility for typing */
}

.content p{
    font-size: clamp(.4rem, .2rem + 9vw, 1rem);
    /* margin: 10px 0; */
}



.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: solid .2rem #ff0000;
    border-radius: 50%;
    color: #ff0000;
    margin-right: 15px;
    font-size: 1.5rem;
    box-shadow: 0 0 20px red;
    transition: .2s ease-in-out;
    background-color: black;
    margin-bottom: 40px;
    transform: translateX(20%);
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: red;
    filter: drop-shadow(0 0 10px #ad1a1a);
}

.content button{
    width: 50%;
    height: 6vh;
    margin: 30px 0;
    background-color: red;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: .2s linear;
    max-width: 400px;
}

.content button:hover{
    scale: 1.1;
    cursor: pointer;
    color: white;
    border: 5px solid white;
    background-color: red;
    font-weight: 700;
    box-shadow: 0 0 40px white;
}

.cv {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.to-about {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-82%);
    text-align: center; /* Center text and icon inside the container */
    color: white;
    transition: all .3s ease-in-out;
    animation: nextFade 2s ease-in infinite;
    scale: .6;
  }

  .to-next {
    font-size: 30px;
  }

  @media (max-width: 700px) {
    .to-about {
        bottom: 0px;
    }
    .to-next {
        font-size: 25px;
    }
  }

  .to-contact {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center; /* Center text and icon inside the container */
    color: white;
    transition: .3s ease-in-out;
    animation: nextFade 2s ease-in infinite;
  }

  @keyframes nextFade {
    0% {
        opacity: 50%;
    }
    /* 30% {
        opacity: 100%;
    } */
    50% {
        opacity: 90%;
    }
    /* 70% {
        opacity: 100%;
    } */
    100% {
        opacity: 50%;
    }
  }
  
  .to-about-text {
    display: block; /* Ensure text is on its own line above the arrow */
    font-size: 1.2rem;
    transition: .3s ease;
    margin: 0;
    padding: 0;
  }

  .to

  .to-about-text:hover{
    cursor: pointer;
    scale: 1.3;
  }
  
  .to-about i{
    font-size: 2rem;
  }
  
  .to-about:hover {
    /* scale: 1.3;  */
    cursor: pointer;
    transform: translateX(-50%) scale(1.3);
  }
  

/* about section */

section .content {
    width: 90%;
    margin: 0px auto;
    font-family: 'poppins';
    flex-wrap: wrap;
    /* color: white;
    font-weight: 500; */
}
.about .about-details {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    line-height: 50px;
    font-size: 30px;
    width: 80%;
    text-align: center;
    margin-top: 30px;
}

.about .text {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.top {
    width: 100%;
}

.pillars {
    display: block;
    width: 100%;
    font-size: 1rem;
    color: white;
}

.space {
    line-height: 70px;
}

.about .about-details p{
    font-size: 1.5rem;
    text-align: left;
    font-weight: 400;
}

@media (max-width: 1000px) {
    .about .about-details p{
        font-size: 1rem;
        line-height: 30px;
    }
}

.metallic {
    /* min-width: 10px ;
    background: linear-gradient(to right,white 40%, rgb(47, 66, 73) 50%, white 60%);
    background-size: 200% 100%; /* Double the size for smooth looping */
    /* -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: continuousGradient 10s linear infinite; */
    color: whitesmoke;
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 300;
}   

.normal {
    display: inline-block;
    font-size: 3rem;
    font-weight: 300;
    color: white ;  
    font-size: 3.5rem;
    margin: 15px 0px 25px 0px;
}

.emphasize {
    color: chartreuse ;  
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    margin: 5px;
}

@media (max-width: 700px) {
    .emphasize {
        font-size: 1.5rem;
    }
    .metallic {
        font-size: 1.2rem;
        font-weight: 200;
    }
    .normal {
            font-size: 2.5rem;
            font-weight: 300;
    }
}

.silver {
    background: linear-gradient(to right, white 40%, rgb(47, 66, 73) 50%, white 60%);
    background-size: 200% 100%; /* Double the size for smooth looping */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: continuousGradient 20s linear infinite; /* Continuous movement */
}

section .title {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

section .title span {
    color: white;
    font-size: 30px;
    font-weight: 450;
    position: relative;
    letter-spacing: 2px;    /* top: 50px; */
}

section .title span::before,
section .title span::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: red;
    left: 0;
    bottom: 0;
}

section .title span::after {
    width: 70%;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
}

section .topic {
    color: white;
    font-size: 2vh;
    font-weight: 300;
    margin-bottom: 10px;
    position: relative;
    transform: translateX(-50%);
    left: 50%;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
}

.topic-start {
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 4vw;
    font-weight: 1200;
    margin-bottom: 30px;
}

.contact .text {
    text-align: center;
    width: 100%;
    margin-top: 50px;
}

.btn {
    margin: 40px;
}

section .button {
    margin: 16px 0;
    width: 300px;
}

.about a {
    width: 50%;
    height: 6vh;
    margin: 30px 0;
    background-color: red;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: .2s linear;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    display: flex;
}

.about a:hover {
    scale: 1.1;
    cursor: pointer;
    color: red;
    border: 5px solid red;
    background-color: rgba(255, 255, 255, 1);
    font-weight: 700;
    box-shadow: 0 0 40px white;
}

section .button button {
    width: 50%;
    height: 6vh;
    margin: 30px 0;
    background-color: red;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: .2s linear;
}
section .button button:hover{
    scale: 1.1;
    cursor: pointer;
    color: red;
    border: 5px solid red;
    background-color: rgba(255, 255, 255, 1);
    font-weight: 700;
    box-shadow: 0 0 40px white;
}
.experience {
    background: black;
}
.experience .content {
    padding: 40px 0;
}
.experience .experience-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.experience-details .text {
    width: 50%;
}
.experience-details p {
    color: white;
    text-align: justify;
}
.experience .experience-details .yrs-experience {
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.experience-details .yrs-experience .num {
    color: white;
    font-size: 10vw;
}
.experience-details .yrs-experience .exp {
    color: white;
    font-size: 2.6vw;
    font-weight: 500;
    margin: 0 20px;
}
.experience-details .boxes {
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.experience-details .box {
    width: calc(100% / 2);
}
.experience-details .boxes .topic {
    font-size: 20px;
    color: red;
}
.experience-details .boxes .per {
    font-size:6vw;
    color: greenyellow;
}

/* portfolio */

/* swiper */


/* slider */
.slider{
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    margin-bottom: 50px;
}

@media (max-width: 700px) {
    .slider{
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
        margin-bottom: 0px;
    }
}

.item {
    position: absolute;
    width: 400px;
    height: 680px;
    background-color: black;
    border-radius: 40px;
    transition: transform 0.3s ease; /* Smooth transition for scaling */
    left: calc(50% - 200px);
    top: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 700px) {
    .item {
        width: 300px;
        height: 460px;
        left: calc(50% - 150px);
    }
}

.item img {
    width: 140%;
    object-fit: cover;
    cursor: pointer;
    transform: translateX(-80px) translateY(-65px);
    transition: .3s ease;
    opacity: 60%;
}

#events img {
    transform: translateX(-75px) translateY(-125px);
}

#events img:hover{
    transform: scale(1.05) translateX(-70px) translateY(-120px);
}

.item img:hover{
    transform: scale(1.05) translateX(-75px) translateY(-60px);
}

@media (max-width: 700px) {

    .item img {
        transform: translateX(-60px) translateY(-78px);
    }
    
    #events img {
        transform: translateX(-55px) translateY(-125px);
    }

    #events img:hover{
        transform: scale(1.05) translateX(-52px) translateY(-115px);
    }

    .item img:hover{
        transform: scale(1.05) translateX(-57px) translateY(-70px);
    }
}

.item h1 {
    position: relative;
    top: 50%;
    transform: translateY(-20px);
    font-size: 1.5rem;
    z-index: 4;
    color: white;
    pointer-events: none;
}

#next, #prev{
    position: absolute;
    top: 33%;
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: 15px;
    font-family: monospace;
    font-weight: bold;
    left: 7%;
    cursor: pointer;
    /* background: linear-gradient(to bottom, #333, #b5b5b5, #333); */
    background-color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 10px 40px black;
    transition: .3s ease-in-out;
    z-index: 10;
    /* box-shadow: 0 0px 50px white; Optional shadow for depth */
}

#next i, #prev i {
    position: relative;
    transform: translateX(-1px);
    top: 1px;
    V
}

#next:hover, #prev:hover {
    transform: scale(1.1);
}

#next{
    left: unset;
    right: 7%;
}

.dots-container {
    display: flex;
    position: absolute;
    align-items: center;
    /* margin-top: 40px; */
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width:700px) {
    .dots-container {
        bottom: 80px;
    }
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: red; /* Highlight active dot */
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1);
}

.modal .categories {
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

.category {
    position: relative;
    font-size: 2.25vh;
    width: 33%;
    color: white;
    transition: color 0.5s ease, transform .2s ease, font-weight .2s ease;
    align-items: center;
}

.type {
    grid-column: 1 / -1; /* Spans all columns in the grid */
    color: white;
    text-align: center;
    font-size: 1.2rem;
    padding-bottom: 10px;
    letter-spacing: 2px;
}

@media (max-width:700px) {
    .category {
        font-size: 3vw;
    }
}

.category:hover {
    color: red;
    transform: scale(1.1);
    font-weight: 500;
}

.category.active:hover {
    color: red;
    transform: scale(1.1);
    font-weight: 500;
}

.category.active::before {
    position: absolute;
    content: "";
    bottom: -14px; /* Position the bar just below the text */
    left: 50%; /* Center the bar */
    width: 80%; /* Bar width */
    height: 3px;
    background-color: white; /* Bar color */
    transform: translateX(-50%);
    transition: width 0.3s ease; /* Smooth transition for the bar */
}

.category a {
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 300;
}

.category.active a {
    color: red;
    /* transform: scale(1.3); */
    font-weight: 500;

}

.category a::before{
    position: absolute;
    content: "";
    bottom: -14px;
    left: 50%;
    width: 0%;
    height: 3px;
    background-color: #ad1a1a;
    transform: translateX(-50%);
    transition: width .2s ease;
}

.category a:hover::before{
    width: 80%;
}

.modal.open {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 80%;
    max-width: 1200px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: white;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

/* Video Grid */

.video-container {
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    cursor: pointer;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
    transition: all 0.2s ease;
}

/* Fade In Play Button on Hover of Video Effect */
.video-container:hover .play-button {
    position: absolute;
    opacity: 1;
    pointer-events: auto; /* Enable interaction when visible */
}

/* Prevent Glitch on Hovering Play Button */
.video-container:hover .video-effect {
    transform: scale(1.05); /* Maintain scale while hovering play button */
}

.video-container .play-button:hover {
    background: rgba(255, 255, 255, 0.6); /* Change background for hover feedback */
    color: white;
}

.video-grids {
    display: flex; /* Use Flexbox for layout */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-wrap: wrap; /* Allow multiple rows of .video-grid if needed */
    width: 100%; /* Ensure full width */
    height: 100%; /* Adjust height as needed */
    /* padding: 70px; */
}

.video-grid {
    width: 100%;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 200px)); */
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    gap: 10px;
    /* padding:20px 50px; */
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: center;
    transition: width .3s ease;
}

@media (max-width:700) {
    .video-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
        gap: 10px;
        /* padding:20px 50px; */
        height: 85vh;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: center;
        transition: width .3s ease;
    }
}

.video-container.wide {
    grid-column: 1 / -1; /* Makes it take up the entire row */
    width: 100%; /* Ensures it spans the full width */
    display: flex;
    justify-content: center; /* Center the video */
}

/* Ensure videos maintain aspect ratio */
.video-container.wide .video-item {
    aspect-ratio: 16 / 9; /* Maintain widescreen format */
    /* width: 100%; Make sure it fills the entire row */
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    min-width: 250px;
}

@media (min-width:1200px) {
    .video-grid {
        width: 70%;
    }
}

@media (max-width:1000px) {
    .video-grid {
        width: 100%;
        /* padding: 20px 20px; */
    }
}


.video-effect {
    transform: scale(1);
    transition: transform .3s ease;
}


/* Initial State for Video Items */
.video-item {
    transform: translateY(0) scale(1);
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 8px;
    opacity: 1; /* Initially hidden */
    transition: width 0.3s ease,transform 0.3s ease, box-shadow 0.3s ease; /* Ensure hover works */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;   
    display: block; 
    max-height: 90vh;
}

/* For Chrome/Safari/Edge (WebKit) */
video:-webkit-full-screen {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain; 
    /* object-fit: cover; if you prefer filling with possible cropping. */
    margin: 0 auto; /* Centers if there is leftover space */
    display: block; 
}

/* For Firefox (Moz) */
video:-moz-full-screen {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 0 auto;
    display: block; 
}

/* For IE/Edge (MS) - if still needed */
video:-ms-fullscreen {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 0 auto;
    display: block; 
}

/* For modern standard browsers */
video:fullscreen {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 0 auto;
    display: block; 
}

/* Fade-in Keyframe Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9); /* Start smaller and below */
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1); /* End at normal size */
    }
}

/* Apply Delayed Animations */
.video-item.fade-in {
    animation: fadeInUp 0.6s ease forwards; /* Persist final state */
}

/* Add Animation Delays */
.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }
.video-item:nth-child(5) { animation-delay: 0.5s; }
.video-item:nth-child(6) { animation-delay: 0.6s; }


