/* Reset and Base Styles */
* {  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--body-on-primary); /* Use theme color */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #0a0a0a;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Sass Variables (converted to CSS custom properties) */
:root {
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Typography - Mobile First */
  --h1-size: 32pt;
  --h2-size: 28pt;
  --h3-size: 24pt;
  --h4-size: 18pt;
  --h5-size: 16pt;
  --body-size: 16pt;
  --button-size: 16pt;
}

/* Desktop Typography */
@media (min-width: 768px) {
  :root {
    --h1-size: 48pt;
    --h2-size: 36pt;
    --h3-size: 28pt;
    --h4-size: 20pt;
    --h5-size: 18pt;
    --body-size: 18px;
    --button-size: 18px;
  }
}

/* Home Theme Colors */
.home-theme {
  --primary-color: #0a0a0a;
  --secondary-color: #ffffff;
  --tertiary-color: #ffffff;
  --fourth-color: #ffffff;

  /* Semantic Color Variables */
  --primary-surface: var(--primary-color);
    --headings-on-primary: var(--secondary-color);
    --body-on-primary: var(--secondary-color);
  --secondary-surface: var(--primary-color);
    --headings-on-secondary: var(--secondary-color);
    --body-on-secondary: var(--secondary-color);
  --accent: var(--secondary-color);
  --accent-hover: var(--secondary-color);

  /* Dropdown Menu */
  --dropdown-bg: var(--priamry-color);
  --dropdown-text: var(--secondary-color);
  --dropdown-hover-bg: var(--secondary-color);
  --dropdown-hover-text: var(--primary-color);

  /* Project Details Card */
  --details-card-bg: var(--fourth-color);
  --details-card-heading-text: var(--secondary-color);
  --details-card-body-text: var(--tertiary-color);
  --details-card-tag-bg: var(--secondary-color);
  --details-card-tag-text: var(--fourth-color);

  /* Project Card */
  --card-bg: var(--secondary-color);
  --card-heading-text: var(--primary-color);
  --card-body-text: var(--primary-color);
  --card-btn-bg: var(--tertiary-color);
  --card-btn-text: var(--fourth-color);
  --card-btn-hover-bg: var(--secondary-color);
  --card-btn-hover-text: var(--fourth-color);

  /* Card Image Filter */
  --card-image-color: var(--fourth-color);
}


/* Project 1 Theme Colors */
.project1-theme {
  --primary-color: #F4F0FF;
  --secondary-color: #4F0FFF;
  --tertiary-color: #200075;
  --fourth-color: #ffffff;

  /* Semantic Color Variables */
  --primary-surface: var(--primary-color);
    --headings-on-primary: var(--secondary-color);
    --body-on-primary: var(--tertiary-color);
  --secondary-surface: var(--secondary-color);
    --headings-on-secondary: var(--primary-color);
    --body-on-secondary: var(--fourth-color);
  --accent: var(--tertiary-color);
  --accent-hover: var(--secondary-color);

  /* Dropdown Menu */
  --dropdown-bg: var(--fourth-color);
  --dropdown-text: var(--tertiary-color);
  --dropdown-hover-bg: var(--tertiary-color);
  --dropdown-hover-text: var(--fourth-color);

  /* Project Details Card */
  --details-card-bg: var(--fourth-color);
  --details-card-heading-text: var(--secondary-color);
  --details-card-body-text: var(--tertiary-color);
  --details-card-tag-bg: var(--secondary-color);
  --details-card-tag-text: var(--fourth-color);

  /* Project Card */
  --card-bg: var(--primary-color);
  --card-heading-text: var(--secondary-color);
  --card-body-text: var(--tertiary-color);
  --card-btn-bg: var(--fourth-color);
  --card-btn-text: var(--tertiary-color);
  --card-btn-hover-bg: var(--accent-hover);
  --card-btn-hover-text: var(--tertiary-color);

  /* Card Image Filter */
  --card-image-color: var(--fourth-color);
}

