:root {
  --color-background-dark: #050505;
  --color-background-light: #ffffff;
  --color-text-dark: #0b0b0f;
  --color-text-light: #f5f5f7;
  --color-accent: #d4a259;
  --color-accent-blue: #3b82f6;
  --color-muted: #858da0;
  --max-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(5, 5, 15, 0.25);
  
  /* Custom gradient colors (RGB values for rgba usage) */
  --color1: 212, 162, 89;  /* Gold accent RGB */
  --color2: 59, 130, 246;  /* Blue accent RGB */
}

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

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-dark);
  background: var(--color-background-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
  gap: 1.8rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo img {
  height: clamp(108px, 12vw, 135px);
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--color-accent-blue);
}

.main-nav .cta {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-text-light);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  opacity: 1;
}

.main-nav .cta:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: none;
  box-shadow: none;
}

/* Hero Section */
.hero {
  background: #000000;
  color: var(--color-text-light);
  padding: 0.2rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 0 0 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  color: rgba(245, 245, 247, 0.95);
  margin: 0 0 1.8rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.hero-bullets li {
  padding-left: 1.8rem;
  position: relative;
  color: rgba(245, 245, 247, 0.95);
  font-size: 16px;
}

.hero-bullets li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  border-radius: 28px;
  object-fit: cover;
  height: clamp(315px, 38vw, 441px);
  width: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  background-color: #000000;
  padding: 1rem;
  display: block;
}

/* Homepage hero - original size */
.hero-image-homepage img {
  height: clamp(500px, 60vw, 700px);
}

/* Course page hero - smaller size */
.hero-image-course img {
  height: clamp(315px, 38vw, 441px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--color-accent);
  color: #1a1a1a;
  box-shadow: 0 12px 25px rgba(212, 162, 89, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(212, 162, 89, 0.45);
}

.btn.secondary {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-text-light);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.btn.secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.btn.large {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.section p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--color-accent-blue);
  font-weight: 600;
}

.section-dark .highlight {
  color: #7bb0ff;
}

/* Intro Section */
.intro {
  background: var(--color-background-light);
  color: var(--color-text-dark);
}

.intro h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.intro .intro-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.intro p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-dark);
}

.intro strong {
  color: var(--color-accent-blue);
  font-weight: 600;
}

.intro .emphasis {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-dark);
  font-style: italic;
  margin-top: 2rem;
}

/* Who This Is For */
.who-for {
  background: #101015;
  color: var(--color-text-light);
}

.who-for h2 {
  color: var(--color-text-light);
}

.who-for p {
  color: rgba(245, 245, 247, 0.95);
}

.who-for .callout {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  color: white !important;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: 32px;
  margin: 48px 0;
}

.grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 25px rgba(5, 5, 15, 0.06);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 5, 15, 0.12);
}

.icon-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.icon-card p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.callout {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 22px !important;
  font-weight: 600;
  color: var(--text) !important;
  padding: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* What You Get */
.what-you-get {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  color: var(--color-text-dark);
  position: relative;
  box-shadow: 
    inset 0 1px 0 rgba(var(--color1), 0.1),
    inset 0 -1px 0 rgba(var(--color1), 0.1);
}

.what-you-get::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(var(--color1), 0.3) 20%,
    rgba(var(--color1), 0.5) 50%,
    rgba(var(--color1), 0.3) 80%,
    transparent 100%
  );
}

.what-you-get::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(var(--color1), 0.3) 20%,
    rgba(var(--color1), 0.5) 50%,
    rgba(var(--color1), 0.3) 80%,
    transparent 100%
  );
}

.what-you-get h2 {
  color: var(--color-text-dark);
  position: relative;
}

.what-you-get p {
  color: var(--color-text-dark);
}

.benefits-list {
  list-style: none;
  max-width: 800px;
  margin: 48px auto;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  background: linear-gradient(135deg, rgba(var(--color1), 0.03) 0%, rgba(var(--color2), 0.02) 100%);
  border: 2px solid rgba(var(--color1), 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 25px rgba(5, 5, 15, 0.06);
}

.benefits-list i {
  color: var(--color-accent);
  font-size: 24px;
  margin-top: 4px;
}

/* Why This Works */
.why-works {
  background: #101015;
  color: var(--color-text-light);
}

.why-works h2 {
  color: var(--color-text-light);
}

.why-works .lead {
  color: rgba(245, 245, 247, 0.95);
}

.why-works p {
  color: rgba(245, 245, 247, 0.95);
}

.why-works .emphasis {
  color: var(--color-text-light);
}

.why-works > .container > p:last-of-type {
  color: rgba(245, 245, 247, 0.95);
}

.why-works .stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.why-works .stat-card h3 {
  color: var(--color-text-light);
  font-size: 1.2rem;
}

.why-works .lead {
  max-width: 800px;
  margin: 24px auto 48px;
  text-align: center;
  font-size: 22px;
  color: var(--text);
  font-weight: 600;
}

.stat-card {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.stat-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.why-works .emphasis {
  max-width: 800px;
  margin: 48px auto 24px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
}

.why-works > .container > p:last-of-type {
  text-align: center;
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-blue) 100%);
  color: white;
  text-align: center;
}

