/* ================================
   Full style.css
   ================================ */

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffdfac; /* global page background */
  color: #3b2f23;
  overflow-y: auto;
  scroll-behavior: smooth; /* smooth scroll */
}

/* Optional: page snap so each section snaps to viewport */
:root {
  --enable-snap: 1; /* set to 0 to disable snap */
}
@supports (scroll-snap-type: y mandatory) {
  html, body {
    scroll-snap-type: y var(--enable-snap, mandatory);
  }
  section { scroll-snap-align: start; }
}

/* ---------- Utility ---------- */
.container-center { display:flex; justify-content:center; align-items:center; }

/* ---------- Shared animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- SECTION 1 - HERO (full page) ---------- */
.hero {
  min-height: 100vh;                 /* full viewport */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background-color: #ffdfac;         /* keep original plain bg */
}

/* centered content */
.content {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.2rem;
  width:100%;
  max-width: 920px;
  padding: 0 1rem;
}

/* character image */
.character {
  width: 400px;
  max-width: 70vw;
  animation: float 3s ease-in-out infinite;
  display:block;
}

/* tagline */
.tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3b2f23;
  margin-top: 0.25rem;
}

/* EXPLORE button (main) */
.explore-btn {
  --outline: #000;
  background: #7a4d1d;               /* brown-ish center button */
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.75rem 2rem;
   text-decoration: none;       /* removes underline */
  border-radius: 6px;
  border: 3px solid var(--outline);
  box-shadow: 4px 4px 0 var(--outline);
  transform: rotate(-1deg);
  cursor: pointer;
  margin-top: 0.4rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.explore-btn:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 7px 7px 0 #000; }

/* ---------- Small icon buttons group ---------- */
.links {
  display:flex;
  gap: 0.6rem;
  margin-top: 1rem;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* Accept both class names (.btn and .link-btn) */
.btn, .link-btn {
  display:inline-flex;
  align-items:center;
  gap:0.45rem;
  background: #492700;               /* orange fill */
  color: #fff;
  font-weight: 700;
  text-decoration: none;   
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border: 3px solid #000;            /* thick black outline */
  border-radius: 6px;
  box-shadow: 3px 3px 0 #000;        /* cartoon shadow */
  transform: rotate(-1.6deg);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  white-space: nowrap;
}
.btn img, .link-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display:block;
}

/* Only-icon buttons: smaller padding */
.btn:only-child, .link-btn:only-child,
.btn:not(:has(span)), .link-btn:not(:has(span)) {
  padding: 0.45rem 0.65rem;
}

/* hover */
.btn:hover, .link-btn:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 6px 6px 0 #000;
}

/* Accessible focus */
.explore-btn:focus, .btn:focus, .link-btn:focus {
  outline: 3px solid rgba(0,0,0,0.12);
  outline-offset: 3px;
}

/* ---------- SECTION 2 - ABOUT (full page) ---------- */
.about {
  min-height: 100vh;                 /* full viewport */
  background: linear-gradient(180deg, #7a4313 0%, #492700 100%);
  /* Explanation:
     - top color (#7a4313): warm orange-brown (like your uploaded sample)
     - bottom color (#492700): dark chocolate brown
  */
  color: #fff4d4;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 4rem 1.5rem;
  text-align: left;
}

/* content wrapper */
.about-content {
  display:flex;
  align-items:center;
  gap:3rem;
  max-width: 1100px;
  width: 100%;
  justify-content: space-between;
}

/* left image */
.about-image img {
  width: 480px;
  max-width: 44vw;
  animation: float 3s ease-in-out infinite;
  display:block;
}

/* right text */
.about-text {
  max-width: 540px;
  line-height: 1.6;
}
.about-text h2 {
  font-size: 2.8rem;
  color: #ffba47;
  margin-bottom: 1rem;
  font-weight: 800;
}
.about-text p { margin-bottom: 1rem; font-size: 1rem; color: #fff4d4; }
.about-text strong { color: #ffdd8a; }

/* ---------- Responsive rules ---------- */
@media (max-width: 1000px) {
  .character { width: 320px; }
  .about-image img { width: 300px; max-width: 55vw; }
  .about-text h2 { font-size: 2.2rem; }
  .about-content { gap: 1.6rem; }
}

@media (max-width: 760px) {
  .content { gap: 0.9rem; padding: 0 1rem; }
  .character { width: 260px; }
  .tagline { font-size: 1rem; }
  .explore-btn { padding: 0.6rem 1.4rem; }
  .btn, .link-btn { padding: 0.36rem 0.7rem; font-size: 0.86rem; }
  .about-content { flex-direction: column; text-align:center; padding-top: 2rem; padding-bottom:2rem; }
  .about-text { max-width: 95%; }
  .about-image img { width: 240px; }
  .about-text h2 { font-size: 2rem; }
}

/* very small screens */
@media (max-width: 420px) {
  .character { width: 200px; }
  .about-image img { width: 200px; }
  .explore-btn { font-size: 0.95rem; padding: 0.5rem 1rem; }
  .btn, .link-btn { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
}


/* --------------------
   SECTION 3 - MEME GALLERY
   -------------------- */
/* Section3 */

.gallery{
  background: var(--bg);
    background: linear-gradient(135deg, #fab780, #fab780);
  padding: 80px 32px;
  text-align: center;
}

.gallery-wrap{
  max-width: 1480px;
  margin: 0 auto;
}

.gallery-title{
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 90px;
    line-height: .95;
    letter-spacing: 4px;
    
    text-transform: uppercase;
    color: var(--about-white);
  paint-order: stroke fill;

  margin-bottom: 48px;


  
}

/* 7 columns on large screens, then responsive down to 4 / 3 / 2 */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)); /* exactly 7 columns */
  gap: 24px;
}

/* keep tiles square and responsive */
.gallery-grid a{
  position: relative;        /* allow absolutely positioned child */
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;                /* ensure no inner space */
}

.gallery-grid img{
  position: absolute;
  inset: 0;                  /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crop to fill */
  object-position: center;   /* center the image */
  display: block;
  -webkit-user-drag: none;   /* optional: prevents dragging in some browsers */
}


/* Hover */
.gallery-grid a:hover{
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Responsive breakpoints — adjust as needed */
@media (max-width: 1200px){
  .gallery-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); gap:20px; }
}
@media (max-width: 992px){
  .gallery-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; }
}
@media (max-width: 768px){
  .gallery-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:16px; }
  .gallery-title{ font-size: 54px; }
}
@media (max-width: 480px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
}
