:root {
  --logo-top: clamp(1.5rem, 2.5vw, 2.5rem);
  --logo-side: clamp(1rem, 2.5vw, 2.5rem);
  --logo-size: clamp(6rem, 12vw, 12rem);
  --intro-bg: #000000;
  --showcase-bg: #0a0a1a;
  --last-impression-bg: #280332;

  --card-bg: rgba(32, 32, 64, 0.45);
  --card-bd: rgba(168, 37, 244, 0.25);
  --card-bd-hover: rgba(168, 37, 244, 0.45);
  --glass-blur: 10px;
  --ring: #a825f4;
  --ring-soft: rgba(168, 37, 244, 0.35);
  --accent: #cd9000;
  --cyan: #a7ffff;
}

* {
  cursor: none !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: monospace, "Merriweather", serif;
}

h1 {
  font-family: "Orbitron", "Inter", "Space Mono", "Share Tech Mono", monospace;
  font-size: clamp(0.5rem, 6vw, 5rem);
  text-align: center;
  margin: 0;
  color: #fcf2ff;
}
h2 {
  font-family: "Orbitron", "Inter", "Space Mono", "Share Tech Mono", monospace;
  font-size: clamp(0.5rem, 3vw, 2.5rem);
  text-align: center;
  letter-spacing: 0.3rem;
  margin: 0.5rem 0;
  color: #dbf1fc;
}
h3 {
  font-family: "Orbitron", "Inter", "Space Mono", "Share Tech Mono", monospace;
  font-size: clamp(0.3rem, 1.2vw + 0.5rem, 2.5rem);
  color: #bababa;
  margin-top: 1rem;
}
h4 {
  font-family: "Orbitron", "Inter", "Space Mono", "Share Tech Mono", monospace;
  font-size: clamp(0.3rem, 1.2vw + 0.5rem, 1.5rem);
  color: #bababa;
  margin-top: 1rem;
}

p {
  /* DO NOT increase the max in the clamp to be any higher! else ull break the Lab section layout */
  font-size: clamp(0.09rem, 1vw + 1rem, 1.1rem);
  color: #d7dce4;
  line-height: 1.6;
}

body {
  /* font-family: "Inknut Antiqua", "Playfair Display", serif; */
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #000000, #0a0a1a, #280332);
  overflow-x: hidden;
}

button {
  font-family: "Orbitron" monospace;
}

/* ================================== Custom Cursor =========================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #426df0c2;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 100005;
  transition: background 0.2s ease, transform 0.15s ease-out;
  /* mix-blend-mode:difference; */
}
/* Idle State */
.custom-cursor.idle {
  animation: pulse 1.5s infinite;
  background: #00698f;
}
/* Clicked State */
.custom-cursor.clicked {
  transform: translate(-50%, -50%) scale(1.5);
  background: #92dbff;
}
/* Hover on clickable */
.custom-cursor.hover {
  width: 24px;
  height: 24px;
  background: #e37fff;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition: all 0.2s ease;
}
/* Idle pulse animation */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}

/* x x x x x  x  x xx x x x x x  x x x x x x x x  x x x xx  x x x x x x x  x x x x x x x x */

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: #a825f4;
  z-index: 1000;
  transition: width 0.25s ease-out;
}

/* Navigation Arrow */
.nav-arrow {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 26px solid #a825f4c2; /* triangle pointing down */
  /*cursor: pointer;*/
  z-index: 999;
  animation: bounceNav 1.5s infinite;
}
.nav-arrow:hover {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 28px solid #00bfff;
  filter: drop-shadow(0 0 10px #00bfff91);
}
.nav-arrow::after {
  content: "";
  position: absolute;
  top: 100%; /* place it directly below the first triangle */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #a825f4c2;
}
.nav-arrow:hover::after {
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 20px solid #00bfff;
  filter: drop-shadow(0 0 10px #00bfff8a);
}
/* Bounce Animation */
@keyframes bounceNav {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Section Styling */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  padding: 1.5rem;
  flex-direction: column;
  /* text-align: center; */
  flex-wrap: wrap;
  box-sizing: border-box;
  color: white;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
} 
.full-section {
  height: 100vh;
  min-height: 100svh;
}
.desktop-full-section {
  height: 100vh;        /* desktop: full viewport */
  min-height: 100svh;   /* ensures safe viewport height */
}
@media (max-width: 768px) {
  .desktop-full-section {
    height: auto;       /* mobile: only as tall as content */
    min-height: auto;   /* reset safe height */
  }
}
.section-top {
  padding-top: calc(var(--logo-top) + 1.5rem);
}
.section-title {
  font-size: clamp(1.3rem, 2.5vw + 1rem, 3rem);
  line-height: 1.2;
  font-weight: 700;
}
.section-subtext {
  font-size: clamp(0.9rem, 1vw + 0.75rem, 1.5rem);
  line-height: 1.6;
  font-weight: 400;
  max-width: 65ch; /* keeps text from being too wide */
  margin: 0 auto; /* centers inside container */
}
@media (min-width: 900px) {
  .section { padding: 1rem 0; }
}


/* ========================HEADER========================== */

header {
  position: relative;
  z-index: 100;
  padding: var(--logo-top) 0; /* space for nav */
}

/* ==============Sticky Logo=========== */
.logo {
  position: fixed;
  top: var(--logo-top);
  left: var(--logo-side);
  z-index: 100000;
}
.logo img {
  width: var(--logo-size);
  height: auto;
}

/* ====== DESKTOP NAV ====== */
.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  width: 100%;
}

.nav-buttons button {
  background-color: rgba(5, 150, 182, 0.15);
  border: none;
  color: #d749a5;
  padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 2rem);
  text-wrap: nowrap;
  border-radius: 30px;
  font-size: clamp(0.6rem, 1.3vw, 1.2rem);
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}
.nav-buttons button:hover {
  background-color: rgba(243, 253, 255, 0.237);
}

