/* ===== FONTS ===== */
@font-face {
  font-family: 'CxMono';
  src: url('fonts/CxMonoTrial-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Become';
  src: url('fonts/Become-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  padding-top: 64px;
}

/* ===== NAVBAR ===== */
#custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: #0d0d0d;
  box-sizing: border-box;
}

#custom-navbar a {
  text-decoration: none;
  color: #ffffff;
  font-family: 'CxMono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

#custom-navbar a:hover {
  color: #aaaaaa;
}

#custom-navbar .nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== HERO ===== */
#hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 80px 20px;
  gap: 24px;
}

#typing-container {
  font-family: 'CxMono', monospace;
  font-size: 1rem;
  color: #aaaaaa;
  letter-spacing: 0.1em;
  min-height: 1.5em;
}

#cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#hero-heading {
  font-family: 'Become', sans-serif;
  font-size: 8rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

/* ===== VIEW BUTTON ===== */
#view-btn {
  display: inline-block;
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  padding: 16px 48px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, color 0.3s ease;
}

#view-btn:hover {
  background: #ffffff;
  color: #0d0d0d;
}

#view-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #custom-navbar {
    padding: 0 24px;
    height: 56px;
  }

  #custom-navbar a {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  #hero-heading {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  #custom-navbar {
    padding: 0 12px;
    height: 56px;
  }

  #custom-navbar .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
  }

  #custom-navbar .nav-left,
  #custom-navbar .nav-right {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  #hero-heading {
    font-size: 3rem;
  }

  body {
    padding-top: 56px;
  }
}

/* ===== PROJECT PAGE ===== */
.project-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 80px 20px;
}

.project-title {
  font-family: 'Become', sans-serif;
  font-size: 6rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.project-content {
  padding: 80px 20px;
}

.project-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-block h2 {
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 16px;
}

.project-block p {
  font-family: 'CxMono', monospace;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
  .project-title {
    font-size: 3.5rem;
  }
}

/* ===== EXPLORE PAGE ===== */
#explore-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 80px 48px;
  min-height: calc(100vh - 64px);
  align-items: center;
  justify-content: center;
}

.explore-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s ease;
  max-width: 480px;
}

.explore-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}

.explore-btn i {
  font-size: 32px;
  opacity: 0.6;
}

.explore-title {
  font-family: 'Become', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.explore-sub {
  font-family: 'CxMono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Mobile */
@media (max-width: 768px) {
  #explore-container {
    flex-direction: column;
    padding: 40px 24px;
  }

  .explore-btn {
    width: 100%;
    max-width: 100%;
    padding: 60px 40px;
  }

  .explore-title {
    font-size: 2.5rem;
  }
}

/* ===== FONT LOAD FIX ===== */
#hero-heading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hero-heading.font-ready {
  opacity: 1;
}

/* ===== ACCORDION CARDS ===== */
#accordion-container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 64px);
  width: 100%;
  overflow: hidden;
}

.acc-card {
  position: relative;
  flex: 0 0 72px;
  background: var(--card-color);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 0.5px solid rgba(255, 255, 255, 0.06);
}

.acc-card.active {
  flex: 1;
}

.acc-card:last-child {
  border-right: none;
}

/* Collapsed state — sideways title */
.acc-collapsed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.acc-card.active .acc-collapsed {
  opacity: 0;
  pointer-events: none;
}

.acc-title-sideways {
  font-family: 'Become', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.05em;
}

/* Expanded state — full content */
.acc-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
  pointer-events: none;
}

.acc-card.active .acc-expanded {
  opacity: 1;
  pointer-events: all;
}

.acc-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.acc-title {
  font-family: 'Become', sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.acc-desc {
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
}

.acc-view-btn {
  display: inline-block;
  font-family: 'CxMono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  padding: 12px 36px;
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease;
  width: fit-content;
  margin-top: 8px;
}

.acc-view-btn:hover {
  background: #ffffff;
  color: #0d0d0d;
}

/* Mobile — stack vertically */
@media (max-width: 768px) {
  #accordion-container {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 56px);
  }

  .acc-card {
    flex: 0 0 56px;
  }

  .acc-card.active {
    flex: 0 0 400px;
  }

  .acc-title-sideways {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.1rem;
  }

  .acc-collapsed {
    justify-content: flex-start;
    padding-left: 24px;
  }

  .acc-expanded {
    padding: 24px;
  }

  .acc-title {
    font-size: 2.5rem;
  }
}
