/* Root Variables */
:root {
    /* Brand Colors */
    --waldiez-purple: #CB95FA;
    --primary-purple: #8B5FBF;
    --secondary-purple: #A78BFA;
    --light-purple: #E9E4FF;
    --dark-purple: #6B46C1;
    --gradient-bg: linear-gradient(135deg, #8B5FBF 0%, #A78BFA 100%);
    
    /* Light Mode Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E9E4FF;
    --bg-gradient-light: linear-gradient(135deg, #e9d5ff, #f3e8ff);
    
    --text-primary: #64748B;
    --text-secondary: #334155;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    
    --surface-primary: #FFFFFF;
    --surface-elevated: #FFFFFF;
    
    --border-light: rgba(139, 95, 191, 0.1);
    --border-accent: #8B5FBF;
    
    --shadow-light: rgba(139, 95, 191, 0.12);
    --shadow-medium: rgba(139, 95, 191, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.08);
    
    /* Pagination */
    --swiper-pagination-color: var(--dark-purple);
    --pagination-bullet: #d6bbfb;
    --pagination-bullet-active: var(--primary-purple);
    
    /* Special Elements */
    --logo-light: #b174e7;
    --header-shadow: rgba(139, 95, 191, 0.1);
}

/* General Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans",sans-serif;
    line-height: 1.4;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: 0 2px 10px var(--header-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav {
  position: relative;
    font-family: 'Fredoka';
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}
header {
  transition: all 0.3s ease;
}

header.shrink {
  padding: 0.2rem 2rem;
  box-shadow: 0 10px 12px var(--shadow-dark);
}

.logo {
  font-family: 'Fredoka';
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;

  background: linear-gradient(to right, var(--primary-purple), var(--secondary-purple));
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-links {
    font-family: "Open Sans";
    display: flex;
    list-style: none;
    gap: 3rem;
}


.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}


.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-purple);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-purple);
}

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


.menu-toggle {
  display: none; 
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-purple);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.cta-button {
    background: var(--gradient-bg);
    color: var(--text-on-dark);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 7rem 5% 2rem;
  text-align: center;
  color: var(--text-on-dark);
  margin-top: 79px;

  overflow: hidden;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(203, 149, 250, 0.25),
      transparent 60%
    ),
    radial-gradient(circle at 70% 60%, rgba(139, 95, 191, 0.25), transparent 60%),
    linear-gradient(135deg, #8b5fbf 20%, #a78bfa 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #d8b4fe 0%, transparent 70%);
  filter: blur(100px);
  animation: floatGlow 6s ease-in-out infinite alternate;
  border-radius: 50%;
  z-index: 0;
}

@keyframes floatGlow {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-40px, 30px);
  }
}

.hero-content {
    max-width: 958px;
    margin: 0 auto;
}

.hero h1 {
    font-family: "Fredoka",sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.1rem;
    line-height: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.waldiez-logo-animation {
  position: relative;
  width: 120px;
  height: 204px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waldiez-logo-animation img {
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  opacity: 0;
  transform: scale(1);
}

.waldiez-center {
  z-index: 2;
  animation: centerLift 1s ease-out forwards;
}

.waldiez-shadow.left {
  z-index: 1;
  animation: comeFromLeft 1s 0.8s ease-out forwards;
}

.waldiez-shadow.right {
  z-index: 1;
  animation: comeFromRight 1s 0.8s ease-out forwards;
}

.waldiez-name {
  margin-top: 144px;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  opacity: 0;
  animation: fadeInName 0.4s 0.9s ease-out forwards;
  font-family: "Fredoka", sans-serif;
  text-shadow: 0 1px 2px var(--overlay-dark);
}

/* Animations */
@keyframes centerLift {
  0%   { opacity: 0; transform: translateY(0) ; }
  50%  { opacity: 1; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(-10px); }
}

@keyframes comeFromLeft {
  0%   { opacity: 0; transform: translateX(0) translateY(-15px) scale(0.6); }
  100% { opacity: 0.7; transform: translateX(-52px) translateY(-9px) scale(0.9); }
}

@keyframes comeFromRight {
  0%   { opacity: 0; transform: translateX(0) translateY(-15px) scale(0.6); }
  100% { opacity: 0.7; transform: translateX(52px) translateY(-9px) scale(0.9); }
}

@keyframes fadeInName {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--bg-primary);
  color: var(--primary-purple);
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-dark);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--overlay-light);
  color: var(--text-on-dark);
  padding: 1rem 2rem;
  border: 2px solid var(--text-on-dark);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-primary);
  color: var(--primary-purple);
  transform: translateY(-2px) scale(1.02);
}

