/* MyCelf Intelligence - Modern Abstract Design */

/* Import authentication styles */
@import url('auth-styles.css');

/* Dynamic Theme System */
:root {
  --primary: #8CCAAF;
  --accent: #171F1F;
  --light-bg: #E0EAE2;
  --white: #FFFFFF;
  --gradient-1: linear-gradient(135deg, #8CCAAF 0%, #E0EAE2 100%);
  --gradient-2: linear-gradient(45deg, #171F1F 0%, #8CCAAF 100%);
  --gradient-3: radial-gradient(circle at 30% 70%, rgba(140, 202, 175, 0.3) 0%, transparent 50%);
  --shadow-soft: 0 20px 60px rgba(23, 31, 31, 0.1);
  --shadow-medium: 0 30px 80px rgba(23, 31, 31, 0.15);
  --border-radius: 24px;
  --border-radius-lg: 32px;
  
  /* Theme variables */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #171F1F;
  --text-secondary: #6C757D;
  --text-muted: rgba(23, 31, 31, 0.7);
  --border-color: rgba(140, 202, 175, 0.2);
  --card-bg: rgba(255, 255, 255, 0.8);
  --overlay-bg: rgba(23, 31, 31, 0.95);
}

/* Light theme (default) */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #171F1F;
  --text-secondary: #6C757D;
  --text-muted: rgba(23, 31, 31, 0.7);
  --border-color: rgba(140, 202, 175, 0.2);
  --card-bg: rgba(255, 255, 255, 0.8);
  --overlay-bg: rgba(23, 31, 31, 0.95);
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-bg-scroll: rgba(255, 255, 255, 0.98);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: #D0D0D0;
  --text-muted: rgba(255, 255, 255, 0.85);
  --border-color: rgba(140, 202, 175, 0.3);
  --card-bg: rgba(30, 30, 30, 0.8);
  --overlay-bg: rgba(18, 18, 18, 0.95);
  --header-bg: rgba(18, 18, 18, 0.95);
  --header-bg-scroll: rgba(18, 18, 18, 0.98);
  --light-bg: #2A2A2A;
  --white: #121212;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #D0D0D0;
    --text-muted: rgba(255, 255, 255, 0.85);
    --border-color: rgba(140, 202, 175, 0.3);
    --card-bg: rgba(30, 30, 30, 0.8);
    --overlay-bg: rgba(18, 18, 18, 0.95);
    --header-bg: rgba(18, 18, 18, 0.95);
    --header-bg-scroll: rgba(18, 18, 18, 0.98);
    --light-bg: #2A2A2A;
    --white: #121212;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 30px 80px rgba(0, 0, 0, 0.4);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary);
  transform: scale(1.1);
}

.theme-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.theme-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon.moon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
  position: absolute;
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Update body background */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Update header styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Update navigation */
.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Update mobile navigation overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-content .main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: .87rem;
  margin-top: .07rem;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  display: block;
}

.mobile-nav-content .main-nav a:hover,
.mobile-nav-content .main-nav a:focus {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(140, 202, 175, 0.3);
}

/* Enhanced dark mode mobile navigation */
[data-theme="dark"] .mobile-nav-content .main-nav a {
  color: #F5F5F5;
  background: rgba(40, 40, 40, 0.9);
  border: 2px solid rgba(140, 202, 175, 0.4);
}

[data-theme="dark"] .mobile-nav-content .main-nav a:hover,
[data-theme="dark"] .mobile-nav-content .main-nav a:focus {
  background: var(--primary);
  color: var(--bg-primary);
}

/* Update text colors throughout */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p {
  color: var(--text-muted);
}

.section-description {
  color: var(--text-secondary);
}

/* FIXED: The rebellious section elements! */
[data-theme="dark"] .section-title {
  color: #F5F5F5 !important;
}

[data-theme="dark"] .section-description {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero-description {
  color: var(--text-muted);
}

.card-description {
  color: var(--text-muted);
}

/* Update feature cards */
.feature-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Update footer */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 2px solid var(--border-color);
}

.footer-nav a {
  color: var(--text-secondary);
}

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

