@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --bg-color: rgb(211, 209, 209); 
  --text-color: #0a0a12;
  --nav-bg: rgba(190, 190, 190, 0.527); 
  --text-description: rgba(0, 0, 0, 0.837);
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
  background-color: var(--bg-color);
  color: #ffffff;
}

/* ------------------- Section Containers ------------------- */
.section-container,
.section-container-left,
.section-container-right {
  max-width: 1200px;
  padding: 2rem 1.5rem;
  margin: 3rem auto;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgb(222, 222, 222);
  background-color: hhh;
}

/* Left-aligned sections */
.section-container-left {
  text-align: left;
}

/* Right-aligned sections */
.section-container-right {
  text-align: right;
}

/* Dark variants */
.section-container-dark,
.section-container-left-dark,
.section-container-right-dark {
  background-color: rgba(173, 173, 173, 0.968);
  color: rgba(0, 0, 255, 0.972);
}

/* ------------------- Paragraphs inside sections ------------------- */
.section-container-left .paragraph,
.section-container-right .paragraph,
.section-container .paragraph {
  max-width: 650px;        /* control line length for readability */
  line-height: 1.6;
  font-size: 1.2rem;
  margin: 0.8rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* Left flush paragraphs */
.section-container-left .paragraph {
  margin-left: 0;
}

/* Right flush paragraphs */
.section-container-right .paragraph {
  margin-right: 0;
  margin-left: auto;
}

/* ------------------- Titles (h1/h2/h3) ------------------- */
.title-h1, .title-h2, .title-h3 {
  margin: 1rem 0;
}

/* Specific sizes & weights */
.title-h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.title-h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.title-h3 { font-size: 2rem; font-weight: 600; line-height: 1.3; }

/* ------------------- Alignment Helpers ------------------- */
/* Titles */
.title-left { text-align: left; }
.title-center { text-align: center; margin: 0 auto; }
.title-right { text-align: right; }

/* Paragraphs */
.paragraph-left { text-align: left; }
.paragraph-center { text-align: center; margin: 0 auto; }
.paragraph-right { text-align: right; margin-left: auto; }

/* Paragraph weight variations */
.paragraph-bold { font-weight: 600; }
.paragraph-light { font-weight: 300; font-size: 1rem; color: #ccc; }

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
  .section-container,
  .section-container-left,
  .section-container-right {
    max-width: 100%;
    margin: 2rem 1rem;
    padding: 1.5rem 1rem;
    text-align: left; /* easier to read on mobile */
  }

  /* Centered paragraph inside any container */
.paragraph-center {
  display: block;       /* ensures margin auto works */
  max-width: 600px;     /* limit width for readability */
  margin-left: auto;
  margin-right: auto;   /* centers the paragraph box */
  text-align: center;   /* centers text inside the paragraph */ 
  } 
}

body {
  color: rgba(0, 0, 255, 0.972);
  background: var(--bg-color);
  animation: moveBackground 10s ease-in-out infinite alternate;
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
}

body {
  cursor: none; /* hides default cursor on desktops */
}

.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4fc3f7;
  box-shadow: 0 0 35px #4fc3f7, 0 0 40px #29b6f6;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 1000;
  transition: width 0.2s, height 0.2s;
}

.cursor.expand {
  width: 80px;
  height: 80px;
}

.trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease-out;
}

@media (max-width: 768px) {
  .cursor, .trail {
    /* Show the cursor for touch events */
    display: block;
  }

  body {
    cursor: auto;
  }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}


