* {
    /* overflow-x: hidden;  <-- This was removed as it's better to control overflow on the body */
}

*::-webkit-scrollbar{
    display: none;
    
}

html, body {
    font-size: 62.5%;
    box-sizing: border-box;
    overflow-x: hidden; /* This correctly prevents horizontal overflow for the whole page */
}

body{
    padding: 0;
    margin: 0;
    background-color: rgb(38, 37, 37);

    
    
}


@font-face {
    font-family: 'Ubunto';
    src: url('Assets/ClashDisplay-Variable.ttf');
}


.menuPage{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: antiquewhite;
    z-index: 100;
    /* pointer-events: none; */
    clip-path: polygon(0% 100% , 100% 100% , 100% 100% , 0% 100%);
}

.menuPageItems{
    position: absolute;
    top: 75vh;
    left: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: #000;
    font-size: 4rem;
    font-family: Ubunto;
}

.menuPageItem{
    transition: .3s;
}

.menuPageItem:nth-of-type(1){
    text-decoration: line-through;
}

.menuPageItem:hover{
    color: #a43434;
}

.navigation{
    width: 99vw;
    filter: opacity(0);
    display: flex;
    justify-content: end;
    position: fixed;
    transition: .7s;
    padding-left: 0.5vw;
    z-index: 101;

}

.navigation.active{
    filter: opacity(1);
}



.logo.active{
    background-color: rgb(38, 37, 37);
}


.bar{
    z-index: 2000;
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    margin-top: 15px;
    background-color: #fff;
    border-radius: 50px;
    transition: 1s;
}


.bar .middle{
    height: 2px;
    width: 30px;
    background-color: #000;
    border-radius: 50px;
    position: absolute;
    transition: .3s ease;
}

.bar .top{
    top: 20px;
    height: 2px;
    width: 30px;
    background-color: #000;
    border-radius: 50px;
    position: absolute;
    transition: .3s ease;
}

.bar .bottom{
    bottom: 20px;
    height: 2px;
    width: 30px;
    background-color: #000;
    border-radius: 50px;
    position: absolute;
    transition: .3s ease;
}

.bar .top.active{
    transform: rotate(45deg);
    width: 30px;
    transform-origin: right;
    background-color: #000;
    top: 40px;
    left: 10px;

}

.bar .middle.active{
    transform: translateX(20px);
    opacity: 0;
}


.bar .bottom.active{
    transform: rotate(-45deg);
    width: 30px;
    transform-origin: right;
    background-color: #000;
    top: 19px;
    left: 10px;

}




.bar.active:hover{
    background-color: #000;

}





.bar:hover{
    background-color: #a43434;
}

.bar:hover .top{
    background-color: #fff;
}
.bar:hover .middle{
    background-color: #fff;
}
.bar:hover .bottom{
    background-color: #fff;
}


.transition{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 3000;
    pointer-events: none;
}

.transition-row{
    flex: 1;
    display: flex;
}

.transition-row.row1 .block{
    transform-origin: top;

}

.transition-row.row1 .block{
    transform-origin: bottom;
    
}

.block{
    flex: 1;
    background-color: antiquewhite;
    transform: scaleY(1);
    will-change: transform;
    
}


.percentage {
    width: 100vw;
    height: 100vh;
    font-size: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: rgb(38, 37, 37);
    position: absolute;
    z-index: 100;
    transition: opacity 0.5s ease;
    font-family: Ubunto;
  }

.intro.loaded{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    margin-top: 40vh;
    animation: introUp .5s ease-in 0s 1 forwards;

}

.introItem.loaded{
    margin-top: 5vh;
    width: 20vw;
    height: 55vh;
    min-width: 20vw;
    min-height: 60vh;
    position: absolute;
    overflow-y: hidden;
    animation: disappear .001s linear 8s 1 forwards;
}


.introItem.loaded img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: introImgOut .4s ease-in 0s 1 forwards;
}


.introItem:nth-of-type(5) img{
    animation: none;
}

.introItem:nth-of-type(4) img{
    animation: none;
}

.introItem:nth-of-type(2) img{
    animation: none;
}

.introItem:nth-of-type(3) img{
    animation: none;
}

.introItem:nth-of-type(1) img{
    animation: none;
}

.introItem:nth-of-type(6) img{
    animation-delay: 3.2s;
}

.introItem:nth-of-type(7) img{
    animation-delay: 2.75s;
}

.introItem:nth-of-type(8) img{
    animation-delay: 2.35s;
}

.introItem:nth-of-type(9) img{
    animation-delay: 1.9s;
}

.introItem:nth-of-type(10) img{
    animation-delay: 1.45s;
}

.introItem:nth-of-type(11) img{
    animation-delay: 1s;
}



