/* ==========================================
   Sparctura Tech HOME PAGE STYLESHEET
   ========================================== */

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26, 31, 43, 0.5) 0%, transparent 50%);
  filter: blur(80px);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

@media (max-width: 1024px) {
  .hero-desc {
    margin: 0 auto 2.5rem auto;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .hero-buttons {
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

@media (max-width: 1024px) {
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Right: 3D Image & Floating Cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 100%;
  max-width: 450px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-normal);
}

.hero-img-wrap:hover {
  transform: scale(1.02);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Glass Cards */
.float-card {
  position: absolute;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: floatAnim 6s ease-in-out infinite;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.float-card-info {
  display: flex;
  flex-direction: column;
}

.float-card-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.float-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.float-card-1 {
  top: 15%;
  left: -15%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 20%;
  right: -10%;
  animation-delay: 2s;
}

.float-card-3 {
  bottom: 5%;
  left: -5%;
  animation-delay: 4s;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@media (max-width: 1024px) {
  .float-card {
    display: none; /* Hide floating cards on small layouts to preserve readability */
  }
}

/* Infinite Logo Marquee */
.logo-marquee-section {
  padding: 3rem 0;
  background: rgba(26, 31, 43, 0.3);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  gap: 5rem;
  animation: scrollMarquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.marquee-item:hover {
  opacity: 1;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reality Section */
.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .reality-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.reality-card {
  padding: 2.5rem;
}

.reality-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.reality-card-red {
  border-left: 4px solid #E74C3C;
}

.reality-card-green {
  border-left: 4px solid var(--primary);
}

.reality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.reality-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reality-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* Why Projects Fail */
.fail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .fail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.fail-box {
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.fail-graphic-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fail-graphic {
  width: 100%;
  max-width: 320px;
  height: 250px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
}

.fail-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  position: absolute;
  transition: all 0.5s ease;
}

.fail-node-1 { top: 20%; left: 20%; background: #E74C3C; box-shadow: 0 0 10px #E74C3C; }
.fail-node-2 { top: 80%; left: 30%; }
.fail-node-3 { top: 40%; left: 70%; background: #E74C3C; box-shadow: 0 0 10px #E74C3C; }
.fail-node-4 { top: 70%; left: 80%; }

.fail-line {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  transform-origin: left center;
}

/* Services section cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-icon {
  margin-bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card-link:hover {
  gap: 0.6rem;
}

/* Why Sparctura Tech Section */
.why-st-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .why-st-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.why-st-card {
  padding: 2.5rem;
  border-left: 2px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.why-st-card:hover {
  border-left-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.why-st-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Industries Section */
.industries-section {
  position: relative;
  overflow: hidden;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  padding: 2rem;
  text-align: center;
}

.industry-icon {
  margin: 0 auto 1rem auto;
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.industry-name {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Testimonials Carousel */
.testimonials-section {
  overflow: hidden;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.testimonial-carousel {
  position: relative;
  height: 320px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-quote {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .testimonial-quote {
    font-size: 1.25rem;
  }
}

.testimonial-author {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  background: rgba(26, 31, 43, 0.4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1.5rem;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid var(--glass-border);
}

.faq-icon {
  font-size: 0.85rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Call to Action */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-box {
  padding: 6rem 3rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

@media (max-width: 768px) {
  .testimonial-carousel {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel {
    height: 440px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}