.container {
  position: relative;
  margin: 2em 0;       /* remove auto centering */
  max-width: 100%;     /* full width */
  padding: 0 2rem;     /* optional inner spacing */
  text-align: left;    /* default left */
  z-index: 1;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.word,
.letter {
  display: inline-block;
  will-change: transform;
  font-family: "Nunito", sans-serif;
  position: relative;
  max-width: 1800px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.anime-header {
  font-size: clamp(2rem, 6vw, 70px); 
  color: blue;
  font-weight: 900;
  text-align: left;
  margin-bottom: 0 1rem;
  max-width: 1800px;
  width: 100%;
  text-align: left;
  padding: 0 0.5rem;
}

.anime-text {
  color: blue;
  font-size: clamp(1rem, 2.5vw, 20px); 
  line-height: 1.7;
  max-width: 1800px;
  width: 100%;
  text-align: left;
  padding: 0 2.5rem;
}

/* allwork css */

.terminal {
  background: rgba(227, 227, 227, 0.885);
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  margin: 50px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.089);
}

.typewriter {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: blue;
  white-space: pre-wrap; 
  min-height: 200px;
}

 .cursort {
      display: inline-block;
      width: 10px;
      background-color: #a3a3a352;
      animation: blink 1s step-start infinite;
    }

  @keyframes blink {
      50% {
        opacity: 0;
      }
    }

  .typed-text {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: blue;
  white-space: pre-wrap; 
  min-height: 200px;
    }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.project-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(38, 0, 255, 0.775);
  border-color: transparent;
}

.project-card img {
  width: 100%;
  border-radius: 6px;
}

.project-card h3 {
  margin-top: 10px;
}

.project-card p {
  margin: 0 16px 16px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}

.logo-img {
   height: 40px;
   margin-right: 2rem;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.6rem;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgb(3, 56, 249);
}

.hamburger {
  width: 24px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgb(8, 8, 154);
  position: absolute;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.hamburger span:first-child {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
  width: 70%;
}

.hamburger span:last-child {
  top: 18px;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  position: relative; 
  background: rgba(105, 106, 110, 0.227);
  border: 1px solid rgba(255, 255, 255, 0.332);
  border-radius: 25% 10% / 50% 20%;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  color: white;
  cursor: none;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 0; 
}

.nav-link:hover:after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 25% 10% / 50% 20%; 
  background: linear-gradient(
    45deg,
    #3a3af5,
    #3a3af5,
    #0f0fd3,
    #2307be,
    #0c0fe2,
    #070385
  );
  background-size: 400% 400%;
  animation: rotateBorder 6s linear infinite;
  z-index: -1; 
  filter: blur(4px);
  opacity: 0.75;
  pointer-events: none;
}

@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}

.nav-link:hover {
  background: rgba(0, 30, 255, 0.93);
  transform: translateX(5px);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 110%; 
  right: 0;
  background: rgb(203, 203, 203);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.629);
  min-width: 180px;
  z-index: 9999;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.has-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  border-radius: 10px;
  color: blue;
  text-decoration: none;
  padding: 10px 20px;
  transition: background 0.2s, color 0.2s;
  cursor: none;
}

.dropdown a:hover {
  background-color: blue;
  color: white;
  cursor: none;
}

#stickerContainer .sticker {
  position: fixed;
  width: clamp(60px, 6vw, 80px);         
  height: clamp(60px, 6vw, 80px);        
  font-size: clamp(1.2rem, 2.5vw, 2rem); 
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: grab;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.2s ease;
  padding: 0;
}

#stickerContainer .sticker img {
  width: 150%; 
  height: 150%;
  object-fit: contain;
  pointer-events: none;
}

.sticker:hover {
  transform: scale(1.1);
}

.sticker::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    #ff00cc,
    #00b7ff,
    #ffb700,
    #ff00cc,
    #00b7ff,
    #ffb700
  );
  background-size: 400% 400%;
  animation: rotateBorder 6s linear infinite;
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
  opacity: 0.85;
}

@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}

@media (max-width: 600px) {
  #stickerContainer .sticker {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(222, 222, 222, 0.987); 
  color: blue;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer a {
  color: #0077cc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    align-items: flex-start;
    background: rgb(28, 3, 255); 
    width: 50%;
    height: calc(30vh - 10px);
    padding: 2rem;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
  }

  .nav-link {
    background: blue !important; 
    color: white !important; 
    border-radius: none !important; 
    border: none !important; 
    backdrop-filter: none !important; 
    cursor: pointer !important; 
    font-weight: 500;
  }

  .nav-link:hover {
    background: rgb(189, 189, 190) !important; 
    transform: none !important; 
  }

  .dropdown {
    position: static;
    width: 100%;
    background: rgba(222, 222, 222, 0.987);
    border: none;
    padding: 0;
    padding-left: 0.05rem;
    margin-left: 0.05rem;
    display: none;
    box-shadow: none;
    transform: none;
  }

  .dropdown::before {
    display: none;
  }

  .has-dropdown.active .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown a {
    padding: 0.8rem 0.5rem;
    color: blue;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    display: block;
    text-decoration: none;
  }

  .dropdown a:hover,
  .dropdown a:focus {
    background: white; 
    color: #0000ff;
    outline: none;
  }
}

