/* ============================================
   AMETHYST PROJECT STYLES
   ============================================ */

@font-face {
  font-family: 'Micaelasfont-Regular';
  src: url('../fonts/Micaelasfont-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  --primary-purple: #AE85D6;
  --secondary-purple: #9B6FCC;
  --dark-purple: #0D011C;
  --light-beige: #F7F0E8;
  --white: #ffffff;
  --black: #000000;
  --purple-alpha: #0D011C40;
  --transition-smooth: all 0.3s ease;
  --transition-slow: all 0.4s ease;
  --transition-cubic: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-small: 5px;
  --border-radius-medium: 20px;
  --border-radius-large: 25px;
  --border-radius-full: 50%;
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 30px rgba(13, 1, 28, 0.1);
  --shadow-heavy: 0 20px 50px rgba(13, 1, 28, 0.15);
  --shadow-purple: 0 8px 20px rgba(174, 133, 214, 0.3);
  --max-content-width: 1920px;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  box-sizing: border-box;
  height: 100%;
  overflow-x: hidden;
  background: url('../imgs/VertBGShort.png') center top/cover no-repeat var(--white);
}

*, *::before, *::after { 
  box-sizing: inherit; 
}

/* ============================================
   CUSTOM SCROLLBAR - AMETHYST PURPLE THEME
   ============================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-beige);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 10px;
  border: 2px solid var(--light-beige);
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-purple), var(--dark-purple));
  box-shadow: var(--shadow-purple);
}

::-webkit-scrollbar-corner {
  background: var(--light-beige);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) var(--light-beige);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  height: 100%;
  font-family: 'Sora';
  color: #0D011C;
  overflow-x: hidden;
}

.vertical-scroll {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-family: 'Micaelasfont-Regular', sans-serif;
  color: var(--dark-purple);
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 5rem);
  margin-top: 60px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  color: var(--dark-purple);
  font-weight: 600;
  margin: 0;
}

p {
  font-size: 16px;
  width: 35%;
  font-family: "Sora", sans-serif;
  line-height: 1.6;
  color: var(--dark-purple);
  margin: 0;
}

/* ============================================
   LAYOUT
   ============================================ */

.section-content {
  max-width: 1200px;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 20px;    
  margin-bottom: 20px;
}

#app-overview-heading {
  text-align: left;
  margin-top: 90px;
  margin-bottom: 20px;
}

/* ============================================
   KEYWORDS SECTION
   ============================================ */

.keywords-container {
  display: flex;
  top: 10%;
  left: 13%;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 80%;
}

.keyword-tag {
  background: var(--primary-purple);
  color: var(--light-beige);
  padding: 12px 24px;
  border-radius: var(--border-radius-large);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: default;
}

.keyword-tag:hover {
  background: var(--secondary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.problem-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-text p {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
}

/* ============================================
   PERSONA CARDS (STICKY NOTES)
   ============================================ */

.audience-content {
  margin-top: 40px;
}

.persona-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.persona-card {
  background: var(--primary-purple);
  padding: 30px;
  border-radius: var(--border-radius-small);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-light);
  transform: rotate(-1deg);
}

.persona-card:nth-child(2) { transform: rotate(1deg); }
.persona-card:nth-child(3) { transform: rotate(-0.5deg); }

.persona-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 20px 40px rgba(174, 133, 214, 0.3);
}

.persona-card h4 {
  font-family: 'Micaelasfont-Regular', sans-serif;
  margin: 0 0 15px 0;
  font-size: 24px;
  color: var(--dark-purple);
}

.persona-card p {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-purple);
}

/* ============================================
   USER PERSONA SECTION
   ============================================ */

#personas-heading {
  text-align: left;
  margin: 0 0 40px 0;
}

.section6 .section-content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 40px;
  position: relative;
}

.persona-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
}

.Sarah {
  width: 150px;
  height: 150px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}

.persona-text {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.persona-text h3, .persona-text h4 {
  font-family: "Sora", sans-serif;
  color: var(--dark-purple);
  margin: 0;
}

.persona-text h3 {
  font-size: 24px;
  margin-bottom: 5px;
  font-weight: 600;
}

.persona-text h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 500;
}

.persona-text p {
  font-size: 16px;
  margin: 12px 0;
  color: var(--dark-purple);
  line-height: 1.5;
  width: 100%;
}

/* ============================================
   UI INTERFACE NAVIGATION
   ============================================ */

.ui-navigation-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  position: relative;
}

.ui-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  transition: var(--transition-smooth);
}

.ui-nav-btn:hover {
  background-color: rgba(174, 133, 214, 0.2);
}

.ui-nav-btn img.arrow {
  width: 40px;
  transition: var(--transition-smooth);
}

.ui-nav-btn img.rotate {
  transform: rotate(180deg);
}

