/* ----------------------------------------------------
   FONT IMPORTS
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100..900;1,100..900&display=swap');

/* ----------------------------------------------------
   GLOBAL
---------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Instrument Serif", serif;
    background-color: #ededed;
    color: #101010;
}

/* Nav gradients handled in nav.css (fallback here) */
body.home nav.top-section {
    background: linear-gradient(to bottom, rgba(100, 31, 9, 1), rgba(100, 31, 9, 0));
}

body:not(.home) nav.top-section {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* ----------------------------------------------------
   BACKGROUND CANVAS
---------------------------------------------------- */
#kolam-wrap {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ----------------------------------------------------
   MAIN CONTAINER (STRUCTURE ONLY)
---------------------------------------------------- */
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: relative;
}

/* ----------------------------------------------------
   CENTER SECTION
---------------------------------------------------- */
.center-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-section .plus {
    display: none !important;
}

/* ----------------------------------------------------
   HOME — BOTTOM HERO
---------------------------------------------------- */
.bottom-section {
    text-align: left;
    padding: 1.6rem ;
    width: fit-content;          /* ← key */
    max-width: none;
    align-self: flex-start; 
}

.bottom-section .name {
    display: block;
    color: #ECDAB4;
    font-family: "Instrument Serif", serif;
    font-size: 6.2rem;
    font-weight: 300;
    line-height: 1.05;
}

.bottom-section .tagline {
    margin-top: -12px;
    color: #ECDAB4;
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    /* letter-spacing: 0.3px; */
    opacity: 0.9;
    white-space: nowrap;
}

.bottom-section .tagline .sep {
    margin: 0 6px;
    opacity: 0.6;
}

/* ----------------------------------------------------
   WORK PAGE LAYOUT — DESKTOP
---------------------------------------------------- */
.work-layout {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 10vh);
    overflow: hidden;
}

/* Left title column (DESKTOP ONLY) */
.work-title-container {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Page title */
.page-title {
    font-family: "Instrument Serif", serif;
    font-size: 6.4rem;
    font-weight: 400;
    /* color: #641F09; */
    padding-left: 30px;
}

/* ----------------------------------------------------
   PROJECT GRID — DESKTOP
---------------------------------------------------- */
.projects-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    overflow-y: auto;
    padding: 200px 25px 40px 0;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 90%;
}

.grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.grid-item-title h3 {
    margin: 0 0 5px;
    font-weight: 300;
    font-size: 1.5rem;
}

.date {
    font-family: "Lato", sans-serif;
    font-size: 0.8rem;
    color: #808080;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ----------------------------------------------------
   PROJECT TILE HOVER — FIX TEXT ABOVE GRADIENT
---------------------------------------------------- */
.grid-item-image {
    position: relative;
    z-index: 0;              /* creates stacking context */
    min-height: 260px;
    padding: 10px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: #101010;
    text-decoration: none;
}


.grid-item-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 1) 90%
    );

    opacity: 0;
    transition: opacity 0.3s ease;

    z-index: 1;              /* ← BELOW text */
    pointer-events: none;
}


