/*GLOBAL VARIABLES*/
:root{
  --bg:#000;
  --fg:#fff;
  --muted:#bdbdbd;
  --accent:#ffffff;
  --menu-bg:rgba(0,0,0,0.9);
  --focus:#5ac8fa;
  --offset:0px;
}

/* GLOBAL RESET & BASE ELEMENTS */
*{ box-sizing:border-box; }

html, body{
  scroll-behavior:smooth;
  scroll-padding-top: var(--offset);
  scrollbar-width:none;
  -ms-overflow-style:none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{ display:none; }

body{
  margin:0;
  font-family: Helvetica, "Times New Roman", -apple-system, Segoe UI, Roboto,  Arial, sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.2;
}

img{
  max-width:100%;
  display:block;
}

/*TYPOGRAPHY*/
a{
  font-size:1.2em;
}

p{
  font-size:1.2em;
}

h1{
  font-family:Helvetica, sans-serif;
  font-size:4em;
}

h2{
  font-family:Helvetica, sans-serif;
  font-size:2em;
}

h3{
  font-family:Helvetica, sans-serif;
  font-size:1.4em;
}

h4{
  font-family:Helvetica, sans-serif;
  font-size:2em;
  padding: 2vw;
  margin: 0;
}

/*NAVIGATION MENU + BUTTON*/
.menu a{
  color:var(--fg);
  font-size: 1.5em;
  font-family:Helvetica;
  text-decoration:none;
}
.menu a:hover{ color:red; cursor:pointer; }

#Contact a{
  text-decoration:underline;
  color:white;
  pointer-events:auto;
}
#Contact a:hover{ color:red; }

.menu-button{
  position:fixed; 
  top:3svh; right:3svh;
  border:none; border-radius:80%;
  background:var(--menu-bg);
  color:var(--fg);
  display:grid; place-items:center;
  cursor:pointer;
  z-index:10;
  box-shadow:0 6px 16px rgba(0,0,0,0.35);
}

.menu-button:focus-visible{
  outline:1vw solid var(--focus);
  outline-offset:1vw;
}

.menu-button:hover{
    background-color: red;
      }
/* The container for the whole icon */
.menu-icon {
  width: 4em;
  height: 4em;
  position: relative;
}

/* All three lines (top + middle + bottom) */
.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: .15em;              /* thickness of each line */
  background: var(--fg);    /* color defined elsewhere */
  border-radius: 2px;       /* slightly rounded edges */
}

/* TOP line */
.menu-icon::before {
  top: 1.2em;
}

/* MIDDLE line */
.menu-icon span {
  top:1.9em
}

/* BOTTOM line */
.menu-icon::after {
  bottom: 1.2em;
}

/* ---------- Menu Panel ---------- */
.menu{
  position:fixed; top:3svh; right:5vw;
  background:var(--menu-bg);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:10px;
  width:min(350px, 85vw);
  opacity:0;
  transform:translateY(-8px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:10020;
}

.menu.open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.menu ul{
  list-style:none;
  margin:0; padding:0;
}

.menu li{
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.menu li:last-child{ border-bottom:none; }

.menu a{
  display:block;
  padding:10px 12px;
}

/* ============================================================
   LAYOUT BLOCKS (Shared)
   ============================================================ */
.container{
  max-width:100vw;
  margin:0 auto;
}

section{
  scroll-margin-top:var(--offset);
  min-height:100svh;
  width:100vw;
  margin-bottom:10svh;
  padding:0;
}

#About, #Contact, #Moort{
  min-height:100svh;
  width:100vw;
  position:relative;
}

#Contact {   
padding-top: 8svh;
    }

#About{
display: grid;
place-items: center;
padding: 8svh 0;
}

.Textbox{
  width:500px;
  max-width:90vw;
  margin:0 auto;
  position:static;
  top:auto;
  left:auto;
  }

.Textbox h1{ text-align:left; }

/* ============================================================
   HOME SECTION ELEMENTS
   ============================================================ */

/* ---- Animated Bungaan Header ---- */
.Bungaan{
  position:absolute;
  top:0; 
  left:50%;
  transform: translateX(-50%);
  width:100vw;
  display:flex;
  justify-content: center;
  white-space:nowrap;
  color:white;
  pointer-events:none;
  z-index:-1;
}

.Bungaan span{
  font-size:12vw;
  width:100vw;
  min-width:350px;
  text-align:center;
  display: block;
}

/* ---- Portrait ---- */
.joanne{
  position:absolute;
  bottom:0svh;
  left:4vw;
  max-height:70svh;
  display:flex;
  align-items:flex-end;
}

.joanne img{
  max-height: 50svh;
  object-fit:contain;
}

/* ---- Turtle BG ---- */
.Turtle{
  position:absolute;
  top:55%; left:50%;
  transform:translate(-50%, -50%);
  max-height:50svh;
  opacity:.6;
  z-index:-2;
  display:flex;
  justify-content:center;
  align-items:center;
}

.Turtle img{
  max-width:80vw;
  max-height:70svh;
  animation:breathe 60s ease-in-out infinite alternate;
  transform-origin:center bottom;
}

/* ---- Quote ---- */
.Quote{
  display: none;
  width:30svh;
  font-family:Helvetica;
  font-style:oblique;
  position:absolute;
  right:10vw;
  top: 17svh;
}

/* ---- Cockatoo ---- */
.cockatoo img{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:3svh;
  min-width:300px;
  max-height:50svh;
  opacity:.5;
}

