@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@300;400&display=swap");

/* *,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

:root {
  color-scheme: dark;

  --dark-bg: #0a0a0f;
  --dark-fg: #e8e4d9;
  --dark-muted: #6a6a7e;
  --dark-accent: #fff;
  --dark-card-bg: rgba(10, 10, 15, 0.16);
  --dark-card-border: rgba(200, 255, 71, 0.18);

  --light-bg: #eef4ff;
  --light-fg: #0b141a;
  --light-muted: #6c8296;
  --light-accent: #1b7ed6;
  --light-card-bg: rgba(245, 249, 255, 0.82);
  --light-card-border: rgba(27, 126, 214, 0.22);

  --bg: var(--dark-bg);
  --fg: var(--dark-fg);
  --muted: var(--dark-muted);
  --accent: var(--dark-accent);
  --card-bg: var(--dark-card-bg);
  --card-border: var(--dark-card-border);

  --font-display: "Bebas Neue", sans-serif;
  --font-mono: "DM Mono", monospace;
  --hairline: 0.0625rem;
  --ui-inset: 2rem;
  --nav-x: calc(var(--ui-inset) + 0.125rem);
  --reveal-offset: 0.625rem;
  --reveal-duration: 0.5s;
  --card-radius: 0.875rem;
  --z-ui: 10;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: var(--light-bg);
  --fg: var(--light-fg);
  --muted: var(--light-muted);
  --accent: var(--light-accent);
  --card-bg: var(--light-card-bg);
  --card-border: var(--light-card-border);
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}






header {
  display: flex !important;
  flex-direction: column; 
  justify-content: flex-start; 
  width: 100%;
  position: absolute;
  padding-top: 30px;
  margin: 0;
}

/* Navbar */
.navbar-container{
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  width: 100%;
  margin: auto auto;
}


.navbar {
  position: fixed !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0px !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  color: #fff;
  width: 100%;
  background: none;
  transition: all 0.3s ease-in-out;
}