/* ====== MENU ICON (hidden by default) ====== */
.menu-icon {
  display: none;
  font-size: 1.7rem;
  background-color: #896b9924;
  color: #eb9affc5;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 1rem;
  z-index: 1001;
}
.menu-icon:hover {
  background: rgba(144, 99, 241, 0.2);
  color: #818bf8;
}

/* ====== MOBILE MENU ====== */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: 1rem;
  width: 220px;
  background: rgba(29, 12, 64, 0.874);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}
.mobile-menu button {
  background: transparent;
  color: #ee92fe;
  border: none;
  padding: 10px 17px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.mobile-menu button:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}
.mobile-menu button i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ====== RESPONSIVENESS ====== */
@media (max-width: 780px) {
  .nav-buttons {
    display: none; /* hide desktop nav */
  }
  .menu-icon {
    display: block; /* show hamburger */
  }
}
/* Small screens – tweak sizes */
@media (max-width: 480px) {
  .mobile-menu {
    width: 90%; /* full-width-ish on tiny screens */
    right: 5%;
  }
}

/* ==================text decor================ */
.glowy-text {
  color: #fbf4fd;
  text-shadow: 0 0 6px #faf6ff, 0 0 12px #eae1ff;
}

.gradient-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(45deg, #6aa1fa, #d582f1, #fc50ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 5px rgba(238, 184, 255, 0.7),
    0 0 23px rgba(255, 194, 239, 0.6), 0 0 20px rgba(192, 216, 255, 0.6);
}








.landing-core {
  position: relative;
  background-color: var(--intro-bg);
  overflow: hidden;
}

#sci-fi-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* z-index: 0; */
  background-color: var(--intro-bg);
}

/* ================================================== LANDING PAGE ================================================== */
#landing {
  min-height: calc(100vh - 3rem);
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  flex-direction: column;
  z-index: 2;
  margin-top: clamp(1rem, 2vw, 2rem);
  padding-bottom:  clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
}

.intro {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.7rem, 3vw, 1.75rem);
  text-align: center;
  z-index: 5;
  transition: opacity 0.5s ease-out;
  padding-bottom: 2.5rem;
  margin: 0 auto;
  box-sizing: border-box;
}
.intro h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: clamp(1.1, 2vw, 1.3);
  background: linear-gradient(45deg, #e864c5, #d582f1, #8db5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.intro h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: clamp(1.2, 1.5vw, 1.4);
  margin: 0;
  color: #f3f1f4;
  white-space: nowrap;
}
/* Force the <br> (or span) to only apply on mobile */
.mobile-break {
  display: none; /* no break on desktop */
}
@media (max-width: 1100px) {
  .intro {
    padding-bottom: 0;
  }
  .intro h2 {
    font-size: clamp(0.5rem, 4vw, 1.5rem);
    line-height: clamp(2, 2.5vw, 2.5);
    white-space: normal;
  }
  .mobile-break {
    display: block;
  }
}

.astronaut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: clamp(1.5rem, 5vh, 3rem); */
}
#astronaut {
  width: clamp(11.5rem, 20vw, 12rem);
  height: auto;
  transition: transform 0.8s ease-out, opacity 0.4s ease-out;
}
#astronaut:hover {
  animation: jump 0.6s ease infinite;
}
@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ================================================== CORE ================================================== */

/*-------------------------------------------------------------------/* CORE 1 */
#core1 {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

#core1.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.core1-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  position: relative;
  transform: none !important;
  gap: 1.5rem;
}
.core1-text {
  font-size: clamp(0.7rem, 2vw + 0.5rem, 1.25rem);

  line-height: 1;
  letter-spacing: 0.03em;
  white-space: pre-line;
  /* width: 70vw; */
  max-width: 80ch;
  margin-inline: auto;
}
.highlight {
  color: #e864c5; /* bright accent color */
  font-weight: bold;
}
.highlight2 {
  /* color: #d70eff; */
  font-weight: bold;
  background: linear-gradient(to right, #e864dd, #d582f1, #8db5f6, #d582f1);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 4s linear infinite;
}
@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

/*-------------------------------------------------------------------/* CORE 2 */
/* === Floating Keyframe Animation === */
@keyframes floatCard {
  0% {
    transform: translateY(-25px) rotateX(3deg);
  }

  100% {
    transform: translateY(10px) rotateX(-2deg);
  }
}

/* === Floating Effect: Side Cards === */
#card-curiosity,
#card-connection {
  animation: floatCard 3s ease-in-out infinite alternate;
}

/* === Floating Effect: Middle Card (Opposite Direction) === */
#card-creation {
  animation: floatCard 3s ease-in-out infinite alternate-reverse;
}

