:root {
  --orange: #FC4100;
  --yellow: #FFCC00;
  --navy: #0f1724;
  --text: #f4f4f4;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Righteous', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
  text-transform: uppercase;
}

/* Header */
header {
  background: rgba(15,15,15,0.95);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

.main-title {
    letter-spacing: 0.3rem;
}

/* Code Sample Switcher */
/* taeb-switch styles */
/* Center wrapper */

.code-sample-section h1{
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

.wrapper {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem 0;
  position: relative;
}

/* taeb switch styling */
.taeb-switch {
  position: relative;
  display: flex;
  width: 300px;
  background-color: black;
  border: 2px solid var(--orange);
  box-shadow: 2px 2px 0 var(--yellow);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}

.taeb-switch .taeb {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  z-index: 2;
  color: var(--text);
  font-weight: bold;
  user-select: none;
  transition: color 0.2s;
}

.taeb-switch .taeb.active {
  color: black;
}

/* Slider under active tab */
.taeb-switch .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--yellow);
  z-index: 1;
  transition: left 0.3s ease;
  border-radius: 6px;
}

/* Code sample columns styling */
.code-sample-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.code-window {
  width: 45%;
  min-width: 250px;
  background: #1c1c1c;
  border: 2px solid var(--orange);
  box-shadow: 2px 2px 0 var(--yellow);
  border-radius: 4px;
  overflow: auto;
  image-rendering: pixelated;
  height: 600px;
}

.code-window pre {
    font-size: .7em;
}



/* Mobile Navbar */
@media(max-width:768px){
  nav {
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  nav a {
    font-size: 1.5rem;
    margin: 0;
  }
  .hamburger { display: flex; }
}

/* Hero Section */
.hero{
  position:relative;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:1rem;
  min-height:80vh;
}
.hero-content h1{
  font-size:3rem;
  color:var(--orange);
  margin-bottom:-1rem;
}


/* Hero Video Embed Styling */
.embed-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vw;
  max-width: 76%;
  min-width: 75%;
  margin: 2rem auto;
  height: 600px;
  border: 4px solid var(--orange);
  box-shadow: 4px 4px 0 var(--yellow);
  background: repeating-linear-gradient(
    45deg,
    #0f1724,
    #0f1724 20px,
    #1a2235 20px,
    #1a2235 40px
  );
  image-rendering: pixelated;
}

/* Extra decorative pixel corners */
.embed-container::before,
.embed-container::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--orange);
}
.embed-container::before { top: -6px; left: -6px; }
.embed-container::after { bottom: -6px; right: -6px; }

/* Video fills inside arcade frame */
.embed-container iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  background-color: black;
  border: none;
  z-index: 2;
}

/* Optional CRT scanlines overlay */
.embed-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Carousel */
.carousel{
  position:relative;
  width:80%;
  margin:4rem auto;
  border-top:4px solid var(--orange);
  border-bottom:4px solid var(--orange);
  box-shadow:0 3px 0 var(--yellow),0 -3px 0 var(--yellow);
  background:var(--navy);
  image-rendering:pixelated;
}
.carousel-window{
  width:100%;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);
  mask-image:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%);
}
.carousel-track{
  display:flex;
  transition:transform 0.6s ease-in-out;
}
.carousel-track img{
  width:100%;
  flex-shrink:0;
  object-fit:cover;
  transition:transform 0.4s ease,opacity 0.4s ease;
}
.carousel-track img.center{
  opacity:1;
  z-index:1;
}
.carousel-track img:not(.center){
  opacity:0.6;
}
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:var(--orange);
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
  z-index:3;
  padding:0.5rem;
  font-family:monospace;
  border:2px solid var(--yellow);
  box-shadow:2px 2px 0 #444;
  image-rendering:pixelated;
  transition:transform 0.1s ease,box-shadow 0.1s ease;
}
.carousel-btn:hover{
  transform:translateY(-50%) scale(1.1);
  box-shadow:3px 3px 0 #444;
  background:var(--yellow);
  border:2px solid var(--orange);
}
.carousel-btn.prev{left:-2rem}
.carousel-btn.next{right:-2rem}
.carousel-btn.prev::before{
  content:"";
  display:inline-block;
  width:16px;
  height:16px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='12,0 4,8 12,16' fill='white'/></svg>");
  background-size:contain;
  background-repeat:no-repeat;
  image-rendering:pixelated;
}
.carousel-btn.next::before{
  content:"";
  display:inline-block;
  width:16px;
  height:16px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='4,0 12,8 4,16' fill='white'/></svg>");
  background-size:contain;
  background-repeat:no-repeat;
  image-rendering:pixelated;
}

