/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a { outline:none; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f4f4f4;
    /* background: hsl(0, 0%, 83%); */
    color: #636363;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   HERO SECTION
   (Keep your existing hero section CSS here)
   ============================================ */

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 1;
    
}

.hero-arrow {
position: absolute;
    display:flex;
  justify-content: center;
  height: 45%;
  opacity: 0.25;
  z-index: 3;
  top: 49%;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.fadeOutRight-animation {
  animation: 6s fadeOutRight   cubic-bezier(0.47, 0, 0.745, 0.715)  ;
  opacity: 0;
}

.movedown-animation {
  animation: 6s movedown-animation   cubic-bezier(0.47, 0, 0.745, 0.715)  ;
  animation-delay: 200ms;
  animation-iteration-count: infinite;
  
}


@keyframes fadeOutRight {
  0% {
    transform: translatey(-5%);
    opacity: 0.2;
  }
  100% {
    transform: translateY(8%);
    opacity: 0;
  }
}

@keyframes movedown-animation {
  0% {
    transform: translatey(-4%);
    opacity: 0.0;
  }
  60% {
    opacity: 0.2;
  } 
  100% {
    transform: translatey(9%);
    opacity: 0.0;
}
}

.fadeInUp-animation {
  animation: 1.5s fadeInUp;
}

.project-title {
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 1em;
    margin-bottom: 1rem;
    margin-left: 5rem;
    line-height: 1;
    text-align: left;
    color: #666666
}

.mute-button {
    display: inline-block;  
    padding: 0.15rem 0.3rem;
    background-color: #1a1a1aaa;
    color: #bbbbbb;
    border:dashed 1px #333333aa;
    border-radius: 1px;
    cursor: pointer;
    position: absolute;
    bottom: -6%;
    left: 50%;
    transform: translateX(100%);
    z-index: 4;
}

/* ============================================
   PROJECT SECTIONS - GRID LAYOUTS
   ============================================ */

.project-section {
    /* SPACING between projects */
    padding: 8rem 0;
    /* Adjust: 4rem = tight, 8rem = medium, 12rem = spacious */
}

.project-grid {
    /* CONTAINER settings */
    max-width: 2600px;        /* Maximum width of content */
    margin: 0 auto;           /* Center the grid */
    padding: 0 4rem;          /* Side padding */
    
    /* GRID setup */
    display: grid;
    gap: 2rem;                /* Space between grid items */
    /* Adjust: 1rem = tight, 2rem = comfortable, 3rem = spacious */
    
    align-items: start;       /* Align items to top of grid cells */
}



/* --------------------------------------------
   LAYOUT 1: Tall left, wide right + text
   
   Grid structure:
   [  TALL   ] [  WIDE   ]
   [  VIDEO  ] [  TEXT   ]
   -------------------------------------------- */

.layout-1 {
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    grid-template-rows: auto auto;   /* Two rows, height adjusts to content */
}

.layout-1 .media-item.tall {
    grid-column: 1;           /* First column */
    grid-row: 1 / 3;          /* Spans both rows */
}

.layout-1 .media-item.wide {
    grid-column: 2;           /* Second column */
    grid-row: 1;              /* First row only */
}

.layout-1 .text-block {
    grid-column: 2;           /* Second column */
    grid-row: 2;              /* Second row */
    align-self: end;          /* Stick to bottom of grid cell */
}

/* --------------------------------------------
   LAYOUT 2: Wide left + text, tall right
   
   Grid structure:
   [  WIDE   ] [  TALL   ]
   [  TEXT   ] [  VIDEO  ]
   -------------------------------------------- */

.layout-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.layout-2 .media-item.wide {
    grid-column: 1;
    grid-row: 1;
}

.layout-2 .text-block {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}

.layout-2 .media-item.tall {
    grid-column: 2;
    grid-row: 1 / 3;          /* Spans both rows */
}

/* --------------------------------------------
   LAYOUT 3: Two tall items + text under left
   
   Grid structure:
   [  TALL   ] [  TALL   ]
   [  TEXT   ] [         ]
   -------------------------------------------- */

.layout-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.layout-3 .media-item.tall:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

.layout-3 .media-item.tall:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1 / 3;          /* Taller, spans both rows */
}

.layout-3 .text-block {
    grid-column: 1;
    grid-row: 2;
}

/* ============================================
   MEDIA ITEMS - Images & Videos
   ============================================ */

.media-item {
    position: relative;
    overflow: hidden;
    background: #111;         /* Fallback background while loading */
}

/* ASPECT RATIOS - Define proportions */

.media-item.tall .media-wrapper {
    /* PORTRAIT/TALL ratio */
    aspect-ratio: 9 / 9;     /* Vertical video (phone-like) */
    /* Other options:
       aspect-ratio: 3 / 4;    (More square portrait)
       aspect-ratio: 2 / 3;    (Standard portrait)
    */
}

.media-item.wide .media-wrapper {
    /* LANDSCAPE/WIDE ratio */
    aspect-ratio: 16 / 9;     /* Standard widescreen */
    /* Other options:
       aspect-ratio: 21 / 9;   (Ultrawide)
       aspect-ratio: 4 / 3;    (More square landscape)
    */
}

