/* Existing animation styles - preserved */
#mainHeading {
  background-color: green;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1000px;
  height: 300px;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(0.8);
  transform-origin: top center;
}

.letter {
  /* background: blue; */
  font-size: 180px;
  left: 2vw;
  width: 150px;
  height: 150px;
  position: absolute;
  opacity: 0;
  /* border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.obj {
  background: blue;
  left: 2vw;
  width: 100px;
  height: 100px;
  position: absolute;
  border-radius: 50%;
}

.normalCanvas {
  width: 500px;
  height: 300px;
  background-color: green;
  position: relative;
  margin-bottom: 10px;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: #0e1525;
  color: white;
  line-height: 1.6;
}

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

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #0e1525;
  border-bottom: 1px solid #1f2a40;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #2383e2;
}

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #2383e2;
}

nav .buttons {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn.large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn.primary {
  background-color: #2383e2;
  color: white;
}

.btn.primary:hover {
  background-color: #1a6bb8;
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  border: 1px solid #3b4d66;
  color: white;
}

.btn.outline:hover {
  border-color: #2383e2;
  color: #2383e2;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0e1525 0%, #1a2332 100%);
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2383e2, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #b0b8c5;
}

.hero-description {
  font-size: 1.1rem;
  color: #8a9ba8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  width: 100%;
}
.canvas {
  width: 1000px;
  height: 300px;
  transform-origin: top left;
}

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

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #121c31;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 800;
}

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

.feature {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(145deg, #1a2332, #0e1525);
  border-radius: 12px;
  border: 1px solid #1f2a40;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.feature p {
  color: #b0b8c5;
  line-height: 1.6;
}

/* Demos Section */
.demos {
  padding: 5rem 0;
  background-color: #0e1525;
}

.demos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #8a9ba8;
  margin-bottom: 3rem;
}

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

.demo-card {
  background: linear-gradient(145deg, #1a2332, #121c31);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #1f2a40;
  text-align: center;
}

.demo-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.demo-card p {
  color: #b0b8c5;
  margin-bottom: 1.5rem;
}

/* Demo Canvas Styles */
.demo-canvas {
  background: linear-gradient(45deg, #1a2332, #0e1525);
  border: 2px solid #2383e2;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.demo-element {
  position: absolute;
  border-radius: 50%;
}

/* Bouncing Balls */
.ball {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #64b5f6, #2383e2);
}

#ball1 {
  left: 100px;
  top: 50px;
  opacity: 0;
}

/* Morphing Shapes */
.morph-shape {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  transition: border-radius 0.3s ease;
}

#shape1 {
  left: 150px;
  top: 120px;
  opacity: 0;
}
#shape2 {
  left: 350px;
  top: 120px;
  border-radius: 0;
  opacity: 0;
}
#shape3 {
  left: 180px;
  top: 240px;
  width: 150px;
  border-radius: 20px;
  border: 2px solid #227eb8;
  font-size: larger;
  opacity: 0;
}
#shape4 {
  left: 350px;
  top: 120px;
  border-radius: 0;
  opacity: 0;
}

/* Wave Dots */
.wave-dot {
  width: 20px;
  height: 20px;
  background: #2383e2;
  border-radius: 50%;
}

#dot1 {
  left: 100px;
  top: 140px;
}
#dot2 {
  left: 200px;
  top: 140px;
}
#dot3 {
  left: 300px;
  top: 140px;
}
#dot4 {
  left: 400px;
  top: 140px;
}
#dot5 {
  left: 500px;
  top: 140px;
}

/* Loading Elements */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1f2a40;
  border-top: 4px solid #2383e2;
  border-radius: 50%;
  left: 200px;
  top: 50px;
}

.progress-bar {
  width: 300px;
  height: 20px;
  background: #1f2a40;
  border-radius: 10px;
  left: 350px;
  top: 140px;
  position: absolute;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2383e2, #64b5f6);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Text Effects */
.demo-text {
  position: absolute;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #2383e2, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#text1 {
  left: 200px;
  top: 80px;
}
#text2 {
  left: 150px;
  top: 160px;
}

/* Particles */
.particle {
  width: 30px;
  height: 30px;
  background: #2383e2;
  border-radius: 50%;
}

.demo-trigger {
  margin-top: 1rem;
}

.demo-code {
  margin-top: 1rem;
  padding: 1rem;
  background: #0a0f1a;
  border: 1px solid #1f2a40;
  border-radius: 10px;
  overflow-x: auto;
  text-align: left;
}

.demo-code code {
  color: #e2e8f0;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Code Examples */
.code-examples {
  padding: 5rem 0;
  background-color: #121c31;
}

.code-examples h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.code-showcase {
  max-width: 800px;
  margin: 0 auto;
}

.code-block {
  background: #0a0f1a;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #1f2a40;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: #e2e8f0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #e2e8f0;
}

/* Footer */
footer {
  background-color: #0a0f1a;
  padding: 3rem 0 1rem;
  border-top: 1px solid #1f2a40;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #8a9ba8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #2383e2;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  #mainHeading {
    transform: translateX(-50%) scale(0.75);
  }

  .title-demo {
    height: 225px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-canvas {
    height: 200px;
  }

  nav ul {
    display: none;
  }

  .canvasBox {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 520px) {
  #mainHeading {
    transform: translateX(-50%) scale(0.58);
  }

  .title-demo {
    height: 174px;
  }
}

@media (max-width: 380px) {
  #mainHeading {
    transform: translateX(-50%) scale(0.46);
  }

  .title-demo {
    height: 138px;
  }
}