.navbar .menu-toggle, .navbar .logo, .navbar .search-icon {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.header-hr{
  left: 50px;
  right: 50px;
  margin-top: 80px;
  position: absolute;
  transition: width 0.5s ease;
  z-index: 1;
}

.header-hr hr{
  width: 100%;
  border: none;
  border-top: 1.5px solid #ddd;
  background-color: transparent;
  opacity: 0.5;
}

.navbar.scrolled {
  padding: 10px 0px !important;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(10px); 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
}

.navbar .logo img {
    height: 50px;    
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 1));  
}
.navbar .logo a:focus,
.navbar .logo a:active,
.navbar .logo img:focus {
    outline: none;
}
.navbar .logo.scrolled img {
    height: 40px;    
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 1));
}
.menu-toggle {
  margin-left: 50px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.menu-toggle :hover {
  opacity: 0.5;
}

.menu-icon {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-text { 
  margin-left: 8px;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing: .1175em;
  line-height: 1.875;
}

.menu-icon span {
  background: #fff;
  height: 2px;
  width: 20px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.black-icon path {
  fill: #000 !important;
}
.black-icon .menu-icon span {
  background: #000 !important;
  color: #000 !important;
}
.black-icon .search-icon {
  color: #000 !important; 
}

.black-icon .menu-text { 
  color: #000 !important; 
}

.black-icon .navbar.scrolled {
  display: none !important;
}
.black-icon .header-hr {
  display: none;
}

.hidden-element {
  visibility: hidden !important;
}

.search-icon {
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF; 
  font-size:1.3rem;
  letter-spacing: .1175em;
  line-height: 1.875;
  text-transform:uppercase;
  cursor: pointer;
  margin-right: 50px;

}
.search-icon:focus {
  outline: none; 
}

.search-icon i{
  font-size:1rem;    
  background-position: 50%;
  background-size: 10px 14px;
  display: inline-block; 
  margin-right: 8px;
  position: relative;
  line-height: 1.5;
}

.search-icon:hover i {
  opacity: 0.5;
  animation: rotateBlur 0.5s ease-in-out forwards; 
}

.search-icon:hover span {
  opacity: 0.5;
}

@keyframes rotateBlur {
  0% {
    transform: rotate(0deg) scale(1);
    filter: blur(0px); 
  }
  50% {
    transform: rotate(190deg) scale(0.8);
    filter: blur(0.5px); 
  }
  100% {
    transform: rotate(380deg) scale(1);
    filter: blur(0px); 
  }
}
.search-icon span{ 
  font-size:1rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -43%;
  width: 43%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: rgba(50, 50, 50, 0.6);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: left 0.5s ease;
}
.sidebar.active {
  left: 0;
}

.sidebar.submenu-active{
  left: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 30%;
  display: block;
  animation: fadeIn 1s ease forwards;
}

.sidebar-menu li{
  font-family: 'RivieraNights-Regular', sans-serif  !important; 
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .1175em;
  line-height: 1.875;
  opacity: 0; 
  margin: 15px 0;
  margin-bottom: 30px;
  text-align: right;
  text-transform:uppercase;
  overflow: visible;
  position: relative;
  width: 100%;
  animation: slideInFromLeft 0.6s ease forwards;
  animation-delay: var(--delay);
}
.sidebar-menu li a {
  text-decoration: none;
  color: #FFFFFF;
  display: inline-block;
  text-align: right;
  padding: 0;
  opacity: .5;
  margin: 0;
}
.sidebar-menu li a:hover {
  opacity: 1;
}

.sidebar:not(.active) .sidebar-menu li {
  opacity: 0;
  transform: translateX(-100%);
  animation: slideOutToLeft 0.6s ease forwards;
  animation-delay: var(--delay); 
}

.sidebar-menu a:hover {
  color: #fff;
  text-decoration: none;
}
/* Sidebar Submenu Design */
.sidebar-submenu {
  list-style: none; 
  padding: 0;
  margin: 0;
  margin-left: 20%;
  text-align: right;
  display: none; 
  
}
.sidebar-submenu li {
  font-family: 'RivieraNights-Regular', sans-serif !important;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1175em;
  line-height: 1.875;
  opacity: 0;
  margin: 30px 0 30px 0;
  text-transform:uppercase;
  overflow: visible;
  position: relative;
  width: auto;
  animation: slideInFromLeft 0.6s ease forwards;
  animation-delay: var(--delay);
}

.sidebar-submenu li a {
  text-decoration: none;
  color: #FFFFFF;
  display: inline-block;
  text-align: right;
  opacity: .5;
  padding: 0;
  margin: 0;
}

.sidebar-submenu li a:hover {
  opacity: 1;
}

.sidebar-submenu  a:hover{
  text-decoration: none;
  color: #FFFFFF;
}
.sidebar.submenu-active .sidebar-menu {
  display: none;
}
.sidebar-submenu .back-link {
  display: block; 
  font-size: 1.2rem; 
  font-weight: bold;
  color: #FFFFFF; 
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px; 
}
.sidebar-submenu .back-link:hover {
  color: #ffffff; 
}





.sidebar-content-panel {
  position: fixed;
  top: 0;
  left: 43%; /* right next to sidebar */
  width: 60vw;
  height: 100vh;
  background: linear-gradient(to bottom right, #222, #333);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9; /* Behind the sidebar */
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.sidebar-content-panel.active {
  display: block;
  animation: slideInAfterSidebar 0.8s ease-out forwards;
}
.sidebar-content-panel.slide-out {
  animation: slideOutBehindSidebar 0.8s ease forwards;
}
.sidebar-content-panel .content-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.sidebar-content-panel img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}
.sidebar-content-panel .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 50px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent background */
  border-radius: 10px;
  max-width: 500px;
}
.sidebar-content-panel .overlay-text h2 {
  font-family: 'RivieraNights-Regular', sans-serif !important;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sidebar-content-panel .overlay-text p {
  font-family: 'RivieraNights-Regular', sans-serif !important;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.0571428571em;
  line-height: 1.5714285714;
  color: #ddd;
  margin: 0 auto;
}


@keyframes slideInAfterSidebar {
  0% {
    opacity: 0;
    transform: translateX(-100px); /* Comes in from 100px left of its position */
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutBehindSidebar {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100px); 
  }
}




.no-scroll {
  overflow: hidden;
  height: 100%;
}

@media (min-width: 1750px) {
  .header-hr .navbar-container{
    padding: 0 50px !important;
  }
}
/* Navbar && Sidebar media queries */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar .logo img {
    height: 45px;    
  }
  .navbar .logo.scrolled img {
      height: 40px;    
  }
  .header-hr{
    left: 25px;
    right: 25px;
  }
  .menu-toggle {
    margin-left: 25px;
  }
  .menu-text { 
    font-size:1.4rem;
  }
  .menu-icon svg {
    width: 85% !important;
    height: 85% !important;
  }
  .search-icon {
    font-size:1.4rem;
    margin-right: 25px;
  }
  .search-icon i{
    margin-right: 15px;
  }
  .search-icon span{
    margin-left: -7px;
    font-size:1.4rem;
  }
  .sidebar {
    left: -70%;
    width: 70%;
  }
  .sidebar-menu li {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-right: -200px;
  }
  .sidebar-content-panel {
    left: 70%;
    width: 30%;
    display: none;
  }

  .sidebar-content-panel.active {
    display: block;
  }
  .sidebar-content-panel .overlay-text h2 {
    font-size: 1.6rem;
  }

  .sidebar-content-panel .overlay-text p {
    font-size: 1rem;
  }

}

@media (min-width: 576px) and (max-width: 767px) {

  .navbar .logo img {
      height: 50px;    
  }
  .navbar .logo.scrolled img {
      height: 40px;    
  }
  .header-hr{
    left: 20px;
    right: 20px;
  }
  .menu-toggle {
    margin-left: 20px;
  }
  .menu-text { 
    font-size:1.2rem;
  }
  .menu-icon svg {
    width:75% !important;
    height: 75% !important;
  }

  .search-icon {
    font-size:1.2rem;
    margin-right: 20px;
  }
  .search-icon i{
    margin-right: 15px;
  }

  .search-icon span{
    margin-left: -7px;
    font-size:1.2rem;
  }
  
  .sidebar {
    left: -75%;
    width: 75%;
  }
  .sidebar-content-panel {
    display: none !important; /* Optional: hide or adjust based on design */
  }

  .sidebar-menu li {
    font-size: 1.4rem;
    margin: 15px 0;
    margin-top: 20px;
    margin-right: -180px;
  }
  
}

@media (max-width: 575px) {
  .navbar {
    padding: 15px 30px;
    width: 100% !important;
  }
  
  .navbar .logo img {
      height: 45px;    
  }
  .navbar .logo.scrolled img {
      height: 30px;    
  }
  .header-hr{
    margin-top: 60px;
    left: 15px;
    right: 15px;
  }
  .menu-toggle {
    margin-left: 20px;
  }
  .menu-text { 
    margin-left: 2px;
    font-size:1.2rem;
  }
  
  .menu-icon svg {
    width: 70% !important;
    height: 70% !important;
  }

  .search-icon {
    font-size:1.2rem;
    margin-right: 20px;
  }

  .search-icon i{
    margin-right: 12px;
  }
  .search-icon span{
    margin-left: -7px;
    font-size:1.2rem;
  }

  .sidebar {
    left: -100%;
    width: 100%;
  }
  .sidebar-content-panel {
    display: none !important; /* Hide the panel completely on mobile */
  }
  
  .sidebar-menu {
    list-style: none;
    text-align: right;
    animation: fadeIn 1s ease forwards;
  }
  
  .sidebar-menu li {
    font-size: 1.5rem; 
    margin-top: 30px;
    margin-right: -100px;
  }
}


/* Slide-In Animation */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%); 
  }
  to {
    opacity: 1;
    transform: translateX(0); 
  }
}