.final-cta h2 {
  color: white;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.final-cta .cta-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem auto 2rem;
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.final-cta .btn.primary {
  background: white;
  color: #1a1a1a;
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

.final-cta .btn.primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.35);
}

.final-cta .btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.final-cta .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.disclaimer {
  font-size: 1rem !important;
  font-style: italic;
  margin: 0.5rem auto !important;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #000000;
  color: var(--color-text-light);
  padding: 3rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer small {
  opacity: 0.7;
  color: var(--color-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* FAQ Styles */
.faq-list {
  max-width: 900px;
  margin: 2rem auto;
}

.faq-item {
  background: rgba(16, 16, 21, 0.02);
  border: 1px solid rgba(16, 16, 21, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.section-dark .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(16, 16, 21, 0.05);
}

.section-dark .faq-item summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: var(--color-text-dark);
}

.section-dark .faq-item p {
  color: rgba(245, 245, 247, 0.95);
}

/* Stats Styles */
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: rgba(245, 245, 247, 0.9);
}

/* What You're Getting Section - White Text */
.what-youre-getting .benefits-list li {
  color: var(--color-text-light) !important;
}

/* Brand Name Styling */
.brand-link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 2px solid var(--color-accent);
}

.brand-link:hover {
  color: var(--color-accent-blue);
  border-bottom-color: var(--color-accent-blue);
}

.brand-link-footer {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-link-footer:hover {
  color: var(--color-accent-blue);
}

.btn .brand-name {
  font-weight: 700;
  color: var(--color-accent-blue);
}

/* Additional Page Styles */
.card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: inherit;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: inherit;
}

.card .btn {
  margin-top: 1rem;
}

article.card h3 {
  color: inherit;
  margin-bottom: 0.75rem;
}

article.card p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 252px;
  }

  .hero-image-homepage img {
    max-height: 400px;
  }

  .hero-image-course img {
    max-height: 252px;
  }

  .grid.two-cols,
  .grid.four-cols {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn.large {
    width: 100%;
    max-width: 320px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: 94%;
  }

  .hero-image img {
    max-height: 350px;
  }

  .hero-image-homepage img {
    max-height: 350px;
  }

  .hero-image-course img {
    max-height: 220px;
  }

  .benefits-list li {
    font-size: 1rem;
    padding: 1.2rem;
  }
}

/* Blog Post Styles */
.blog-post .post-meta {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.post-content ul, .post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.post-content strong {
  font-weight: 600;
  color: var(--color-accent);
}

.post-content a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--color-accent);
}

/* Blog list post meta */
.card .post-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.card .post-meta small {
  display: block;
}

/* ========================================
   DYNAMIC EFFECTS & ANIMATIONS
   ======================================== */

/* --- Smooth Menu Transitions --- */
.main-nav a {
  transition: color 200ms ease-in-out, transform 200ms ease-in-out;
}

.main-nav a:hover {
  transition: color 400ms ease-in-out;
  transform: translateY(-2px);
}

/* --- Button Hover Effects --- */
.btn {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.btn.primary:hover {
  box-shadow: 0 0 25px 8px rgba(var(--color1), 0.4);
  transform: scale(1.05);
}

.btn.secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.2);
}