/* === Core Card Base Styling === */
#core2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(
    0.5rem,
    calc(0.5rem + 1rem * ((100vw - 360px) / 664)),
    1.5rem
  );
  overflow: hidden;
}

#core2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  backdrop-filter: blur(0px);
  transition: height 0.5s, backdrop-filter 0.5s;
  pointer-events: none;
  z-index: 1;
}

#core2.blurred::after {
  height: 100%;
  backdrop-filter: blur(5px);
}

.core2-title {
  /* font-size: clamp(4rem, 2.5vw, 3.5rem); */
  /* font-weight: 700; */
  letter-spacing: 0.15em;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
}
.core2-note {
  display: block;
  font-size: clamp(0.7em, 2vw, 1.125em);
  color: rgba(255, 255, 255, 0.484);
  margin-top: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: none;
  padding-bottom: clamp(1rem, 5vh, 3rem);
}
.core2-note:hover {
  color: rgba(255, 255, 255, 0.799);
}

.core2-container {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 10rem - 5vw, 2.5rem); /* gap grows as screen shrinks */

  max-width: min(100%, 65rem); /* instead of clamp with 30rem floor */
  padding: clamp(1rem, 5rem - 2vw, 2rem); /* padding grows as screen shrinks */
  margin: auto;
}
/* Mobile <= 768px */
@media (max-width: 768px) {
  .core2-container { 
    flex-wrap: wrap; 
    justify-content: center; 
  }
}

.core-card {
  background-color: #000000;
  background-image: url("assets/core-card-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;

  /* width: clamp(10rem, 20vw, 17.5rem);
  height: clamp(10rem, 20vw, 17.5rem); */
  width: clamp(3rem, 40vw, 17.5rem);
  height: clamp(3rem, 40vw, 17.5rem);
  padding: clamp(1rem, 2vw, 1.8rem); 

  justify-content: center;
  text-align: center;
  word-wrap: break-word;
  perspective: 1000px;
  /* Needed for 3D flip */
}
.core-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  /* horizontal centering */
  justify-content: center;
  /* vertical centering */
  backface-visibility: hidden;
  top: 0;
  left: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
}

.card-front {
  background-size: 75% auto;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: inherit;
}
#card-curiosity .card-front {
  background-image: url("assets/core-curiosity.png");
}
#card-creation .card-front {
  background-image: url("assets/core-creation.png");
}
#card-connection .card-front {
  background-image: url("assets/core-connection.png");
}

.card-back {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  transform: rotateY(180deg);
}
.core2-card-title {
  font-size: clamp(0.75rem, 2vw, 1.3rem);
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #00a2ff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.core2-text {
  color: #c0e2fe;
  font-size: clamp(0.5rem, 1.5vw, 0.9rem); 
}

/* ======================================================================================================================= */
/* ======================================================================================================================= */


/* ================================================== THE LAB ================================================== */
/* ================================================== GAME VAULT ================================================== */

/* Utility/toolkit for future use */
.container-narrow { width: min(1200px, 100%); margin-inline: auto; }
.stack   { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.row     { display: flex; align-items: center; }
.center  { display: grid; place-items: center; }
.hide    { display: none !important; }

/* ================================================== SECTION SHELLS ================================================== */

/* Headings block in Lab & Game Vault */
#lab .lab-content, #game-vault .lab-content {
  text-align: center;
  z-index: 2;
  margin-bottom: clamp(0.5rem, 2vw, 1rem); 
}
.lab-content h2 { 
  color: var(--cyan); 
}
.lab-content span { 
  color: var(--accent); 
}

/* Background layers from your snippet (kept), ensure they're behind content */
#lab, #game-vault { 
  position: relative; 
  overflow: hidden; 
}
#lab .lab-stars, #game-vault .lab-stars,
#lab .grid, #game-vault .grid,
#lab .neon-circle, #game-vault .neon-circle { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; 
}
/* Lift content above bg */
#lab .projects-wrapper, #game-vault .projects-wrapper { 
  position: relative; 
  z-index: 2;
}



#lab, #game-vault, #astro, #game-info-zone {
  background-color:  var(--showcase-bg);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: flex-start; */
}

#lab .lab-stars, 
#game-vault .lab-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.each-lab-star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0; /* GSAP will animate this */
}

#lab .grid, #game-vault .grid {
  background-image: 
    linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
#lab .neon-circle, #game-vault .neon-circle {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 300px;
  height: 300px;
  z-index: 1;

  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.6), transparent 60%);
  opacity: 0.4;
}


/* ================================================== PROJECT CARDS GRID ================================================== */
.projects-wrapper { 
  width: 100%; 
  padding: clamp(1rem, 2vw, 2rem); 

  overflow: visible;
}
.projects { 
  width: min(1200px, 100%); 
  margin: 0 auto; 
}
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(0.25rem, 1.5vw, 0.75rem);
  justify-content: center;
  align-items: stretch; /* make all cards equal height per row */
}

