/* ===================================
   📄 SECTIONS - Hero, Features, About, CTA
   =================================== */

/* ===================================
   🦸 HERO SECTION
   =================================== */

.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 50px 20px;
  position: relative;
  z-index: 2;
}

/* Hero Content */
.hero-content {
  flex: 1;
  max-width: 550px;
  margin-right: 20px;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-color);
  display: inline-block;
  position: relative;
}

/* Animated Underline */
.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.hero h1:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  max-width: 50%;
  position: relative;
  text-align: right;
  z-index: 3;
}

.hero-visual img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  margin-left: auto;
  position: relative;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-visual:hover img {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px var(--shadow-color);
}

/* Glow Effect Behind Hero Visual */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 80%;
  height: 80%;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.2;
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}

/* Particles Background */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===================================
   ✨ FEATURES SECTION
   =================================== */

.features {
  padding: 100px 0;
  background-color: var(--background-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: var(--container-width);
}

/* ===================================
   📖 ABOUT SECTION
   =================================== */

.about {
  padding: 100px 0;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  border-radius: var(--border-radius);
  max-width: 100%;
  box-shadow: var(--box-shadow-lg);
}

/* ===================================
   📞 CTA SECTION
   =================================== */

.cta {
  padding: 100px 0;
  text-align: center;
  background-color: var(--secondary-color);
  color: white;
}

[data-theme="dark"] .cta {
  background-color: var(--primary-color);
}

.cta .container {
  max-width: 900px;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  color: white;
}

.cta .btn {
  background-color: white;
  color: var(--secondary-color);
  font-size: 1.1rem;
  padding: 15px 35px;
  margin: 10px;
}

[data-theme="dark"] .cta .btn {
  color: var(--primary-color);
}

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

/* ===================================
   📱 RESPONSIVE
   =================================== */

/* Tablet */
@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .features {
    padding: 80px 0;
  }
  
  .about {
    padding: 80px 0;
  }
  
  .cta {
    padding: 80px 0;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .hero {
    min-height: auto;
  }
  
  .hero .container {
    flex-direction: column-reverse;
    padding: 30px 20px;
    text-align: center;
  }
  
  .hero-content {
    margin-right: 0;
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-visual {
    max-width: 90%;
    margin: 0 auto 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features {
    padding: 60px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .about {
    padding: 60px 0;
  }
  
  .about-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
  
  .about-text {
    width: 100%;
  }
  
  .about-text h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .about-image {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }
  
  .cta {
    padding: 60px 20px;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p,
  .cta .btn {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .features {
    padding: 50px 0;
  }
  
  .about {
    padding: 50px 0;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  .cta {
    padding: 50px 15px;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .cta .btn {
    width: 100%;
  }
}
