/**
 * Modern Hero Section with 3D Card Effect
 */

/* Base Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fd;
  padding-top: 120px;
}

.theme-dark .hero-section {
  background-color: #0f1325;
}

/* Grid Background */
.hero-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(130, 130, 230, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 130, 230, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}

.theme-dark .hero-grid-background {
  opacity: 0.3;
}

/* Design Elements */
.hero-design-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.element {
  position: absolute;
}

.code-element {
  top: 40px;
  left: 40px;
  font-family: monospace;
  font-size: 24px;
  color: rgba(113, 118, 232, 0.3);
}

.circle-element {
  bottom: 15%;
  right: 15%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(237, 238, 252, 0.8);
  box-shadow: 0 0 40px rgba(113, 118, 232, 0.3);
}

.square-element {
  top: 25%;
  right: 10%;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(113, 118, 232, 0.1);
  border: 1px solid rgba(113, 118, 232, 0.3);
  transform: rotate(15deg);
}

.dot-element {
  bottom: 25%;
  left: 15%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(113, 118, 232, 0.15);
  box-shadow: 0 0 20px rgba(113, 118, 232, 0.2);
}

.theme-dark .circle-element {
  background: rgba(113, 118, 232, 0.2);
}

.theme-dark .square-element {
  background: rgba(113, 118, 232, 0.15);
  border-color: rgba(113, 118, 232, 0.4);
}

.theme-dark .dot-element {
  background: rgba(113, 118, 232, 0.3);
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 2;
  margin-top: -20px;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(113, 118, 232, 0.1);
  color: #7176e8;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}

.hero-badge-icon {
  flex-shrink: 0;
}

.theme-dark .hero-badge {
  background-color: rgba(113, 118, 232, 0.15);
  color: #a8acf0;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1e32;
  margin-bottom: 24px;
}

.theme-dark .hero-title {
  color: #ffffff;
}

.hero-description {
  font-size: 18px;
  color: #5a5f73;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 550px;
}

.hero-subtext {
  font-size: 16px;
  color: #6d7286;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 550px;
  font-weight: 400;
}

.theme-dark .hero-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #7176e8;
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5d63d4;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(113, 118, 232, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: #7176e8;
  border: 2px solid #7176e8;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(113, 118, 232, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(113, 118, 232, 0.15);
}

.theme-dark .btn-outline {
  color: #a8acf0;
  border-color: #a8acf0;
}

.theme-dark .btn-outline:hover {
  background-color: rgba(168, 172, 240, 0.1);
}

/* Hero Features */
.hero-features {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5a5f73;
  font-weight: 500;
  font-size: 16px;
}

.hero-feature small {
  display: block;
  font-size: 12px;
  color: #8f92b2;
  font-weight: 400;
  margin-top: 1px;
}

.hero-feature span {
  display: flex;
  flex-direction: column;
}

.hero-feature svg {
  color: #7176e8;
}

.theme-dark .hero-feature {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Card */
.hero-card-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transform: translateZ(0) rotateX(4deg) rotateY(-4deg);
  transition: transform 0.5s ease;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.theme-dark .hero-card {
  background-color: #1a1e32;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card:hover {
  transform: translateZ(20px) rotateX(8deg) rotateY(-8deg);
}

.hero-card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Card Badges */
.hero-card-badge {
  position: absolute;
  background-color: white;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 16px;
  color: #7176e8;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-dark .hero-card-badge {
  background-color: #272b44;
  color: #a8acf0;
}

.code-badge {
  top: -15px;
  right: 20px;
  transform: translateZ(40px);
}

.server-badge {
  bottom: -15px;
  left: 20px;
  transform: translateZ(30px);
}

.stats-badge {
  bottom: 60px;
  right: -15px;
  transform: translateZ(50px);
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 20px;
}

.stats-number {
  font-size: 20px;
  font-weight: 700;
}

.stats-text {
  font-size: 13px;
  font-weight: 400;
  color: #8f92b2;
  margin-bottom: 5px;
}

.stats-rating {
  display: flex;
  gap: 2px;
}

.stats-rating .star {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700' stroke='%23FFD700' stroke-width='1'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.theme-dark .stats-text {
  color: #6b6fa8;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 42px;
  }
  
  .hero-content {
    padding-right: 20px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .code-element, .circle-element {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-features {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .hero-feature {
    width: 100%;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .hero-card {
    transform: translateZ(0) rotateX(0) rotateY(0);
    margin: 0 auto;
  }
  
  .hero-card:hover {
    transform: translateZ(0) translateY(-10px);
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero-feature {
    font-size: 14px;
  }
  
  .hero-card {
    padding: 15px;
  }
  
  .hero-card-badge {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .stats-number {
    font-size: 16px;
  }
  
  .stats-text {
    font-size: 11px;
  }
}