:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #4facfe;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0a0a0a;
  --border: #e1e8ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--success));
  --gradient-text: linear-gradient(135deg, var(--primary), var(--accent));
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  cursor: default;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo svg {
  transition: var(--transition);
}

.logo:hover svg {
  transform: rotate(10deg) scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--border-radius);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Custom Cursor - Only show when JS is loaded */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  opacity: 0;
  display: none;
}

.cursor-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
  transition: all 0.3s ease;
}

body.js-loaded {
  cursor: none;
}

body.js-loaded .cursor-follower {
  display: block;
}

body.js-loaded:hover .cursor-follower {
  opacity: 1;
}

/* Magnetic cursor effect */
.magnetic {
  transition: transform 0.3s ease;
}

.magnetic:hover {
  transform: scale(1.05);
}

/* Parallax Background Elements */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  opacity: 0.1;
  animation: floatShape 15s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.floating-shape:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 70%;
  animation-delay: -10s;
}

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

/* Enhanced Hero Section with Morphing Background */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(
      ellipse at 20% 50%,
      rgba(102, 126, 234, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(240, 147, 251, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 40% 80%,
      rgba(79, 172, 254, 0.1) 0%,
      transparent 50%
    );
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(102, 126, 234, 0.1) 90deg,
    transparent 180deg,
    rgba(240, 147, 251, 0.1) 270deg,
    transparent 360deg
  );
  animation: morphBackground 20s linear infinite;
  z-index: 1;
}

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