/* Define the slide-in animation */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(30px); 
    opacity: 0; 
  }
  100% {
    transform: translateY(0); 
    opacity: 1; 
  }
}

/* Slide-Out Animation */
@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0); 
  }
  to {
    opacity: 0;
    transform: translateX(-100%); 
  }
}


/* Animations */
@keyframes floatIn {
  from {
    transform: translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.searchclose {
  width: 50px !important;
  height: 50px !important;
  padding: 12px 12px; 
  border-radius: 50px !important; 
  background-color: #19191d !important; 
  color: #fff; 
  text-align: center;
  cursor: pointer;
  border: 1px solid #FFFFFF !important;
  position: relative;
  overflow: hidden;  
}




.searchclose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%; 
  transition: all 0.6s ease; 
  transform: scale(0); 
}

.searchclose:hover::before {
  transform: scale(1); 
}


/* Search Popup */
.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #151515;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index:111;
}
/* Hide the popup with slide-up animation */
.search-popup.hide {
  animation: slideUp 0.5s forwards;
}
.search-header {
  padding: 20px;
  background: #19191d;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.search-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: auto;
}

.search-body button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  color: #173456;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
}

.search-body h1 {
  font-size: 5rem;
  color: #FFF;
}

.search-body p {
  font-family: "RivieraNights-Regular", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 2;
  text-align: center;
  color: #FFF;
}