/* Update contact form */
.contact-form-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.form-label {
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
}

/* Update success message */
.success-message {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

/* Ensure proper contrast in all states */
.cta-button {
  background: var(--gradient-1);
  color: var(--text-primary);
  border: 2px solid transparent;
}

.cta-button:hover {
  background: var(--gradient-2);
  color: var(--bg-primary);
}

/* Mobile hamburger menu icon colors */
.mobile-menu-icon span {
  background: var(--text-primary);
}

/* Update blockquotes */
blockquote {
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  color: var(--text-muted);
}

/* Update code blocks */
code {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

pre {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Theme transition for all elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* PWA Install Button */
.pwa-install-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pwa-install-container.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pwa-install-btn {
  background: var(--gradient-1);
  color: var(--text-primary);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
  min-height: 48px;
  min-width: 48px;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-soft);
  background: var(--gradient-2);
  color: var(--bg-primary);
}

.pwa-install-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.pwa-install-btn span {
  font-size: 1.2rem;
  line-height: 1;
}

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

/* Abstract Background Elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(140, 202, 175, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(224, 234, 226, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(140, 202, 175, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, -30px) rotate(1deg); }
  66% { transform: translate(30px, -20px) rotate(-1deg); }
}

/* Enhanced Typography & Spacing */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

/* Ensure headings are visible in dark mode when gradient doesn't work */
[data-theme="dark"] h1 {
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h4 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h5 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Enhanced dark mode heading contrast */
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #F5F5F5;
  font-weight: 600;
}

[data-theme="dark"] .card-title {
  color: #F5F5F5;
}

/* Content Sections */
.content-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Updated navigation styles */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

/* Hero Section - Modern Split Layout */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background: var(--gradient-3);
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

.hero-content {
  max-width: 550px;
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Logo Container with Modern Styling */
.hero-logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(140, 202, 175, 0.2);
  transition: all 0.6s ease;
  opacity: 0;
  animation: fadeInRight 1s ease 0.6s forwards;
}

.hero-logo-container:hover {
  transform: scale(1.05);
  border-color: rgba(140, 202, 175, 0.4);
}

.hero-logo-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-logo-container:hover .hero-logo-img {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(140, 202, 175, 0.3);
}

/* Animated Glow Effect */
.logo-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(140, 202, 175, 0.3) 90deg,
    transparent 180deg,
    rgba(140, 202, 175, 0.3) 270deg,
    transparent 360deg
  );
  animation: rotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-logo-container:hover .logo-glow {
  opacity: 1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark mode logo adjustments */
[data-theme="dark"] .hero-logo-container {
  background: rgba(30, 30, 30, 0.3);
  border-color: rgba(140, 202, 175, 0.3);
}

[data-theme="dark"] .hero-logo-img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-logo-container:hover .hero-logo-img {
  box-shadow: 0 25px 50px rgba(140, 202, 175, 0.2);
}

/* Typography with Better Hierarchy */
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInLeft 1s ease 0.2s forwards;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInLeft 1s ease 0.4s forwards;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ensure title is visible in dark mode */
[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInLeft 1s ease 0.6s forwards;
  line-height: 1.6;
  max-width: 500px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--gradient-1);
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInLeft 1s ease 0.8s forwards;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(4px);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: var(--gradient-2);
  color: var(--white);
}

/* Enhanced Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced floating shapes with more dynamic movement */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0.08;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
  width: 180px;
  height: 180px;
  top: 60%;
  right: 10%;
  animation-delay: 7s;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 15%;
  animation-delay: 14s;
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
}