.grid-item-image p {
    position: relative;
    z-index: 2;                 /* text ABOVE gradient */
    margin: 0;              /* ← removes browser default gap */
    padding: 0;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.4;

    color: #101010;
    text-decoration: none;

    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item-image:hover::after,
.grid-item-image:hover p {
    opacity: 1;
}

/* ----------------------------------------------------
   COVER IMAGES
---------------------------------------------------- */
.ATF-cover { background-image: url('assets/images/ATFcover.jpg'); }
.mishti-cover { background-image: url('assets/images/mishticover1.jpg'); }
.echoes-cover { background-image: url('assets/images/echoes/echoescover.jpeg'); }
.tacto-cover { background-image: url('assets/images/tactotunescover.jpg'); }
.gi-cover { background-image: url('assets/images/gi/gicoverf.jpg'); }
.handinhand-cover { background-image: url('assets/images/hnhcover.jpg'); }
.dbp-cover { background-image: url('assets/images/dbpcover2.jpg'); }
.visorch-cover { background-image: url('assets/images/visorchcover1.jpg'); }
.rnz-cover { background-image: url('assets/images/rnz/rnz1.jpg'); }
.breakfast-cover { background-image: url('assets/images/breakfast/breakfast1.png'); }
.reel-cover { background-image: url('assets/images/reelcover.jpg'); }

/* ==============================
   HOME INFO BUTTON + MODAL
============================== */
body:not(.home) .info-fab,
body:not(.home) .info-modal {
  display: none !important;
}
/* When info text is open, hide the button */
body.info-open .info-fab {
    opacity: 0;
    pointer-events: none;
  }
  

.info-fab{
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;

  width: 2rem;
  height: 2rem;
  border-radius: 999px;

  background: transparent;
  border: 2px solid #ECDAB4;
  color: #ECDAB4;

  display: grid;
  place-items: center;

  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.info-fab span{
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.info-fab:hover{
  opacity: 0.85;
  transform: translateY(-2px);
}

.info-fab:focus-visible{
  outline: 2px solid #ECDAB4;
  outline-offset: 4px;
}




/* Modal wrapper = full-screen overlay */
.info-modal{
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
  
    /* NEW: diagonal full-screen gradient overlay */
    background: radial-gradient(
        140% 120% at 100% 100%,
        rgba(100, 31, 9,1) 0%,
        rgba(100, 31, 9, 0.85) 35%,
        rgba(100, 31, 9, 0) 55%,
        rgba(100, 31, 9, 0) 75%
      );
  }
  
  .info-modal.is-open{
    display: block;
  }
  
  /* Keep the panel as your text layout */
  .info-panel{
    position: absolute;
    right: 1.8rem;
    bottom: 0.5rem;
  
    width: min(27rem, calc(100vw - 56px));
    padding: 0;                 /* remove background padding if you want */
    background: transparent;    /* IMPORTANT: panel no longer needs its own bg */
    text-align: right;
  }
  
  /* Make the text readable on overlay */
  .info-panel p{
    /* margin: 0 0 12px; */
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.4rem;
    color: #ECDAB4;
  }
  


.info-close{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #641F09;
  font-size: 0.2rem;
  cursor: pointer;
}

.info-links{
  display: flex;
  gap: 14px;
}

.info-links a{
  font-family: "Instrument Serif", serif;
  font-size: 0.2rem;
  color: #641F09;
  text-decoration: none;
}

.info-links a:hover{
  opacity: 0.7;
}

/* ----------------------------------------------------
   RESPONSIVE — TABLET
---------------------------------------------------- */
@media (max-width: 1024px) {

    .projects-container {
        padding: 150px 20px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-item-image {
        min-height: 220px;
    }

    .bottom-section .name {
        font-size: 4rem;
    }
}

/* ----------------------------------------------------
   RESPONSIVE — MOBILE
---------------------------------------------------- */
@media (max-width: 768px) {

    /* HOME — hero text */
    .bottom-section {
        width: 100%;
        padding: 12px 20px 24px;
        box-sizing: border-box;
    }

    .bottom-section .name {
        width: 100%;
        font-size: min(20vw, 5.6rem);
        white-space: nowrap;
        overflow: hidden;
    }

    .bottom-section .tagline {
        margin-top: 6px;
        font-size: min(3.8vw, 1.9rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* WORK — mobile only */
    .work-layout {
        flex-direction: column;
    }

    .work-title-container {
        display: none;
    }

    .projects-container {
        display: block;
        padding: 120px 20px 40px;
        overflow-x: hidden;
    }
    /* .grid-item-title h3 {
        font-size: 3.6rem;
    } */

    .grid {
        width: 100%;
        margin: 0;
    }


    /* small icon button in top-left */
    .info-fab{
      top: 1.2rem;
      left: 1rem;
      right: auto;
      bottom: auto;
  
      width: 1.5rem;
      height: 1.5rem;
      border-width: 1.5px;
      z-index: 2600; /* above overlay */
    }
  
    .info-fab span{
      font-size: 0.95rem;
      transform: translateY(-0.5px);
    }
  
    /* overlay gradient: from top-left outward */
    .info-modal{
      z-index: 2500;
      background: radial-gradient(
        140% 120% at 0% 0%,
        rgba(100, 31, 9, 1) 0%,
        rgba(100, 31, 9, 0.85) 35%,
        rgba(100, 31, 9, 0.2) 55%,
        rgba(100, 31, 9, 0) 75%
      );
    }
  
    /* info text panel moves to top-left */
    .info-panel{
      top: 2rem;     /* sits below nav area */
      left: 1rem;
      right: auto;
      bottom: auto;
  
      width: min(14rem, calc(100vw - 32px));
      text-align: left;
    }
  
    .info-panel p{
      font-size: 0.9rem;
      line-height: 1.1rem;
    }
  }
  

/* ----------------------------------------------------
   RESPONSIVE — SMALL DEVICES
---------------------------------------------------- */
@media (max-width: 480px) {

    .grid-item-title h3 {
        font-size: 1.4rem;
    }
}