.search-body form {
  position: relative;
  width: 100%;
}
.search-form input {
  font-weight: 600;
  font-size: 1.1875rem;
  border-radius: 25px;
  padding: 20px;
  height: 50px;
  border: 1px solid #2d2a28;
  width: 100%;
}

.search-popup.active {
  transform: translateY(0);
}

.btn:hover {
  text-decoration: none; 
}

.mainbutton {
  width: 250px;
  height: 50px;
  font-weight: 500 !important;
  font-family: 'RivieraNights-Bold', sans-serif  !important; 
  font-size: 1.2rem;
  letter-spacing: .1666666667em;
  line-height: 2;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px !important; 
  background-color: #f8f9fa; 
  border-color: #f8f9fa;
  color: #212529; 
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none; 
}


#webgl_canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}
#scroll_container,
.custom-container,
hr {
  position: relative;
  z-index: 2;
}
#hud {
  position: fixed;
  top: var(--ui-inset);
  right: var(--ui-inset);
  z-index: var(--z-ui);
  text-align: right;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

#hud .progress-bar {
  width: 7.5rem;
  height: var(--hairline);
  background: var(--muted);
  margin-block-start: 0.5rem;
  margin-inline-start: auto;
  position: relative;
  overflow: hidden;
}

#hud .progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

#hud .scene-label {
  font-size: 0.6rem;
  color: var(--accent);
  margin-block-start: 0.4rem;
}

#scene_strip {
  position: fixed;
  left: var(--nav-x);
  top: 50%;
  translate: -50% -50%;
  z-index: var(--z-ui);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scene-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s, scale 0.3s;
}

.scene-dot.active {
  background: var(--accent);
  scale: 1.8;
}

#theme_toggle {
  position: fixed;
  bottom: var(--ui-inset);
  left: var(--nav-x);
  translate: -50% 0;
  z-index: var(--z-ui);
  width: 2rem;
  height: 2rem;
  border: none;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

#theme_toggle:hover {
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

#theme_toggle svg {
  width: 0.875rem;
  height: 0.875rem;
  position: absolute;
  transition: opacity 0.3s ease, rotate 0.3s ease;
  color: var(--accent);
}

:root[data-theme="light"] #theme_toggle svg {
  color: var(--fg);
}