.nameLogo.loaded{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    filter: opacity(0);
    font-size: 8rem;
    font-family: Ubunto;
    animation: appear 1s ease-out 5.6s 1 forwards;
    padding-left: 1vw;
    text-transform: uppercase;
}



.headerItems{
    width: fit-content;
}

.headerItems ul{
    list-style: none;
    display: flex;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    gap: 50px;
}

.firstSection{
    position: relative;
    width: 100vw;
    height: 100vh;
    filter: opacity(0);
    transition: 1s;
    display: flex;
    justify-content: center;
    align-items: start;

}


.firstSection.active{
    filter: opacity(1);

}

.divider{
    width: 100vw;
    height: fit-content;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 4rem;
    color:#fff ;
    font-family: Ubunto;
    text-transform: uppercase;
}

.dividerLeft{
    width: 0vw;
    height: 3px;
    margin-top: 2rem;
    background-color: #fff;
    transform-origin: right;
}

.dividerRight{
    width: 0vw;
    height: 3px;
    margin-top: 2rem;
    background-color: #fff;
      transform-origin: left;
}

.secondSection {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category {
    margin-top: 20vh;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.catItemsInfo {
  position: absolute;
  margin-left: -1vw;
  width: 7.5vw;
  height: 100%;
  display: flex;                                /* enable flex children */
  flex-direction: column;
  
  /* translucent background so there's something to blur */
  background-color: rgba(255, 255, 255, 0.15);

  /* Safari */
  -webkit-backdrop-filter: blur(15px);
  /* Other browsers */
  backdrop-filter: blur(15px);

  box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Ubuntu', sans-serif;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  z-index: 2;

  /* use opacity for fade in/out rather than filter:opacity */
  filter: opacity(0);
  transition: filter 1s;
}



.catItemsInfo h1 {
    font-size: 2.5rem;
    margin-right: 42px;
    margin-top: 10px;
}

.catItems:hover .catItemsInfo {
    filter: opacity(1);
    
}

.catItems {
    width: 15%;
    height: 60%;
    position: absolute;
    pointer-events: all;
    z-index: 10;
}

.catItems img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(0%, -50%); 
    user-select: none; /* -- Prevent image highlighting -- */

  }
  
#image-track > .image {
    width: 30vmin;
    height: 45vmin;
    object-fit: cover;
    object-position: 100% center;
  }



.thirdSection{
    width: 100vw;
    min-height: 100vh; /* Changed to min-height */
    height: auto; /* Allow height to adjust to content */
    background-color: rgb(38, 37, 37);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Ubunto;
    z-index: 110;
    padding: 5rem 2rem; /* Added more vertical padding */
    box-sizing: border-box;
}


.footer{
    position: absolute;
    top: 400vh;
    left: 0;
    width: 100vw;
    height: 35vh;
    background-color: antiquewhite;
    color: #000;
    overflow: hidden;
    z-index: -10;
}


.footerInfo{
    padding-top: 57.5px;
    padding-left: 100px;
    padding-right: 100px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    font-family: Ubunto;
    font-size: 2em;
}

.footerListItem{
    width: 40px;
    height: 40px;
}

.footerListItem a img{
    width: 100%;
    height: 100%;
}

.footerLeft{
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
.footerRight{
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }


.footerInfo ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}


.footerName{
    display: flex;
    justify-content: center;
    font-size: 25rem;
    margin-top: -10px;
    font-weight: 500;
    font-family: Ubunto;
}


html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}