.media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Images and videos fill their containers */
.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Crop to fill, or use 'contain' to show full media */
    object-position: center;  /* Focus point: 'center', 'top', 'bottom', etc. */
    display: block;
}

/* ============================================
   TEXT BLOCKS
   ============================================ */

.text-block {
    padding: 2rem 0;          /* Vertical spacing around text */
    max-width: 600px;         /* Prevent text from getting too wide */
}

.text-block h2 {
    
    font-size: 2rem;
    font-weight: 400;         /* Light weight for minimalist look */
    letter-spacing: -0.02em;  /* Slightly tighter spacing */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b4b4b;              /* Slightly dimmed for hierarchy */
    margin-bottom: 1.5rem;
}

.footnote {
    font-size: 0.875rem;
    color: #888;              /* Subtle gray */
    font-family: 'Courier New', monospace; /* Monospace for technical feel */
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.footnote span {
    display: inline-block;
    margin-right: 1rem;
    color: #666;
}

/* ============================================
   TABLET RESPONSIVE (1024px and below)
   ============================================ */

@media (max-width: 1024px) {
    .project-section {
        padding: 4rem 0;      /* Reduce spacing between projects */
    }
    
    .project-grid {
        padding: 0 3rem;      /* Reduce side padding */
        gap: 1.5rem;          /* Tighter gap */
    }
    
    .text-block h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   MOBILE LANDSCAPE (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .project-section {
        padding: 4rem 0;
    }
    
    .project-grid {
        padding: 0 2rem;
    }
    
    /* ADJUST aspect ratios for tablet */
    .media-item.tall .media-wrapper {
        aspect-ratio: 3 / 4;  /* Less extreme vertical */
    }
    
    .text-block h2 {
        font-size: 1.5rem;
    }
    
    .text-block p {
        font-size: 0.95rem;
    }
}

/* ============================================
   MOBILE PORTRAIT (600px and below)
   Stack everything vertically
   ============================================ */

@media (max-width: 600px) {
    .project-section {
        padding: 3rem 0;
    }

    .hero-section {
    position: relative;
    width: 100vw;
    height: 40vh;
    overflow: hidden;
}

    .background-video {
        
        /* background-size: contain; /* Ensure the video covers the entire hero section on mobile */ 
        
    width: 118vh;
    top: 55%;
    left: 55%;
    /* min-width: 10%;
    min-height: 10%; */
    
    
    }

    .hero-content {
    position: relative;
    z-index: 2;
    
    align-items: center;
    justify-content: center;
    height: 50vw;
    width: 50vh;
    opacity: 0.0;
    
}

.hero-arrow {
position: absolute;
    display:flex;
  justify-content: center;
  height: 125%;
  opacity: 1;
  z-index: 5;
  top: 30%;
  left: 15%;
}


    /* SINGLE COLUMN layout for all patterns */
    .project-grid,
    .layout-1,
    .layout-2,
    .layout-3 {
        grid-template-columns: 1fr;  /* Single column */
        grid-template-rows: auto;    /* Auto rows */
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    /* Reset all grid positions - everything stacks naturally */
    .layout-1 .media-item.tall,
    .layout-1 .media-item.wide,
    .layout-1 .text-block,
    .layout-2 .media-item.wide,
    .layout-2 .text-block,
    .layout-2 .media-item.tall,
    .layout-3 .media-item.tall,
    .layout-3 .text-block {
        grid-column: 1;
        grid-row: auto;
    }
    
    /* MOBILE aspect ratios - make everything 16:9 for consistency */
    .media-item.tall .media-wrapper,
    .media-item.wide .media-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    /* TEXT adjustments */
    .text-block {
        padding: 1.5rem 0;
        max-width: 100%;
    }
    
    .text-block h2 {
        font-size: 1.5rem;
    }
    
    .text-block p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footnote {
        font-size: 0.8rem;
    }
}

/* ============================================
   VERY SMALL MOBILE (400px and below)
   ============================================ */

@media (max-width: 400px) {
    .project-grid {
        padding: 0 1rem;
    }
    
    .text-block h2 {
        font-size: 1.25rem;
    }
    
    .text-block p {
        font-size: 0.875rem;
    }
}

/* ============================================
   OPTIONAL: HOVER EFFECTS
   Add subtle interactions on desktop
   ============================================ */

@media (min-width: 1024px) {
    .media-wrapper {
        transition: transform 0.6s ease;
    }
    
    .media-item:hover .media-wrapper {
        transform: scale(1.02);  /* Slight zoom on hover */
    }
}

/* ============================================
   LOADING STATES
   Show placeholder while media loads
   ============================================ */

.media-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #111 0%,
        #1a1a1a 50%,
        #111 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.media-wrapper img,
.media-wrapper video {
    position: relative;
    z-index: 1;
}

/* Make entire project section clickable */
.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.85;
}

/* Optional: Add pointer cursor to show it's clickable */
.project-link {
    cursor: pointer;
}