/* Hero Content */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Only apply initial animation state when JS is loaded */
body.js-loaded .hero-title .line {
  opacity: 0;
  transform: translateY(100px);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .hero-description {
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .hero-actions {
  opacity: 0;
  transform: translateY(30px);
}

.cta-primary,
.cta-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.cta-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Enhanced Floating SVG with 3D Transform */
.floating-svg {
  opacity: 1;
  transform: scale(1) perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: all 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

body.js-loaded .floating-svg {
  opacity: 0;
  transform: scale(0.8) perspective(1000px) rotateX(10deg) rotateY(15deg);
}

.floating-svg:hover {
  transform: scale(1.1) perspective(1000px) rotateX(-10deg) rotateY(-15deg);
  filter: drop-shadow(0 20px 50px rgba(102, 126, 234, 0.5));
}

/* Enhanced SVG Animations with Glow Effects */
.orbit-circle {
  transform-origin: center;
  animation: rotate 20s linear infinite;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* Orbit circle animations */
.orbit-1 {
  animation-duration: 15s;
}
.orbit-2 {
  animation-duration: 25s;
  animation-direction: reverse;
}
.orbit-3 {
  animation-duration: 35s;
}

.floating-dot {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px currentColor);
}

.dot-1 {
  animation-delay: 0s;
}
.dot-2 {
  animation-delay: 0.5s;
}
.dot-3 {
  animation-delay: 1s;
}
.dot-4 {
  animation-delay: 1.5s;
}
.dot-5 {
  animation-delay: 2s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.scroll-dot {
  width: 10px;
  height: 10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Enhanced Scroll Indicator with Wave Animation */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
}

body.js-loaded .scroll-indicator {
  opacity: 0;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: var(--gradient-primary);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollWave 2s ease-in-out infinite;
}

@keyframes scrollWave {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(80px);
  }
}

/* Glass Morphism Effect for Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.feature-card::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;
}

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

.feature-card:hover {
  transform: translateY(-15px) scale(1.02) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced Feature Icons with Rotation */
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  transition: transform 0.5s ease-in-out;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
  animation: rotate 2s linear infinite;
}

/* Typewriter Animation for Code Window */
.code-window {
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateX(0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.js-loaded .code-window {
  opacity: 0;
  transform: translateX(50px);
}

.typing-animation {
  border-right: 2px solid #4facfe;
  animation: blink 1s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

/* Enhanced Stats with Number Animation */
.stat-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: attr(data-suffix);
  position: absolute;
  right: -20px;
  top: 0;
  font-size: 1.5rem;
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}

/* Enhanced Contact Form with Focus Effects */
.form {
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.02);
}

.form-group::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.form-group:focus-within::after {
  transform: scaleX(1);
}

/* Enhanced Submit Button with Ripple Effect */
.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

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

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

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .section-title {
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  opacity: 1;
  transform: translateY(0);
}

body.js-loaded .section-subtitle {
  opacity: 0;
  transform: translateY(20px);
}

/* Features Section */
.features {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

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

body.js-loaded .feature-card {
  opacity: 0;
  transform: translateY(50px);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Showcase Section */
.showcase {
  padding: 8rem 0;
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .showcase-text h2 {
  opacity: 0;
  transform: translateX(-50px);
}

.showcase-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .showcase-text p {
  opacity: 0;
  transform: translateX(-30px);
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .feature-list {
  opacity: 0;
  transform: translateX(-30px);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--success);
  font-size: 1.25rem;
}

/* Code Window */
.window-header {
  background: #2d3748;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background: #ff5f57;
}
.minimize {
  background: #ffbd2e;
}
.maximize {
  background: #28ca42;
}

.window-title {
  color: #a0aec0;
  font-size: 0.875rem;
}

.code-content {
  padding: 1.5rem;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.875rem;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.line-number {
  color: #4a5568;
  width: 2rem;
  text-align: right;
}

.keyword {
  color: #9f7aea;
}
.variable {
  color: #68d391;
}
.string {
  color: #fbb6ce;
}
.method {
  color: #63b3ed;
}
.property {
  color: #f6ad55;
}
.number {
  color: #fc8181;
}

.typing-line .cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Stats Section */
.stats {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

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

body.js-loaded .stat-item {
  opacity: 0;
  transform: translateY(50px);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--border);
}

/* Contact Section */
.contact {
  padding: 8rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .contact-text h2 {
  opacity: 0;
  transform: translateX(-50px);
}

.contact-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .contact-text p {
  opacity: 0;
  transform: translateX(-30px);
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .contact-features {
  opacity: 0;
  transform: translateX(-30px);
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.contact-feature i {
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-form {
  opacity: 1;
  transform: translateX(0);
}

body.js-loaded .contact-form {
  opacity: 0;
  transform: translateX(50px);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

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

.footer-link {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2d3748;
  color: #a0aec0;
}

/* Animation States - Enhanced */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-left {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.animate-right {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.animate-scale {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Fallback styles for no JavaScript */
.no-js .hero-title .line,
.no-js .hero-description,
.no-js .hero-actions,
.no-js .floating-svg,
.no-js .section-title,
.no-js .section-subtitle,
.no-js .feature-card,
.no-js .showcase-text h2,
.no-js .showcase-text p,
.no-js .feature-list,
.no-js .code-window,
.no-js .stat-item,
.no-js .contact-text h2,
.no-js .contact-text p,
.no-js .contact-features,
.no-js .contact-form {
  opacity: 1 !important;
  transform: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .showcase-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .hero-content {
    padding: 1rem;
    text-align: center;
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .floating-svg {
    width: 300px;
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Ensure content is visible on mobile */
@media (max-width: 768px) {
  body {
    cursor: default;
  }

  .cursor-follower,
  .cursor-trail {
    display: none !important;
  }
}

/* Text Animation Effects */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.text-reveal.animate span {
  transform: translateY(0);
}

/* Unique Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--bg-primary), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

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

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-radius: 50%;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--success);
  animation: multiColorSpin 1.5s linear infinite;
  position: relative;
}

.loading-spinner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-left: 2px solid var(--primary);
  animation: multiColorSpin 1s linear infinite reverse;
}

@keyframes multiColorSpin {
  0% {
    transform: rotate(0deg);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    filter: hue-rotate(360deg);
  }
}

/* Interactive Playground Styles */
.interactive-playground {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.playground-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.playground-reset {
  padding: 0.5rem 1rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.playground-reset:hover {
  transform: scale(1.05);
}

.playground-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.control-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.control-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.control-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.control-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-picker {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(26px);
}

.playground-preview {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: var(--border-radius-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
}

.preview-element {
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.preview-element:hover {
  transform: scale(1.05);
}

/* Animation Showcase Styles */
.animation-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.animation-demo {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.animation-demo:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.animation-demo.active {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.demo-element {
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.demo-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Interactive Code Editor */
.interactive-code {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.code-editor {
  background: #1a1a1a;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-editor-header {
  background: #2d3748;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.code-editor-title {
  color: #a0aec0;
  font-size: 0.9rem;
}

.code-editor-content {
  padding: 1rem;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.85rem;
}

.code-textarea {
  width: 100%;
  height: 200px;
  background: transparent;
  border: none;
  color: #68d391;
  font-family: inherit;
  font-size: inherit;
  resize: none;
  outline: none;
}

.code-output {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  position: relative;
}

.output-element {
  transition: all 0.3s ease;
}

/* Animation Classes */
.anim-bounce {
  animation: bounce 1s infinite;
}

.anim-pulse {
  animation: pulse 2s infinite;
}

.anim-rotate {
  animation: rotate 2s linear infinite;
}

.anim-shake {
  animation: shake 0.5s ease-in-out;
}

.anim-fade {
  animation: fadeInOut 2s ease-in-out infinite;
}

.anim-slide {
  animation: slideLeftRight 2s ease-in-out infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideLeftRight {
  0%,
  100% {
    transform: translateX(-20px);
  }
  50% {
    transform: translateX(20px);
  }
}

/* Theme Selector */
.theme-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.theme-option.active {
  border-color: var(--primary);
  transform: scale(1.1);
}

.theme-default {
  background: var(--gradient-primary);
}
.theme-warm {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
.theme-cool {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
}
.theme-dark {
  background: linear-gradient(135deg, #2c3e50, #3498db);
}

/* Live Stats */
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
}

.live-stat {
  text-align: center;
}

.live-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.live-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
