/* ONLY load the fonts you actually use */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.elijahu.me/noto-sans-jp/noto-sans-jp-v54-japanese_latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://fonts.elijahu.me/noto-serif-jp/noto-serif-jp-v31-japanese_latin-300.woff2') format('woff2');
}

    :root {
      --fg-color: #1a1a1a;
      --bg-color: #f8f8f8;
      --accent-color: #666;
      --border-color: #ddd;
      --shadow-color: rgba(0, 0, 0, 0.1);
    }

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

    body, html {
      height: 100%;
    }

    body {
      font-family: "Noto Sans JP", sans-serif;
      line-height: 1.8;
      color: var(--fg-color);
      background-color: var(--bg-color);
      background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    /* Header and Navigation */
    header {
      display: block;
      position: fixed;
      width: 100%;
      top: 1.5rem;
      z-index: 100; /* Higher z-index than mobile menu */
    }


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

    .logo {
      background: url(/images/mWhite.svg);
      width: 3rem;
      height: 3rem;
      transition: all 0.3s;
      margin-left: 3rem;
      margin-right: 3rem;
      filter: brightness(0) saturate(100%) invert(13%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(95%) contrast(95%);
    }

    .logo:hover {
      opacity: 0.8;
    }

    .linksB {
      display: flex;
      gap: 2rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .linksB li {
      font-family: "Noto Sans JP", sans-serif;
      font-weight: 300;
      color: var(--fg-color);
      font-size: 0.9rem;
      list-style-type: none;
      display: inline-block;
      padding: 0.3rem;
    }

    .linksB a {
      color: var(--accent-color);
      text-decoration: none;
      padding: 0.5rem 0;
      border-bottom: 1px solid transparent;
      transition: all 0.3s ease;
      letter-spacing: 0.05em;
    }

    .linksB a:hover {
      color: var(--fg-color);
      border-bottom-color: var(--fg-color);
    }

    /* Hamburger Menu Button */
    .bars {
      display: none;
      position: absolute;
      top: 0.5rem;
      right: 1.5rem;
      z-index: 101; /* Above mobile menu */
      cursor: pointer;
      padding: 10px;
    }

    /*
    .fa-bars {
      font-size: 2rem;
      color: var(--fg-color);
      transition: color 0.3s ease;
    }
    */

    .bars:hover .fa-bars {
      color: var(--accent-color);
    }

    /* Mobile Menu - Simplified to match V1 behavior */
    #mobile-links {
      display: none; /* Hidden by default - JavaScript will toggle this */
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: var(--bg-color);
      z-index: 15; /* Below header/hamburger button */
      text-align: right;
      overflow: auto;
      /* Remove all transitions and transforms for immediate toggle */
    }

    /* Container for mobile menu items */
    .mobile-links-container {
      margin-top: 7rem;
      margin-right: 2rem;
      width: auto;
      max-width: 320px;
      text-align: right;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    /* Mobile menu list styling */
    .mobile-links-container ul {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    /* Mobile menu items */
    .mobile {
      font-size: 2rem;
      line-height: 2;
      font-family: "Noto Sans JP", sans-serif;
      font-weight: 300;
      margin: 0.6rem 0;
      list-style: none;
      color: var(--fg-color);
    }

    /* Mobile menu links */
    .mobile a {
      color: var(--fg-color);
      text-decoration: none;
      display: block;
      padding: 0.6rem 0.8rem;
      transition: color 0.2s ease; /* Keep only simple color transition */
      border-radius: 6px;
    }

    .mobile a:hover {
      color: var(--accent-color);
      background: rgba(0, 0, 0, 0.02);
    }

    /* Main Content */
    .bg {
      position: relative;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 2rem;
      opacity: 0;
      transform: translateY(20px);
      transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      overflow: hidden;
    }

    .bg.fade-in {
      opacity: 1;
      transform: translateY(0);
    }

    .content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      padding: 0 1rem;
    }



    /* Cycling Welcome Styles */
h1 {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  position: relative;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  width: 100%;
}

.welcome-text.active {
  opacity: 1;
  transform: translateY(0);
}

    h1 {
      font-family: "Noto Serif JP", serif;
      font-weight: 300;
      font-size: 3.5rem;
      margin-bottom: 2rem;
      letter-spacing: 0.05em;
      position: relative;
    }

    h1::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 1px;
      background-color: var(--fg-color);
    }

    h2 {
      font-family: "Noto Sans JP", sans-serif;
      font-weight: 300;
      font-size: 1.1rem;
      padding: 0 5%;
      margin-bottom: 3rem;
      line-height: 1.8;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      letter-spacing: 0.02em;
    }

    h3 {
      font-family: "Noto Sans JP", sans-serif;
      font-weight: 300;
      font-size: 1.1rem;
      padding: 0 5%;
      margin-bottom: 3rem;
      line-height: 1.8;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      letter-spacing: 0.02em;
    }

    /* Enhanced CTA Button Styles */
    .cta-wrapper {
      display: flex;
      gap: 3rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .cta-button, .cta-secondary {
      display: inline-block;
      padding: 1rem 2.5rem;
      font-family: "Noto Sans JP", sans-serif;
      font-size: 1rem;
      background-color: transparent;
      border: none;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      letter-spacing: 0.05em;
      position: relative;
      border-radius: 0;
      overflow: hidden;
      min-width: 140px;
      text-align: center;
    }

    /* Primary CTA Button (experience) */
    .cta-button {
      font-weight: 500;
      color: var(--fg-color);
      border: 1.5px solid var(--fg-color);
      background: linear-gradient(135deg, transparent 0%, rgba(26, 26, 26, 0.02) 100%);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .cta-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.1), transparent);
      transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cta-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      border-color: var(--fg-color);
      background: var(--fg-color);
      color: var(--bg-color);
    }

    .cta-button:hover::before {
      left: 100%;
    }

    /* Secondary CTA Button (Reach out) */
    .cta-secondary {
      font-weight: 400;
      color: var(--accent-color);
      border: 1.5px solid transparent;
      background: linear-gradient(135deg, rgba(102, 102, 102, 0.05) 0%, transparent 100%);
      position: relative;
    }

    .cta-secondary::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border: 1.5px solid var(--accent-color);
      border-radius: inherit;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .cta-secondary::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: radial-gradient(circle, rgba(102, 102, 102, 0.1) 0%, transparent 70%);
      transform: translate(-50%, -50%);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      border-radius: 50%;
    }

    .cta-secondary:hover {
      color: var(--fg-color);
      transform: translateY(-1px);
      box-shadow: 0 4px 15px rgba(102, 102, 102, 0.2);
      background: rgba(102, 102, 102, 0.08);
    }

    .cta-secondary:hover::before {
      opacity: 1;
    }

    .cta-secondary:hover::after {
      width: 200px;
      height: 200px;
    }

    /* Active states */
    .cta-button:active {
      transform: translateY(0);
    }

    .cta-secondary:active {
      transform: translateY(0);
    }

    /* Social Links */
    .socials {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.55rem;
      z-index: 10;
    }

    .social-link {
      color: var(--accent-color);
      font-size: 1.2rem;
      transition: all 0.3s ease;
      text-decoration: none;
      padding: 6px;
      border: 1px solid transparent;
      border-radius: 0;
    }

    .social-link:hover {
      color: var(--fg-color);
      border-color: var(--border-color);
      background-color: rgba(255, 255, 255, 0.5);
    }

    /* Loading Screen */
    #loading-screen {
      position: fixed;
      inset: 0;
      background: var(--bg-color);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 1.5s ease;
    }

    #loading-screen.fade-out {
      opacity: 0;
      pointer-events: none;
    }

    .zen-loader {
      position: relative;
      width: 80px;
      height: 80px;
      margin-bottom: 2rem;
    }

    .zen-circle {
      position: absolute;
      width: 80px;
      height: 80px;
      border: 1px solid var(--border-color);
      border-radius: 50%;
      border-top-color: var(--fg-color);
      animation: zenSpin 2s linear infinite;
    }

    .zen-inner {
      position: absolute;
      width: 40px;
      height: 40px;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border: 1px solid var(--accent-color);
      border-radius: 50%;
      border-bottom-color: var(--fg-color);
      animation: zenSpin 1.5s linear infinite reverse;
    }

    @keyframes zenSpin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loading-text {
      color: var(--fg-color);
      font-family: "Noto Sans JP", sans-serif;
      font-weight: 300;
      font-size: 1rem;
      letter-spacing: 0.1em;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .dots span {
      animation: fade 1.4s infinite;
      font-weight: 300;
      font-size: 1rem;
      color: var(--accent-color);
    }

    .dots span:nth-child(1) { animation-delay: 0s; }
    .dots span:nth-child(2) { animation-delay: 0.3s; }
    .dots span:nth-child(3) { animation-delay: 0.6s; }

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

    /* Kanji Signature */
    .kanji-signature {
      position: fixed;
      bottom: 20px;
      right: 20px;
      font-family: "Noto Serif JP", serif;
      font-size: 1.5rem;
      font-weight: 300;
      color: var(--accent-color);
      writing-mode: vertical-rl;
      text-orientation: upright;
      z-index: 10;
      opacity: 0.7;
      transition: opacity 0.3s ease;
      line-height: 1.2;
    }

    .kanji-signature:hover {
      opacity: 1;
    }

    /* Responsive Design */
    @media (max-width: 850px) {

      h2 {
      font-size: 1rem;   /* adjust as needed (default ~16px) */
      line-height: 1.4;  /* improves readability */
    }


  .bg h3 {
    font-size: 0.9rem;       /* same as h2 for mobile */
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 3rem;
    padding: 0 5%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

      .bars {
        display: block;
      }

      .linksB {
        display: none;
      }

      .logo {
        margin: 0;
      }

      .header-flex {
        margin: 0rem 1.5rem;
      }

      h1 {
        font-size: 2.5rem;
      }

      h3 {
        font-size: 0.9rem;
        padding: 0 5%;
      }

      .cta-button, .cta-secondary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        min-width: 120px;
      }

      .cta-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
      }

      .mobile-links-container {
        max-width: 360px;
        margin-top: 6rem;
      }

      .mobile {
        font-size: 1.9rem;
      }
    }

    @media (max-width: 640px) {
      body {
        background-color: #000;
        color: #fff;
      }

      :root {
        --fg-color: #fff;
        --bg-color: #000;
        --accent-color: #ccc;
        --border-color: #333;
      }

      .bg {
        background-color: #000;
      }

      h1, h3 {
        color: #fff;
      }

      h1::after {
        background-color: #fff;
      }

      h2 {
        font-size: 1rem;   /* adjust as needed (default ~16px) */
        line-height: 1.4;  /* improves readability */
      }

      .cta-button {
        color: #fff;
        border-color: #fff;
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
      }

      .cta-button::before {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
      }

      .cta-button:hover {
        background: #fff;
        color: #000;
        border-color: #fff;
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
      }

      .cta-secondary {
        color: #ccc;
        background: linear-gradient(135deg, rgba(204, 204, 204, 0.08) 0%, transparent 100%);
      }

      .cta-secondary::before {
        border-color: #ccc;
      }

      .cta-secondary::after {
        background: radial-gradient(circle, rgba(204, 204, 204, 0.15) 0%, transparent 70%);
      }

      .cta-secondary:hover {
        color: #fff;
        background: rgba(204, 204, 204, 0.12);
        box-shadow: 0 4px 15px rgba(204, 204, 204, 0.25);
      }

      #mobile-links {
        background-color: rgba(0, 0, 0, 0.98);
      }

      .mobile a {
        color: #fff;
      }

      .mobile a:hover {
        color: #ccc;
        background-color: rgba(255, 255, 255, 0.1);
      }

      .fa-bars {
        color: #fff;
      }

      .logo {
        filter: brightness(0) saturate(100%) invert(100%);
      }

      .kanji-signature {
        color: #ccc;
        font-size: 1rem;
      }

      .social-link {
        color: #ccc;
      }

      .social-link:hover {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
      }
    }

    /* Add urgency with subtle pulsing */
.cta-button::after {
  animation: subtle-pulse 3s infinite;
}

/* Faster, more noticeable hover states */
.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
}
