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

html {
  overscroll-behavior: none;
}

body {
  font-family: 'PT Sans Narrow', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.section-hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  width: 100%;
  background-color: #ffffff;
  color: #1a1a1a;
}

/* Background Shapes Container */
.bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Background Shapes */
.shape {
  position: absolute;
  opacity: 0.5;
  will-change: transform;
}

.shape-1 {
  top: 15%;
  left: 10%;
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
}

.shape-2 {
  bottom: 20%;
  right: 15%;
  width: clamp(70px, 10vw, 120px);
  height: clamp(70px, 10vw, 120px);
}

.shape-3 {
  top: 25%;
  right: 20%;
  width: clamp(50px, 7vw, 90px);
  height: clamp(50px, 7vw, 90px);
}

/* Card 2 Ambient Shapes */
.shape-about-1 {
  top: 10%;
  right: 8%;
  width: clamp(70px, 10vw, 130px);
  height: clamp(70px, 10vw, 130px);
}

.shape-about-2 {
  bottom: 12%;
  left: 6%;
  width: clamp(50px, 7vw, 90px);
  height: clamp(50px, 7vw, 90px);
}

.shape-about-3 {
  top: 45%;
  left: 4%;
  width: clamp(60px, 9vw, 110px);
  height: clamp(60px, 9vw, 110px);
}

/* Card 3 Ambient Shapes */
.shape-horiz-1 {
  top: 12%;
  left: 12%;
  width: clamp(90px, 12vw, 160px);
  height: clamp(50px, 6vw, 80px);
}

.shape-horiz-2 {
  bottom: 15%;
  right: 10%;
  width: clamp(60px, 8vw, 110px);
  height: clamp(60px, 8vw, 110px);
}

.shape-horiz-3 {
  top: 15%;
  right: 22%;
  width: clamp(40px, 5vw, 70px);
  height: clamp(40px, 5vw, 70px);
}

/* Card 4 Ambient Shapes */
.shape-feat-1 {
  top: 10%;
  right: 6%;
  width: clamp(80px, 11vw, 140px);
  height: clamp(80px, 11vw, 140px);
}

.shape-feat-2 {
  bottom: 8%;
  right: 8%;
  width: clamp(70px, 9vw, 120px);
  height: clamp(70px, 9vw, 120px);
}

.shape-feat-3 {
  top: 48%;
  left: 4%;
  width: clamp(50px, 7vw, 90px);
  height: clamp(50px, 7vw, 90px);
}

/* Card 5 Ambient Shapes */
.shape-gal-1 {
  top: 8%;
  left: 6%;
  width: clamp(80px, 11vw, 140px);
  height: clamp(80px, 11vw, 140px);
}

.shape-gal-2 {
  bottom: 12%;
  right: 6%;
  width: clamp(90px, 12vw, 160px);
  height: clamp(90px, 12vw, 160px);
}

.shape-gal-3 {
  top: 15%;
  right: 18%;
  width: clamp(50px, 7vw, 90px);
  height: clamp(50px, 7vw, 90px);
}

/* Hero Content Wrapper above background */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  width: 100%;
}

/* Massive Typography Heading Styling */
#reveal-text {
  font-size: clamp(60px, 13vw, 250px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.85;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3em;
  row-gap: 0.05em;
  user-select: none;
}

/* Word Container */
.word {
  overflow: hidden;
  display: flex;
}

/* Letter Container */
.letter {
  position: relative;
  display: inline-block;
  color: #212529;
  will-change: transform;
}

/* Pseudo-element for data-char content */
.letter::before {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-100%);
  color: #ff3399;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

/* About Section (Dark theme with left-aligned layout) */
.section-about {
  background: #1a1a1a;
  color: #ffffff;
}

.about-container {
  width: 90% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  text-align: left;
  visibility: hidden; /* Prevent FOUT before JS loads */
}

/* 3D Tube Container */
.tube {
  position: relative;
  width: 100%;
  height: 100px !important;
  display: block;
}

/* 3D Line Styling - Left Aligned */
.line {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 6vw, 80px);
  white-space: nowrap !important;
  pointer-events: none;
  color: #ff3399;
}

/* Split characters backface visibility for pure 3D rotations */
.line div {
  backface-visibility: hidden;
}