.firstbutton{
  margin-top: -3vw;
}

.secondbutton{
  margin-top: 3vw;
}

.downbutton-wrap{
width: 100%;
  z-index:10;
}

.downbutton{
  background:var(--orange);
  color:#fff;
  font-size:1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  cursor:pointer;
  z-index:10;
  padding:0.5rem;
  font-family:monospace;
  border:2px solid var(--yellow);
  box-shadow:2px 2px 0 #444;
  image-rendering:pixelated;
  transition:transform 0.1s ease,box-shadow 0.1s ease;
}
.downbutton:hover{
  transform:scale(1.1);
  box-shadow:3px 3px 0 #444;
  background:var(--yellow);
  border:2px solid var(--orange);
}

.downbutton::before{
  content:"";
  display:inline-block;
  width:20px;
  height:16px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points=' 4,8 12,16 12,0 ' fill='white'/></svg>");
  transform: rotate(-90deg);
  background-size:contain;
  background-repeat:no-repeat;
  image-rendering:pixelated;
}

/* Project Sections */
.content-section{
  padding:4rem 2rem;
}
.content-section .section-title{
  font-size:2rem;
  color:var(--yellow);
  margin-bottom:1rem;
  text-align:center;
}

.text-inner {
  font-family: "Arial", sans-serif;
  width: 70%;
  margin: 0 auto;
  font-size: 1.2rem; /* slightly larger text for readability */
  line-height: 1.6; /* more space between lines */
  color: #f0f0f0; /* light text color on a darker background */
  padding: 1rem; /* add some inner spacing */
  text-transform: none;;
}

.text-inner.arcade-box{
  position:relative;
  padding:2rem;
  background:rgba(0,0,0,0.6);
  border:2px solid var(--orange);
  box-shadow:2px 2px 0 var(--yellow);
  image-rendering:pixelated;
}
.text-inner.arcade-box::before,
.text-inner.arcade-box::after{
  content:"";
  position:absolute;
  width:4px;
  height:4px;
  background:var(--yellow);
  box-shadow:1px 1px var(--orange);
}
.text-inner.arcade-box::before{top:-2px;left:-2px}
.text-inner.arcade-box::after{bottom:-2px;right:-2px}


/* Code Sample Section (stylized arcade) */
#code-samples {
  padding:4rem 2rem;
  background: #1c1c1c;
  border: 2px solid var(--orange);
  box-shadow: 2px 2px 0 var(--yellow);
  position: relative;
  image-rendering: pixelated;
  margin: 5rem auto;
}

#code-samples::before,
#code-samples::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--orange);
}

#code-samples::before { top: -4px; left: -4px; }
#code-samples::after { bottom: -4px; right: -4px; }

.code-sample-container { text-align:center; }

.code-sample-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.code-sample-column {
  width: 40%;
  height: 300px;
  background: #333;
  padding: 1rem;
  overflow-y: auto;
  border: 2px solid var(--orange);
  box-shadow: 2px 2px 0 var(--yellow);
  border-radius: 4px;
  image-rendering: pixelated;
}

pre {
  font-family:'Righteous',sans-serif;
  color:#ddd;
  white-space:pre-wrap;
  word-wrap:break-word;
  margin:0;
  padding:1rem;
}

/* Footer */
footer{padding:2rem;text-align:center;font-size:0.9rem;color:#777}

/* Responsive */
@media(max-width:900px){
  .content-section{flex-direction:column}
  .content-section .half{width:100%;min-height:240px}
  .content-section .half.image{order:1}
  .content-section .half.text{order:2}
  .embed-container {
  height: 50vw;
  }

  .text-inner {
  width: 100%;
  font-size: .9rem; /* slightly larger text for readability */
  margin-top: 0;
}

.hero {
  margin-bottom: 0;
  min-height: 0vw;
}



.code-window {
  width: 100%;
}


}

@media(max-width:600px){
  .cta-buttons{flex-direction:column;gap:1rem}
  .btn{width:100%}
  .hero-content h1{
  font-size:1.5rem;
}
}