/*---- Grids (Moort + Artworks) ----*/
    #Moort {
    margin-bottom: 20svh; /* Adjust the value as needed */
    }

/* Moort: full-bleed flex */
    .moort-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
    @media (min-width: 640px){ .moort-grid{ grid-template-columns:1fr 1fr; } }
    @media (min-width: 4800px){ .moort-grid{ grid-template-columns:1fr 1fr 1fr; } }

/* Items */
    .moort-item {
      position:relative;
      margin: 0;
      padding: 2px;
      overflow: hidden;
      text-align: center;
    }
    
    .moort-item {
      display: flex;
      flex-direction: column;
      align-items: center; /* centers content horizontally */
      margin: 0;
      padding: 2px;
      overflow: hidden;
}

    .moort-item img {
      width: 100%;
      max-width: 500px;
      height: clamp(20svh, 60vh, 90svh);
      object-fit: cover;
      object-position: top;
    }

    .moort-item figcaption{
      text-align: center;
      position:absolute; left:0; right:0; bottom:0;
      padding:10px 12px; font-size:0.9rem; color:#ddd;
      background: linear-gradient(transparent, rgba(0,0,0,0.65));
      opacity:0; transition:opacity .2s ease; pointer-events:none;
    }
    .moort-item:hover figcaption{ opacity:1; }

    /* Artworks: full-bleed grid */
    #Works{
        margin-top: 0svh;
        margin-bottom: 12svh;
        }

    .artworks-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
    @media (min-width: 640px){ .artworks-grid{ grid-template-columns:1fr 1fr; } }
    @media (min-width: 1024px){ .artworks-grid{ grid-template-columns:1fr 1fr 1fr; } }

    .artwork{ 
        position:relative;
        margin:0; 
        background:#111; 
        }

    .artwork img{
        width:100%; 
        height: clamp(20svh, 40vw, 44svh);
        object-fit:cover; object-position:center;
        }

    .artwork figcaption{
      position:absolute; left:0; right:0; bottom:0;
      padding:10px 12px; font-size:1.2em; color:#ddd;
      background: linear-gradient(transparent, rgba(0,0,0,0.65));
      opacity:0; transition:opacity .2s ease; pointer-events:none;
    }

    .artwork:hover figcaption{ opacity:1; }

/* ---- Lightbox ---- */

.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:40px 20px;
  overflow-y:auto;
  cursor:zoom-out;
  z-index:20000;
}

.lightbox-overlay.active{ display:flex; }

.lightbox-overlay img{
  max-width:95vw;
  max-height:80svh;
  object-fit:contain;
}

.lightbox-caption,
.lightbox-extra{
  color:#ccc;
  max-width:90vw;
  text-align:center;
  line-height:1.4;
}

.lightbox-caption{
  margin-top:16px;
  font-size:1rem;
}

.lightbox-extra{
  margin-top:12px;
  font-size:.95rem;
}

/* ---- Contact Section ---- */

    #Contact Textbox{
    padding-bottom: 15vh;
    }

.Trees{
  position:absolute;
  bottom:0;
  width:auto;
  max-width:600px;
  min-width:350px;
  opacity:.3;
  z-index:0;
}

.Trees img{
  width:100%;
  object-fit:contain;
}

footer{
  position:relative;
  z-index:10;
  text-align:center;
  margin-bottom:2svh;
  opacity:.7;
  padding:10px;
}

/*==============================
--------MOBILE SECTION ---------
==============================*/

@media (max-width:399px){

/* ---------- Menu ---------- */
  .menu{
    width:100vw;
  }

  .menu a{
    padding-left:6vw !important;
    font-size:1.2em;
  }

  .menu-button{
    transform:scale(1.2);
    
    right:10vw;
  }
  .menu-button:hover{ background:red; }

/* ---------- Section ---------- */
    #About, #Contact, Moort {
    min-height: unset;
    height: auto;
    }

/* ---------- Bungaan Text ---------- */

  .Bungaan span{
    font-size: 18vw;
    margin-top:13svh;
  }

/* ---------- Quote ---------- */

  .Quote{
    width:80vw;
    top:12svh;
    margin-left:50%;
    transform:translateX(-50%);
  }

  .Quote h3{
    font-size:5vw !important;
    line-height:1.3;
  }

  /* ---------- Mobile Section Spacing ---------- */
    section{ 
    margin-bottom:15svh !important; }

  #About, #Contact, #Moort{
    height:auto;
    min-height:100svh;
  }

    About{
    display: flex;
    place-items: flex-start;
    justify-content: center;
    padding: 0svh 0 10svh;
    position: relative;
    }

    #Home{
    height:auto;
    min-height:100svh;
  }

  /* ---------- Textbox ---------- */
    .Textbox{
    width:94vw !important;
    max-width:100vw;
    padding:0 6vw;
    top: 10svh;
    left:auto;
    position: static;
  }

    .Textbox h1{ font-size:1em;}
    .Textbox h2{ font-size:1.4em;}
    .Textbox p { font-size:1em;}

/*---- Trees full-width + footer sits on it ---- */
  .Trees{
    position: absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:100vw;
    height:auto;
    opacity:.35;
    z-index:-1;
  }

  .Trees img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:bottom;
  }

  footer{
    position:relative;
    bottom: 12svh;
    padding: 0svh;
  }
}

/*---- ANIMATIONS ----*/
@keyframes breathe{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.1); }
  100%{ transform:scale(1); }
}