:root {
  --bg: #0a0a0a;
  --panel: #141413;
  --text: #e8ecf1;
  --muted: #9aa4b2;
  --accent: #ff8c1a;
  --glow: rgba(77,163,255,0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

/* body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
} */

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #0a0a0a, var(--bg));
  color: var(--text);
  overflow-x: hidden;
}


/* GLOBAL SPACING */
:root {
  --max-width: 1200px;
  --side-padding: 1.5rem;
}

section {
  padding: 6rem 0;
  background: var(--bg);
}

.section-title,
.section-subtitle,
.about-content,
.contact,
.apps {
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}


.apps,
.about-content,
.contact,
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}



/* NAV */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem var(--side-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  font-weight: 800;
  font-size: 24px;
}



.nav nav a {
  margin-left: 16PX;
  margin-right: 16px;
  color: var(--muted);
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--text);
}

.cta {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--side-padding);
}


.badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}


.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hero-actions button {
  margin-right: 16px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* BUTTONS */
.primary {
  position: relative;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;

  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.12s ease,
    background-color 0.12s ease;
}

.primary:hover {
  background-color: #ff9a33;
}

.primary:active {
  transform: scale(0.96);
}



.secondary {
  background: transparent;
  color: #d8d8d8;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 28px;
  border-radius: 8px;

  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;

  transition:
    border-color 0.12s ease,
    color 0.12s ease;
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}




.logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.85;
}



/* APPS */
.apps {
  background: var(--bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-title {
  font-size: 42px;
}

.section-subtitle {
  color: var(--muted);
  margin: 10px 0 80px;
}

.app {
  display: grid;
  position: relative;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-top: 5rem;
}

.app::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(
    circle at center,
    rgba(255,140,26,0.06),
    transparent 0%
  );
  z-index: -1;
}


@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.app img {
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.app:hover img {
  transform: scale(1.03);
}


.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #666;
}

.app-content h3 {
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
}

.app-content p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
  max-width: 480px;
  opacity: 0.85;
}

.app-content ul {
  list-style: none;
  margin-bottom: 30px;
}

.app-content li {
  margin-bottom: 8px;
}





/* BOTTOM CTA SECTION */
.bottom-cta {
  background: #000;
  color: #fff;
  padding: 140px 20px 120px;
  text-align: center;
}

.bottom-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bottom-cta h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 20px;
}

.bottom-cta p {
  font-size: 16px;
  color: #e1e1e1;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Override buttons for light background */
.bottom-cta .primary {
  background: var(--accent);
  color: #fff;
}

.bottom-cta .secondary {
  border-color: #fff;
  color: #fff;
}

.bottom-cta .secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-contact {
  font-size: 14px;
  color: #aaa;
}

.cta-contact a {
  margin-left: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.cta-contact a:hover {
  color: var(--accent);
}





/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-brand strong {
  font-size: 20px;
}

.footer-brand p {
  margin-top: 8px;
  color: #f3f3f3;
  font-size: 14px;
  max-width: 260px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #bbbbbb;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #aaa;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: #000;
  transition: fill 0.2s ease;
}

.footer-socials a:hover {
  background: #999;
  transform: translateY(-2px);
}

.footer-socials a:hover svg {
  fill: #000;
}




/* MOBILE FOOTER */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}






/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    margin-left: 40px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .apps,
  .about,
  .contact {
    padding: 100px 40px;
  }
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* MOBILE NAV */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  width: 24px;
  background: var(--text);
  margin-bottom: 5px;
}

/* MOBILE */
@media (max-width: 900px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    background: rgba(7,11,20,0.98);
    backdrop-filter: blur(12px);
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links a,
  .nav-links button {
    font-size: 20px;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }
}

/* BUTTON MICRO INTERACTIONS */
button {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
}

.primary:hover {
  box-shadow: 0 12px 40px var(--glow);
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* subtle shine effect */
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transition: left 0.6s ease;
}

button:hover::after {
  left: 120%;
}


/* APP PARALLAX */
.app img {
  transition: transform 0.3s ease;
  will-change: transform;
}


/* PAGE TRANSITION */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.page-transition.active {
  opacity: 1;
}


/* APP DETAIL PAGES */
.app-hero {
  min-height: 70vh;
  padding: 160px 80px 80px;
  background: linear-gradient(
    to bottom,
    rgba(7,11,20,0.6),
    rgba(7,11,20,1)
  );
}

.app-hero h1 {
  font-size: 64px;
  margin: 20px 0;
}

.story,
.experience,
.reflection,
.app-cta {
  padding: 100px 80px;
  max-width: 720px;
}

.story h2,
.experience h2,
.reflection h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.story p,
.reflection p {
  color: var(--muted);
  margin-bottom: 32px;
}

.experience ul {
  list-style: none;
}

.experience li {
  margin-bottom: 12px;
}

.visual {
  padding: 0 80px 120px;
}

/* .visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
} */

.visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transform: perspective(800px) rotateX(6deg);
}

.app-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255,51,95,0.08));
}







/* DESKTOP PILL NAV – PIXEL TUNED */
@media (min-width: 901px) {

  .nav {
    position: fixed;
    top: 22px;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 200;
  }

  .nav-inner {
    display: flex;
    justify-content: center;
    pointer-events: auto;
  }

  .pill-nav {
    display: flex;
    align-items: center;

    /* OPTICAL spacing, not equal spacing */
    gap: 20px;

    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);

    padding: 0px 20px;
    border-radius: 999px;

    box-shadow:
      0 12px 36px rgba(0,0,0,0.14);

    width: fit-content;
  }

  /* NAV LINKS */
  .pill-nav a {
    color: #333;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.15s ease;
  }

  .pill-nav a:hover {
    color: var(--accent);
  }

  /* LOGO – visual anchor */
  .pill-nav .logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #000;

    margin-left: 10px;
    margin-right: 10px;

    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  
  /* Hide hamburger on desktop */
  .menu-toggle {
    display: none;
  }
}

/* DESKTOP PILL NAV – TEXT COLOR FIX */
@media (min-width: 901px) {

  /* Force base color */
  .pill-nav a {
    color: #000 !important;
    opacity: 1 !important;
  }

  /* Hover state */
  .pill-nav a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
  }

  /* Prevent global hover rules from interfering */
  .nav nav a:hover {
    opacity: 1;
  }
}

/* MOBILE HEADER: LOGO LEFT, HAMBURGER RIGHT */
@media (max-width: 900px) {

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    z-index: 300;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
  }

  /* Logo left */
  .logo {
    font-size: 20px;
    font-weight: 700;
  }

  /* Hamburger right */
  .menu-toggle {
    display: flex;
  }

  /* Hide pill nav on mobile */
  .pill-nav {
    display: none;
  }

  /* Fullscreen mobile menu */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);

    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(14px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;

    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a,
  .nav-links button {
    font-size: 20px;
    color: #fff;
  }
}

/* LOGO VISIBILITY CONTROL */

/* Desktop */
@media (min-width: 901px) {
  .mobile-logo {
    display: none;
  }

  .desktop-logo {
    display: inline-block;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
  }
}

/* HEADER SCROLL BEHAVIOR */
.nav {
  transition: transform 0.35s ease;
}

.nav.nav-hidden {
  transform: translateY(-120%);
}

/* GAME-LIKE SCANLINE OVERLAY */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
}

