@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

:root {
  --dark: #151515;
  --light: rgba(162, 255, 91, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  position: relative;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #E9E6FF !important;
  overflow-x: hidden;
}

/* Mobile Notice Banner */
.mobile-notice {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(21, 21, 21, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
}

.mobile-notice p {
  color: #E9E6FF;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.notice-dismiss {
  background: #E9E6FF;
  color: #151515;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.notice-dismiss:hover {
  background: rgba(233, 230, 255, 0.8);
  transform: scale(1.05);
}

@media (max-width: 1000px) {
  .mobile-notice {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  padding: 1rem 4rem;
  background: transparent;
}

.nav-logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light) !important;
  text-decoration: none;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--light);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--light);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  text-transform: uppercase;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.85;
  text-align: center;
}

section {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
}

.hero {
  background-color: #151515 !important;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  color: #ffffff !important;
  padding: 0 2rem;
  position: relative;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: 
    "."
    "title"
    "box"
    ".";
  align-items: center;
  justify-items: center;
  position: relative;
}

.outro {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #151515 !important;
  color: #E9E6FF !important;
}

.hero-title {
  grid-area: title;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.85;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0;
  width: 100%;
  max-width: 800px;
  margin-top: 5rem;
}

.hero-box {
  grid-area: box;
  width: 900px;
  height: 205px;
  background: transparent;
  border: 2px solid white;
  border-radius: 15px;
  margin-top: 3rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.hero-camel {
  position: absolute;
  left: -9%;
  top: -66%;
  width: 35vw;
  max-width: 500px;
  min-width: 350px;
  height: auto;
  filter: contrast(1.2) brightness(1.1) grayscale(100%);
  z-index: 3;
}

.hero-content {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-text {
  color: white;
  font-family: 'Carattere', cursive;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.hero-arrow {
  position: absolute;
  right: -9%;
  top: 15%;
  width: 20vw;
  max-width: 320px;
  min-width: 200px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(80%) sepia(51%) saturate(414%) hue-rotate(60deg) brightness(108%) contrast(103%);
}

.outro h1 {
  width: 50%;
}

.sticky-text-1,
.sticky-text-2 {
  background-color: #151515 !important;
  color: #ffffff !important;
}

.sticky-text-3 {
  background-color: #151515 !important;
  color: #ffffff !important;
}

.sticky-text-3 .text-container {
  background-color: #151515 !important;
}

.sticky-text-3 .bg-img {
  display: block;
}


.text-container,
.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: opacity, transform;
  z-index: 1;
}

.text-container h1 {
  position: relative;
  left: -0.035em;
  letter-spacing: -0.05em;
  transform-origin: 50% 0%;
  transform: scaleY(0);
}

.sticky-text-1 .text-container h1 {
  font-size: 18vw;
  font-weight: 300;
  will-change: transform;
}

.sticky-text-2 .text-container h1 {
  font-size: 20vw;
  will-change: transform;
}

.sticky-text-3 .text-container h1 {
  font-size: 18vw;
  font-weight: 900;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  z-index: 2;
}

.header h1 {
  color: #E9E6FF !important;
}


/* Carousel Styles */
.carousel-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2em 4em;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.carousel-nav .nav-items {
  display: flex;
  gap: 1em;
}

.carousel-nav .logo a {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: #ffffff !important;
  text-decoration: none;
}

.carousel-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.intro, .carousel {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #E9E6FF !important;
  overflow: hidden;
}

.outro {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #151515 !important;
  overflow: hidden;
}

.intro p, .outro p {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.04rem;
  line-height: 1;
}

.carousel {
  align-items: stretch;
}

.slide,
.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  display: flex;
  align-items: flex-end;
  padding-bottom: 5em;
}

.slide-img img {
  transform: scale(1.25);
  will-change: transform;
}

.slide-copy {
  position: relative;
  width: 100%;
  overflow: hidden;
  will-change: transform;
  z-index: 0;
}

.slide-tag {
  padding: 0 4em;
}

.slide-tag p {
  color: #E9E6FF !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.slide-marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
}

.slide-marquee h1 {
  color: #E9E6FF !important;
  font-size: 10rem;
  font-weight: 700;
  letter-spacing: -0.4rem;
  line-height: 1.2;
  text-align: center;
}

.slide-marquee h1 span {
  overflow: hidden;
  display: inline-block;
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 4em;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  z-index: 2;
}

.progress-bar {
  position: relative;
  flex: 1;
  width: 100%;
  height: 2px;
  background-color: rgba(21, 21, 21, 0.3) !important;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #E9E6FF !important;
  transform-origin: center left;
  transform: scaleX(var(--progress, 0));
  will-change: transform;
}

.spotlight {
  background-color: #E9E6FF !important;
  color: #ffffff !important;
}

.spotlight-images,
.spotlight-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 2000px;
}

