/* 
 * Main CSS imports
 * Consolidates all modular CSS files
 */

/* Variables and Base Styles */

/* 
 * Rally Landing Page Variables
 * Pastel 90s MacOS-inspired girly aesthetic
 */

:root {
  /* Base font */
  font-family:
    'Poppins',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;

  /* Base colors - Pastel aesthetic */
  --background-color: #fff2f6;
  --text-color: #4a3f5a;
  --primary-color: #ff9bbe;
  --secondary-color: #b19cd9;
  --accent-color: #ffd3e8;

  /* Border colors */
  --border-light: rgba(0, 0, 0, 0.25);
  --border-medium: rgba(0, 0, 0, 0.4);
  --border-dark: rgba(0, 0, 0, 0.65);

  /* Button Colors */
  --button-background: #ff9bbe;
  --button-text-color: #ffffff;
  --button-hover-bg: #ffb6d4;
  --button-active-bg: #f07da3;

  /* Purple theme for launch button */
  --purple-main: #c9a0dc;
  --purple-light: #dbbdeb;
  --purple-dark: #b88ad0;
  --purple-glow: rgba(201, 160, 220, 0.4);

  /* Card and section colors */
  --card-background: rgba(255, 250, 255, 0.8);
  --section-background: rgba(250, 245, 255, 0.7);

  /* Shadows and effects */
  --drop-shadow: 0 4px 20px rgba(255, 155, 190, 0.3);
  --subtle-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  --glass-reflection: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Holographic colors */
  --holo-color-1: rgba(201, 160, 220, 0.7); /* Pastel purple */
  --holo-color-2: rgba(219, 189, 235, 0.7); /* Light pastel purple */
  --holo-color-3: rgba(184, 138, 208, 0.7); /* Medium pastel purple */
  --holo-color-4: rgba(230, 210, 240, 0.7); /* Very light pastel purple */

  /* Border radius */
  --border-radius: 15px;
  --button-radius: 25px;
  --card-radius: 20px;

  /* Padding values */
  --card-padding: 1.5rem;

  /* Frame colors */
  --frame-border: rgba(255, 155, 190, 0.2);
  --frame-background: rgba(255, 246, 249, 0.9);

  /* Text Animation */
  --text-animation-color: rgba(255, 155, 190, 0.07);
  --text-animation-font-size: 2.5rem;
  --text-animation-angle: 15deg;
  --text-animation-duration: 40s;
  --text-animation-line-height: 4rem;
  --text-animation-spacing: 1rem;

  /* Content width */
  --content-max-width: 1200px;
  --content-padding: 2rem;

  color-scheme: light;
  color: var(--text-color);
  background-color: var(--background-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--background-color);
  background-image: linear-gradient(
    135deg,
    rgba(255, 246, 249, 0.95) 0%,
    rgba(250, 240, 255, 0.95) 100%
  );
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  letter-spacing: 1px;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 2px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.8px;
}

p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Button styles */

button,
.button {
  display: inline-block;
  padding: 0.7em 1.6em;
  border: none;
  border-radius: var(--button-radius);
  background: var(--button-background);
  color: var(--button-text-color);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: var(--drop-shadow);
  position: relative;
  overflow: hidden;
}

button:hover,
.button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 155, 190, 0.4);
}

button:active,
.button:active {
  background: var(--button-active-bg);
  transform: translateY(0);
}

/* Custom Scrollbar */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Firefox scrollbar */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.05);
}

/* Layout */

/* 
 * Layout styles for landing page 
 */

/* Animated Text Background */

.animated-text-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.animated-text-container {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  transform: rotate(var(--text-animation-angle));
  animation: moveTextBackground var(--text-animation-duration) linear infinite;
  overflow: visible;
}

.animated-text-line {
  position: absolute;
  white-space: nowrap;
  color: var(--text-animation-color);
  font-size: var(--text-animation-font-size);
  font-weight: 900;
  line-height: var(--text-animation-line-height);
  letter-spacing: var(--text-animation-spacing);
  text-transform: uppercase;
  width: 300%;
}