.demo-video {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1%;
  background-color: var(--bg-tertiary); 
  transition: background-color 0.3s ease;
}

.video-player {
  max-width: 75%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 14px 13px var(--shadow-heavy);
}

/* Default: show light, hide dark */
.light-video {
  display: block;
}
.dark-video {
  display: none;
}

/* When in dark mode */
html[data-theme='dark'] .light-video {
  display: none;
}
html[data-theme='dark'] .dark-video {
  display: block;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 2.5rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Card layout */
.feature-card {
    background: var(--surface-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px var(--shadow-medium);
}

/* Icon container */
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--light-purple);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

/* Title */
.feature-card h3 {
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--dark-purple);
    margin-bottom: 0.75rem;
}

/* Description */
.feature-card p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

/* How It Works */
.how-it-works {
    padding: 6rem 5%;
    transition: background-color 0.3s ease;
}

.steps {
    font-size: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    font-size: 1.1rem;
    text-align: center;
    position: relative;
}

.step h3 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 2.1rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-bg);
    color: var(--text-on-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
}
/* Use Cases */
.use-cases {
    padding: 6rem 5%;
    background: var(--light-purple);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case {
    text-align: center;
    background: var(--surface-primary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-accent);
    transition: background-color 0.3s ease;
}

.use-case h4 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 1.4rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.use-cases-swiper {
  position: relative;
  padding: 3rem 0;
  overflow: visible;

  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.use-cases-swiper .swiper-wrapper {
  overflow: visible;
}

.swiper-slide.use-case {
  width: 20rem; /* Allows "peeking" */
  background: var(--surface-primary);
  border-left: 4px solid var(--border-accent);
  
  border-radius: 15px;
  padding: 1.3rem;
  text-align: center;
  height: auto;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease;
}

.swiper-slide-active {
  opacity: 1 !important;
  transform: scale(1.05);
  z-index: 3;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--pagination-bullet);
  opacity: 0.6;
  margin: 0 10px !important;
  border-radius: 50%;
  transition: all 0.6s ease;
  transform: scale(0.8);
}

.swiper-pagination-bullet-active {
  background: var(--pagination-bullet-active);
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 0 2px var(--light-purple);
}

.use-cases .swiper-pagination {
  position: relative;
  margin-top: 1rem;
}

.see-more-link {
  margin-top: auto;
  color: var(--primary-purple);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.see-more-link:hover {
  color: var(--dark-purple);
  text-decoration: underline;
}

/* Getting Started */
.getting-started {
    padding: 4rem 5%;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.btn-getstarted {
  position: relative;
  padding: 1rem 2.25rem;
  background: var(--bg-primary);
  border-radius: 16px;
  font-weight: 600;
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(139, 95, 191, 0.15);
  overflow: hidden;
  z-index: 0;
}

.btn-getstarted::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #cb95fa, #a78bfa, #8b5fbf);
  background-size: 200% 200%;
  animation: pulse-border 4s ease infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.btn-getstarted:hover {
  transform: translateY(-4px) scale(1.03);
  color: var(--text-on-dark);
  background: var(--gradient-bg);
  box-shadow: 0 10px 28px rgba(139, 95, 191, 0.25);
}

@keyframes pulse-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Footer */
.footer {
    background: var(--dark-purple);
    color: var(--text-on-dark);
    padding: 3rem 5% 2rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.star-us-section {
  background: var(--bg-gradient-light);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease;
}

.star-us-content h2 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 2.5rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.star-us-content p {
  font-size: 1rem;
  color: var(--text-on-light);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.powered-by-section,
.llm-support-section {
  padding: 5rem 5% 4rem;
  background-color: var(--bg-secondary);
  text-align: center;
  transition: background-color 0.3s ease;
}

.powered-by-section h2,
.llm-support-section h2 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 2.5rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.powered-by-section p,
.llm-support-section p {
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.ag2-inline-logo {
  height: 1.6em;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.llm-support-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

.llm-support-text {
  flex: 1 1 350px;
  max-width: 500px;
}

.llm-support-text h2 {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    line-height: 1;
    font-size: 2.5rem;
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.llm-support-text p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.bubble-logo-container {
  flex: 1 1 400px;
  position: relative;
  height: 250px;
  min-width: 280px;
}

.bubble {
  position: absolute;
  width: 60px;
  opacity: 0.9;
  animation: float 10s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px var(--shadow-dark));
  transition: transform 0.3s ease;
}

.bubble:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.2));
}

/* Each bubble positioned manually */
.bubble1  { top: 4%;   left: 55%; animation: float 4s ease-in-out infinite; animation-delay: 0s; }
.bubble2  { top: -7%;  left: 37%; animation: float 5.2s ease-in-out infinite; animation-delay: 0.5s; }
.bubble3  { top: 37%;  left: 26%; animation: float 6s ease-in-out infinite; animation-delay: 2s; }
.bubble4  { top: 61%;  left: 13%; animation: float 3.8s ease-in-out infinite; animation-delay: 1.5s; }
.bubble5  { top: -12%; left: 19%; animation: float 4.4s ease-in-out infinite; animation-delay: 0s; }
.bubble6  { top: 37%;  left: 0%;  animation: float 6.3s ease-in-out infinite; animation-delay: 3.5s; }
.bubble7  { top: 35%;  left: 56%; animation: float 5.1s ease-in-out infinite; animation-delay: 1.5s; }
.bubble8  { top: 54%;  left: 43%; animation: float 4.7s ease-in-out infinite; animation-delay: 2.5s; }
.bubble9  { top: 13%;  left: 17%; animation: float 6.8s ease-in-out infinite; animation-delay: 1s; }
.bubble10 { top: 4%;   left: 0%;  animation: float 5.5s ease-in-out infinite; animation-delay: 2.5s; }
.bubble11 { top: 20%;  left: 39%; animation: float 4.2s ease-in-out infinite; animation-delay: 0.5s; }

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* Toggle button styling */
#theme-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--primary-purple);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 9999;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 95, 191, 0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
  /* Typography adjustments */
  .hero h1 {
    font-size: 2.5rem;
  }

  /* Layout stacks */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  /* Bubble logo container scale */
  .bubble-logo-container {
    transform: scale(0.7);
    padding: 12rem 0;
  }

  /* Navbar mobile styles */
  .nav {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 5%;
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px var(--shadow-dark);
    z-index: 999;
    min-width: 160px;
    transition: background-color 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Dark Theme Variables */
html[data-theme='dark'] {
  --white: #0f0f17;
  --light-gray: #262838;
  --text-gray: #d1d1d1;
  --dark-gray: #e2e8f0;
  --logo-light: #cb95fa;

  --waldiez-purple: #CB95FA;
  --primary-purple: #B98EF2;
  --secondary-purple: #A78BFA;
  --light-purple: rgba(57, 51, 82, 0.61);
  --dark-purple: #e4baf3;
  --gradient-bg: linear-gradient(135deg, #B98EF2 0%, #A78BFA 100%);
  --swiper-pagination-color: var(--secondary-purple);

  --overlay-light: rgba(255, 255, 255, 0.08);
  --overlay-dark: rgba(0, 0, 0, 0.6);
  
  

}

html[data-theme='dark'] body {
  background-color: var(--white);
  color: var(--text-gray);
}

html[data-theme='dark'] .header {
  background: #22283c;
}

html[data-theme='dark'] .nav-links a {
  color: var(--text-gray);
}

html[data-theme='dark'] .nav-links a:hover {
  color: var(--secondary-purple);
}

html[data-theme='dark'] .feature-card,
html[data-theme='dark'] .swiper-slide.use-case,
html[data-theme='dark'] .use-case {
  background: var(--light-gray);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(203, 149, 250, 0.1);
  color: var(--text-gray);
}

html[data-theme='dark'] .feature-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .feature-icon {
  background: var(--light-purple);
  color: var(--secondary-purple);
}

html[data-theme='dark'] .features,
html[data-theme='dark'] .use-cases {
  background: #0a0a0f;
}

html[data-theme='dark'] .powered-by-section,
html[data-theme='dark'] .llm-support-section {
  background: #151520;
}

html[data-theme='dark'] .section-title h2,
html[data-theme='dark'] .feature-card h3,
html[data-theme='dark'] .step h3,
html[data-theme='dark'] .use-case h4,
html[data-theme='dark'] .powered-by-section h2,
html[data-theme='dark'] .llm-support-section h2,
html[data-theme='dark'] .star-us-content h2,
html[data-theme='dark'] .llm-support-text h2 {
  color: var(--dark-purple);
}

html[data-theme='dark'] .feature-card p,
html[data-theme='dark'] .powered-by-section p{
  color: var(--text-gray)
}

html[data-theme='dark'] .section-title p,
html[data-theme='dark'] .step,
html[data-theme='dark'] .llm-support-text p,
html[data-theme='dark'] .hero p,
html[data-theme='dark'] .hero h1 {
  color: var(--text-gray);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

html[data-theme='dark'] .footer {
  background: #0a0a0f;
  border-top: 1px solid rgba(203, 149, 250, 0.1);
}

html[data-theme='dark'] .star-us-section {
  background: linear-gradient(135deg, rgba(59, 33, 109, 0.82), rgba(98, 89, 182, 0.1));
  border: 1px solid rgba(33, 18, 46, 0.86);
}

html[data-theme='dark'] .star-us-content p {
  color: var(--text-gray);
}

html[data-theme='dark'] .btn-primary {
  background: var(--gradient-bg);
  color: #ffffff
}

html[data-theme='dark'] .btn-getstarted {
  background: var(--light-gray);
  color: var(--secondary-purple);
  border: 1px solid rgba(203, 149, 250, 0.2);
}

html[data-theme='dark'] .btn-getstarted:hover {
  background: var(--gradient-bg);
  color: var(--white);
}


html[data-theme='dark'] .menu-toggle span {
  background: var(--secondary-purple);
}

html[data-theme='dark'] .demo-video {
  background-color: var(--light-purple);
}

html[data-theme='dark'] .video-player {
  border: 2px solid rgba(203, 149, 250, 0.2);
}

html[data-theme='dark'] .swiper-pagination-bullet {
  background: rgba(203, 149, 250, 0.3);
}

html[data-theme='dark'] .swiper-pagination-bullet-active {
  background: var(--secondary-purple);
  box-shadow: 0 0 0 2px rgba(203, 149, 250, 0.3);
}

html[data-theme='dark'] .bubble img {
  filter: brightness(1.2) contrast(1.1);
}

html[data-theme='dark'] #theme-toggle {
  background: var(--gradient-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme='dark'] #theme-toggle:hover {
  box-shadow: 0 6px 18px rgba(203, 149, 250, 0.4);
}

[data-theme="dark"] .hero {
  background: radial-gradient(
      circle at 50% 85%,
      rgba(151, 99, 213, 0.27),
      transparent 70%
    ),
    linear-gradient(135deg, #0f101a 0%, #131421 100%);
}

html[data-theme='dark'] .hero::before {
  display: none;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


/*  LOGO DARK MODE */
[data-theme="dark"] .hero {
  transition: background 0.6s ease, color 0.3s ease;
}

[data-theme="dark"] .ag2-inline-logo,
[data-theme="dark"] .bubble.bubble2,
[data-theme="dark"] .bubble.bubble10 {
  filter: invert(1) brightness(1.4); /* Boost for dark mode */
  transition: filter 0.3s ease;
}

html[data-theme='light'] .ag2-inline-logo,
html[data-theme='light'] .bubble.bubble2,
html[data-theme='light'] .bubble.bubble10 {
  filter: none;
}