.spotlight .img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  will-change: transform;
  border-radius: 10px;
  overflow: hidden;
}

.spotlight-cover-img {
  will-change: transform;
}

.spotlight-intro-header,
.spotlight-outro-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 50%;
}

.spotlight-intro-header {
  z-index: 1;
}

.spotlight-outro-header {
  z-index: 10;
}

.spotlight-intro-header h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #151515 !important;
  text-transform: uppercase;
}

.spotlight-outro-header h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: #E9E6FF !important;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  /* Reset everything for mobile */
  * {
    box-sizing: border-box !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    background: #E9E6FF !important;
  }

  /* Reduce complex animations for mobile performance */
  .text-container,
  .spotlight .img,
  .spotlight-images,
  .spotlight-cover-img {
    will-change: auto !important;
  }

  /* Simplify backdrop-filter for better mobile performance */
  .mobile-notice,
  .nav-links {
    backdrop-filter: blur(10px) !important;
  }

  h1 {
    font-size: 3rem;
  }

  .navbar {
    padding: 1.5rem 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(21, 21, 21, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .nav-link:nth-child(1) { animation-delay: 0.1s; }
  .nav-link:nth-child(2) { animation-delay: 0.2s; }
  .nav-link:nth-child(3) { animation-delay: 0.3s; }
  .nav-link:nth-child(4) { animation-delay: 0.4s; }
  .nav-link:nth-child(5) { animation-delay: 0.5s; }

  .nav-toggle {
    display: flex;
  }

  /* Hero section redesign for mobile */
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 2rem !important;
    position: relative !important;
    overflow: visible !important;
    height: 100vh !important;
  }

  /* Force all hero elements to be visible */
  .hero-container * {
    visibility: visible !important;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    margin: 0 !important;
    text-align: left !important;
    z-index: 2 !important;
    position: relative !important;
    width: 65% !important;
    line-height: 1.1 !important;
  }

  /* Redesign hero-box for mobile */
  .hero-box {
    display: flex !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: visible !important;
  }

  /* Redesign camel image - half visible from right side */
  .hero-camel {
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
    width: 90vw !important;
    max-width: 450px !important;
    min-width: 300px !important;
    height: auto !important;
    z-index: 1 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    filter: contrast(1.2) brightness(1.1) grayscale(100%) !important;
    left: auto !important;
    transform: translateX(45%) rotate(-90deg) !important;
    transform-origin: center center !important;
  }

  /* Position text over the camel */
  .hero-text {
    display: block !important;
    font-size: 1.4rem !important;
    position: absolute !important;
    bottom: 12% !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    color: var(--light) !important;
    font-weight: 700 !important;
    z-index: 3 !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8) !important;
    text-align: center !important;
    width: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* Hide hero-content wrapper but show its content */
  .hero-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    transform: none !important;
    z-index: 3 !important;
  }

  /* Hide arrow on mobile */
  .hero-arrow {
    display: none !important;
  }

  /* Hide hero-content wrapper */
  .hero-content {
    position: static !important;
    transform: none !important;
  }

  .outro h1,
  .header {
    width: calc(100% - 4rem);
  }

  .sticky-text-1 .text-container h1 {
    font-size: 20vw;
  }

  .sticky-text-2 .text-container h1 {
    font-size: 22vw;
  }

  .sticky-text-3 .text-container h1 {
    font-size: 20vw;
  }

  .header-image-container,
  .impact-image {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .sticky-text-3 .header img {
    display: none !important;
  }

  .sticky-text-3 .header {
    width: 90%;
  }
  
  .carousel-nav {
    padding: 1.5em 2em;
  }
  
  .slide {
    padding-bottom: 3em;
  }
  
  .slide-tag {
    padding: 0 2em;
  }
  
  .carousel-progress {
    padding: 2em;
  }
  
  .slide-marquee h1 {
    font-size: 6rem;
  }

  /* Simplify carousel animations for mobile */
  .slide,
  .slide-img,
  .slide-copy {
    transition: transform 0.3s ease !important;
  }

  .spotlight .img {
    width: 300px;
    height: 200px;
  }

  /* Reduce spotlight complexity for mobile */
  .spotlight {
    transform-style: flat !important;
    perspective: none !important;
  }

  .spotlight-intro-header,
  .spotlight-outro-header {
    width: 90%;
    padding: 1rem;
  }

  .spotlight-intro-header h1,
  .spotlight-outro-header h1 {
    font-size: 2.5rem;
  }
}


