/* -----------------------------------------------------------
   CUBEGL – Global Stylesheet (Exillar Style + Dark Mode)
   - Light + Dark theme via html[data-theme]
   - Same Cubegle colors, same Poppins font
----------------------------------------------------------- */

/* ------------ ROOT (LIGHT THEME) --------------- */
:root {
  /* Brand */
  --primary: #184a57;              /* Cubegle teal */
  --primary-light: #256f82;
  --accent: #f59e0b;               /* Orange */

  /* Light theme colors */
  --bg-page: radial-gradient(circle at top left, #ffffff 0, #f5f7fb 45%, #eef2ff 100%);
  --bg-card: #ffffff;
  --bg-soft: #f9fafb;

  --border-subtle: #e5e7eb;
  --border-soft: #d1d5db;

  --text-main: #0f172a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --shadow-soft: 0 10px 30px rgba(15,23,42,0.04);
  --shadow-hover: 0 20px 40px rgba(15,23,42,0.06);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --max-width: 1120px;
  --transition-fast: 0.16s ease-out;
  --transition: 0.22s ease;
}

/* ------------ DARK THEME OVERRIDES --------------- */
html[data-theme="dark"] {
  --bg-page: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  --bg-card: #0b1220;
  --bg-soft: #0f172a;

  --border-subtle: #1f2937;
  --border-soft: #374151;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --shadow-soft: 0 10px 30px rgba(15,23,42,0.6);
  --shadow-hover: 0 20px 40px rgba(15,23,42,0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

/* ------------ GLOBAL ELEMENTS --------------- */
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

/* Text helpers */
.section-eyebrow,
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-eyebrow::before,
.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Titles */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  text-align: right;
}

/* -----------------------------------------------------------
   HEADER / NAVIGATION
----------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(249,250,251,0.94),
    rgba(249,250,251,0.86)
  );
  border-bottom: 1px solid rgba(229,231,235,0.9);
  transition: background var(--transition), border-color var(--transition);
}

html[data-theme="dark"] header {
  background: rgba(15,23,42,0.86);
  border-color: rgba(31,41,55,0.9);
}

.nav {
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text-main {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

html[data-theme="dark"] .logo-text-main {
  color: #e5e7eb;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
}

/* Nav Links + Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.88rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  padding-bottom: 0.1rem;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-fast);
}

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

html[data-theme="dark"] .nav-links a:hover:not(.nav-cta) {
  color: #e5e7eb;
}

.nav-links a:hover:not(.nav-cta)::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(15,23,42,0.25);
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Theme toggle button */
.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.9);
  color: var(--text-soft);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(15,23,42,0.9);
  border-color: #1f2937;
  color: #e5e7eb;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0.9rem 0 0.7rem;
}

.hero-title .highlight {
  color: var(--primary);
}

html[data-theme="dark"] .hero-title .highlight {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* Hero image */
.hero img {
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow:
    0 18px 60px rgba(15,23,42,0.12),
    0 0 0 1px rgba(255,255,255,0.8);
}

/* -----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */
.btn {
  border-radius: var(--radius-pill);
  padding: 0.30rem 1.3rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(24,74,87,0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(24,74,87,0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(209,213,219,0.9);
  color: var(--text-main);
}

html[data-theme="dark"] .btn-outline {
  background: #020617;
  border-color: #1f2937;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

/* -----------------------------------------------------------
   GRIDS & CARDS
----------------------------------------------------------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

/* Card base */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226,232,240,0.9);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow var(--transition),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition);
}

html[data-theme="dark"] .card {
  border-color: #1f2937;
  box-shadow: 0 16px 40px rgba(15,23,42,0.7);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(148,163,184,0.9);
}

/* Card titles / text */
.card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Tags */
.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.card-tag {
  font-size: 0.72rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(209,213,219,0.9);
  background: var(--bg-soft);
  color: var(--text-soft);
}

/* -----------------------------------------------------------
   BLOG / RESOURCES CARDS
----------------------------------------------------------- */
.blog-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229,231,235,0.9);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.03);
  transition:
    box-shadow var(--transition),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition);
}

html[data-theme="dark"] .blog-card {
  border-color: #1f2937;
  box-shadow: 0 16px 40px rgba(15,23,42,0.7);
}

.blog-card:hover {
  background: var(--bg-card);
  border-color: rgba(148,163,184,0.9);
  box-shadow: 0 18px 46px rgba(15,23,42,0.06);
  transform: translateY(-3px);
}

.blog-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.18rem;
}

