/* Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --main-bg: #000;
  --secondary-bg: #000;
  --accent: #0f71f1;
  --light-text: #f0f0f0;
  --max-width: 1200px;
  --section-padding: 3rem;
}

@font-face {
  font-family: "Akira";
  src: url("./assets/fonts/Akira-Expanded-Demo.otf") format("opentype");
}

/* Overlay */
#overlay {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeOut 0.5s ease forwards;
  animation-delay: 0.5s;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}
.overlay-content {
  text-align: center;
}
.overlay-japanese {
  font-size: 3rem;
  font-family: "Roboto", sans-serif;
  text-shadow: 0 0 5px #fff;
}
.overlay-english {
  font-size: 1.5rem;
  font-family: "Akira", Arial;
  margin-top: 0.5rem;
  text-shadow: 0 0 50px #fff;
}
.overlay-text {
  color: white;
  font-size: 3rem;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-bg);
  padding: 1rem 2rem;
}
.navbar-logo img {
  width: 50px;
  height: auto;
}
.navbar-links {
  display: flex;
  gap: 1rem;
}
.nav-button {
  background-color: #7c7c7c;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.3s;
}
.nav-button:hover {
  background-color: #242424;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .navbar-links {
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-button {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Quick Intro */
.quick-intro-container {
  display: flex;
  align-items: stretch;
}
.quick-intro-container .left,
.quick-intro-container .right {
  flex: 1;
  background-color: var(--secondary-bg);
  padding: 2rem;
  color: var(--light-text);
}
.quick-intro-container .left p {
  font-size: 1.2rem;
  font-family: "Roboto", Arial;
}
.quick-intro-container .right img {
  max-width: 100%;
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent);
  padding: 2rem;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) blur(5px);
  z-index: 1;
}
body.subpage .hero-background {
  filter: grayscale(100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  -webkit-text-stroke: 3px black;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  font-family: "Akira", Arial;
  font-size: 10rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.hero p {
  font-family: "Roboto", serif;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.hero p.hero-subtitle {
  font-family: "Michroma", serif;
  color: black;
  -webkit-text-stroke: 0.5px #fff;
  font-size: 1.5rem;
}
body.subpage .hero {
  min-height: 50vh;
}
body.subpage .hero h1 {
  font-size: 4rem;
  -webkit-text-stroke: 1px black;
}
body.subpage {
  background-color: #000;
}

/* Code Extrait */
.code-extrait {
  width: 60%;
  margin: 1rem auto;
  padding: 1rem;
  background-color: var(--accent);
  border-radius: 10px;
}
.code-extrait p {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--light-text);
}

/* Boxes */
.box {
  background: var(--secondary-bg);
  padding: 1rem;
  border-radius: 5px;
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
}
.box h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.box p {
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Titles */
.quick-title {
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
  color: var(--light-text);
}
.section-text h2 {
  font-family: "Roboto", sans-serif;
  font-size: 4rem;
  margin: 1rem 0 0.5rem;
  color: var(--light-text);
}

/* Section Text */
.section-text p {
  line-height: 1.6;
  font-size: 1.2rem;
  margin: 1rem 0;
}

/* Content Sections */
.content-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: var(--section-padding) 1rem;
  background-color: var(--main-bg);
}
.content-section.reverse {
  flex-direction: row-reverse;
}
.rounded-image {
  width: 100%;
  max-width: 1000px;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
}
.section-text h2 a {
  color: inherit;
  text-decoration: none;
}
.section-text h2 a:hover {
  text-decoration: underline;
}
.styled-hr {
  border: none;
  height: 2px;
  background-color: white;
  margin: 1rem auto;
  width: 80%;
  max-width: var(--max-width);
  opacity: 0.8;
}
.content-section.reverse .section-text {
  margin-left: 2rem;
}
.content-section.alternate-bg {
  background-color: var(--secondary-bg);
}
.section-text {
  flex: 1 1 300px;
  margin-right: 2rem;
  color: var(--light-text);
  font-family: sans-serif;
}
@media (min-width: 1200px) {
  .section-text p { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .section-text p { font-size: 1rem; }
}
.section-text::before {
  content: "";
  display: block;
  width: 50px;
  height: 5px;
  background: var(--accent);
  margin-bottom: 1rem;
}
a img {
  transition: transform 0.3s ease; /* Smooth transition effect */
}

a:hover img {
  transform: scale(1.1); /* Scale image 10% bigger on hover */
}

/* Section Media */
.section-media {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

/* Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Conclusion */
.conclusion-section {
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  color: var(--light-text);
  text-align: center;
  padding: 1rem;
  font-family: sans-serif;
}