@keyframes floatShape {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.08;
  }
  25% { 
    transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    opacity: 0.12;
  }
  50% { 
    transform: translate(-20px, -60px) rotate(180deg) scale(0.9);
    opacity: 0.06;
  }
  75% { 
    transform: translate(40px, -30px) rotate(270deg) scale(1.05);
    opacity: 0.1;
  }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(140, 202, 175, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

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

/* Modern Abstract Visual Elements for Feature Cards */
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-icon::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.card-icon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Unique abstract patterns for each card type */
.icon-brain .card-icon::before {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  transform: rotate(45deg);
}

.icon-brain .card-icon::after {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: rotate(45deg) translate(2px, -2px);
}

.icon-lightning .card-icon::before {
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(20deg);
}

.icon-lightning .card-icon::after {
  width: 3px;
  height: 16px;
  background: var(--white);
  border-radius: 2px;
  transform: rotate(-20deg) translate(8px, 0);
}

.icon-palette .card-icon::before {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50% 0;
  transform: rotate(45deg);
}

.icon-palette .card-icon::after {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(3px, -3px);
}

.icon-link .card-icon::before {
  width: 20px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.icon-link .card-icon::after {
  width: 20px;
  height: 4px;
  background: var(--white);
  border-radius: 2px;
  transform: rotate(-45deg);
}

.icon-chart .card-icon::before {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 0;
  transform: none;
}

.icon-chart .card-icon::after {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 0;
  transform: translate(-6px, 6px);
}

.icon-rocket .card-icon::before {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid var(--accent);
  border-radius: 0;
}

.icon-rocket .card-icon::after {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(0, 4px);
}

.icon-message .card-icon::before {
  width: 20px;
  height: 16px;
  background: var(--accent);
  border-radius: 4px;
}

.icon-message .card-icon::after {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--accent);
  border-radius: 0;
  transform: translate(-2px, 10px);
}

.icon-tool .card-icon::before {
  width: 16px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.icon-tool .card-icon::after {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(6px, -6px);
}

.icon-news .card-icon::before {
  width: 18px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

.icon-news .card-icon::after {
  width: 12px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transform: translate(0, -2px);
  box-shadow: 0 4px 0 var(--white), 0 8px 0 var(--white);
}

/* Hover effects for abstract icons */
.feature-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-2);
}

.feature-card:hover .card-icon::before,
.feature-card:hover .card-icon::after {
  animation: abstractPulse 1s ease-in-out infinite alternate;
}

@keyframes abstractPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.1); }
}

/* Dark mode adjustments for card icons */
[data-theme="dark"] .card-icon::after {
  background: var(--bg-primary);
}

[data-theme="dark"] .icon-brain .card-icon::after,
[data-theme="dark"] .icon-lightning .card-icon::after,
[data-theme="dark"] .icon-palette .card-icon::after,
[data-theme="dark"] .icon-link .card-icon::after,
[data-theme="dark"] .icon-rocket .card-icon::after,
[data-theme="dark"] .icon-news .card-icon::after {
  background: var(--bg-primary);
}

