:root {
  --primary-color: #333;
  --background-color: #fff;
  --font-family: "Outfit", sans-serif, Arial, sans-serif;
  --title-font-size: 5rem;
  --subtitle-font-size: 1.2rem;
  --content-font-size: 1rem;
  --underline-offset: 0.5rem;
  --letter-spacing: 1rem;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

/* Hamburger Menu */
.hamburger-menu {
  position: fixed;
  top: 3rem;
  left: 3rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.hamburger-menu:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Full Page Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

/* Mobile Logo */
.mobile-logo {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  z-index: 1600;
  display: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.nav-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  color: white;
}

.full-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.full-nav-link {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.full-nav-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 0.3s ease;
  z-index: -1;
}

.full-nav-link:hover {
  color: var(--primary-color);
}

.full-nav-link:hover::before {
  left: 0;
}

.overlay-social {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.overlay-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.overlay-social-link:hover {
  color: #ccc;
  transform: scale(1.1);
}

.overlay-social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.image-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.black-image {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 1rem;
}

/* Social Media Sidebar */
.social-sidebar {
  position: fixed;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

.social-sidebar.hidden {
  opacity: 0;
  pointer-events: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.3s ease;
}

/* Navigation Header */
.nav-header {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 4rem;
}

.nav-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #666;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  transition: all 0.3s ease;
}

.logo:hover {
  color: #666;
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Decorative Images */
.hero-deco-item {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-deco-item:nth-of-type(1) {
  top: -15%;
  right: 15%;
  width: 25%;
  max-width: 500px;
  animation-delay: 0.3s;
}

.hero-deco-item:nth-of-type(2) {
  top: 36%;
  left: 0;
  width: 46%;
  max-width: 900px;
  animation-delay: 0.6s;
}

.hero-deco-item:nth-of-type(3) {
  top: 69%;
  right: 1.5%;
  width: 30%;
  max-width: 900px;
  animation-delay: 0.9s;
}

.hero-deco-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0.5;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  z-index: 10;
  position: relative;
  mix-blend-mode: difference;
  color: white;
}

.title {
  font-size: var(--title-font-size);
  color: white;
  letter-spacing: var(--letter-spacing);
  z-index: 99999;
  margin: 1rem;
}

.subtitle {
  font-size: var(--subtitle-font-size);
  color: white;
  margin: 0.5rem;
}

.content {
  font-size: var(--content-font-size);
  color: white;
  margin: 0.5rem;
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  :root {
    --title-font-size: 3rem;
    --subtitle-font-size: 1rem;
    --content-font-size: 0.8rem;
    --letter-spacing: 0.5rem;
  }

  .social-sidebar {
    display: none;
  }

  /* Hide navigation header on mobile */
  .nav-header {
    display: none;
  }

  /* Always show hamburger menu on mobile */
  .hamburger-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    top: 1.5rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .hamburger-line {
    width: 1.2rem;
    height: 1.5px;
  }

  /* Show mobile logo on mobile */
  .mobile-logo {
    display: block;
  }

  /* Hide hero decorative images on mobile */
  .hero-deco-item {
    display: none;
  }

  .nav-overlay-content {
    flex-direction: column;
  }

  .nav-column {
    padding: 2rem;
    align-items: flex-start;
    text-align: left;
    margin-top: 5rem;
  }

  .full-nav-link {
    font-size: 1.8rem;
  }

  .image-column {
    padding: 2rem;
  }

  .black-image {
    height: 50vh;
  }
}

@media screen and (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .full-nav-link {
    font-size: 1.3rem;
  }
}

/* Hide navigation header in abyss section */
#abyss-section .nav-header {
  display: none;
}

/* Scroll Down */
.scroll-down {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.scroll-down-text {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.1rem 1rem;
}

.scroll-down-text::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: left 0.3s ease;
  z-index: -1;
  animation: slideBackgroundBefore 3s ease-in-out infinite;
}

.scroll-down-text {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* Change text color when background covers it */
.scroll-down-text::before {
  animation: slideBackgroundBefore 3s ease-in-out infinite;
}

/* Force text color change during animation */
.scroll-down-text {
  animation: textColorChange 3s ease-in-out infinite;
}

@keyframes textColorChange {
  0%,
  100% {
    color: var(--primary-color);
  }
  50% {
    color: var(--background-color);
  }
}

@keyframes slideBackgroundBefore {
  0% {
    left: -100%;
  }
  50% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

.scroll-down__line {
  position: absolute;
  margin-top: 1rem;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 0;
  background-color: var(--primary-color);
  transform: translateX(-50%);
  animation: scrollLine 3s infinite;
}

@keyframes scrollLine {
  0% {
    height: 0;
    top: 100%;
  }
  50% {
    height: 40px;
    top: 100%;
  }
  100% {
    height: 0;
    top: calc(100% + 40px);
  }
}

#abyss-section .text-with-line h2 {
  font-size: 2rem;
  font-weight: 700;
}

.arrow-svg {
  width: 3rem;
  height: auto;
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  #abyss-section .text-with-line h2 {
    font-size: 1.5rem;
    font-weight: 700;
  }
  .arrow-svg {
    width: 2rem;
  }
}