@media (max-width: 560px) {
  .nav-menu {
    width: 70%; 
    height: auto; 
    top: 60px; 
    padding: 1.5rem;
  }

  .nav-toggle {
    font-size: 1.6rem; 
    padding: 0.3rem;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.8rem 0.5rem;
  }

  .dropdown a {
    font-size: 0.9rem;
    padding: 0.7rem 0.5rem;
  }

  .nav-list {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .dropdown {
    padding-left: 0.5rem;
    margin-left: 0;
  }

  #stickerContainer .sticker {
    font-size: 1.4rem !important;
  }

}

@media (max-width: 800px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }

  .project-card img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    display: block;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .gallery {
    padding: 20px 10px;
    gap: 16px;
  }

  .project-card {
    border-radius: 10px;
  }

  .project-card img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    display: block;
  }

  .project-card h3 {
    margin: 12px;
    font-size: 1.1rem;
  }

  .project-card p {
    margin: 0 12px 12px;
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 4em auto 1em auto;
    max-width: 90%;
    padding: 0 1rem;
  }

  .anime-header {
    font-size: clamp(1.8rem, 5vw, 50px);
    padding: 0 1rem;
  }

  .anime-text {
    font-size: clamp(0.9rem, 2vw, 18px);
    padding: 0 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 30px 20px;
    gap: 20px;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .nav-menu {
    width: 60%;
    height: auto;
    top: 70px;
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 2em auto 1em auto;
    max-width: 95%;
    padding: 0 0.5rem;
  }

  .anime-header {
    font-size: clamp(1.5rem, 6vw, 35px);
    padding: 0 0.5rem;
  }

  .anime-text {
    font-size: clamp(0.8rem, 3vw, 16px);
    padding: 0 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 20px 10px;
    gap: 16px;
  }

  .project-card h3 {
    font-size: 1.1rem;
    margin: 10px 10px 8px 10px;
  }

  .project-card p {
    font-size: 0.85rem;
    margin: 0 10px 10px 10px;
  }

  .nav-menu {
    width: 100%;
    top: 60px;
    height: auto;
    padding: 1rem 1rem;
  }
}

@media (max-width: 800px) {
  .cursor {
    display: none;
  }

  body {
    cursor: default;
  }
}

@media (max-width: 768px) {
  .cursor {
    display: none;
  }

  body {
    cursor: default;
  }
}