.project-card {
  position: relative;
  border: 1px solid var(--card-bd);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) , var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  
  display: flex;             /* allow inner stretch */
  flex-direction: column;
  flex: 1 1 auto;  /* allow it to grow naturally */
  max-width: 100%; /* responsive */
}
/* Tablet: 2 cards */
@media (min-width: 640px) {
  .project-card {
    flex: 1 1 calc(50% - 1rem); /* two per row */
    max-width: calc(50% - 1rem);
  }
}
/* Desktop: 3 cards */
@media (min-width: 1024px) {
  .project-card {
    flex: 1 1 calc(33.333% - 1rem); /* three per row */
    max-width: calc(33.333% - 1rem);
  }
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-bd-hover);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 3px var(--ring-soft);
}
.project-link-area { 
  display: grid; 
  /* grid-template-rows: auto 1fr;  */
  flex-direction: column;
  flex-grow: 1;              /* make the link area stretch full height */
  min-height: 0; /* prevents Flexbox content clipping on mobile */
  text-decoration: none; 
  color: inherit; 
}

.project-image { 
  aspect-ratio: 16/9; 
  background: #0f1022; 
  overflow: hidden; 
}
.project-image img { 
  width: 100%; 
  height: 100%; 
  object-fit:contain; 
  display: block; 
}

.project-content { 
  padding: clamp(0.75rem, 2vw, 1rem); 
  /* display: grid; */ 
  gap: .5rem; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;              /* ensures text pushes card taller */
}
.project-title { 
  color: #e9e9ff; 
  margin: 0; 
  letter-spacing: .05em; 
}
.project-description { 
  color: #cfd7ff; 
  margin: 0; 
  opacity: .9; 
  flex-grow: 1;              /* pushes “View Project” down if text is long */
}
.project-link { 
  color: var(--accent); 
  font-size: clamp(0.7rem, 1.5vw, 1.1rem);
  letter-spacing: .06em; 
  margin-top: auto;          /* sticks link to bottom */
}

/* Under construction overlay */
.project-link-area .overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(10,10,26,.72);
  color: #fff; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s ease;
}
.project-link-area[data-status="under-construction"] .overlay { 
  opacity: 1; 
}

/* ======================================================================================================================================================
   RESPONSIVENESS — THE LAB & GAME VAULT
   ======================================================================================================================================================
*/

/* Tablet ≤1024px */
@media (max-width:1024px) {

  .project-grid     { gap: 1.2rem; padding: 1rem; }
  /* .project-card     { height: 380px; } */

  .project-title    { font-size: 1.2rem; }
  .project-description { font-size: 0.95rem; }
  .project-link     { font-size: 0.85rem; }
}

/* Mobile ≤768px */
@media (max-width:768px) {
  #lab               { padding: 1rem 0.5rem; } */

  .project-grid      { gap: 1rem; }
  /* .project-card      { height: 320px; } */

  .project-title     { font-size: 1rem; }
  .project-description { font-size: 0.85rem; }
  .project-link      { font-size: 0.75rem; }
}

/* Small Mobile ≤480px */
@media (max-width:480px) {
  #lab { padding: 2rem 0.5rem 1.5; }    

  .project-grid      { gap: 0.6rem; }
  /* .project-card      { flex: 0 0 220px; height: 250px; } */

  .project-title     { font-size: 0.85rem; }
  .project-description { font-size: 0.7rem; }
  .project-link      { font-size: 0.65rem; }
}

/* Very Small Phones ≤360px */
@media (max-width:360px) {
  #lab { padding: 3rem 0.3rem 2; }    

  /* .project-card      { flex: 0 0 170px; height: 200px; } */

  .project-title     { font-size: 0.7rem; }
  .project-description { font-size: 0.6rem; }
  .project-link      { font-size: 0.55rem; }
}




/* ================================================== ASTRODRIVE (two‑column) ================================================== */
#astro { 
  position: relative; 
  z-index: 2; 
}
.astrodrive-containers { 
  /* mobile-first: stack */
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 4.5vw, 3.5rem);
  padding: clamp(1rem, 2.5vw, 2rem);
}
/* children wrappers in your HTML */
.astrodrive-left, .astrodrive-right { 
  display: grid; 
  gap: clamp(.75rem, 1.5vw, 1rem); 
}

/* On mobile we show text first (reading priority), then video */
.astrodrive-right { order: -1; }
.astrodrive-left  { order:  0; }

@media (min-width: 900px) {
  .astrodrive-containers { 
    grid-template-columns: 1.15fr 1fr; 
    align-items: center; 
  }
  /* Desktop layout per your spec: video left, text right */
  .astrodrive-right { order: 0; }
  .astrodrive-left  { order: 0; }
}

/* Monitor / video frame */
.monitor { 
  position: relative; 
  width: 100%; 
  display: grid; 
  gap: .5rem; 
}

/* wrapper keeps proper 16:9 ratio and clipping for rounded corners */
.iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: clamp(200px, 40vw, 380px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid var(--card-bd);
}
/* iframe fills the wrapper */
.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* .monitor video { 
  width: 100%; 
  height: auto; 
  border-radius: 16px; 
  outline: none; 
  border: 1px solid var(--card-bd); box-shadow: 0 10px 30px rgba(0,0,0,.35); 
} */
.monitor .base { 
  height: 10px; 
  border-radius: 999px; 
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); 
}

/* Right text panel */
.astrodrive-logo { 
  display: flex; 
  align-items: center; 
  gap: .6rem; 
  flex-direction: column;
  text-align: center;
}