/* Project 2 Theme Colors */
.project2-theme {
  --primary-color: #FFEFEB;
  --secondary-color: #8A2000;
  --tertiary-color: #330C00;
  --fourth-color: #ffffff;

  /* Semantic Color Variables */
  --primary-surface: var(--primary-color);
    --headings-on-primary: var(--secondary-color);
    --body-on-primary: var(--tertiary-color);
  --secondary-surface: var(--secondary-color);
    --headings-on-secondary: var(--primary-color);
    --body-on-secondary: var(--fourth-color);
  --accent: var(--tertiary-color);
  --accent-hover: var(--secondary-color);

  /* Dropdown Menu */
  --dropdown-bg: var(--fourth-color);
  --dropdown-text: var(--tertiary-color);
  --dropdown-hover-bg: var(--tertiary-color);
  --dropdown-hover-text: var(--fourth-color);

  /* Project Details Card */
  --details-card-bg: var(--fourth-color);
  --details-card-heading-text: var(--secondary-color);
  --details-card-body-text: var(--tertiary-color);
  --details-card-tag-bg: var(--secondary-color);
  --details-card-tag-text: var(--fourth-color);

  /* Project Card */
  --card-bg: var(--primary-color);
  --card-heading-text: var(--secondary-color);
  --card-body-text: var(--tertiary-color);
  --card-btn-bg: var(--fourth-color);
  --card-btn-text: var(--tertiary-color);
  --card-btn-hover-bg: var(--accent-hover);
  --card-btn-hover-text: var(--tertiary-color);

  /* Card Image Filter */
  --card-image-color: var(--fourth-color);
}