@media (max-width: 560px) {
  .cursor {
    display: none;
  }

  body {
    cursor: default;
  }

  @media (max-width: 480px) {
  .cursor {
    display: none;
  }

  body {
    cursor: default;
  }
}

/* =========================================================
   GALLERY / CANVAS VIEWPORT (NO PRELOADER, NO SOUND)
   ========================================================= */

/* Prevent gallery from affecting other pages */
main {
  position: relative;
}

/* ===== VIEWPORT ===== */
.viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

/* Wrapper that GSAP drags + scales */
.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* Grid container */
.grid-container {
  position: relative;
  width: max-content;
  height: max-content;
}

/* Individual grid item */
.grid-item {
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(242, 19, 19, 0.15);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.02);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* =========================================================
   SPLIT SCREEN VIEW
   ========================================================= */

.split-screen-container {
  position: fixed;
  inset: 0;
  display: flex;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.5s ease;
}

.split-screen-container.active {
  opacity: 1;
  pointer-events: auto;
}

.split-left,
.split-right {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-left {
  background: rgba(0, 0, 0, 0.4);
}

.split-right {
  background: rgba(0, 0, 0, 0.2);
}

/* Image zoom target */
.zoom-target {
  width: 80%;
  height: 80%;
}

.zoom-target img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   IMAGE TITLE OVERLAY
   ========================================================= */

.image-title-overlay {
  position: fixed;
  bottom: 40px;
  left: 40px;
  max-width: 600px;
  color: blue;
  opacity: 0;
  z-index: 1001;
  pointer-events: none;
}

.image-slide-number span {
  font-family: "Kode Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

.image-slide-title h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 8px 0;
  font-weight: 700;
}

.image-slide-description p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-button {
  position: fixed;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.close-button svg {
  width: 48px;
  height: 48px;
}

/* =========================================================
   ZOOM CONTROLS
   ========================================================= */

.controls-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
  opacity: 0;
}

.percentage-indicator {
  font-family: "Kode Mono", monospace;
  font-size: 12px;
  color: blue;
}

.switch {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(173, 51, 51, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 6px;
}

.switch-button {
  background: none;
  border: none;
  font-family: "Kode Mono", monospace;
  font-size: 11px;
  color: rgba(0, 0, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

body.dragging {
  cursor: grabbing;
}

body.zoom-mode {
  cursor: default;
}

.preloader-overlay {
  background: #000;
}

/* Header and Footer */
.header,
.footer {
  position: fixed;
  left: 0;
  width: 100vw;
  padding: 1.5rem;
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--spacing-base);
  pointer-events: none;
  opacity: 0;
}

.header > *,
.footer > * {
  pointer-events: auto;
}

.header {
  top: 0;
}

.footer {
  bottom: 0;
}

/* Grid column assignments */
.nav-section {
  grid-column: 1 / span 3;
}

.values-section {
  grid-column: 5 / span 2;
}

.location-section {
  grid-column: 7 / span 2;
}

.contact-section {
  grid-column: 9 / span 2;
}

.social-section {
  grid-column: 11 / span 2;
  text-align: right;
}

/* Bottom bar */
.coordinates-section {
  grid-column: 1 / span 3;
  font-family: "TheGoodMonolith", monospace;
}

.info-section {
  grid-column: 9 / span 4;
  text-align: right;
}

.circle {
  position: absolute;
  border-radius: 50%;
  transition: transform var(--transition-medium);
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--color-text);
  top: 50%;
}

.circle-1 {
  left: 0;
  transform: translate(0, -50%);
}

.circle-2 {
  left: 0.8rem;
  transform: translate(0, -50%);
  mix-blend-mode: exclusion;
}

.logo-container:hover .circle-1 {
  transform: translate(-0.5rem, -50%);
}

.logo-container:hover .circle-2 {
  transform: translate(0.5rem, -50%);
}

/* Key hint styling */
.key-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid var(--color-text);
  border-radius: 3px;
  font-size: 12px;
  margin: 0 3px;
  min-width: 20px;
  height: 20px;
}

/* Footer text styling */
.footer p {
  font-family: "TheGoodMonolith", monospace;
}

/* Global link styling */
a {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  display: inline-block;
  z-index: 1;
  text-decoration: none;
  font-size: var(--font-size-base);
  opacity: 1;
  transition: color var(--transition-medium);
  font-weight: 700;
}

a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-text);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: black;
  mix-blend-mode: difference;
  opacity: 1;
}

p {
  display: block;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01rem;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

h3 {
  font-size: 14px;
  margin-bottom: var(--spacing-base);
  font-weight: 600;
  color: #fff;
}

.viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
}

.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  isolation: isolate;
}

.grid-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.grid-item {
  position: absolute;
  width: 320px;
  height: 320px;
  background: #000;
  cursor: pointer;
  will-change: transform, opacity;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.grid-item.out-of-view {
  opacity: 0.1;
}

.grid-item.selected {
  z-index: 2 !important;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Split Screen Layout */
.split-screen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.split-screen-container.active {
  opacity: 1;
  pointer-events: all;
}

.split-left {
  position: relative;
  width: 50vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  cursor: pointer;
}

.split-right {
  position: relative;
  width: 50vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  cursor: pointer;
}}



.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 30px;
  padding: 60px;
  max-width: 1100px;
  margin: auto;
}


.popup {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  overflow-y: auto;
}

.popup-layout{
  display:flex;
  flex-direction:column;
  gap:25px;
  width:100%;
}

.popup-content {
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  color: #000;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
}

#popupPreview {
  width: 100%;
  height: 70vh;
  border: none;
  margin-top: 20px;
  border-radius: 6px;
}

#popupImages img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
}

#popupLinks{
  width:100%;
}

#popupLinks video{
  object-fit:contain;
  background:black;
}

.popup-content{
  animation: popupFade .3s ease;
}

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