.astrodrive-logo img {
  width: clamp(80px, 25vw, 120px); 
  height: auto; 
  border-radius: 12px; 
  border: 1px solid var(--card-bd); 
}
.astrodrive-logo .tagline { 
  margin: 0; 
  color: #dbf1fc; 
  letter-spacing: .1em; 
}

.astrodrive-right .content p { 
  margin: 0;
  text-align: center;
  margin-inline: auto;
}

.astrodrive-right .standout {
  color: rgba(98, 203, 255, 0.858);
}


/* Social links */
.social-links { 
  display: flex; 
  flex-wrap: wrap;
  justify-content: center; 
  gap: .5rem; 
  margin-top: .75rem; 
}
.social-link { 
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  display: grid; 
  place-items: center; 
  background: rgba(255,255,255,.06); 
  border: 1px solid var(--card-bd); 
  transition: transform .2s ease, 
  background .2s ease, border-color .2s ease; 
}
.social-link:hover { 
  transform: translateY(-2px); 
  background: rgba(255,255,255,.12); 
  border-color: var(--card-bd-hover); 
}
.social-link i { 
  font-size: 1.3rem; 
  color: #e9e9ff; 
}


/* ================================================== GAME INFO ZONE (two‑column) ================================================== */
#game-info-zone { 
  position: relative; 
  padding-block: 1.5rem;
  z-index: 2; 
}
.game-detail-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid; 
  gap: clamp(.75rem, 1.5vw, 1rem);
  padding: clamp(1rem, 2.5vw, 2rem);
}
.game-detail-left, .game-detail-right { 
  display: grid; 
  gap: clamp(.75rem, 1.5vw, 1rem); 
}

/* Mobile: text first, media second */
.game-detail-left { order: -1; }
.game-detail-right{ order:  0; }

@media (min-width: 980px) {
  .game-detail-container { 
    grid-template-columns: 1fr 1.25fr; 
    align-items: start; 
  }
  .game-detail-left, .game-detail-right { order: 0; }
}

.game-logo-title { 
  display: flex; 
  align-items: center; 
  gap: .75rem; 
  flex-wrap: wrap; 
}

.game-detail-logo { 
  width: clamp(56px, 7vw, 96px); 
  height: auto; 
  border-radius: 12px; 
  border: 1px solid var(--card-bd); 
}

.game-logo-title h2 { 
  margin: 0; 
  letter-spacing: .08em; 
}

.standout {
  color: var(--accent);
}

.game-prize-badge { 
  background: linear-gradient(50deg, rgb(255, 0, 204) 0% 25%, rgb(255, 145, 0) 100% 50%);
  border-radius: 10px; 
  padding: .25rem .6rem; 
  font-size: .9rem;
  font-weight: bold; 
}

.game-detail-video { 
  width: 100%; 
  height: auto; 
  border-radius: 16px; 
  outline: none; 
  border: 1px solid var(--card-bd); 
  box-shadow: 0 10px 30px rgba(0,0,0,.35); 
}

/* Mobile: stack layout */
@media (max-width: 979px) {
  .game-detail-left {
    text-align: center;          /* center all text */
    justify-items: center;       /* centers grid children inside */
  }

  .game-logo-title {
    justify-content: center;     /* center logo + title row */
  }
}

/* Carousel */
.carousel { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--card-bd); background: rgba(255,255,255,.03); }
.carousel-track { display: flex; will-change: transform; transition: transform .35s ease; }
.carousel-track img { width: 100%; height: auto; flex: 0 0 100%; object-fit: cover; aspect-ratio: 16/9; cursor: zoom-in; }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: none; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: rgba(10,10,26,.6); border: 1px solid var(--card-bd); backdrop-filter: blur(8px); font-size: 1.35rem; color: #fff; cursor: pointer; z-index: 2; }
.carousel-arrow.left { left: .5rem; }
.carousel-arrow.right{ right: .5rem; }
.carousel-arrow:hover { box-shadow: 0 0 0 3px var(--ring-soft); }

/* ================================================== IMAGE POPUP (not full-screen) ================================================== */
.image-popup { 
  position: fixed; 
  inset: 0; 
  display: grid; 
  place-items: center;  
  background: rgba(15, 15, 40, 0.75);
  backdrop-filter: blur(6px); 
  background: rgba(0,0,0,.55); 
  z-index: 9999; 
}
.image-popup .popup-img-wrap { position: relative; max-width: min(90vw, 1000px); max-height: 85vh; background: rgba(20,20,40,.9); border: 1px solid var(--card-bd); border-radius: 16px; padding: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.image-popup img { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 10px; }
.image-popup .close-popup { position: absolute; top: .35rem; right: .35rem; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--card-bd); color: #fff; font-size: 1.25rem; cursor: pointer; }
.image-popup .close-popup:hover { box-shadow: 0 0 0 4px var(--ring-soft); }



/* ================================================== MISC / TOUCHES ================================================== */
/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Prefer reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .project-card, .carousel-track { transition: none !important; }
}


/* ======================================================================================================================= */
/* ======================================================================================================================= */



/* ================================================== DEV DIARY ================================================== */
.dev-diary {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  background-color: #0f0f1a;
  color: #ffffff;
}

.diary-left {
  flex: 0.55;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #0a0a1a, #29093f, #350551, #1e0030);
  padding: 2rem;
}

.diary-title {
  text-align: center;
  color: #eba400;
  letter-spacing: 2px;
}