/* --- Gradient Text Effect --- */
.gradient-text {
  background: linear-gradient(115deg, rgba(var(--color2), 1) 20%, rgba(255, 255, 255, 1) 50%, rgba(var(--color1), 1) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  /* Fallback for browsers that don't support background-clip */
  color: rgba(255, 255, 255, 0.95);
}

/* --- Cool Text Gradient (Silver to White) --- */
.cool-text-gradient strong {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* --- Gradient Background Accents --- */
.gradient-bg-top {
  background: #000000;
}

.gradient-bg-bottom {
  background: radial-gradient(ellipse at bottom, rgba(var(--color1), 0.08) 0%, rgba(0, 0, 0, 1) 50%);
}

.gradient-bg-top-blue {
  background: radial-gradient(ellipse at top, rgba(var(--color2), 0.08) 0%, rgba(0, 0, 0, 1) 50%);
}

/* --- Card Hover Effects --- */
.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Image Scale Effect --- */
.scale-on-hover {
  transition: transform 0.6s ease-in-out;
  overflow: hidden;
}

.scale-on-hover:hover {
  transform: scale(1.05);
  z-index: 10;
}

.scale-on-hover img {
  transition: transform 0.6s ease-in-out;
}

.scale-on-hover:hover img {
  transform: scale(1.1);
}

/* --- Glow Effect for Pricing/Cards --- */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glow-card {
  position: relative;
  z-index: 1;
}

.glow-card::before,
.glow-card::after {
  opacity: 0;
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: conic-gradient(
    from var(--gradient-angle), 
    rgba(var(--color1), 0.8), 
    rgba(var(--color2), 0.8), 
    rgba(var(--color1), 0.8)
  );
  border-radius: inherit;
  animation: rotation-glow 8s linear infinite;
  transition: opacity 0.6s;
}

.glow-card::after {
  filter: blur(1.5rem);
}

.glow-card:hover::before,
.glow-card:hover::after {
  opacity: 1;
}

@keyframes rotation-glow {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

/* --- Gradient Divider Lines --- */
.gradient-divider {
  position: relative;
}

.gradient-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right, 
    rgba(0, 0, 0, 0) 20%, 
    rgba(var(--color1), 0.7) 50%, 
    rgba(0, 0, 0, 0) 80%
  );
  pointer-events: none;
}

/* --- Bento Box Gradient Backgrounds --- */
.bento-gradient-1 {
  background: linear-gradient(35deg, rgba(var(--color1), 0.2), rgba(7, 8, 10, 0.4));
}

.bento-gradient-2 {
  background: radial-gradient(circle, rgba(var(--color2), 0.2), rgba(7, 8, 10, 0.4));
}

.bento-gradient-3 {
  background: conic-gradient(rgba(var(--color1), 0.2), rgba(7, 8, 10, 0.4), rgba(var(--color1), 0.2));
}

.bento-gradient-4 {
  background: linear-gradient(180deg, rgba(var(--color2), 0.2), rgba(7, 8, 10, 0.4));
}

/* --- Floating Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

/* --- Pulse Effect --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* --- Smooth Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Hero Section Enhancements --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(var(--color1), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Backdrop Blur Effect --- */
.backdrop-blur {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* --- Sticky Header Scroll Effect --- */
.site-header {
  transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Text Shimmer Effect --- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    rgba(var(--color1), 1) 0%,
    rgba(255, 255, 255, 1) 25%,
    rgba(var(--color2), 1) 50%,
    rgba(255, 255, 255, 1) 75%,
    rgba(var(--color1), 1) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  /* Fallback for browsers that don't support background-clip */
  color: rgba(255, 255, 255, 0.9);
}

/* --- Icon Hover Bounce --- */
.icon-bounce {
  transition: transform 0.3s ease-in-out;
}

.icon-bounce:hover {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   ADVANCED EFFECTS
   ======================================== */

/* --- 3D Card Tilt Effect --- */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.05);
}

.card-3d-content {
  transform: translateZ(50px);
}

/* --- Parallax Scrolling --- */
.parallax {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
}

.parallax-bg {
  transform: translateY(var(--parallax-offset, 0px));
  will-change: transform;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Add delays for staggered animations */
.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }
.scroll-reveal.delay-5 { transition-delay: 0.5s; }

/* --- Mouse Following Cursor Effect --- */
.cursor-follow {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  background: rgba(var(--color1), 0.5);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follow.hover {
  width: 40px;
  height: 40px;
  background: rgba(var(--color1), 0.8);
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    circle,
    rgba(var(--color1), 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* --- Particle Background Container --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Advanced Parallax Layers --- */
.parallax-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

.parallax-element {
  position: absolute;
  will-change: transform;
}

/* --- Magnetic Button Effect --- */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-btn:hover {
  transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
}

/* --- Tilt Card Shine Effect --- */
.tilt-shine {
  position: relative;
  overflow: hidden;
}

.tilt-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(var(--shine-angle, 45deg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt-shine:hover::before {
  opacity: 1;
}

/* --- Smooth Scroll Indicator --- */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(var(--color1), 1),
    rgba(var(--color2), 1)
  );
  z-index: 9999;
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* --- Depth Layers (for parallax) --- */
.depth-layer-1 {
  transform: translateZ(100px);
}

.depth-layer-2 {
  transform: translateZ(50px);
}

.depth-layer-3 {
  transform: translateZ(25px);
}

/* --- Text Split Animation --- */
.text-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: revealText 0.8s ease forwards;
}

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

/* Stagger the text reveal */
.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

/* --- Perspective Container --- */
.perspective-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* --- Floating Particles --- */
@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
  }
  50% {
    transform: translate(-10px, -20px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -10px) rotate(270deg);
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(var(--color1), 0.3);
  border-radius: 50%;
  animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(2) { animation-delay: -5s; }
.particle:nth-child(3) { animation-delay: -10s; }
.particle:nth-child(4) { animation-delay: -15s; }

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .card-3d:hover {
    transform: scale(1.02);
  }
  
  .cursor-follow,
  .cursor-glow {
    display: none;
  }
  
  .parallax-bg {
    transform: none !important;
  }
}