@keyframes moveTextBackground {
  0% {
    transform: rotate(var(--text-animation-angle)) translateY(0);
  }
  100% {
    transform: rotate(var(--text-animation-angle))
      translateY(calc(-1 * var(--text-animation-line-height)));
  }
}

/* Position lines for animated background */

.animated-text-line:nth-child(1) {
  top: 0%;
}

.animated-text-line:nth-child(2) {
  top: var(--text-animation-line-height);
}

.animated-text-line:nth-child(3) {
  top: calc(2 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(4) {
  top: calc(3 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(5) {
  top: calc(4 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(6) {
  top: calc(5 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(7) {
  top: calc(6 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(8) {
  top: calc(7 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(9) {
  top: calc(8 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(10) {
  top: calc(9 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(11) {
  top: calc(10 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(12) {
  top: calc(11 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(13) {
  top: calc(12 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(14) {
  top: calc(13 * var(--text-animation-line-height));
}

.animated-text-line:nth-child(15) {
  top: calc(14 * var(--text-animation-line-height));
}

/* Single page layout */

.landing-container {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    'live2d info'
    'footer footer';
  gap: 0;
  padding: 0;
  overflow-y: auto;
  max-width: 100%;
}

/* Live2D showcase */

.live2d-showcase {
  grid-area: live2d;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  min-height: 550px;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Info section */

.info-section {
  grid-area: info;
  padding: var(--content-padding);
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 100vh;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

/* Navigation container */

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Navigation links */

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

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

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

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

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Content sections */

.content-section {
  display: none;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.content-section.active {
  display: block;
}

/* Content section animations */

.content-enter {
  animation: contentEnter 0.5s ease forwards;
}

.content-exit {
  animation: contentExit 0.3s ease forwards;
}

@keyframes contentEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Content container for large screens */

.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Footer */

footer {
  grid-area: footer;
  padding: 1.5rem 0;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 70px;
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 var(--content-padding);
  /* Use the same grid layout as the main container */
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
}

.footer-logo {
  height: 30px;
  grid-column: 1;
  padding-left: 1.5rem;
}

.footer-logo img {
  height: 100%;
  width: auto;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  grid-column: 2;
  justify-self: end;
  padding-right: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #ffffff;
  opacity: 0.78;
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #ffffff;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.footer-social a:hover img {
  filter: brightness(0) invert(0.9) sepia(1) saturate(5) hue-rotate(300deg);
}

.footer-copyright {
  color: #ffffff;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* For very large screens */

@media (min-width: 1921px) {
  .landing-container {
    max-width: 100%;
  }

  .live2d-showcase,
  .info-section {
    margin-left: auto;
    margin-right: auto;
  }

  .live2d-showcase {
    max-width: calc(var(--content-max-width) / 2);
  }

  .info-section {
    max-width: calc(var(--content-max-width) / 2);
  }

  footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-content {
    max-width: 100%;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}

/* Media queries for responsive design */

@media (max-width: 1024px) {
  .landing-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      'live2d'
      'info'
      'footer';
    height: auto;
    overflow-y: auto;
  }

  .live2d-showcase {
    height: 50vh;
    min-height: 500px;
    padding: 1rem;
  }

  .info-section {
    max-height: none;
    padding: 1.5rem 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }

  .nav-buttons {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Remove fixed height constraints for scrollable layout */
  html,
  body {
    overflow-y: auto;
    height: auto;
  }

  .landing-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .live2d-showcase {
    min-height: 550px;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 1rem;
    padding: 1rem;
    overflow: visible;
  }

  .info-section {
    padding: var(--content-padding);
    overflow-y: auto;
    height: auto;
    max-height: none;
    width: 100%;
    box-sizing: border-box;
  }

  footer {
    flex-shrink: 0;
    min-height: 70px;
    padding: 0.75rem 1rem;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    display: flex; /* Override grid for mobile */
  }

  .footer-logo {
    padding-left: 0;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0;
    justify-self: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .footer-social a {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }

  .footer-copyright {
    text-align: center;
    font-size: 0.75rem;
  }
}

/* Mobile optimization for one-page aesthetic */

@media (max-width: 480px) {
  .live2d-showcase {
    padding: 0.75rem;
    margin: 0.5rem auto 1rem;
    width: 100%;
    min-height: 450px;
    max-height: 550px;
    overflow: visible;
    box-sizing: border-box;
  }

  .info-section {
    padding: 1rem 0.75rem;
  }

  footer {
    min-height: 60px;
    padding: 0.5rem;
    width: 100vw; /* Ensure full width */
  }

  .footer-logo {
    height: 24px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

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

  /* Make content panels more compact */
  .panel {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .panel-header {
    margin-bottom: 1rem;
  }
}

/* Landscape mode optimizations */

@media (max-width: 1024px) and (orientation: landscape) {
  .landing-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'live2d info'
      'footer footer';
    height: auto;
    min-height: 100vh;
  }

  .live2d-showcase {
    height: auto;
    min-height: 85vh;
    padding: 0.75rem;
    box-sizing: border-box;
    overflow: visible;
  }

  .info-section {
    max-height: none;
    padding: 1rem;
    overflow-y: auto;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .landing-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'live2d info'
      'footer footer';
    height: auto;
    min-height: 100vh;
    display: grid;
  }

  .live2d-showcase {
    min-height: 85vh;
    height: auto;
    margin: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: visible;
  }

  .info-section {
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1rem;
  }

  .panel {
    margin-bottom: 1rem;
  }

  footer {
    padding: 0.5rem var(--content-padding);
  }
}

/* Components */

/* 
 * Panel Component
 * Used for home, profile, and privacy sections 
 */

.panel {
  padding: var(--card-padding);
  background-color: white;
  border-radius: var(--card-radius);
  border: 2px solid var(--border-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  /* Fixed height to match live2d container in desktop view */
  height: calc(90vh - 12rem);
  display: flex;
  flex-direction: column;
}

.panel-header {
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.panel-header p {
  color: var(--text-color);
  opacity: 0.9;
}

.panel-tabs {
  display: flex;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.panel-tab {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  position: relative;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.panel-tab:hover {
  color: var(--primary-color);
}

.panel-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.panel-content {
  display: none;
  padding: 0.5rem 0;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  /* Add scrolling for overflow content */
  overflow-y: auto;
  flex: 1;

  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari, Edge) */

.panel-content::-webkit-scrollbar {
  width: 6px;
}

.panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.panel-content.active {
  display: block;
}

/* Panel content animations */

.panel-content-enter {
  animation: panelContentEnter 0.3s ease forwards;
}

.panel-content-exit {
  animation: panelContentExit 0.2s ease forwards;
}

@keyframes panelContentEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelContentExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Additional styling for specific panel contents */

.panel-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0.5rem 0 1.5rem 0;
}

.panel-feature-card {
  position: relative;
  padding: 1.2rem;
  border-radius: calc(var(--card-radius) - 5px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-medium);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.panel-feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.panel-feature-card p {
  margin: 0;
}

.panel-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
}

.panel-section-description {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  font-style: italic;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
}

/* For mobile devices */

@media (max-width: 768px) {
  .panel {
    /* Remove fixed height on mobile */
    height: auto;
  }

  .panel-tabs {
    flex-wrap: wrap;
  }

  .panel-tab {
    flex: 1 0 calc(50% - 1px);
    text-align: center;
    padding: 0.8rem 0.5rem;
  }

  .panel-feature-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .panel {
    /* Make sure panel doesn't have fixed height on small screens */
    height: auto;
  }

  .panel-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .panel-tab {
    padding: 0.6rem 1rem;
    border-left: 2px solid transparent;
    text-align: left;
  }

  .panel-tab.active {
    border-bottom: none;
    border-left: 2px solid var(--primary-color);
    background-color: rgba(255, 155, 190, 0.1);
  }
}

/* Age verification notice */

.age-verification {
  background-color: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.age-verification p {
  margin: 0;
  color: #c02942;
  font-size: 0.95rem;
}

/* 
 * Live2D Component Styles 
 */

/* FaceTime macOS window styling */

.facetime-window {
  width: 90%;
  height: 90%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--frame-background);
  box-shadow: 0 10px 25px rgba(212, 165, 196, 0.2);
  border: 2px solid #000000;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.window-titlebar {
  position: relative;
  height: 30px;
  background: #000000;
  border-bottom: 1px solid #222222;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 6px;
  z-index: 2;
}

.window-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.window-close {
  background-color: #ff5f57;
  border: 1px solid #e04343;
}

.window-minimize {
  background-color: #ffbd2e;
  border: 1px solid #e0a92e;
}

.window-maximize {
  background-color: #28c941;
  border: 1px solid #1ea835;
}

.window-title {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  z-index: 1;
}

.window-content {
  height: calc(100% - 30px);
  width: 100%;
  position: relative;
  overflow: visible;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.live2d-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

#live2d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
  transform: translateY(-5%); /* Adjust vertical position to show full body */
}

/* Lip sync toggle button */

.lip-sync-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.lip-sync-button svg {
  width: 22px;
  height: 22px;
}

.lip-sync-button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.lip-sync-button.active {
  background: rgba(255, 155, 190, 0.8);
  border-color: white;
}

/* Model info styling */

.model-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

.model-name {
  opacity: 0.9;
}

/* Volume control styling */

.volume-control {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 8px 4px 4px; /* Reduced bottom padding */
  z-index: 10;
  height: 150px; /* Height for the container */
  width: 36px; /* Narrower width */
}

/* Custom styling for the volume slider */

input[type='range']#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px; /* Height when rotated becomes width */
  height: 20px; /* Width when rotated becomes height */
  margin: 0 0 10px;
  padding: 0;
  cursor: pointer;
  transform: rotate(-90deg);
  background: transparent;
  position: relative;
  top: 40px; /* Centers the slider vertically in container */
}

/* Styling the track */

input[type='range']#volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  border: none;
}

input[type='range']#volume-slider::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  border: none;
}

/* Styling the thumb */

input[type='range']#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  margin-top: -4px; /* Center thumb on track */
  border: none;
}

input[type='range']#volume-slider::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
}

input[type='range']#volume-slider:focus {
  outline: none;
}

/* Better mute button styling */

.mute-button {
  position: relative;
  bottom: 0; /* Remove negative bottom value */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-bottom: 4px; /* Add small margin to prevent touching edge */
}

.mute-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mute-button.muted::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: white;
  transform: rotate(-45deg);
  top: 11px;
  left: 1px;
}

/* Media queries for responsive design */

@media (max-width: 1024px) {
  .facetime-window {
    width: 90%;
    height: 90%;
    max-height: none;
    border-width: 2px;
  }

  .live2d-container {
    height: 100%;
    overflow: hidden;
  }

  #live2d-canvas {
    transform: translateY(-3%); /* Adjust for tablet view */
  }
}

@media (max-width: 768px) {
  .facetime-window {
    width: 90%;
    height: 90%;
    border-radius: 14px;
    border-width: 2px;
    margin: 0 auto;
    max-width: 700px;
  }

  .lip-sync-button {
    bottom: 15px;
    right: 15px;
  }

  .live2d-showcase {
    padding: 1rem;
    height: 60vh; /* Increase height to show more of the model */
    min-height: 400px; /* Minimum height to ensure visibility */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .window-titlebar {
    height: 25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .window-content {
    height: calc(100% - 25px);
  }

  #live2d-canvas {
    transform: translateY(0%); /* Adjust for mobile view */
  }

  .volume-control {
    bottom: 15px;
    right: 15px;
    padding: 5px 3px 3px; /* Reduced bottom padding */
    height: 120px;
    width: 30px; /* Narrower width for tablet */
  }

  input[type='range']#volume-slider {
    width: 80px;
    top: 30px;
    margin-bottom: 8px;
  }

  .model-info {
    bottom: 15px;
    left: 15px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .mute-button {
    bottom: 0;
    margin-bottom: 3px;
  }
}

@media (max-width: 480px) {
  .window-button {
    width: 10px;
    height: 10px;
  }

  .window-titlebar {
    height: 22px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
  }

  .window-content {
    height: calc(100% - 22px);
  }

  .live2d-showcase {
    padding: 0.75rem;
    height: 50vh; /* Appropriate height for mobile */
    min-height: 300px; /* Ensure minimum height */
    max-height: 500px; /* Cap maximum height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .facetime-window {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    border-width: 1px;
    max-width: 450px;
    margin: 0 auto;
  }

  #live2d-canvas {
    transform: translateY(0%); /* Adjust for small mobile view */
  }

  .volume-control {
    bottom: 10px;
    right: 10px;
    padding: 4px 2px 2px; /* Reduced bottom padding */
    height: 100px;
    width: 26px; /* Narrower width for mobile */
  }

  input[type='range']#volume-slider {
    width: 70px;
    top: 25px;
    margin-bottom: 5px;
  }

  .mute-button {
    bottom: 0;
    margin-bottom: 2px;
    width: 20px;
    height: 20px;
  }

  .mute-button.muted::after {
    width: 18px;
    top: 9px;
    left: 1px;
  }
}

/* Landscape mode adjustments to ensure model is fully visible */

@media (max-width: 1024px) and (orientation: landscape) {
  .live2d-container {
    height: 100%;
    overflow: hidden;
  }

  .live2d-showcase {
    height: 80vh;
    min-height: 300px;
  }

  .facetime-window {
    width: 85%;
    height: 85%;
    border-radius: 12px;
    border-width: 1px;
  }

  #live2d-canvas {
    transform: translateY(-10%); /* Adjust for landscape view */
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .live2d-container {
    height: 100%;
    overflow: hidden;
  }

  .live2d-showcase {
    height: 85vh;
    min-height: 280px;
    padding: 0.5rem;
  }

  .facetime-window {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    border-width: 1px;
  }

  #live2d-canvas {
    transform: translateY(-15%); /* Adjust for mobile landscape view */
  }
}

/* 
 * Button Component Styles 
 */

/* 90s MacOS style button */

.mac-button {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: linear-gradient(to bottom, #ffffff, #f0f0f0);
  color: var(--text-color);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.mac-button:hover {
  background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
  border-color: #d0d0d0;
}

.mac-button:active {
  background: linear-gradient(to bottom, #e0e0e0, #d8d8d8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(1px);
}

.mac-button.primary {
  background: linear-gradient(to bottom, var(--primary-color), #f180a5);
  border-color: #f069a1;
  color: white;
}

.mac-button.primary:hover {
  background: linear-gradient(to bottom, #ff9fc2, var(--primary-color));
}

/* Holographic launch button */

.launch-button {
  border: 2px solid transparent;
  background: var(--purple-main);
  position: relative;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: none;
}

.launch-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--holo-color-1),
    var(--holo-color-2),
    var(--holo-color-3),
    var(--holo-color-4),
    var(--holo-color-1)
  );
  background-size: 300% 300%;
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: none;
}

.launch-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0s;
}

.launch-button:hover {
  transform: translateY(0);
  border: 2px solid #000;
  animation: borderPulse 1.5s infinite;
}

.launch-button:hover::before {
  opacity: 0;
}

.launch-button:hover::after {
  opacity: 1;
  animation: holographicShine 3s ease-in-out infinite;
}

.launch-button:active {
  transform: translateY(0);
  background: var(--purple-dark);
  border-color: #000;
  animation: none;
}

@keyframes borderPulse {
  0% {
    border-color: rgba(0, 0, 0, 0.3);
  }
  50% {
    border-color: rgba(0, 0, 0, 1);
  }
  100% {
    border-color: rgba(0, 0, 0, 0.3);
  }
}

@keyframes holographicGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes holographicShine {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    left: 100%;
    opacity: 0.5;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Demo buttons styling */

.demo-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.primary-button {
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(212, 165, 196, 0.15);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 15px rgba(212, 165, 196, 0.2);
}

/* Media queries for responsive design */

@media (max-width: 1200px) {
  .launch-button {
    font-size: 1rem;
    padding: 0.75rem 1.8rem;
  }
}

@media (max-width: 1024px) {
  .launch-button {
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
  }
}

@media (max-width: 768px) {
  .demo-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .launch-button {
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .launch-button {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
  }
}

/* 
 * Gallery Component Styles 
 */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-dark);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.8rem;
  background-color: white;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* Whitepaper content */

.whitepaper-content {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border-medium);
}

.whitepaper-section-item {
  margin-bottom: 1.5rem;
}

.whitepaper-section-title {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
}

.whitepaper-section-title:first-child {
  margin-top: 0;
}

/* Media queries for responsive design */

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-caption {
    padding: 0.6rem;
  }

  .whitepaper-content {
    padding: 1rem;
  }
}

/* 
 * Modal Component Styles 
 */

.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-container.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background-color: white;
  border-radius: var(--card-radius);
  border: 2px solid var(--border-dark);
  padding: 1.5rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-container.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.modal-close {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-color);
  padding: 0;
  box-shadow: none;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: none;
  box-shadow: none;
}

.modal-body {
  margin-bottom: 1rem;
}

/* Mobile nav button */

.mobile-nav-button {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border-dark);
  padding: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-nav-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show on tablet and mobile screens */

@media (max-width: 1024px) {
  .mobile-nav-button {
    display: flex;
  }

  .nav-container {
    display: none;
  }

  /* Style for navigation in modal */
  .modal-body .nav-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .modal-body .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .modal-body .nav-link {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
  }

  .modal-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: var(--border-dark);
    transform: translateY(-2px);
  }

  .modal-body .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  .modal-body .nav-buttons {
    width: 100%;
    margin-top: 0.5rem;
  }

  .modal-body .launch-button {
    width: 100%;
  }
}

/* Token Tiers Styles */

/* Tier tabs container */

.tier-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  gap: 8px;
}

.tier-tabs .panel-tab {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  flex: 0 1 auto;
  text-align: center;
  min-width: 100px;
}

.tier-tabs .panel-tab:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tier-tabs .panel-tab.active {
  background-color: var(--primary-color, #c8a2c8);
  border-color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Tier content panels */

.tier-content {
  animation: fadeIn 0.3s ease;
  display: none;
  padding: 1rem 0;
}

.tier-content.active {
  display: block;
}

/* Tier card styles */

.tier-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 1rem 0;
}

.tier-card h4 {
  color: var(--primary-color, #c8a2c8);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.tier-description {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.tier-requirement {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  color: #f8e559;
  font-weight: 600;
  padding: 8px 16px;
  margin-bottom: 16px;
  display: inline-block;
}

.tier-features ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.tier-features li {
  color: #ffffff;
  padding: 6px 0;
  position: relative;
  padding-left: 24px;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color, #c8a2c8);
}

/* Different color for each tier */

#free-tier-content .tier-card {
  border-left: 4px solid #7c7c7c;
}

#tier3-content .tier-card {
  border-left: 4px solid #bd58ca;
}

#tier2-content .tier-card {
  border-left: 4px solid #e5a450;
}

#tier1-content .tier-card {
  border-left: 4px solid #50c3e5;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .tier-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tier-tabs .panel-tab {
    min-width: 80px;
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Privacy and access panel styles */

.privacy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 1.25rem;
}

.privacy-card {
  background: rgba(255, 155, 190, 0.1);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(255, 155, 190, 0.15);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 140px;
}

.privacy-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(74, 63, 90, 0.92);
}

.privacy-card-dot {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--primary-color, #ff9bbe);
  margin-top: 2px;
}

.privacy-cta-row {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-start;
}

.privacy-cta-button {
  text-decoration: none;
}

.bio-header-content {
  display: flex;
  align-items: center; /* Vertically align items in the center */
  gap: 1.5rem; /* Space between picture and text */
  margin-bottom: 1.5rem; /* Space below the header content */
}

.profile-picture {
  display: block;
  max-width: 150px; /* Reduced size */
  /* margin: 1rem auto; Remove auto margin for flex control */
  margin: 0; /* Reset margin, flex gap will handle spacing */
  border-radius: 50%;
  border: 3px solid var(--primary-color, #ff9bbe); /* Use theme color if available */
  flex-shrink: 0; /* Prevent image from shrinking */
}

/* Optional: Adjust panel-header within flex layout if needed */

.bio-header-content .panel-header {
  text-align: left; /* Align text to the left */
  flex-grow: 1; /* Allow text content to take available space */
}