.diary-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.diary-title-wrapper h2 {
  color: #cf9101;
  font-weight: bold;
  font-size: clamp(5rem, 9vw, 10rem);
}
.dev-word h2 {
  line-height: 0.5;
}
.diary-word h2 {
  line-height: 1;
  text-align: center;
}

.diary-right::-webkit-scrollbar {
  width: 6px;
}

.diary-right::-webkit-scrollbar-track {
  background: transparent;
}

.diary-right::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.diary-right {
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  flex: 0.65;
  height: 100%;
  padding: 1rem 2rem;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(to bottom, #0a0a1a, #03032d, #150529, #1e0030);
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
    transform: translateX(-100px);

    clip-path: (100% 100% 0 0);
  }

  to {
    opacity: 1;
    scale: 1;
    transform: translateX(0px);
    clip-path: (0 0 0 0);
  }
}

.block {
  animation: appear 4s linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.log-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.log-entry {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border-left: 4px solid #eba400;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.log-number {
  font-weight: 700;
  color: #eba400;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-family: "Courier New", monospace;
}

.log-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #f6f7f8;
}

.log-meta {
  font-size: 0.9rem;
  color: #aaa;
}

.tags {
  color: #2c91b0;
}

/* ================================================== SERVICES ================================================== */
#services {
  /* background-color: #1e0030; */
  background: linear-gradient(to bottom, #1e0030 0%, #280332 100%);
  color: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: auto;
  text-align: center;
  z-index: 1;
}

.service-title {
  background: linear-gradient(90deg, #b987ff 25%, rgb(0, 50, 130) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  display: inline-block;
  color: #fff;
  z-index: 2;
}

.services-container {
  display: grid;
  gap: 2rem;
  justify-content: center; /* keeps grid centered */
  margin: 5.5rem auto;
  grid-template-columns: repeat(4, 1fr); /* default: 4 cards per row */
  max-width: 1200px; /* optional: keeps rows from stretching too wide */
}
/* Medium screens: 2 per row */
@media (max-width: 1024px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Mobile: 1 per row */
@media (max-width: 600px) {
  .services-container {
    grid-template-columns: 1fr;
  }
}

.service-card {
  width: 280px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
}

.services-container a {
  text-decoration: none; /* remove underline */
  color: inherit;        /* inherit text color from card */
  display: inline-block; /* ensures proper block behavior */
}



/* top part (image) */
.service-img {
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* bottom part (title only) */
.service-name {
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 20px rgba(106, 13, 173, 0.5);
  margin-top: 1.3rem;
}
.service-name h3 {
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #efd4ff;
}

.contact-btn {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 0 4rem;
  background: linear-gradient(90deg, rgb(66, 39, 127) 0%, #c68eeb9a 100%);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: none;
  /*cursor: pointer;*/
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(104, 5, 175, 0.589);
}
.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}
.contact-btn:hover::before {
  left: 100%;
}
/* the shine element */
.contact-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-20deg);
}
/* animation when class is added */
.contact-btn.shine::after {
  animation: shineMove 1.2s forwards;
}
@keyframes shineMove {
  to {
    left: 120%;
  }
}

/* Space background elements */
.space-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  inset: 0;
  z-index: 0;
}

/*----------------------------------------- for both dev diary and services */
.galaxy-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    #fff 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(-45deg);
  opacity: 0;
}

.planet {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.1;
}

/* ================================================== CONNECT ================================================== */
#connect {
  padding: 0;
  color: white;
  overflow: hidden;
}

.connect-container {
  position: relative;
  height: 100%;
  width: 100vw;
  overflow: hidden;
}

.connect-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.swirl-container {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.swirl {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(132, 0, 255, 0.3);
  transform-origin: center;
}

.connect-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.connect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.connect-main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
}

#connect-title {
  margin-bottom: 5rem;
  opacity: 0;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(135deg, #ff7edb, #a855f7, #38bdf8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 10px rgba(255, 0, 255, 0.4));
  position: relative;
  overflow: visible;
}

/* Glitter effect overlay */
#connect-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.8) 2%,
      transparent 5%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.5) 1.5%,
      transparent 4%
    );
  background-size: 200% 200%;
  animation: glitter 4s linear infinite;
  mix-blend-mode: screen;
  border-radius: inherit;
}

@keyframes glitter {
  0% {
    background-position: 0% 0%, 100% 100%;
  }

  50% {
    background-position: 100% 100%, 0% 0%;
  }

  100% {
    background-position: 0% 0%, 100% 100%;
  }
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); /* each item min 5rem, max 1fr */
  justify-items: center; /* center items horizontally in each grid cell */
  align-items: center;   /* center items vertically */
  gap: clamp(2rem, 5vw, 7rem); /* responsive spacing */
  margin-bottom: clamp(2rem, 5vw, 7rem); /* responsive bottom margin */
  font-size: clamp(1rem, 2vw, 1.5rem); /* responsive icon size */
  font-weight: bold;
  color: #fff;
  max-width: 100%;
}
/* Force 4 or 2 items per row depending on screen width */
@media (min-width: 1024px) {
  .social-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .social-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  text-decoration: none;
  min-width: 70px;
}