#theme_toggle .icon-sun {
  opacity: 1;
  rotate: 0deg;
}

#theme_toggle .icon-moon {
  opacity: 0;
  rotate: 90deg;
}

:root[data-theme="light"] #theme_toggle .icon-sun {
  opacity: 0;
  rotate: -90deg;
}

:root[data-theme="light"] #theme_toggle .icon-moon {
  opacity: 1;
  rotate: 0deg;
}

#scroll_container {
  position: relative;
  z-index: 1;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5rem;
}

.text-card {
  max-width: 32.75rem;
  padding: 2.25rem 2rem;
  background: var(--card-bg);
  border-left: var(--hairline) solid var(--card-border);
  transition: background 0.3s ease, border-color 0.3s ease;
  margin: auto auto;
}

:root[data-theme="dark"] .text-card {
  border: var(--hairline) solid var(--card-border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.text-card.right {
  margin-inline-start: auto;
  border-left: none;
  border-right: var(--hairline) solid var(--card-border);
  text-align: right;
}

.text-card.center {
  margin-inline: auto;
  border-left: none;
  border-top: var(--hairline) solid var(--card-border);
  text-align: center;
  max-width: 28.75rem;
}

.tag {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 1.1rem;
  opacity: 0;
  translate: 0 var(--reveal-offset);
  transition: opacity var(--reveal-duration) ease,
    translate var(--reveal-duration) ease;
}

.tag.visible {
  opacity: 1;
  translate: 0 0;
}

:is(h1, h2) {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.92;
  opacity: 0;
  translate: 0 1.125rem;
  transition: opacity var(--reveal-duration) ease 0.08s,
    translate var(--reveal-duration) ease 0.08s;
}

:is(h1, h2).visible {
  opacity: 1;
  translate: 0 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.body-text {
  font-size: 0.78rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  margin-block-start: 1.25rem;
  opacity: 0;
  translate: 0 var(--reveal-offset);
  transition: opacity var(--reveal-duration) ease 0.2s,
    translate var(--reveal-duration) ease 0.2s;
}

.body-text.visible {
  opacity: 1;
  translate: 0 0;
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-block-start: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  translate: 0 var(--reveal-offset);
  transition: opacity var(--reveal-duration) ease 0.3s,
    translate var(--reveal-duration) ease 0.3s;
}

.stat-row.visible {
  opacity: 1;
  translate: 0 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.h-line {
  width: 3.125rem;
  height: var(--hairline);
  background: var(--accent);
  margin-block-end: 1.2rem;
  opacity: 0;
  scale: 0 1;
  transform-origin: left;
  transition: opacity 0.4s ease, scale 0.4s ease;
}

.h-line.visible {
  opacity: 1;
  scale: 1 1;
}

.text-card.right .h-line {
  transform-origin: right;
  margin-inline-start: auto;
}

.text-card.center .h-line {
  transform-origin: center;
  margin-inline: auto;
  margin-block-end: 1.2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: 1.75rem;
  padding: 0.6rem 1.25rem;
  border: var(--hairline) solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  translate: 0 var(--reveal-offset);
  transition: opacity var(--reveal-duration) ease 0.35s,
    translate var(--reveal-duration) ease 0.35s, background 0.2s, color 0.2s;
}

.cta.visible {
  opacity: 1;
  translate: 0 0;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.cta svg {
  width: 0.6875rem;
  height: 0.6875rem;
}

#credit {
  position: fixed;
  right: var(--ui-inset);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  z-index: var(--z-ui);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

#credit a {
  color: var(--muted);
  text-decoration: none;
}

@media (width <= 60em) {
  section {
    padding: 5rem 3rem;
  }

  .text-card {
    max-width: 20rem;
  }
}

@media (width <= 37.5em) {
  :root {
    --ui-inset: 1.25rem;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .text-card {
    max-width: 100%;
  }

  .text-card:is(.right, .center) {
    margin-inline: 0;
    text-align: left;
    border-right: none;
    border-top: none;
    border-left: var(--hairline) solid var(--card-border);
  }

  .text-card:is(.right, .center) .h-line {
    transform-origin: left;
    margin-inline-start: 0;
    margin-inline: 0;
  }

  #hud {
    top: 1rem;
    right: 1rem;
  }

  #scene_strip {
    display: none;
  }

  #theme_toggle {
    bottom: 1rem;
    left: 1.25rem;
    translate: 0 0;
  }

  .stat-row {
    gap: 1.5rem;
  }
}
/* =========================
   CONTACT ALIGN FIX (SAFE OVERRIDES)
   ========================= */

/* Ensure contact section is centered properly */
.custom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 1rem;
}

/* Center title properly */
.contact-title {
    width: 100%;
    text-align: center;
    padding: 0;
}

/* Make contact boxes fully centered */
.contact-box {
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

/* Improve spacing consistency */
.contact-box p {
    margin-bottom: 1.2rem;
}

/* =========================
   HR STYLE (TOP & BOTTOM SEPARATION)
   ========================= */

.custom-container hr {
    width: 60%;
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--muted),
        transparent
    );
    margin: 2rem auto;
    opacity: 0.6;
}

