
body {
   /* padding: 0 4rem 8rem 4rem; */
    max-width: 1200px;
    margin: 0 auto;
    font: small-caps bold 13px c;
}

a:-webkit-any-link {
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.navigate {
    display: flex;
    margin: 0;
    justify-content: space-between;
}

.menu{ 
    display: inline-flex;
    gap: 50px;

}

.menu {
    color: black;
    font-size: clamp(10px, 2.5vw, 18px);    
    padding-top: 1vh;
    margin: 0;
}


button {
      all: unset;
    color: black;
    font-size: clamp(10px, 2.5vw, 18px);    
    height: 6vh;
    cursor: pointer;
}

.navigate .logotext {
    font:  small-caps bold 13px c;
    font-size: 1.2rem;
    display: block;
    min-width: 242px;
}

.navigate .logotext h1 {
    margin: 0;
  font-size: clamp(34px, 2.5vw, 48px);    
}

.navigate .logotext h2{
    font: italic small-caps bold 16px/2 c; 
  font-size: clamp(10px, 2.5vw, 22px);    
}

.flexbox {
 /* outline: orchid 2px dashed; */
 max-width: 1200px;
}


.container {
  display: flex;
    flex-direction: column;
  width: inherit;
  gap: 15px;
}


.works {
        display: grid;
        /* Mobile-first: stack the template areas vertically */
        grid-template-areas:
            "liquidSim"
            "mmPhysio"
            "RDC"
            "mmMornington"
            "vision"
            "threeDslider"
            "dhillonshin";
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        align-items: start;
        justify-content: center;
}


/* Work item areas keep their names but become fluid */
#liquidSim{
        grid-area: liquidSim;
        margin: 0;
        width: 100%;
        max-width: none;
}

#mmPhysio{
        grid-area: mmPhysio;
        margin: 0;
        width: 100%;
        height:calc(837.5px / 2);
        max-width: none;
}

#mmMornington{
        grid-area: mmMornington;
        margin: 0;
        width: 100%;
        height:calc(837.5px / 2 );
        max-width: none;
}

#RDC {
    grid-area: RDC;
    margin: 0;
    width: 100%;
    max-width: none;
}

#dhillonShinda {
    grid-area: dhillonshin;
    margin: 0;
    width: 100%;
    max-width: none;
}

.imgContainer #visionbts {
    grid-area: vision;
    margin: 0;
    width:100%;
    max-width: none;
    height: auto;
}

.imgContainer #threeDslider {
    grid-area: threeDslider;
    margin: 0;
    align-self: baseline;
    width:100%;
    max-width: none;
    height: auto;
}

/* Make media inside work items scale and keep aspect ratio */
.works img,
.works video,
.works iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius:0px;
}

/* Ensure captions / text inside work items wrap and stay visible */
.works .caption,
.works p,
.works h3,
.works h2 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Desktop / large tablet: two-column layout that preserves template areas
     liquidSim spans the left column across two rows, other items stack right */
@media (min-width: 900px) {
    .works {
        grid-template-areas: "liquidSim mmPhysio" "liquidSim mmMornington"
        "RDC dhillonshin"
        "RDC vision"
        "threeDslider vision";
        grid-template-columns: minmax(320px, 45%) 1fr;
        grid-auto-rows: auto;
    }
    /* Let the left column item scale taller while keeping ratio */
    #liquidSim #RDC #threeDslider{
        align-self: stretch;
    }

}

/* Wider screens: give the left column more room */
@media (min-width: 1200px) {
    .works {
        grid-template-columns: 480px 1fr;
    }
}

.imgContainer {
padding: 2rem;
}  

.slider-wrapper {
position: relative;
max-width: 48rem;
margin: 0 auto;
}

.slider {
    display: flex;
    aspect-ratio: 2 / 3;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0,0%,0%,0.25);
    border-radius: 0.5rem;
}

.slider img,
.slider video{
    flex: 1 0 100%;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 100%;
    scroll-snap-align: start;
    min-width: 100%;
}

.slider-nav{
    display: flex;
    column-gap: 1rem;
    position:absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: .5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
}

.slider-nav a:hover {
    opacity: 1;
}

/* Video wrapper & hover overlay */
.video-wrapper{
    position: relative;
    display: block;
    overflow: hidden;
}
.video-wrapper video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-hover-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    color: #fff;
    gap: .5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.video-hover-overlay.show{
    opacity: 1;
    pointer-events: auto;

}
.video-hover-overlay .title{
    font-size: clamp(14px, 2.8vw, 20px);
    text-transform: capitalize;
    font-weight: 700;
        border-radius: 6%;
    text-align: center;
}
.video-hover-overlay .cta{
    background: #fff;
    color: #000;
    padding: .5rem 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    justify-self: center ;
}

/* Modal full-view */
.video-modal-backdrop{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 20000;
    backdrop-filter: blur(6px);
}
.video-modal{
    width: min(1400px, 95%);
    max-width: 1400px;
}
.video-modal video{
    width: 100%;
    height: auto;
    display:block;
}

/* Assign grid areas to the wrapper elements (wrappers are the .works children) */
.video-wrapper[data-title="Liquid Simulation - Houdini"]{ grid-area: liquidSim; aspect-ratio: 9/16; }
.video-wrapper[data-title="Masseuse Massage Chairs Physio+ VFX"]{ grid-area: mmPhysio;}
.video-wrapper[data-title="Masseuse Massage Chairs RDP VFX"]{ grid-area: mmMornington;}
.video-wrapper[data-title="RDCworld Creator League CGI Trailer Crowd Simulation"]{ grid-area: RDC; aspect-ratio: initial; }
.video-wrapper[data-title="AP Dhillon & Shinda Kahlon - HITMEN (Official Music Video)"]{ grid-area: dhillonshin; aspect-ratio: initial; }

/* Ensure the vision slider wrapper maps to the vision area */
.slider-wrapper#visionbts{ grid-area: vision; }

.slider-wrapper #threeDslider { grid-area: threeDslider;
}

/* When modal is open blur background content */
.modal-open .flexbox,
.modal-open .navigate{
    filter: blur(6px);
    transition: filter 200ms ease;
}


/* Page wipe overlay used for smooth horizontal navigation transitions */
.page-wipe{
    position: fixed;
    inset: 0 0 0 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    pointer-events: none;
    /* start off-screen to the left and slightly skewed for a "whip" look */
    transform: translateX(-110%) skewX(-10deg);
    transition: transform 500ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
    display: none;
}
.page-wipe.animate{
    transform: translateX(0%) skewX(0deg);
    pointer-events: auto;
}

/*
Source - https://stackoverflow.com/a
Posted by DigitalDesignDj
Retrieved 2025-11-21, License - CC BY-SA 3.0
*/

.landing {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
    font-family:Arial,Helvetica,sans-serif;color:#222;text-align:center;
}


@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}


