/* ==========================================================================
   VIBROBRAILLE — STYLESHEET
   Assistive Braille & Vibrotactile Technology Landing Page
   Mirroring Reference Image 1 (Hero Glass Cube) & Image 2 (Contact Page)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-black: #000000;
  --color-hero-bg: #000000;
  --color-contact-bg: #161616;
  --color-white: #ffffff;
  --color-offwhite: #FAF7EC;
  --color-contact-headline: #FFFFDD;
  --color-orange-card: #FF770D;
  --color-button-dark: #16151A;
  --color-nav-dim: #D1D1D1;
  --color-border-dim: rgba(255, 255, 255, 0.35);
  --color-border-bright: rgba(255, 255, 255, 0.75);

  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-contact: 'Anton', 'Impact', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base & Resets
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Fixed Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.site-header.scrolled-header {
  background-color: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1800px;
  height: 100%;
  margin: 0 auto;
  padding: 0 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-white);
  cursor: pointer;
}

/* Solid white semicircle logo glyph */
.logo-icon {
  width: 12px;
  height: 20px;
  background-color: var(--color-white);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: inline-block;
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.logo-braille {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-nav-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Scroll-Snap Page Container (Strict 2-Page View)
   -------------------------------------------------------------------------- */
.page-container {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.page-container::-webkit-scrollbar {
  display: none;
}

.section {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   SECTION 1: HERO (Image 1 Mirror)
   -------------------------------------------------------------------------- */
.hero-section {
  background-color: var(--color-hero-bg);
}

.webgl-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.webgl-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Upper Right Carousel Navigation Arrows */
.hero-arrows-container {
  position: absolute;
  top: 120px;
  right: 54px;
  z-index: 20;
  display: flex;
  gap: 14px;
}

.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-bright);
  background-color: transparent;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: scale(1.08);
}

.arrow-btn:active {
  transform: scale(0.95);
}

/* Far Right Vertical Pagination Dots */
.vertical-pagination {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-dot {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.page-dot:hover {
  transform: scale(1.25);
}

.dot-inner {
  display: block;
  border-radius: 50%;
}

.dot-solid {
  width: 5px;
  height: 5px;
  background-color: var(--color-white);
}

.dot-ring {
  width: 8px;
  height: 8px;
  border: 1.6px solid var(--color-white);
  background-color: transparent;
}

.page-dot.active .dot-inner {
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Bottom Left Headline */
.hero-bottom-left {
  position: absolute;
  bottom: 45px;
  left: 54px;
  z-index: 20;
  pointer-events: none;
  user-select: none;
}

.tagline-light {
  font-family: var(--font-primary);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tagline-bold {
  font-family: var(--font-primary);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tagline-braille {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 3px;
  margin-top: 4px;
}

/* Bottom Center Badge & Horizontal Line */
.hero-bottom-center {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
}

.explore-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--color-white);
  background-color: var(--color-black);
  border: 1px solid var(--color-border-bright);
  padding: 6px 13px;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: all 0.25s var(--ease-out-expo);
}

.explore-badge:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.connector-line {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: min(44vw, 620px);
  background-color: var(--color-border-dim);
  pointer-events: none;
  z-index: 1;
}

/* Bottom Right Hollow Numeral Graphic "07" */
.hero-bottom-right {
  position: absolute;
  bottom: 12px;
  right: 48px;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

.outline-number {
  font-family: var(--font-primary);
  font-size: clamp(140px, 17vw, 210px);
  font-weight: 200;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  letter-spacing: -0.04em;
  display: block;
}

/* --------------------------------------------------------------------------
   SECTION 2: CONTACT / VIBROBRAILLE (Image 2 Mirror)
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--color-contact-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

/* Giant Cream Condensed Typography "CONTACT" in background */
.contact-bg-text-wrapper {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.contact-giant-text {
  font-family: var(--font-contact);
  font-size: clamp(120px, 21vw, 270px);
  font-weight: 400;
  line-height: 0.85;
  color: var(--color-contact-headline);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

/* Vibrant Orange Card ("Project intro") */
.project-intro-card {
  position: relative;
  z-index: 10;
  width: min(840px, 92vw);
  background-color: var(--color-orange-card);
  border-radius: 8px;
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.85),
    0 10px 30px rgba(255, 119, 13, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 38px 40px 36px 42px;
  margin-top: 120px;
  gap: 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Left Column Form */
.card-left-column {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-primary);
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 400;
  color: #111111;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.project-form {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-primary);
  font-size: 14.5px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1.2px solid rgba(20, 20, 20, 0.28);
  font-family: var(--font-primary);
  font-size: 15px;
  color: #111111;
  padding: 6px 0 8px 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-input::placeholder {
  color: rgba(20, 20, 20, 0.45);
  font-weight: 400;
}

.form-input:focus {
  border-bottom-color: #111111;
}

/* Submit Pill Button */
.submit-pill-btn {
  margin-top: 14px;
  background-color: var(--color-button-dark);
  color: var(--color-offwhite);
  border: none;
  border-radius: 9999px;
  padding: 13px 32px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease, box-shadow 0.25s ease;
}

.submit-pill-btn:hover {
  background-color: #060608;
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.submit-pill-btn:active {
  transform: scale(0.97);
}

.form-success-msg {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.12);
  color: #111111;
  font-size: 13.5px;
  font-weight: 600;
  animation: fadeIn 0.4s ease forwards;
}

.form-success-msg.visible {
  display: flex;
}

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

/* --------------------------------------------------------------------------
   Right Column: VibroBraille & Team Contact Details
   -------------------------------------------------------------------------- */
.card-right-column {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vibrobraille-details-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 22px 24px;
}

/* Haptic Visualizer (Vibration Waves + Braille Cells) */
.haptic-visualizer {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.haptic-visualizer:hover {
  transform: translateY(-1px);
}

/* Concentric Vibration Wave Rings */
.vibration-waves {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vibe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-button-dark);
  opacity: 0.7;
}

.vibe-ring.ring-1 {
  width: 14px;
  height: 14px;
  animation: vibePulse 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vibe-ring.ring-2 {
  width: 24px;
  height: 24px;
  animation: vibePulse 1.8s infinite 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vibe-ring.ring-3 {
  width: 34px;
  height: 34px;
  animation: vibePulse 1.8s infinite 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes vibePulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* 6-Dot Braille Cells */
.braille-cells-cluster {
  display: flex;
  gap: 8px;
}

.braille-cell {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 3.5px;
  background: rgba(0, 0, 0, 0.08);
  padding: 5px;
  border-radius: 4px;
}

.b-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(20, 20, 20, 0.25);
  transition: all 0.25s ease;
}

.b-dot.active {
  background-color: var(--color-button-dark);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
  animation: dotHaptic 2s infinite ease-in-out;
}

@keyframes dotHaptic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.haptic-tagline {
  display: flex;
  flex-direction: column;
}

.braille-string {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-button-dark);
  line-height: 1.1;
}

.haptic-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(20, 20, 20, 0.65);
  font-weight: 600;
}

/* Founders / Team Names */
.contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.founders-names-wrapper {
  display: flex;
  flex-direction: column;
}

.founders-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(20, 20, 20, 0.6);
  font-weight: 600;
}

.founders-names {
  font-family: var(--font-primary);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-button-dark);
  margin-top: 2px;
  line-height: 1.25;
}

/* Contact Links (Phone + Email) */
.contact-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-type-icon {
  color: var(--color-button-dark);
  display: inline-flex;
  margin-top: 2px;
  opacity: 0.8;
}

.contact-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-values-vertical {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-link {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-button-dark);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.3;
}

.contact-link:hover {
  color: #000000;
  text-decoration: underline;
}

.sep-dot {
  font-size: 12px;
  color: rgba(20, 20, 20, 0.4);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-container {
    padding: 0 24px;
  }
  
  .hero-bottom-left {
    left: 24px;
    bottom: 28px;
  }

  .hero-bottom-right {
    right: 20px;
    bottom: 8px;
  }

  .outline-number {
    font-size: 110px;
  }

  .hero-arrows-container {
    right: 24px;
    top: 90px;
  }

  .vertical-pagination {
    right: 18px;
  }

  .connector-line {
    width: 25vw;
  }

  .project-intro-card {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    margin-top: 90px;
    gap: 24px;
  }

  .contact-giant-text {
    font-size: clamp(80px, 18vw, 140px);
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }
  
  .tagline-light {
    font-size: 17px;
  }
  
  .tagline-bold {
    font-size: 19px;
  }

  .submit-pill-btn {
    width: 100%;
  }

  .connector-line {
    display: none;
  }

  .hero-bottom-center {
    left: 24px;
    transform: none;
    bottom: 110px;
  }

  .vibrobraille-details-panel {
    padding: 18px 16px;
  }

  .contact-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .sep-dot {
    display: none;
  }
}