[data-theme="dark"] .icon-news .card-icon::after {
  box-shadow: 0 4px 0 var(--bg-primary), 0 8px 0 var(--bg-primary);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card-description {
  color: rgba(23, 31, 31, 0.7);
  line-height: 1.6;
}

/* Modern Responsive Footer with Theme Integration */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4rem 2rem 2rem;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

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

.footer-tagline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Ensure footer tagline is visible in all themes */
[data-theme="dark"] .footer-tagline {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .footer-tagline {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: unset;
  }
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer-navigation {
  margin-bottom: 3rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-nav a:hover::before {
  width: 80%;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
  opacity: 0.8;
}

/* Dark mode footer adjustments */
[data-theme="dark"] .site-footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-nav a {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-nav a:hover {
  color: var(--primary);
}

[data-theme="dark"] .footer-copyright {
  color: var(--text-secondary);
  border-top-color: var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.mobile-menu-icon {
  width: 28px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.mobile-menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.mobile-menu-icon span:nth-child(1) {
  top: 0px;
}

.mobile-menu-icon span:nth-child(2) {
  top: 8px;
}

.mobile-menu-icon span:nth-child(3) {
  top: 16px;
}

.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-toggle.active .mobile-menu-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.mobile-nav-content .main-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
  
  .hero-logo-container {
    width: 280px;
    height: 280px;
  }
  
  .hero-logo-img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation .main-nav {
    display: none;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
  }
  
  /* Stack hero content on mobile */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-logo-container {
    width: 220px;
    height: 220px;
  }
  
  .hero-logo-img {
    width: 160px;
    height: 160px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-description {
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .content-section {
    padding: 3rem 1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .site-footer {
    padding: 3rem 1rem 2rem;
  }
  
  .footer-description {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  
  .footer-navigation {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 90vh;
    padding: 5rem 0.75rem 1.5rem;
  }
  
  .hero-container {
    gap: 1.5rem;
  }
  
  .hero-logo-container {
    width: 180px;
    height: 180px;
  }
  
  .hero-logo-img {
    width: 130px;
    height: 130px;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.75rem;
  }
  
  .content-section {
    padding: 2rem 0.75rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
}

/* Enhanced List Styles */
ul, ol {
  margin: 1.5rem 0 2rem 0;
  padding-left: 2rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

li:last-child {
  margin-bottom: 0;
}

/* Enhanced dark mode list readability */
[data-theme="dark"] ul,
[data-theme="dark"] ol {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] li {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] li strong,
[data-theme="dark"] li b {
  color: #FFFFFF;
}

/* Better paragraph contrast in dark mode */
[data-theme="dark"] .post-content p,
[data-theme="dark"] .page-content p,
[data-theme="dark"] .card-description {
  color: rgba(255, 255, 255, 0.85);
}

/* Paragraph and Content Spacing */
p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.post-content p,
.page-content p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Blockquote Spacing */
blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--primary);
  background: var(--card-bg);
  border-radius: var(--border-radius);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Better blockquote readability in dark mode */
[data-theme="dark"] blockquote {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(40, 40, 40, 0.8);
}

/* Enhanced code block visibility in dark mode */
[data-theme="dark"] code {
  background: #2A2A2A;
  color: #F5F5F5;
}

[data-theme="dark"] pre {
  background: #2A2A2A;
  color: #F5F5F5;
  border: 1px solid rgba(140, 202, 175, 0.4);
}

/* Improved form placeholder text in dark mode */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Strong and emphasis text */
strong, b {
  color: var(--text-primary);
  font-weight: 600;
}

em, i {
  color: var(--text-secondary);
}

/* Text selection with brand colors */
::selection {
  background: var(--primary);
  color: var(--white);
  text-shadow: none;
}

/* Contact Form Styles */
.contact-form-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(224,234,226,0.3) 100%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(140, 202, 175, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

/* Dark mode contact form */
[data-theme="dark"] .contact-form-container {
  background: linear-gradient(135deg, rgba(30,30,30,0.9) 0%, rgba(40,40,40,0.3) 100%);
  border-color: rgba(140, 202, 175, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
  align-items: start;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(140, 202, 175, 0.3);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(140, 202, 175, 0.1);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
}

/* Dark mode form inputs */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: rgba(30, 30, 30, 0.8);
  color: var(--text-primary);
  border-color: rgba(140, 202, 175, 0.4);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(140, 202, 175, 0.2);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.submit-btn {
  background: var(--gradient-1);
  color: var(--accent);
  border: none;
  padding: 1.25rem 3rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: var(--gradient-2);
  color: var(--white);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced success message styling with proper theming */
.success-message {
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--primary);
  animation: slideInUp 0.6s ease;
}

.success-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.success-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.success-cta-box {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
  border: 1px solid var(--border-color);
}

.success-cta-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.success-cta-description {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.success-back-link {
  margin-top: 2rem;
}

.back-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Contact page specific styling */
.contact-section-title {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.contact-methods-grid {
  display: grid;
  gap: 2rem;
}

.contact-method {
  padding: 2rem;
}

.contact-method .card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.contact-method-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.contact-method-description {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-method-email {
  color: var(--text-muted);
  margin: 0;
}

.contact-method-email strong {
  color: var(--text-primary);
}

.about-section {
  text-align: center;
  margin-top: 4rem;
}

.about-section-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.about-section-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Dark mode success message */
[data-theme="dark"] .success-message {
  background: linear-gradient(135deg, var(--primary), #2A2A2A);
  color: var(--text-primary);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.success-icon::after {
  content: "✓";
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
}

/* Dark mode success icon */
[data-theme="dark"] .success-icon {
  background: var(--primary);
}

[data-theme="dark"] .success-icon::after {
  color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Contact page responsive styles */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
  }
  
  .contact-form-container {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .submit-btn {
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 1.5rem 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
}

/* Interactive Demo Section for Tools Page */
.interactive-demo-section {
  background: var(--gradient-3);
  padding: 4rem 2rem;
  border-radius: var(--border-radius-lg);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.interactive-demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-header h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.demo-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.chatbot-container {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.chatbot-placeholder {
  text-align: center;
  max-width: 500px;
}

.chatbot-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--accent);
}

.chatbot-icon svg {
  width: 40px;
  height: 40px;
}

.chatbot-placeholder h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.chatbot-placeholder > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.demo-instructions {
  background: rgba(140, 202, 175, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px dashed var(--primary);
  margin-top: 2rem;
}

.demo-instructions h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.demo-instructions ol {
  text-align: left;
  color: var(--text-muted);
  padding-left: 1.5rem;
}

.demo-instructions li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.demo-feature {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.demo-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

.demo-feature h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.demo-feature p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Dark mode adjustments for demo section */
[data-theme="dark"] .interactive-demo-section {
  background: radial-gradient(circle at 30% 70%, rgba(140, 202, 175, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .chatbot-container {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(140, 202, 175, 0.3);
}

[data-theme="dark"] .demo-instructions {
  background: rgba(140, 202, 175, 0.05);
  border-color: rgba(140, 202, 175, 0.4);
}

[data-theme="dark"] .demo-feature {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(140, 202, 175, 0.3);
}

[data-theme="dark"}

@media (max-width: 480px) {
  .interactive-demo-section {
    padding: 3rem 1rem;
  }
  
  .chatbot-container {
    padding: 1.5rem 1rem;
    min-height: 300px;
  }
  
  .integration-guide {
    padding: 1rem;
  }
  
  .demo-capabilities {
    grid-template-columns: 1fr;
  }
}

/* Simplified Live Chatbot Container */
.chatbot-container-live {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.chatbot-container-live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
}

/* Ensure chatbot widget integrates seamlessly */
.chatbot-container-live .mwai-chat {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.chatbot-container-live .mwai-chat-container {
  background: transparent !important;
}

/* Dark mode chatbot container */
[data-theme="dark"] .chatbot-container-live {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(140, 202, 175, 0.3);
}

/* Update theme version to ensure cache refresh */

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Ultra-Subtle PWA Install Button */
.pwa-install-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.pwa-install-container.show {
  opacity: 0.7;
  transform: translateY(0);
}

.pwa-install-container:hover {
  opacity: 1;
}

.pwa-install-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  border: 1px solid rgba(140, 202, 175, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 400;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  opacity: 0.8;
}

.pwa-install-btn:hover {
  color: var(--text-primary);
  border-color: rgba(140, 202, 175, 0.3);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.pwa-install-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}

.pwa-install-btn:hover .pwa-install-icon {
  opacity: 0.8;
}

/* Ultra-subtle dark mode */
[data-theme="dark"] .pwa-install-btn {
  background: rgba(25, 25, 25, 0.9);
  color: var(--text-secondary);
  border-color: rgba(140, 202, 175, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .pwa-install-btn:hover {
  background: rgba(25, 25, 25, 0.95);
  color: var(--text-primary);
  border-color: rgba(140, 202, 175, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Minimalist mobile */
@media (max-width: 768px) {
  .pwa-install-container {
    bottom: 20px;
    right: 20px;
  }
  
  .pwa-install-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
  }
  
  .pwa-install-icon {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 480px) {
  .pwa-install-container {
    bottom: 15px;
    right: 15px;
  }
  
  .pwa-install-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .pwa-install-icon {
    width: 10px;
    height: 10px;
  }
}

/* Subtle hide animation */
.pwa-install-container.hide {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

/* Remove any interface disruption */
.pwa-install-btn {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pwa-install-btn:focus {
  outline: 1px solid var(--primary);
  outline-offset: 1px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
