html {
  scroll-behavior: smooth;
}
:root {
  --bg: #121212;
  --text: #e7e4d8;
  --accent: #ff8142;
  --detail: #6b4226;

  --light-bg: #fdfbf7;
  --light-text: #121212;
  --light-accent: #ff8142;
  --light-detail: #e6cfc0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s ease,color 0.4s ease;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  width: 12px;
  height: 12px;
  background-color: #ffffff; 
  position:fixed;
  top: 0;
  left: 0;
  
  pointer-events: none;
  z-index: 10000;
}

@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none !important;
  }

  body {
    cursor: default !important;
  }
}


body.light-mode .cursor {
  background-color: #000000; 
}
body.light-mode{
  background-color:var(--light-bg);
  color:var(--light-text);
}


header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
header h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -1px;
}
header p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #aaa;
}



  .add-text {
  font-size: 1.2rem;
  color: #aaa
  opacity: 0.8;
  text-align: center;
  margin-top: 0.5rem;
}

body.light-mode header p{
  color:#555;}


/* 🔲 GRID */
.grid {
  column-count: 3; 
  column-gap: 1rem;
  padding: 1rem;
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}
.grid-item:hover img {
  transform: scale(1.02);
   filter: brightness(1.08);
  transition: filter 0.2s ease;
}


.grid-item:nth-child(15) img {
  object-fit: cover;
}


.grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease-out, filter 0.6s ease-out;
}


/* 🦶 Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #555;
  font-size: 0.9rem;
}



@media (max-width: 768px) {
  .grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .grid {
    column-count: 1;
  }
}

.toggle-wrapper {
  z-index: 9999; 
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 25px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color:#555;
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--bg);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

input:checked + .slider {
  background-color:#7c9e5a;
}

input:checked + .slider::before {
  transform: translateX(24px);
}


body.light-mode .slider::before {
  background-color: var(--light-bg);
}


body.light-mode .toggle-btn {
  color: var(--light-text);
  border-color: var(--light-accent);
}

.grid-item[data-orientation="landscape"] {
  width: 100%;
  grid-column: span 2; /* Makes it wider in the grid */
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0,0,0,0.8);
  display:none;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  z-index: 99;
  cursor: pointer;
}

.popup.show {
  visibility: visible;
  animation: popupFade 0.4s ease forwards;
}

.popup img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.scroll-down-indicator {
  text-align: center;
  font-size: 2.5rem;
  animation: bounce 1.2s infinite;
  color: #b8e276;
  margin-top: 10px;
  cursor: default;
  user-select: none;
  transition: opacity 0.3s ease;
}

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