.icon-circle {
  position: relative;
  width: 7rem;
  height: 7rem;
  background: #0f0014;
  border-radius: 35%;
  box-shadow: 0 0 10px #8a2be2, /* purple glow */ 0 0 20px #00fff7,
    /* cyan glow */ inset 0 0 15px #8a2be2;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /*cursor: pointer;*/
}

/* Circuit pattern overlay using CSS pseudo elements */
.icon-circle::before,
.icon-circle::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #50fff9 0 2px,
    transparent 2px 4px
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.6;
  animation: glitch-move 6s infinite alternate ease-in-out;
  border-radius: 35%;
}

.icon-circle::after {
  background: repeating-linear-gradient(
    -45deg,
    #8a2be2 0 2px,
    transparent 2px 4px
  );
  animation-delay: 3s;
}

/* Glitch jitter animation */
@keyframes glitch-move {
  0% {
    transform: translate(0, 0) skew(0deg);
    opacity: 0.6;
  }

  25% {
    transform: translate(2px, -1px) skew(-5deg);
    opacity: 0.8;
  }

  50% {
    transform: translate(-1px, 2px) skew(3deg);
    opacity: 0.6;
  }

  75% {
    transform: translate(1px, 1px) skew(-2deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(0, 0) skew(0deg);
    opacity: 0.6;
  }
}

/* Animation keyframes */
@keyframes pulse {
  0% {
    box-shadow: 0 0 15px #38bdf8, 0 0 30px #a855f7;
    transform: scale(1);
  }

  100% {
    box-shadow: 0 0 30px #38bdf8, 0 0 50px #a855f7;
    transform: scale(1.05);
  }
}

.icon-circle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.icon-circle i {
  font-size: 3rem;
  color: white;
}

.message-box {
  width: 100%;
  max-width: 500px;
  margin: 1rem auto 2.5rem;
  opacity: 0;
  padding: 0 1rem;
  margin-bottom: 1rem;
  transform: translateY(40px);
}

.message-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.message-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(138, 43, 226, 0.8);
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(138, 43, 226, 0.5);
  color: white;
  border: none;
  padding: 0.3rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  /*cursor: pointer;*/
  transition: all 0.3s ease;
}

.send-button:hover {
  background: rgba(138, 43, 226, 0.7);
}

.message-input,
.send-button {
  height: 44px;
  line-height: 44px;
  padding: 0 1.2rem;
}

.footer-text {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(0.5rem, 1.5vw, 0.9rem);
  line-height: 1.3;
  color: #fff;
  pointer-events: auto;
  /* clickable */
  z-index: 9999;
}
.footer-text a {
  color: #fff;
  text-decoration: none;
}
.footer-text a:hover {
  color: #a4bbffea;
  text-decoration: underline;
}








/* RESPONSIVENESS */











/* ======================================================================================================================================================
   RESPONSIVENESS — BASE
   ======================================================================================================================================================
*/

