* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f6f3ee;
    color: #111;
}

/* HEADER */
.logo {
    color: rgb(0, 0, 0);
    font-size: 20px;
    font-weight: 600;
}
.header-content a {
    color: rgb(0, 0, 0);      
    text-decoration: none;
}
.header-content a:hover {
    opacity: 0.7;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
  display: flex;
  gap: 10px; /* Space between links */
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 60px;
}


/* HERO */
.hero {
    height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transform: translateY(-50px);
}

.bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-text {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    -webkit-text-stroke: 1.5px #2f6f4e;
    color: azure;
}

.hero-text h1 {
    font-size: 60px;
}

.work-indicator span {
    color: #c9a227;
}

.arrow {
    color: #2f6f4e;
}

/* VIDEOS */
.video-grid {
    width: 70%;
    max-width: 1100px;
    margin: -250px auto 150px;

    display: grid;
    gap: 20px;

    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.video-item {
  position: relative;
  cursor: pointer;
}

.video-thumb{
    position:relative;
    overflow:hidden;
    
}

.video-item:hover .overlay {
  background: rgba(0,0,0,0.35);
}

.video-item:hover .play {
  opacity: 1;
}

.video-info {
    padding-top: 14px;
}

.video-info h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #355f93;
    opacity: 0.83;
}

.video-info p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.5;
    color: #313d5f;

    line-height: 1.5;
}

.video-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* hover dark overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.1s;
  pointer-events: none;
}



.play {
  font-size: 50px;
  color: white;
  opacity: 0;
}



/* CINEMA MODE */
.cinema {
    position: fixed;
    insert: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);

    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    
    z-index: 9999;
}

#fullscreenBtn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    right: 8px;
}

.close,
#fullscreenBtn {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 10;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.close {
    position: absolute;
    top: 8px;
    right: 10px;
    left: auto;
    transform: none;
    opacity: 1;
    transition: opacity 0.5s ease;

    padding: 8px;
    margin: -8px;
}

.cinema video {
  width: 100%;
  display: block;
  background: black;
}

/* dark background optional */
.cinema::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: -1;
}

.hidden {
  display: none;
}

/* controls */
.controls {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);

    width: 50%;          
    max-width: 900px;

    opacity: 1;
    transition: opacity 0.5s ease;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 10;
}

.cinema-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    background: rgba(255, 248, 40, 0);
    transition: 0.5s;
    opacity: 1;
}



.cinema-play {
    font-size: 60px;
    color: white;
    opacity: 0;
    transition: 0.5s;
}





#progress {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 10px;

    cursor: pointer;

    --progress: 0%;

    background: linear-gradient(
        to right,
        rgba(255, 207, 149, 0.5) var(--progress),
        rgba(255, 255, 255, 0.25) var(--progress)
    );

    outline: none;

    border-radius: 0;   
}



#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
}

#progress::-moz-range-thumb {
    width: 0;
    height: 0;
    border: none;
}

#progress::-webkit-slider-runnable-track {
    height: 40px;
    background: transparent;
    border-radius: 0;
}

#progress::-moz-range-track {
    height: 40px;
    background: transparent;
    border: none;
}



#time {
    color: white;
    font-size: 12px;
    opacity: 0.8;
}



.cinema.hide-ui {
    cursor: none;
}



.cinema-overlay,
.controls,
.close,
#fullscreenBtn {
    transition: opacity 0.5s ease;
}

.cinema .controls,
.cinema .close,
.cinema .time,
.cinema #fullscreenBtn,
.cinema .cinema-overlay {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.cinema.hide-ui .cinema-overlay,
.cinema.hide-ui .time,
.cinema.hide-ui .controls,
.cinema.hide-ui .close,
.cinema.hide-ui #fullscreenBtn {
    opacity: 0;
    pointer-events: none;
}

.work-indicator {
    visibility: hidden;
    position: relative;
    text-align: center;
    color: #c9a227;
    z-index: 2;
    margin-top: 40px;
    margin-bottom: 30px;
    transform: translateY(-130px);
}

.work-indicator span {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.arrow {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}



.backdrop {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    pointer-events: none;
    
    z-index: 9998;

    transition: opacity 0.5s ease;
}

.fs-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;

    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;

    opacity: 0.9;
    transition: 0.5s;
}

.fs-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cinema-inner {
    position: relative;
    z-index: 2;

    width: 90vw;
    
    max-width: 1200px;
    max-height: 90vh;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    --ui-scale: 1;

    display: flex;
    flex-direction: column;

    background: black;

    border-radius: 0px;
    overflow: hidden;

    box-shadow: 
        0 30px 120px rgba(0, 0, 0, 0.9),
        0 10px 40px rgba(0, 0, 0, 0.6);
}

#cinemaVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex: none; /* remove flex behavior */
}

.cinema-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );

    pointer-events: none;

    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1;
    display: none;
}

.hide-ui .cinema-inner::after {
    opacity: 0;
}

.cinema-inner::after {
    display: none;
}

.time {
    position: absolute;
    bottom: 8px;   
    left: 12px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.25); 

    font-weight: 500;

    z-index: 10;

    transition: opacity 0.5s ease;
}

.cinema .time {
    color: rgb(176, 65, 65);
}
.cinema.hide-ui .time {
    opacity: 0;
    pointer-events: none;
}







.cinema.hide-ui .time {
    opacity: 0 !important;
    transition: opacity 1s ease;
    pointer-events: none;
}

.time {
    color: rgb(255, 204, 156) !important;
    font-weight: 700;
}

main{
    overflow:hidden;
}

.page-slider{
    display:flex;
    width:300vw;
    transform:translateX(-100vw);
    transition:transform .7s cubic-bezier(.7,0,.2,1);
}



.page{
    width:100vw;
    flex-shrink:0;
}

.about-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding-top:140px;
}

.hero-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;

    position: relative;
    z-index: 999;
}

.hero-nav a {
    display: inline-block;
    position: relative;
    z-index: 1000;

    color: black;
    text-decoration: none;

    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;

    opacity: 0.8;
    cursor: pointer;

    transition: opacity 0.3s, color 0.3s;
}

.hero-nav a:hover {
    opacity: 1;
    color: #2f6f4e;
}

.header-content nav {
    display: none;
}