/* 
  Homepage specific styles
*/

/* Hero Section */
.hero {
  padding: var(--spacing-3xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* 3D Sphere Animation */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45vw;
  max-width: 500px;
  aspect-ratio: 1;
  perspective: 1000px;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-visual {
    opacity: 0.3;
    right: 0;
    width: 60vw;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    opacity: 0.2;
    right: -5%;
    width: 80vw;
  }
}

.sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSphere 20s linear infinite;
  
  /* Create the 3D look with gradients */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, var(--color-primary), #8b5cf6, #ec4899);
  
  /* Soft glow */
  box-shadow: 
    -20px -20px 50px rgba(37, 99, 235, 0.3),
    20px 20px 50px rgba(236, 72, 153, 0.3),
    inset -20px -20px 50px rgba(0,0,0,0.2),
    inset 20px 20px 50px rgba(255,255,255,0.5);
}

/* Add an inner element to enhance 3D effect */
.sphere::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.1) 10px,
    rgba(255,255,255,0.1) 20px
  );
  transform: rotateX(145deg) rotateY(45deg);
  transform-style: preserve-3d;
  opacity: 0.5;
}

@keyframes rotateSphere {
  0% {
    transform: rotateX(145deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(145deg) rotateY(360deg) rotateZ(360deg);
  }
}

/* General Sections */
.section-padding {
  padding: var(--spacing-3xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-3xl);
}

/* Tool Cards */
.tool-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glass-shadow);
  border-color: var(--color-primary);
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

body.dark-theme .tool-icon {
  background-color: rgba(59, 130, 246, 0.2);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.tool-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Categories Section */
.category-pill {
  display: inline-flex;
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--radius-full);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* FAQ Section */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.faq-question {
  padding: var(--spacing-lg);
  background-color: var(--color-bg-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  background-color: var(--color-bg);
}

.faq-item.active .faq-answer {
  padding: var(--spacing-lg);
  max-height: 500px;
}

.faq-toggle {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}