/* -------- Desktop / Large -------- */
@media (min-width: 1440px) {
  .nav-arrow { bottom: 50px; right: 50px; border-top: 30px solid #a825f4c2; }
  .nav-arrow::after { border-top: 20px solid #a825f4c2; }
}

/* -------- Desktop 1025px - 1439px -------- */
@media (max-width: 1439px) {
  .nav-arrow { bottom: 45px; right: 45px; border-top: 28px solid #a825f4c2; }
  .nav-arrow::after { border-top: 18px solid #a825f4c2; }
}

/* -------- Tablet <= 1024px -------- */
@media (max-width: 1024px) {
  .section { padding: 1rem 2rem; }
  .nav-arrow {
    bottom: 25px; right: 25px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 22px solid #a825f4c2;
  }
  .nav-arrow::after {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 16px solid #a825f4c2;
  }
}

/* -------- Mobile <= 768px -------- */
@media (max-width: 768px) {
  .section { padding: 1rem; }
  .enter-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
  .nav-arrow {
    bottom: 20px; right: 20px;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 20px solid #a825f4c2;
  }
  .nav-arrow::after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #a825f4c2;
  }
}

/* -------- Small Mobile <= 480px -------- */
@media (max-width: 480px) {
  .section { padding: 0.8rem; }
  .enter-button { font-size: 0.85rem; padding: 0.5rem 1rem; }
  /* .logo img { height: clamp(30px, 4vw, 30px); margin: 0.8rem; } */
  .nav-arrow {
    bottom: 15px; right: 15px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 16px solid #a825f4c2;
  }
  .nav-arrow::after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #a825f4c2;
  }
  .custom-cursor { display: none; }
}


/* ======================================================================================================================================================
   RESPONSIVENESS — CORE 1
   ======================================================================================================================================================
*/

/* Desktop 1025px - 1439px */
@media (max-width: 1439px) {
  /* .core1-title { font-size: clamp(2.5rem, 4vw, 4.5rem); } */
  .core1-text { font-size: clamp(1.25rem, 2vw, 1.8rem); }
}

/* Tablet <= 1024px */
@media (max-width: 1024px) {
  .core1-content { padding: 1rem 2rem; }
  /* .core1-title { font-size: clamp(2rem, 4vw, 3.5rem); } */
  .core1-text { font-size: clamp(1.1rem, 1.5vw, 1.5rem); }
}

/* Mobile <= 768px */
@media (max-width: 768px) {
  #core1 { padding: 1rem; }
  /* .core1-title { font-size: clamp(1.5rem, 5vw, 3rem); } */
  .core1-text { font-size: clamp(1rem, 3.5vw, 1.3rem); }
}

/* Small Mobile <= 480px */
@media (max-width: 480px) {
  /* .core1-title { font-size: clamp(1.2rem, 6vw, 2.5rem); } */
  .core1-text { font-size: clamp(0.9rem, 4vw, 1.1rem); }
  .core1-content { padding: 0.5rem 1rem; }
}

/* Very Small Phones <= 360px */
@media (max-width: 360px) {
  /* .core1-title { font-size: clamp(1rem, 5vw, 1.8rem); } */
  .core1-text { font-size: clamp(0.8rem, 4.5vw, 1rem); }
  .core1-content { padding: 0.5rem 0.8rem; }
}



/* ======================================================================================================================================================
   RESPONSIVENESS — ASTRODRIVE
   ======================================================================================================================================================
*/

/* Tablet & below (max-width: 768px) */
@media (max-width: 768px) {
  .astrodrive-containers {
    flex-direction: column-reverse; 
    gap: 1rem;             
  }

  .astrodrive-right,
  .astrodrive-left {
    flex: unset;
    max-width: 100%;
    padding: 0;                
  }

  .astrodrive-left {
    padding-bottom: 0;      
  }

  /* Remove monitor styling, show video only */
  .monitor {
    background: none;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }
  .monitor::before,
  .monitor::after {
    display: none;    /* hide stand and base */
  }
  .monitor > video {
    border-radius: 8px;        
    width: 100%;
    height: auto;
  }

  .Astrologo {
    width: 200px;
  }
  .tagline {
    font-size: 0.9rem;
  }
  .content {
    padding: 1rem;
  }
  .content p {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .social-link {
    font-size: 1.3rem;
  }
}


/* Small Mobile ≤480px */
@media (max-width:480px) {
  .astrodrive-containers {
    flex-direction: column-reverse;
    gap: 0.75rem;            
  }

  .monitor {
    background: none;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }
  .monitor::before,
  .monitor::after {
    display: none;         
  }
  .monitor > video {
    border-radius: 8px;      
  }

  /* right section (logo/text) */
  .Astrologo {
    width: 160px;
  }
  .tagline {
    font-size: 0.75rem;
  }
  .content {
    padding: 0.8rem;
  }
  .content p {
    font-size: 0.8rem;
  }

  /* Social links slightly smaller */
  .social-link {
    font-size: 1.2rem;
  }
}


/* ======================================================================================================================================================
   RESPONSIVENESS — DEV DIARY
   ======================================================================================================================================================
*/
/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  .dev-diary {
    flex-direction: column; /* stack vertically */
  }

  .diary-left {
    flex: none;
    width: 100%;
    max-height: 45%; /* limit title height to 45% of viewport */
    overflow: hidden; /* cut off if too tall */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .diary-right {
    flex: none;
    width: 100%;
    max-height: 55%; /* remaining 55% for logs */
    overflow-y: auto;
    padding: 1rem;
  }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  .diary-left { max-height: 40%; }
  .diary-right { max-height: 60%; }

  .dev-word { font-size: 2rem; line-height: 0.35; }
  .diary-word { font-size: 1rem; }

  .log-text { font-size: 1rem; }
  .log-entry { padding: 1rem; }
  .log-container { gap: 1.5rem; }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .diary-left { max-height: 35%; }
  .diary-right { max-height: 65%; }

  .log-text { font-size: 0.9rem; }
  .log-entry { padding: 0.75rem 1rem; }
  .log-container { gap: 1rem; }
}


/* ======================================================================================================================================================
   RESPONSIVENESS — CONNECT
   ======================================================================================================================================================
*/

/* Tablet & below (<=1024px) */
@media (max-width: 1024px) {
  .connect-main-content {
    gap: 2rem;
  }

  .icon-circle {
    width: 6rem;
    height: 6rem;
  }

  .icon-circle i {
    font-size: 2.5rem;
  }

  .message-box {
    max-width: 400px;
  }

  .message-input, .send-button {
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
  }
}
/* Mobile (<=768px) */
@media (max-width: 768px) {

  .icon-circle {
    width: 5.5rem;
    height: 5.5rem;
  }

  .icon-circle i {
    font-size: 2rem;
  }

  .message-box {
    max-width: 320px;
    margin-bottom: 1.5rem; /* smaller spacing below */
  }

  .message-input, .send-button {
    height: 34px;
    line-height: 34px;
    font-size: 0.9rem;
  }

}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {

  .icon-circle {
    width: 5rem;
    height: 5rem;
  }

  .icon-circle i {
    font-size: 1.8rem;
  }

  .message-box {
    max-width: 280px;
    margin-bottom: 1rem;
  }

  .message-input, .send-button {
    height: 30px;
    line-height: 30px;
    font-size: 0.85rem;
  }

}

/* Extra Small Phones (<=360px) */
@media (max-width: 360px) {

  .icon-circle {
    width: 4.5rem;
    height: 4.5rem;
  }

  .icon-circle i {
    font-size: 1.5rem;
  }

  .message-box {
    max-width: 240px;
    margin-bottom: 0.8rem;
  }

  .message-input, .send-button {
    height: 28px;
    line-height: 28px;
    font-size: 0.8rem;
  }

}