.blog-meta {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.blog-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------
   FORMS (Contact)
----------------------------------------------------------- */
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(209,213,219,0.9);
  padding: 0.6rem 0.7rem;
  font-size: 0.86rem;
  background: var(--bg-soft);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

textarea {
  resize: vertical;
  min-height: 222px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8b5cf6;
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0b1220;
  border-color: #1f2937;
  color: var(--text-main);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  background: #0b1220;
  border-color: #8b5cf6;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.3),
    0 0 20px rgba(139, 92, 246, 0.2);
}

html[data-theme="dark"] ::placeholder {
  color: rgba(229,231,235,0.55);
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
  border-top: 1px solid rgba(229,231,235,0.9);
  background: rgba(249,250,251,0.9);
  backdrop-filter: blur(12px);
  padding: 1.4rem 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  transition: background var(--transition), border-color var(--transition);
}

html[data-theme="dark"] footer {
  background: rgba(15,23,42,0.9);
  border-color: #1f2937;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

html[data-theme="dark"] .footer-links a:hover {
  color: #e5e7eb;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero img {
    max-width: 420px;
    margin: 2rem auto 0;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-subtitle {
    text-align: left;
    max-width: none;
  }

  .card-grid-3,
  .card-grid-2,
  form {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-right {
    gap: 0.6rem;
  }

  .nav-links {
    position: absolute;
    top: 4.4rem;
    left: 1rem;
    right: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(229,231,235,0.96);
    box-shadow: 0 18px 50px rgba(15,23,42,0.14);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-fast),
      opacity var(--transition-fast);
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  section {
    padding: 3.2rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/****************************
 * MODERN ANIMATED BACKGROUNDS - PURPLE THEME
 ***************************/

/* Base Hero Setup with Purple Glow */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1042 50%, #0f172a 100%);
}

/* Hero text contrast (hero background is dark on all themes) */
.hero .hero-eyebrow,
.hero .hero-title,
.hero .hero-subtitle,
.hero .section-title,
.hero .section-subtitle,
.hero a {
  color: #f9fafb;
}

.hero .hero-subtitle {
  color: rgba(249,250,251,0.82);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.4) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.35) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 30%);
  animation: heroGlow 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

@keyframes heroGlow {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: translate(5%, 5%) scale(1.1);
    opacity: 0.8;
  }
  66% { 
    transform: translate(-5%, -5%) scale(0.9);
    opacity: 0.7;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.3) 50%,
    rgba(15, 23, 42, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/*
  Contact-page hero treatment (applied site-wide)
  ------------------------------------------------
  Many pages include per-page <style> blocks that tweak .hero. To ensure a single
  consistent “Contact look & feel” across the site, we override those page rules
  with higher-specificity selectors + !important.
*/

html body .hero::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.35) 0%, transparent 40%)
    !important;
  background-size: 300% 300% !important;
  animation: glowMove 12s ease-in-out infinite !important;
  opacity: 1 !important;
  filter: blur(40px) !important;
}

@keyframes glowMove {
  0%, 100% {
    background-position: 0% 0%, 100% 100%;
    transform: scale(1);
  }
  50% {
    background-position: 100% 100%, 0% 0%;
    transform: scale(1.2);
  }
}

html body .hero::after {
  background: radial-gradient(
      ellipse at center,
      rgba(139, 92, 246, 0.3) 0%,
      rgba(168, 85, 247, 0.15) 30%,
      transparent 70%
    )
    !important;
  animation: contactPulse 4s ease-in-out infinite !important;
}

@keyframes contactPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Ensure content is visible */
.hero > *,
.hero .container,
.hero .hero-grid {
  position: relative;
  z-index: 2;
}

/* Glowing text effect for dark theme */
html[data-theme="dark"] .hero-title {
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.3),
    0 0 40px rgba(168, 85, 247, 0.2);
  animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { text-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 50px rgba(168, 85, 247, 0.3); }
}

html[data-theme="dark"] .hero-eyebrow {
  color: #c4b5fd;
  text-shadow: 0 0 10px rgba(196, 181, 253, 0.5);
}

/* Floating particles effect */
.hero-grid::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 10% 20%, rgba(196, 181, 253, 0.6), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(168, 85, 247, 0.5), transparent),
    radial-gradient(3px 3px at 50% 50%, rgba(139, 92, 246, 0.4), transparent),
    radial-gradient(2px 2px at 70% 30%, rgba(59, 130, 246, 0.5), transparent);
  background-size: 300% 300%;
  animation: particlesDrift 25s ease-in-out infinite;
  z-index: 0;
  opacity: 0.6;
}

@keyframes particlesDrift {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 75% 25%;
  }
  25% { 
    background-position: 25% 75%, 75% 25%, 80% 20%, 20% 80%;
  }
  50% { 
    background-position: 100% 100%, 0% 0%, 30% 70%, 60% 40%;
  }
  75% { 
    background-position: 75% 25%, 25% 75%, 90% 10%, 10% 90%;
  }
}

/****************************
 * CARD IMPROVEMENTS
 ***************************/

.card,
.blog-card {
  position: relative;
  overflow: hidden;
}

.card::before,
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.card:hover::before,
.blog-card:hover::before {
  left: 100%;
}

html[data-theme="dark"] .card {
  background: rgba(30, 27, 75, 0.3);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(196, 181, 253, 0.1);
}

html[data-theme="dark"] .card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 
    0 8px 30px rgba(139, 92, 246, 0.3),
    0 0 20px rgba(168, 85, 247, 0.2);
  transform: translateY(-5px);
}

/****************************
 * BUTTON GLOW EFFECTS
 ***************************/

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #6366f1);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.4),
    0 0 20px rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}

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

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  box-shadow: 
    0 15px 40px rgba(139, 92, 246, 0.6),
    0 0 30px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px) scale(1.02);
}

/****************************
 * SCROLL REVEAL ANIMATIONS
 ***************************/

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: 
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: 
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/****************************
 * SECTION BACKGROUNDS
 ***************************/

section:nth-child(even) {
  position: relative;
}

html[data-theme="dark"] section:nth-child(even) {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139, 92, 246, 0.03) 50%,
    transparent 100%
  );
}

/****************************
 * MOBILE OPTIMIZATIONS
 ***************************/

@media (max-width: 768px) {
  .hero::before {
    filter: blur(40px);
    opacity: 0.5;
  }
  
  .hero-grid::before {
    opacity: 0.3;
  }
  
  html[data-theme="dark"] .hero-title {
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-grid::before,
  .btn-primary,
  .reveal,
  .reveal-left,
  .reveal-right {
    animation: none !important;
    transition: none !important;
  }
}