:root {
  /* Change this to 700, 800, 900, etc. to adjust how big section images can get */
  --section-image-max-width: 900px; 
}

/* Optionally enable smooth scrolling for normal anchor jumps 
   (if you had a normal scroll site). Not strictly needed here,
   but can make it smoother in some browsers:
html {
  scroll-behavior: smooth;
}
*/

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* No normal scroll - we have a wheel-based fade approach */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* Background Video Container */
#BackgroundVideo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  scale: 1.1;
}
#BackgroundVideo iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  justify-content: space-between;
  z-index: 10;
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: bold;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: #f0c040;
}

/* ============== PAGE HANDLING ============== */
.page {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none;  
  align-items: center;
  justify-content: center;
  opacity: 0; 
  transition: opacity 0.7s ease; /* fade transition */
}
.page.active {
  display: flex;
  opacity: 1;
}
.page.fade-out {
  opacity: 0 !important;
}

/* HERO (Home) */
.hero {
  width: 100%;
  height: 100%;
  position: relative;
  background: url("images/background.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px; 
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; 
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #ddd;
}

/* ========== About Page ========== */
.about-page {
  background: #fff url('images/swirl-bg.png') no-repeat center / cover;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 150px 1fr 500px;
  gap: 2.5rem;
  padding: 3rem;
  color: #333;
}

/* Left Column */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 1rem;
}
.about-left .brand {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.section-number {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.vertical-line {
  width: 2px;
  height: 100px;
  background: #999;
  margin: 1rem 0 1.5rem;
}
.about-left nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}
.about-left nav li {
  font-size: 1rem;
  cursor: pointer;
  color: #555;
}
.about-left nav li:hover {
  color: #000;
}
.about-left nav li.active {
  font-weight: bold;
  color: #000;
}

/* Middle Column (About) */
.about-main {
  padding: 1rem;
}
.about-main h1 {
  display: flex;
  align-items: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}
.about-main .title-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
}
.subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 2rem;
}
.about-main h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  display: inline-block;
  background: #f1f3f5;
  color: #333;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

/* Right Column (About image) */
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 50%;
}
.about-image img {
  width: 100%;
  max-width: var(--section-image-max-width);
  border-radius: 20px;
  object-fit: cover;
}

/* Responsive: About */
@media (max-width: 1200px) {
  .about-page {
    grid-template-columns: 120px 1fr 400px;
    padding: 2rem;
  }
  .section-number {
    font-size: 4rem;
  }
  .about-main h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 992px) {
  .about-page {
    grid-template-columns: 1fr;
  }
  .about-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
  .vertical-line {
    display: none;
  }
  .section-number {
    font-size: 3rem;
  }
  .about-image {
    order: -1; 
  }
}

/* ========== Portfolio Page ========== */
.portfolio-page {
  background: #fff url('images/swirl-bg.png') no-repeat center / cover;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 150px 1fr 500px;
  gap: 2.5rem;
  padding: 3rem;
  color: #333;
}

/* Left Column (Portfolio) */
.portfolio-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 1rem;
}
.portfolio-left .brand {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.portfolio-left .section-number {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.portfolio-left .vertical-line {
  width: 2px;
  height: 100px;
  background: #999;
  margin: 1rem 0 1.5rem;
}
.portfolio-left nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}
.portfolio-left nav li {
  font-size: 1rem;
  cursor: pointer;
  color: #555;
}
.portfolio-left nav li:hover {
  color: #000;
}
.portfolio-left nav li.active {
  font-weight: bold;
  color: #000;
}

/* Middle Column (Portfolio) */
.portfolio-main {
  padding: 1rem;
}
.portfolio-main h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.portfolio-main .subtitle {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 2rem;
}
.construction-box {
  background: #f1f3f5;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
}
.construction-box h2 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}
.construction-box p {
  font-size: 1rem;
  color: #444;
}

/* Right Column (Portfolio) */
.portfolio-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 50%;
}
.portfolio-image img {
  width: 100%;
  max-width: var(--section-image-max-width);
  border-radius: 20px;
  object-fit: cover;
}

/* Responsive: Portfolio */
@media (max-width: 1200px) {
  .portfolio-page {
    grid-template-columns: 120px 1fr 400px;
    padding: 2rem;
  }
  .portfolio-left .section-number {
    font-size: 4rem;
  }
  .portfolio-main h1 {
    font-size: 2.5rem;
  }
  .construction-box h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 992px) {
  .portfolio-page {
    grid-template-columns: 1fr;
  }
  .portfolio-left {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .vertical-line {
    display: none;
  }
  .section-number {
    font-size: 3rem;
  }
  .portfolio-image {
    order: -1;
  }
}

/* ========== Contact Page ========== */
.contact-page {
  background: #fff url('images/swirl-bg.png') no-repeat center / cover;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 150px 1fr 500px;
  gap: 2.5rem;
  padding: 3rem;
  color: #333;
}

/* Left Column (Contact) */
.contact-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 1rem;
}
.contact-left .brand {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.contact-left .section-number {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.contact-left .vertical-line {
  width: 2px;
  height: 100px;
  background: #999;
  margin: 1rem 0 1.5rem;
}
.contact-left nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
}
.contact-left nav li {
  font-size: 1rem;
  cursor: pointer;
  color: #555;
}
.contact-left nav li:hover {
  color: #000;
}
.contact-left nav li.active {
  font-weight: bold;
  color: #000;
}

/* Middle Column (Contact) */
.contact-main {
  padding: 1rem;
}
.contact-main h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.contact-main .subtitle {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 2rem;
}
.contact-main h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.contact-links a {
  display: inline-block;
  background: #f1f3f5;
  color: #333;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.contact-links a:hover {
  background: #e0e2e4;
}
.contact-form {
  background: #f1f3f5; 
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Right Column (Contact) */
.contact-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 50%;
}
.contact-image img {
  width: 100%;
  max-width: var(--section-image-max-width);
  border-radius: 20px;
  object-fit: cover;
}

/* Responsive: Contact */
@media (max-width: 1200px) {
  .contact-page {
    grid-template-columns: 120px 1fr 400px;
    padding: 2rem;
  }
  .contact-left .section-number {
    font-size: 4rem;
  }
  .contact-main h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 992px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
  .contact-left {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .vertical-line {
    display: none;
  }
  .section-number {
    font-size: 3rem;
  }
  .contact-image {
    order: -1;
  }
}

/* Limit main content columns to 700px wide on large screens */
.about-main,
.portfolio-main,
.contact-main {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  word-wrap: break-word;
}

/* For smaller phones (<600px), let it fill ~90% width */
@media (max-width: 600px) {
  .about-main,
  .portfolio-main,
  .contact-main {
    max-width: 90%;
  }
}

/* Icon for headings, etc. */
.title-icon {
  width: 40px;   
  height: 40px;
  object-fit: cover;
  margin-right: 0.5rem;
  vertical-align: middle;
  border-radius: 50%; 
}

/* Contact method icons (Discord, GitHub, etc.) */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-icon {
  width: 24px;  
  height: 24px;
  object-fit: contain;
}

.left-nav *{
  text-decoration: none;
  color: black;
}