/* Sticky Columns Sections - Enhanced */
.intro h1 {
  width: 50%;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.outro h1 {
  width: 50%;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: #E9E6FF !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.intro {
  background: #E9E6FF !important;
  color: #ffffff !important;
  position: relative;
}

.outro {
  background: #151515 !important;
  color: #E9E6FF !important;
  position: relative;
}

.intro::before, .outro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E9E6FF !important;
  pointer-events: none;
}



/* Contact Section Styles - matching sticky sections */
.contact-text {
  background-color: #E9E6FF !important;
  color: #ffffff !important;
  position: relative;
}

.contact-text .text-container {
  background-color: #E9E6FF !important;
  position: relative;
  z-index: 1;
}

.contact-text .text-container h1 {
  font-size: 16vw;
  font-weight: 900;
  color: #151515 !important;
  opacity: 0.15 !important;
  z-index: 10;
  position: relative;
  display: block !important;
  visibility: visible !important;
  transform: scaleY(1) !important;
}

.contact-text .header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  z-index: 10;
  text-align: center;
  background: rgba(162, 255, 91, 0.95);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 2px solid var(--dark);
  box-shadow: 0 20px 40px rgba(17, 39, 11, 0.3);
}

.contact-text .header h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #151515 !important;
}

.contact-text .header p {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.5;
  color: #151515 !important;
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-btn {
  position: relative;
  display: inline-block;
  padding: 0.1rem 0;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 2rem;
  color: #ffffff !important;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 1rem);
  height: calc(100% + 0.4rem);
  border-radius: 2rem;
  z-index: -1;
  transition: all 0.3s ease;
}

.contact-btn.whatsapp::before {
  background-color: #25D366;
}

.contact-btn.email::before {
  background-color: #EA4335;
}

.contact-btn.bahr::before {
  background-color: #1DA1F2;
}

.contact-btn.fiverr::before {
  background-color: #1DBF73;
}

.contact-btn .btn-text {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  font-weight: 900;
  padding: 0.1rem 0.5rem;
  transition: all 0.3s ease;
}

.contact-btn:hover .btn-text {
  color: white !important;
  transform: scale(1.05);
}

.contact-btn:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.1);
}

/* Mobile Responsive for New Sections */
@media (max-width: 1000px) {
  .contact-text .text-container h1 {
    font-size: 20vw;
  }

  .contact-text .header {
    width: calc(100% - 2rem);
    padding: 2rem 1.5rem;
  }

  .contact-text .header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .contact-text .header p {
    font-size: 1.1rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .contact-btn {
    width: fit-content;
    min-width: 150px;
    text-align: center;
  }

  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    min-height: 100vh !important;
  }

  body {
    background: #E9E6FF !important;
    background-attachment: fixed !important;
  }

  /* Fix for mobile browsers bottom bar */
  @supports (-webkit-touch-callout: none) {
    body {
      min-height: -webkit-fill-available !important;
    }
  }

  /* Ensure all sections take full width */
  section {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .intro h1, .outro h1 {
    font-size: 1.5rem;
    width: calc(100% - 2rem);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  }
}

/* Text Animation Section */
.about {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
    overflow: hidden;
    background-color: #E9E6FF !important;
}

.about .copy-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 2rem;
    border: 0.15rem dashed rgb(60, 60, 60);
}

