/* ==========================================
   HEADER & NAVBAR STYLES ONLY
   ========================================== */

body,
button {
  font-family: var(--body-font);
  background-color: var(--black-void);
  color: var(--text-primary);
}

/* Header Container */
.header-container {
  width: 100%;
  background: var(--main-gradient);
  position: relative;
  overflow: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 4rem;
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(6px);
}

.menu {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--soft-white);
}

.logo-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-hover-img {
  position: absolute;
  top: calc(100% + 10px);
  width: 15rem;
  height: 15rem;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.logo-section:hover .logo-hover-img {
  opacity: 1;
  transform: scale(1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .logo-title {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--liquid-gold);
}

.logo-text .logo-subtitle {
  font-family: var(--body-font);
  font-size: 0.8rem;
  color: var(--soft-white);
}

/* Hamburger Menu */
.hamburger-menu {
  height: 4rem;
  width: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bar {
  width: 1.9rem;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--soft-white);
  transition: 0.5s;
  position: relative;
}

.bar:before,
.bar:after {
  content: "";
  position: absolute;
  width: inherit;
  height: inherit;
  background-color: var(--soft-white);
  transition: 0.5s;
}

.bar:before {
  transform: translateY(-9px);
}

.bar:after {
  transform: translateY(9px);
}

/* Main Section (For 3D Menu Effect) */
.main {
  position: relative;
  width: 100%;
  left: 0;
  z-index: 5;
  overflow: hidden;
  transform-origin: left;
  transform-style: preserve-3d;
  transition: 0.5s;
}

/* Menu Links & 3D Animation */
.header-container.active .bar {
  transform: rotate(360deg);
  background-color: transparent;
}

.header-container.active .bar:before {
  transform: translateY(0) rotate(45deg);
}

.header-container.active .bar:after {
  transform: translateY(0) rotate(-45deg);
}

.header-container.active .main {
  animation: main-animation 0.5s ease;
  cursor: pointer;
  transform: perspective(1300px) rotateY(20deg) translateZ(310px) scale(0.5);
}

@keyframes main-animation {
  from {
    transform: translate(0);
  }

  to {
    transform: perspective(1300px) rotateY(20deg) translateZ(310px) scale(0.5);
  }
}

.links {
  position: absolute;
  width: 30%;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul {
  list-style: none;
}

.links a {
  text-decoration: none;
  color: var(--soft-white);
  padding: 0.7rem 0;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(10px);
  animation: hide 0.5s forwards ease;
}

.links a:hover {
  font-size: 3rem;
  margin: 0;
  padding: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--liquid-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
}

.header-container.active .links a {
  animation: appear 0.5s forwards ease var(--i);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes hide {
  from {
    opacity: 1;
    transform: translateY(0px);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.shadow {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  transform-origin: left;
  transition: 0.5s;
  background-color: var(--black-void);
}

.shadow.one {
  z-index: 3;
  opacity: 0.15;
}

.shadow.two {
  z-index: 2;
  opacity: 0.1;
}

.header-container.active .shadow.one {
  animation: shadow-one 0.6s ease-out;
  transform: perspective(1300px) rotateY(20deg) translateZ(215px) scale(0.5);
}

@keyframes shadow-one {
  0% {
    transform: translate(0);
  }

  5% {
    transform: perspective(1300px) rotateY(20deg) translateZ(310px) scale(0.5);
  }

  100% {
    transform: perspective(1300px) rotateY(20deg) translateZ(215px) scale(0.5);
  }
}

.header-container.active .shadow.two {
  animation: shadow-two 0.6s ease-out;
  transform: perspective(1300px) rotateY(20deg) translateZ(120px) scale(0.5);
}

@keyframes shadow-two {
  0% {
    transform: translate(0);
  }

  20% {
    transform: perspective(1300px) rotateY(20deg) translateZ(310px) scale(0.5);
  }

  100% {
    transform: perspective(1300px) rotateY(20deg) translateZ(120px) scale(0.5);
  }
}

.header-container.active .main:hover+.shadow.one {
  transform: perspective(1300px) rotateY(20deg) translateZ(230px) scale(0.5);
}

.header-container.active .main:hover {
  transform: perspective(1300px) rotateY(20deg) translateZ(340px) scale(0.5);
}

/* User Display Styles */
#user-display-area {
  margin-left: auto;
  margin-right: 15px;
  display: flex;
  align-items: center;
  min-height: 30px;
}

.user-display {
  display: flex;
  align-items: center;
  position: relative;
}

.user-profile-btn {
  color: var(--accent-gradient);
  font-weight: bold;
  font-size: 16px;
  background: rgba(76, 175, 80, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid var(--accent-gradient);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.user-profile-btn:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-shadow);
}

/* Content Section */
.content-section {
  padding: 4rem 2rem;
  background: var(--black-void);
  color: var(--soft-white);
  line-height: 1.6;
  margin: 0;
}

.content-section h1 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--liquid-gold);
  text-align: center;
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Clean transitions */
.links a,
.user-profile-btn,
.bar {
  transition: all 0.3s ease;
}

/* ============================
    MOBILE RESPONSIVE 
============================ */

@media (max-width: 768px) {
  .shadow {
    display: none;
  }

  /* NAVBAR - MOBILE */
  .navbar {
    height: 3.5rem;
    background: rgba(21, 21, 21, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
  }

  .menu {
    padding: 0 1rem;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text .logo-title {
    font-size: 1rem;
  }

  .logo-text .logo-subtitle {
    font-size: 0.7rem;
  }

  .hamburger-menu {
    width: 2.5rem;
  }

  /* MOBILE MENU / HEADER */
  .header-container.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    perspective: 1200px;
  }

  .header-container.active .links {
    position: fixed;
    width: 100%;
    height: 35vh;
    top: 5%;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    padding: 2rem 1rem;
  }

  .links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    padding: 0;
  }

  .links a {
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 10px;
    width: 100%;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
  }

  .links a:hover {
    font-size: 1.8rem;
    -webkit-text-stroke: 0.8px var(--liquid-gold);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
  }

  .header-container.active .main-container {
    position: fixed;
    width: 100%;
    height: 50vh;
    bottom: 0;
    left: 0;
    z-index: 15;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
  }

  .header-container.active .main {
    height: 100%;
    width: 100%;
    transform: perspective(1200px) rotateX(15deg) translateY(10px) scale(0.95);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid var(--border-strong);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform-origin: bottom center;
    transition: transform 0.4s ease;
    bottom: 10%;
  }

  .header-container.active .main:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
    border-radius: 5%;
    border: 1px solid var(--border-strong);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  }

  #user-display-area {
    margin-right: 10px;
  }

  .user-profile-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-width: 1px;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .content-section h1 {
    font-size: 1.8rem;
  }

  body.menu-active {
    overflow: hidden;
  }

  .menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    background: var(--graphite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
  }

  .menu-close:hover {
    color: var(--molten-orange);
    border-color: var(--molten-orange);
  }
}

@media (max-width: 480px) {
  .links {
    padding-top: 120px !important;
  }

  .links a {
    font-size: 1rem;
    padding: 1.2rem 0.5rem;
    min-height: 50px;
  }

  .links a:hover {
    font-size: 1.5rem;
    -webkit-text-stroke: 0.6px var(--liquid-gold);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5), 0 0 8px rgba(255, 215, 0, 0.4);
    letter-spacing: 0.5px;
  }

  .links ul {
    gap: 0.8rem;
    max-width: 350px;
  }

  #user-display-area {
    margin-right: 5px;
  }

  .user-profile-btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  .content-section h1 {
    font-size: 1.5rem;
  }

  .header-container.active .main {
    transform: perspective(1000px) rotateX(15deg) translateY(50px);
  }
}