/* ---------- Mobile Responsive Styling ---------- */
@media screen and (max-width: 768px) {
    
    
    .intro.loaded{
        
    height: 90vh;

    }
    
    .introItem.loaded{
        
        width: 70vw;
        height: 30vh;
        min-width: 70vw;
        min-height: 30vh;

    }
    
    .percentage {
    width: 100vw;
    height: 90vh;
    font-size: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: rgb(38, 37, 37);
    position: absolute;
    z-index: 100;
    transition: opacity 0.5s ease;
    font-family: Ubunto;
  }

    
    .menuPageItems{
    position: absolute;
    top: 70vh;
    left: 3vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: #000;
    font-size: 2.5rem;
    font-family: Ubunto;
}

    .nameLogo.loaded{
        height: 90vh;
        font-family: Ubunto;
        font-size: 6rem;
    }


    #image-track > .image {
        width: 50vmin;
        height: 75vmin;
    }
    
    .divider{
    font-size: 2.5rem;
    text-transform: uppercase;
}



    .secondSection {
        height: auto;
        padding: 20px 0;
    }

    .category {
        margin-top: 15vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100vw;
        height: fit-content;

    }

    .catItems {
        pointer-events: all;
        position: relative;
        width: 70%;
        height: 60vh;
        z-index: 10;
    }

    .catItems:nth-of-type(1){
        /* margin-left: -30vw; */
        left: -100vw;
    }

    .catItems:nth-of-type(2){
        left: 100vw;
    }

    .catItems:nth-of-type(3){
        left: -100vw;
    }

    .catItems:nth-of-type(4){
        left: 100vw;
    }

    .catItems:nth-of-type(5){
        left: -100vw;
    }

    .catItems img {
        width: 100%;
        height: 100%;
    }

    .catItemsInfo {
        position: absolute;
        width: 40%;
        height: 99.5%;
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: end;
        writing-mode: vertical-rl;
        text-orientation: upright; 
        text-align: center;
        padding: 0px 12px;
        margin-left: 0;
        filter: opacity(1); /* always visible on mobile */
        transition: none;
    }
    

    .catItemsInfo h1 {
        font-size: 4rem;
        margin: 0;
    }

    .footer{
        position: absolute;
        top: 605vh;
        left: 0;
        width: 100vw;
        height: 30vh;
        background-color: antiquewhite;
        color: #000;
        overflow: hidden;
        z-index: -10;
    }
    
    
    .footerInfo{
        padding-top: 57.5px;
        padding-left: 50px;
        padding-right: 50px;
        display: flex;
        justify-content: space-between;
        align-items: start;
        font-size: 1.5rem;
    }
    
    .footerListItem{
        width: 30px;
        height: 30px;
    }
    
    .footerListItem a img{
        width: 100%;
        height: 100%;
    }

    
    .footerLeft{
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footerRight{
        height: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    
    .footerInfo ul{
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 25px;
    }
    
    
    .footerName{
        display: flex;
        justify-content: center;
        font-size: 8rem;
        margin-top: 70px;
        font-family: Ubunto;
    }
    
}



@keyframes introImgOut {
    to{
        margin-top: -100vh;
    }
    
}


@keyframes introUp {
    to{
        margin-top: 0vh;
    }
    
}


@keyframes appear {
    from{
        filter: opacity(0);
    }
    
    to{
        filter: opacity(1);
    }
}


@keyframes disappear {
    to{
        filter: opacity(0);
        z-index: -110;
    }
    
}

/* === START: NEW CONTACT FORM STYLES === */

.thirdSection h2, .thirdSection p {
    font-family: 'Ubunto', sans-serif;
    text-align: center;
    color: #fff;
}

.thirdSection h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.thirdSection p {
    font-size: 1.5rem;
    color: #a0a0a0;
    max-width: 480px; /* Made paragraph width match form width */
    margin: 0 auto 2.5rem auto;
}

.form-container {
    background: transparent;
    padding: 0;
    border: none;
    width: 100%;
    max-width: 780px; /* Made the form container smaller */
    margin: 1rem auto;
    font-family: 'Inter', sans-serif;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transform: none;
    transition: none;
}

.form-container:hover {
    transform: none;
    box-shadow: none;
}

.form-group {
    margin-bottom: 2.2rem; /* Reduced spacing */
    position: relative;
}

.form-container label {
    display: block;
    margin-bottom: 0.8rem;
    color: #a0a0a0;
    font-weight: 500;
    font-size: 1.3rem;
    text-align: left;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    box-sizing: border-box; 
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    transition: border-bottom-color 0.3s ease;
}

.form-container textarea {
    height: 100px; /* Made textarea shorter */
    resize: vertical;
    min-height: 80px; /* Added min-height */
}

.form-container input::placeholder,
.form-container textarea::placeholder {
    color: #666;
}

.form-container input:focus, 
.form-container textarea:focus {
    background: transparent;
    border-bottom-color: #a43434;
    outline: none;
}

/* Fix for browser autofill background color */
.form-container input:-webkit-autofill,
.form-container input:-webkit-autofill:hover, 
.form-container input:-webkit-autofill:focus, 
.form-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgb(38, 37, 37) inset !important; /* Use the body background color */
    -webkit-text-fill-color: #ffffff !important; /* Keep the text color white */
    transition: background-color 5000s ease-in-out 0s; /* A trick to delay the style change */
}

.form-container button {
    width: 100%;
    padding: 1.4rem;
    margin-top: 0rem; /* Reduced top margin */
    background-color: #a43434;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-container button:hover {
    background-color: #c24040;
    transform: translateY(-2px);
}


/* === POPUP MODAL STYLES === */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e1e1e;
    padding: 3rem 4rem;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    position: relative;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
    max-width: 90%;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-content p {
    font-size: 1.8rem;
    margin: 0;
    color: #e0e0e0;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .thirdSection {
        padding: 4rem 1.5rem;
        min-height: 80vh;
    }
    .form-container {
        padding: 1rem;
        max-width: 100%;
    }
    .thirdSection h2 {
        font-size: 2.8rem;
    }
    .thirdSection p {
        font-size: 1.4rem;
    }
    .modal-content {
        padding: 2.5rem;
    }
    .modal-content p {
        font-size: 1.6rem;
    }
}


/* === END: CONTACT FORM STYLES === */