.anime-text {
    width: 70%;
}

.anime-text p {
    color: #151515 !important;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.anime-text .word {
    display: inline-block;
    position: relative;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
    padding: 0.1rem 0.2rem;
    border-radius: 2rem;
    will-change: background-color, opacity;
}

.anime-text .word.keyword-wrapper {
    margin: 0 0.4rem 0.2rem 0.2rem;
}

.anime-text .word span {
    position: relative;
}

.anime-text .word span.keyword {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    padding: 0.1rem 0;
    color: #ffffff !important;
}

.anime-text .word span.keyword::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 1rem);
    height: calc(100% + 0.4rem);
    background-color: #fa6d38;
    border-radius: 2rem;
    z-index: -1;
}

/* Keyword highlight colors */
.anime-text .word span.keyword.coffee::before {
    background-color: #fa6d38 !important;
}

.anime-text .word span.keyword.magical::before {
    background-color: #9b59b6 !important;
}

.anime-text .word span.keyword.elegant::before {
    background-color: #4ecdc4 !important;
}

.anime-text .word span.keyword.clean::before {
    background-color: #f39c12 !important;
}

.anime-text .word span.keyword.design::before {
    background-color: #c6fe69 !important;
}
.anime-text .word span.keyword.architect::before {
    background-color: #3498db !important;
}
.anime-text .word span.keyword.love::before {
    background-color: #e91e63 !important;
}
.anime-text .word span.keyword.conversion-rates::before {
    background-color: #27ae60 !important;
}
.anime-text .word span.keyword.magic::before {
    background-color: #8e44ad !important;
}
.anime-text .word span.keyword.beautiful::before {
    background-color: #e74c3c !important;
}
.anime-text .word span.keyword.behavior::before {
    background-color: #f1c40f !important;
}
.anime-text .word span.keyword.breakthrough::before {
    background-color: #e67e22 !important;
}
.anime-text .word span.keyword.measurable::before {
    background-color: #2ecc71 !important;
}
.anime-text .word span.keyword.invisibly::before {
    background-color: #95a5a6 !important;
}

.anime-text .word span.keyword.enjoy::before {
    background-color: #ff6b9d !important;
}

.anime-text .word span.keyword.beautifully::before {
    background-color: #e74c3c !important;
}

/* Initial state for animation */
.anime-text .word,
.anime-text .word span {
    opacity: 0;
}

/* Responsive styles */
@media (max-width: 1000px) {
    .anime-text {
        width: 90%;
    }
    .anime-text p {
        font-size: 1.25rem;
    }
    .anime-text .word {
        margin-right: 0.1rem;
        margin-bottom: 0.15rem;
        padding: 0.1rem 0.2rem;
    }
    .anime-text .word.keyword-wrapper {
        margin: 0 0.2rem 0.1rem 0.1rem;
    }

    /* Simplify text animations for mobile performance */
    .anime-text-container {
        will-change: auto !important;
    }

    .anime-text .word,
    .anime-text .word span {
        will-change: auto !important;
    }

    /* Ensure text is visible on mobile */
    .anime-text .word,
    .anime-text .word span {
        opacity: 1 !important;
    }

    /* Keep keyword styling with colored circles on mobile */
    .anime-text .word span.keyword::before {
        opacity: 1 !important;
        display: block !important;
        position: absolute !important;
        z-index: -1 !important;
    }

    /* Ensure all keyword classes work on mobile */
    .anime-text .word span.keyword {
        position: relative !important;
        color: #ffffff !important;
        z-index: 1 !important;
    }

    /* Reduce transition section height for mobile */
    div[style*="height: 300vh"] {
        height: 50vh !important;
    }

    /* Reduce section heights for better mobile experience */
    section {
        min-height: auto !important;
    }

    .about {
        padding: 1rem !important;
        min-height: 60vh !important;
    }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}