.ui-nav-btn:hover img {
  transform: scale(1.2);
}

.ui-nav-btn:hover img.rotate {
  transform: rotate(180deg) scale(1.2);
}

.ui-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ui-nav-btn:disabled:hover {
  background-color: transparent;
}

.ui-nav-btn:disabled img {
  transform: none !important;
}

.ui-sections-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.ui-subsection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px;
  border-radius: var(--border-radius-medium);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.ui-subsection.active {
  opacity: 1;
  visibility: visible;
}

.ui-subsection h3 {
  color: var(--dark-purple);
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.ui-image-container {
  margin: 30px 0;
  position: relative;
}

.ui-subsection .ui-screen:hover {
  transform: scale(1.02);
}

.ui-subsection .ui-screen {
  width: auto;
  height: 45vh;
  border-radius: var(--border-radius-medium);
  transition: var(--transition-cubic);
  opacity: 1;
}

.ui-subsection p {
  color: var(--dark-purple);
  line-height: 1.6;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.scroll-progress {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  padding: 20px 0;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-full);
  background: rgba(174, 133, 214, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.progress-dot.active {
  background: var(--primary-purple);
  transform: scale(1.2);
}

.progress-dot:hover {
  background: var(--primary-purple);
  transform: scale(1.1);
}

/* ============================================
   COMPONENTS & BRANDING SECTIONS
   ============================================ */

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.UserFlow {
  width: 100%;
  height: auto;
}

.components-grid, .branding-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 0;
}

.component-card, .branding-section {
  padding: 40px;
  background: var(--purple-alpha);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  border-left: 5px solid var(--primary-purple);
}

.component-card:hover, .branding-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.component-card h3, .branding-section h3 {
  color: var(--dark-purple);
  margin-bottom: 15px;
  font-size: 26px;
  font-weight: 600;
}

.branding-section {
  padding: 30px;
}

.branding-section .logo-text-container {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 0;
}

.branding-section .logo-text-container p {
  flex: 1;
  margin: 0;
}

.Logo, .MycoText {
  width: 40%;
  height: auto;
  flex-shrink: 0;
}

.navComps, .repComp {
  width: 100%;
  height: auto;
}

/* ============================================
   COLOR PALETTE
   ============================================ */

.color-palette {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.color-swatch {
  position: relative;
  cursor: pointer;
  transition: var(--transition-cubic);
  height: 60px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--swatch-color, var(--primary-purple));
  min-width: 60px;
  width: 60px;
}

.color-swatch:hover {
  width: 200px;
  box-shadow: var(--shadow-purple);
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  background: inherit;
  position: absolute;
  left: 0;
  top: 0;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  transition: var(--transition-cubic);
}

.color-info {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition-cubic);
  white-space: nowrap;
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.color-swatch:hover .color-info {
  opacity: 1;
}

.color-hex, .color-name {
  display: block;
  font-family: 'Sora', sans-serif;
}

.color-hex {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.color-name {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
}

/* Color-specific styles */
.color-swatch[data-color="#AE85D6"] { background: var(--primary-purple); }
.color-swatch[data-color="#F7F0E8"] { background: var(--light-beige); }
.color-swatch[data-color="#F7F0E8"] .color-info { color: var(--black); }
.color-swatch[data-color="#0D011C"] { background: var(--dark-purple); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .problem-content { grid-template-columns: 1fr; gap: 30px; }
  .persona-cards { grid-template-columns: 1fr; gap: 20px; }
  .keywords-container { max-width: 100%; }
  .keyword-tag { font-size: 12px; padding: 10px 20px; }
  p { width: 100% !important; font-size: 14px; }
  .process-step { flex-direction: column; text-align: center; }
  .ui-navigation-container { gap: 5px; }
  .ui-sections-container { height: 90vh; }
  .ui-subsection { padding: 40px 20px; }
  .ui-subsection h3 { font-size: 24px; margin-bottom: 20px; }
  .ui-subsection .ui-screen { width: 250px; height: auto; }
  .ui-subsection p { font-size: 14px; }
  .progress-dot { width: 10px; height: 10px; }
  .color-palette { gap: 8px; }
  .color-swatch { height: 50px; width: 50px; min-width: 50px; }
  .color-swatch:hover { width: 160px; }
  .color-circle { width: 50px; height: 50px; }
  .color-info { left: 60px; }
  .color-hex { font-size: 12px; }
  .color-name { font-size: 10px; }
}

@media (max-width: 480px) {
  .section-content { padding: 40px 30px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .persona-card, .component-card, .branding-section { padding: 25px; }
}

@media (min-width: 1921px) {
  .vertical-scroll {
    position: relative;
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    left: 45%;
    transform: translateX(-50%);
  }
}