/* If hr is outside container (hero separator use) */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--muted),
        transparent
    );
    margin: 0 auto;
    width: 70%;
    opacity: 0.5;
}

/* =========================
   HERO + CONTACT SEPARATION SPACING
   ========================= */

#scroll_container {
    margin-bottom: 2rem;
}

/* ensure contact section doesn't stick to hero */
.custom-container {
    margin-top: 3rem;
}



/* ===================== */
/* Footer Design */
/* ===================== */

@media (min-width: 1400px){
  .footer-container{
    max-width: 1700px;
    width: 100%;
    margin: auto auto ;
  }
}

.footer {
  position: relative;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 20px;
  max-width: 250px;
  width: 100%;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 20px auto;
  width: 90%; 
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  padding: 0 5%;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 10px; 
  flex: 1;
  text-align: left;
}

.link-column a {
  color: #FFFF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .1666666667em;
  line-height: 1.6666666667;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.link-column a:focus,
.link-column a:active {
    outline: none;
}

.link-column a:hover {
  color: #bbb;
  text-decoration: none;
}

.footer-social-media {
  display: flex;
  gap: 25px; 
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}

.social-icon {
  font-size: 2rem;
  color: #bbb;
  text-decoration: none;
  opacity: .4s;
}
.social-icon:focus,
.social-icon:active {
    outline: none;
}

.social-icon:hover {
  color: #ffffff;
}
@media (min-width: 769px) and (max-width: 991px) {
  .footer-logo-img {
    height: 70px;
  }
  .link-column {
    text-align: center; 
  }
  .link-column a {
    font-size: 1.4rem !important;
    letter-spacing: .1666666667em;
    line-height: 1.6666666667;
    margin-bottom: 20px;
  }

  .footer-social-media {
    flex-direction: row; 
    margin: 20px auto; 
    width: 100%; 
    justify-content: center; 
    margin-top: 10px;
  }

  .social-icon {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 60px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .link-column {
    text-align: center; 
  }
  .link-column a {
    font-size: 1.4rem !important;
    letter-spacing: .1666666667em;
    line-height: 1.6666666667;
    margin-bottom: 20px;
  }

  .footer-social-media {
    flex-direction: row; 
    margin: 20px auto; 
    width: 100%; 
    justify-content: center; 
    margin-top: 10px;
  }

  .social-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-logo-img {
    height: 50px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .link-column {
    text-align: center; 
  }

  .footer-social-media {
    flex-direction: row; 
    margin: 20px auto; 
    width: 100%; 
    justify-content: center; 
    margin-top: 10px;
  }

  .social-icon {
    font-size: 1.5rem;
  }
}