/* Reverting Paragraph Text with Performance Optimizations */
.revert-body {
  width: 100% !important;
  max-width: 100% !important;
  opacity: 0;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.6;
  font-weight: 300;
  margin-top: 2rem;
  will-change: transform;
  -webkit-text-rendering: optimizeSpeed;
  text-rendering: optimizeSpeed;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.revert-body * {
  will-change: transform;
}

.Horizontal {
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  position: relative;
}

.Horizontal__text {
  display: flex;
  width: max-content;
  white-space: nowrap;
  gap: 2vw;
  padding-left: 250vw;
  padding-right: 0vw;
  z-index: 1; /* Ensures the text ribbon stays above the SVG */
}

.heading-xl {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: clamp(2rem, 10vw, 12rem);
  font-weight: 600;
  line-height: 1.1;
  color: #1a1a1a;
}

/* Morphing Background SVG in Card 3 */
.card-3-morph-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw;
  max-width: 1100px;
  opacity: 0.5; /* Slightly faded ambient background so text remains crisp */
  z-index: 0;
  pointer-events: none;
}

.card-3-morph-bg svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.section-horizontal .Horizontal__text {
  position: relative;
  z-index: 1; /* Ensures the text ribbon stays above the SVG */
}



/* Global Slides Stacking CSS */
.slides-wrapper {
  position: relative;
  width: 100%;
}

.slide-panel {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}

.panel-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Slide Panels Stacking order */
.section-hero { z-index: 5; }
.section-about { z-index: 4; }
.section-horizontal { z-index: 3; }
.section-features-list { z-index: 2; }
.section-gallery { z-index: 1; }

.section-about .panel-inner {
  height: auto;
  min-height: 100%;
  padding-top: 15vh;
  padding-bottom: 15vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Card 4: Features List Layout CSS — Screen-Fitting Responsive Layout */
.section-features-list,
.slide-panel:nth-child(4) {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.section-features-list .panel-inner {
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 4vh 0 !important;
  box-sizing: border-box !important;
}

.features-list-container {
  width: 90% !important;
  max-width: 1400px !important;
  height: 84vh !important;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0 !important;
}

.feature-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  height: 25vh !important;
  padding: 0 3rem !important;
  border: 1px solid #333;
  border-radius: 16px;
  gap: 2.5rem !important;
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

.feature-shape {
  width: clamp(75px, 11vh, 130px) !important;
  height: clamp(75px, 11vh, 130px) !important;
  min-width: clamp(75px, 11vh, 130px) !important;
  flex-shrink: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-shape svg,
.feature-shape canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
  display: block !important;
}

.feature-text {
  flex: 1 !important;
  text-align: left !important;
}

.feature-text h3 {
  font-size: clamp(17px, 2.2vh, 32px);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* Horizontal Gallery Specifics */
.Horizontal-Gallery {
  background-color: #f8f9fa !important;
  color: #1a1a1a;
}

.Horizontal-Gallery .panel-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100vh !important;
  width: 100% !important;
  overflow: hidden;
}

.horiz-gallery-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.horiz-gallery-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  will-change: transform;
  padding-left: 10vw; /* Starting space */
  padding-right: 15vw; /* Ending space */
  gap: 2.5rem;
}

/* Flashcard Styling */
.flashcard {
  width: 350px;
  height: 450px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.flashcard:hover {
  transform: translateY(-10px);
}

.card-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff3399;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.flashcard h4 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.flashcard p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666666;
  font-weight: 400;
}

.flashcard.coming-soon {
  background: #1a1a1a;
  color: #ffffff;
}

.flashcard.coming-soon h4 {
  color: #ffffff;
}

.flashcard.coming-soon p {
  color: #aaaaaa;
}

/* ===================================
   NAVBAR / MAIN TOOLBAR
   =================================== */
.main-tool-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    144.02deg,
    #00bae2 4.56%,
    #fec5fb 72.98%
  );
  z-index: 99999;
  transition: height 0.4s ease;
  will-change: transform;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.main-tool-bar--scrolled {
  height: 48px;
}

.toolbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.toolbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0e100f;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.toolbar-nav {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.toolbar-nav a {
  color: #0e100f;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  transition: opacity 0.25s ease;
}

.toolbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0e100f;
  transition: width 0.3s ease;
}

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

.toolbar-nav a:hover {
  opacity: 0.75;
}

.toolbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: #0e100f;
  color: #fffce1;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.toolbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  position: relative;
  width: 100%;
  background-color: #0e100f;
  overflow: hidden;
  z-index: 0;
}

.footer-wave {
  position: relative;
  width: 100%;
  margin-bottom: -2px; /* Prevent subpixel gap */
}

.footer-wave::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-blend-mode: color-dodge;
  background-image: url("https://assets.codepen.io/16327/noise.png");
  pointer-events: none;
}

#footer-img {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.footer-content {
  position: relative;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(
    144.02deg,
    #fec5fb 4.56%,
    #00bae2 72.98%
  );
  color: #0e100f;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col--brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0e100f;
  margin: 0;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  color: #0e100f;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  color: #0e100f;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.footer-col ul a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(14, 16, 15, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
}

/* Responsive Navbar + Footer */
@media (max-width: 768px) {
  .toolbar-nav {
    display: none;
  }

  .toolbar-cta {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

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