/* Project 3 Theme Colors */
.project3-theme {
  --primary-color: #F0F4FF;
  --secondary-color: #003CD6;
  --tertiary-color: #001752;
  --fourth-color: #ffffff;

  /* Semantic Color Variables */
  --primary-surface: var(--primary-color);
    --headings-on-primary: var(--secondary-color);
    --body-on-primary: var(--tertiary-color);
  --secondary-surface: var(--secondary-color);
    --headings-on-secondary: var(--primary-color);
    --body-on-secondary: var(--fourth-color);
  --accent: var(--tertiary-color);
  --accent-hover: var(--secondary-color);

  /* Dropdown Menu */
  --dropdown-bg: var(--fourth-color);
  --dropdown-text: var(--tertiary-color);
  --dropdown-hover-bg: var(--tertiary-color);
  --dropdown-hover-text: var(--fourth-color);

  /* Project Details Card */
  --details-card-bg: var(--fourth-color);
  --details-card-heading-text: var(--secondary-color);
  --details-card-body-text: var(--tertiary-color);
  --details-card-tag-bg: var(--secondary-color);
  --details-card-tag-text: var(--fourth-color);

  /* Project Card */
  --card-bg: var(--primary-color);
  --card-heading-text: var(--secondary-color);
  --card-body-text: var(--tertiary-color);
  --card-btn-bg: var(--fourth-color);
  --card-btn-text: var(--tertiary-color);
  --card-btn-hover-bg: var(--accent-hover);
  --card-btn-hover-text: var(--tertiary-color);

  /* Card Image Filter */
  --card-image-color: var(--fourth-color);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Coiny', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h5 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }

p, body {
  font-family: 'Kanit', sans-serif;
  font-size: var(--body-size);
  margin-bottom: var(--spacing-md);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
  background: transparent;
  padding: var(--spacing-md) 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-logo {
  font-family: 'Coiny', cursive;
  font-size: var(--h4-size);
  font-weight: 400;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.nav-menu {
  position: relative;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: transparent;
  border: none;
  color: var(--secondary-color);
  font-family: 'Coiny', sans-serif;
  font-size: var(--h4-size);
  font-weight: 400;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tertiary-color);
}

.dropdown-btn i {
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.dropdown-btn i.rotated {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--dropdown-bg);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1001;
  margin-top: var(--spacing-xs);
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: var(--dropdown-text);
  font-family: 'Kanit', sans-serif;
  font-size: var(--button-size);
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background: var(--dropdown-hover-bg);
  color: var(--dropdown-hover-text);
}

@media (max-width: 768px) {
  .dropdown-btn {
    min-width: 150px;
    right: -10px;
  }
}

/* Hero Section */
.hero {
  color: var(--body-on-primary);
  padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; 
}

.hero .container {
  position: relative;
  z-index: 1;
}
/*
.hero-gradient-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, #a1c4fd 0deg, #c2e9fb 90deg, #fbc2eb 180deg, #8fd3f4 270deg, #a1c4fd 360deg);
  animation: rotate-gradient 25s linear infinite;
  z-index: 0;
  opacity: 0.6;
}

@keyframes rotate-gradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
} 
  */

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero h1 {
  color: var(--headings-on-primary);
}

.hero-image img {
  border-radius: var(--spacing-sm);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero {
    padding: calc(60px + var(--spacing-lg)) 0 var(--spacing-lg);
    min-height: auto;
  }
}

/* Projects Section */
.projects {
  background-color: #0a0a0a;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--body-on-secondary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

.projects h2 {
  color: var(--headings-on-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/*
.project-card .card-image-wrapper {
  position: relative;
  background-color: var(--card-image-color);
}

.project-card .card-image-wrapper img {
  filter: grayscale(100%) contrast(1.2);
  mix-blend-mode: multiply;
  opacity: 0.8;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .card-image-wrapper img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}
  */

.card-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--card-heading-text);
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  color: var(--card-body-text);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

main {
  flex-grow: 1; /* Allow main to grow and fill available space */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--button-size);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--spacing-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--card-btn-bg);
  color: var(--card-btn-text);
}

.btn-primary:hover {
  background: var(--card-btn-hover-bg);
  color: var(--card-btn-hover-text);
  transform: translateY(-2px);
}

/* Project Pages */
.project-page {
  padding-top: calc(80px + var(--spacing-lg));
  background: var(--primary-surface);
  color: var(--body-on-primary);
  min-height: 100vh;
}

.project-title {
  color: var(--headings-on-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.project-header {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.project-header-image {
  width: 100%;
  border-radius: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.project-details-card {
  background: var(--details-card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: calc(80px + var(--spacing-lg));
}

.project-details-card h4 {
  color: var(--details-card-heading-text);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--primary-surface);
  padding-bottom: var(--spacing-sm);
}

.detail-item {
  margin-bottom: var(--spacing-md);
  color: var(--details-card-body-text);
  display: block;
}

.detail-item span:not(.label) {
  display: list-item;
  list-style-position: inside;
  font-size: 1em;
  margin-left: var(--spacing-sm);
  line-height: 1.5;
}

.detail-item span.label {
  background: transparent;
  color: var(--details-card-heading-text);
  padding: 0;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  display: block;
}

/* Desktop Layout for Project Details */
@media (min-width: 768px) {
  .project-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    align-items: start;
  }
  
  .project-header-image {
    margin-bottom: 0;
  }
}

/* Project Content */
.project-content {
  margin-top: var(--spacing-xl);
}

.content-section {
  background: var(--primary-surface);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-lg);
  /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
}

.content-section h2 {
  color: var(--headings-on-primary);
  margin-bottom: var(--spacing-lg);
}

.content-section img {
  width: 100%;
  border-radius: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  cursor: zoom-in;
}

.img-original-size {
  width: auto; /* Use the image's intrinsic width instead of stretching */
  max-width: 100%; /* Still prevent overflow on very small screens */
  display: block; /* Allow margin auto to work for centering */
  margin-left: auto;
  margin-right: auto;
}


.content-section p {
  color: var(--body-on-primary);
  line-height: 1.7;
}

/* Design System Page Specifics */
.ds-component-title {
  color: var(--headings-on-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  border-top: 1px solid #eee;
  padding-top: var(--spacing-lg);
}

.ds-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.ds-component-wrapper {
  background-color: var(--secondary-surface);
  color: var(--body-on-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
}

/* Override component styles for DS page context */
.ds-component-wrapper .project-details-card {
  position: static; /* Override sticky positioning */
  box-shadow: none;
}

.ds-component-wrapper .navbar {
  position: static; /* Override fixed positioning */
  padding: 0;
  background: transparent;
}

/* Footer */
.footer {
  background: var(--primary-surface);
  color: var(--body-on-primary);
  text-align: center;
  padding: var(--spacing-lg) 0;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .nav-container {
    padding: 0 var(--spacing-sm);
  }
  
  .nav-menu {
    gap: var(--spacing-sm);
  }
  
  .nav-menu a {
    font-size: 14px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: var(--spacing-lg);
  }
}

/* Animation and Transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  transform-origin: left;
  pointer-events: none;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.page-content {
  position: relative;
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* Lightbox Styles */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
  cursor: grab;
  object-fit: contain; /* Ensures image scales correctly within its container */
}

#lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  color: black;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10002;
}

.lightbox-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10002;
}

.lightbox-controls button {
  background: transparent;
  color: white;
  border: 1px solid white;
  border-radius: var(--radius-sm);
  width: 35px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
}

/* Individual element animations */


.page-content.transitioning {
  opacity: 0;
}

/* Individual element animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.project-card,
.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.project-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
a:focus,
.btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
  
  .project-page {
    padding-top: 0;
  }
  
  * {
    box-shadow: none !important;
  }
}

.lightbox-content img.zoomed {
  cursor: grab;
}

.lightbox-content img.zoomed:active {
  cursor: grabbing;
}

/* New Hero Section Styles */
.hero-scroll-wrapper {
  height: 300vh; /* Controls scroll duration */
  position: relative;
}

.hero-new {
  background-color: #0a0a0a !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  color: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-new .container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-main-text {
  opacity: 1;
  transition: opacity 0.5s ease-out;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #8b5cf6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 4rem;
  color: #ffffff;
}

.story-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in;
  width: 100%;
  text-align: center;
}

.story-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.story-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-item:nth-child(even) {
  flex-direction: row-reverse;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    z-index: 1;
}

.shape {
  animation: float 6s ease-in-out infinite;
  position: absolute;
}

.shape-1 {
  background: linear-gradient(45deg, #b559f2, #44f5b4);
  width: 80px;
  height: 80px;
  border-radius: 15px;
  transform: perspective(300px) rotateX(30deg);
  animation-delay: 0s;
  top: 10%;
  left: 15%;
}

.shape-2 {
  background: linear-gradient(90deg, #f25959, #f5d444);
  width: 60px;
  height: 60px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-delay: 1s;
  top: 20%;
  right: 10%;
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  -o-filter: blur(1px);
  -ms-filter: blur(1px);
}

.shape-3 {
  background: linear-gradient(180deg, #59f2f2, #f544d4);
  width: 100px;
  height: 100px;
  border-radius: 50% 50% 0 50%;
  animation-delay: 2s;
  bottom: 15%;
  left: 20%;
}

.shape-4 {
  background: linear-gradient(270deg, #f2a259, #44f544);
  width: 120px;
  height: 80px;
  border-radius: 50%;
  animation-delay: 3s;
  bottom: 10%;
  right: 15%;
}

.shape-5 {
    background: linear-gradient(0deg, #5973f2, #f54444);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation-delay: 4s;
    top: 50%;
    left: 5%;
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -o-filter: blur(3px);
    -ms-filter: blur(3px);
}

.shape-6 {
    background: linear-gradient(135deg, #f259a2, #f5f544);
    width: 90px;
    height: 90px;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation-delay: 5s;
    top: 60%;
    right: 5%;
}

.shape-7 {
    background: linear-gradient(225deg, #59f2a2, #f544f5);
    width: 70px;
    height: 70px;
    border-radius: 0 50% 0 50%;
    animation-delay: 0.5s;
    top: 30%;
    left: 40%;
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
}

.shape-8 {
    background: linear-gradient(315deg, #f2a259, #4475f5);
    width: 110px;
    height: 110px;
    border-radius: 50% 0 50% 0;
    animation-delay: 2.5s;
    bottom: 30%;
    left: 50%;
    -webkit-filter: blur(2px);
    -moz-filter: blur(2px);
    -o-filter: blur(2px);
    -ms-filter: blur(2px);
}

.shape-9 {
    background: linear-gradient(10deg, #a259f2, #f54475);
    width: 40px;
    height: 40px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 3.5s;
    top: 15%;
    left: 60%;
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    -ms-filter: blur(10px);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.story-text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  flex: 1;
  color: #ffffff;
}

/* Mobile responsive for new hero */
@media (max-width: 768px) {
  .story-item {
    flex-direction: column !important;
    text-align: center;
    gap: 1.5rem;
  }
  
  .hero-new {
    padding: calc(60px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
  }
}