@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&family=Orbitron:wght@400..900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap'); 

:root {
 --doomer: #0e0e0e; 
--aphelion: #1F1F1E;
--circuit: #c6c2d6;
 --coolant: #8af0e5;
 --core: #b1d8d3;
--smog: #293231;
 --pollution: #1c8965;
 --sensation: #fff82b;

 /* alpha colors */

 --insider: #1f1f1fbe;
 --doomsday: #0c0c0ca4;
 --chairman: #0d1e1d79;

 /* text shadow */

 /* box shadow */
 
}

/* ___ resets & base ___ */

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

a {
  text-decoration: none;
 color: var(--sensation);
} 

/* ___ page transition ___ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 600ms ease fade-out;
}

::view-transition-new(root) {
  animation: 600ms ease fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
} 

body {
 position: relative;
 min-height: 100vh;
 display: grid;
 grid-template-rows: 1fr 380 1fr;
 grid-column: 2;
 font-family: 'Jura', sans-serif;
 background-color: var(--doomer);
 color: var(--circuit);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 background-image: radial-gradient( var(--coolant) 1px, transparent 1px);
  background-size: 24px 24px; /* Tiny, clean dot grid */
  opacity: 0.3;
 grid-column: 1 / -1;
  grid-row: 1 / -1;
 z-index: -1;
 pointer-events: none;
} 

main {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 88%;
 height: ;
 background-color: var(--doomsday);
 color: var(--circuit);
 border-radius: 25px;
 gap: 5px;
 margin: 5.5rem auto 0; 
 padding: 0.5rem;
 backdrop-filter: blur(4px);
 -webkit-backdrop-filter: blur(4px);
}



/* ___ typeface ___ */

h1 {
 font-family: 'Orbitron', sans-serif;
 font-size: 15px;
 font-weight: 700;
 line-height: 1;
 color: var(--coolant);
}

h2 {
 font-family: 'Turret Road', sans-serif;
 font-size: 14px;
 font-weight: 400;
 color: var(--core);
}

h3 {
 font-family: 'Jura', sans-serif;
 font-size: 12px;
 font-weight: 200;
 color: var(--sensation);
}

p {
 font-family: 'Jura', sans-serif;
 font-size: 12px;
 font-weight: 200;
 color: var(--circuit);
} 


/* --- Header Layout --- */

.aphelion-header {
  position: fixed;
  top: 16px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 12px 20px;
  background: var(--chairman); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--shady-business);
  border-radius: 50px;
}

.logo {
 position: absolute;
 top: 7%;
 left: 4%;
 height: 45px;
 width: 45px;
}

.logo img {
 width: 100%;
 height: 100%;
}

footer {
 border-top: 2px solid var(--aphelion);
 height: 200px;
 width: 100%;
 background-color: var(--coolant);
 padding: 2rem;
}

/* --- Morphing Hamburger Button --- */

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  z-index: 1001; 
  padding: 0;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--circuit);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  margin: 0 auto;
}

/* Transform lines into "X" when active */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */

/* --- High-level Menu Container --- */
.aphelion-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  background: var(--doomsday); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.aphelion-menu.active {
  opacity: 1;
  visibility: visible;
}

/* Back-up constraint when menu is active */
body.menu-open {
  overflow: hidden;
  position: fixed; /* Forces mobile browsers to lock the view in place */
  width: 100%;
}


/* Flex layout splits Menu content from Footer */
.menu-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from space-between to align to the top */
  height: 100%;
  padding: 100px 32px 48px 32px;
  box-sizing: border-box;
}

/* --- The Sliding Viewport System --- */
.menu-viewport {
  overflow: hidden;
  width: 100%;
  flex-grow: 1;         /* This tells the links area to eat up most of the empty screen */
  display: flex;
  align-items: center;  /* Keeps links perfectly centered in that remaining space */
}

.menu-slider {
  display: flex;
  width: 100%;
  height: max-content;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-pane {
  min-width: 100%; /* Each pane takes up exactly one screen width */
  flex-shrink: 0;
  box-sizing: border-box;
}

/* --- Buttons & Lists --- */
.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.menu-links li {
  width: 100%;
}

.menu-links a,
.drill-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--circuit);
  text-decoration: none;
  font-family: inherit;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
 text-transform: lowercase;
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

a.extra {
 font-size: 20px;
 color: var(--core);
}

.menu-div {
 width: 98%;
 border-top: 1px solid var(--smog);
 height: 130px;
 margin: 20px auto 10px;
 padding: 1.5rem 0.3rem 0;
}

p.div-content {
 font-size: 8px;
 color: var(--core);
}

.menu-logo {
 height: 60px;
 aspect-ratio: 1 / 1;
}

.menu-logo img {
 width: 100%;
 height: 100%;
}

.menu-links a:active,
.drill-btn:active {
  color: var(--coolant);
}

.arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

/* --- Back Button Style --- */
.back-btn {
  background: none;
  border: none;
  color: var(--circuit);
  font-family: inherit;
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 0;
}

.back-btn:active {
  color: var(--coolant);
}

/* --- Zone 2: Premium Branding Footer --- */
.menu-footer {
  border-top: 1px solid var(--aphelion);
  padding-top: 1rem;
  margin-bottom: 25px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--coolant);
}

.footer-tagline {
  font-size: 11px;
  padding-bottom: 2rem;
 opacity: 0.3;
}

.footer-meta {
 font-weight: 400;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ___ SITE CONTENTS FOR EASY REMOVAL ___ */

.insights {
 width: 88%;
 aspect-ratio: 3 / 2;
 background-color: var(--coolant);
 border-radius: 5px;
 opacity: 0.8;
 margin: auto;
}

.insights img {
height: 100%;
weight: 100%;
}

.card {
 display: flex;
 flex-direction: column;
 gap: 10px;
 width: 100%;
 background-color: var(--doomsday);
 border-radius: 5px;
 margin: 1rem auto;
 text-align: center;
 opacity: 0.8;
 transition: opacity 1s, transform 0.6s cubic-bezier(0.4, 1, 0.8, 1);
 padding: 0.5rem;
}

.card:hover {
 opacity: 1;
 transform: scale(1.02);
} 

h1.footer-hl {
 color: var(--doomer);
}

p.footer-txt {
 color: var(--smog);
}

a.footer-txt {
 font-size: 14px;
 font-style: italic;
}


