/* Homepage.css
   Scoped to the homepage via the ".home-root" wrapper.
   Only include homepage-specific styles here.
   (Imported from layout.tsx; selectors are prefixed with .home-root)
*/

/* === Updated Homepage color theme to match Footer for unity === */

.home-root {
  position: relative;
  color: #fff;
  font-family: var(--font-sans);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(20, 20, 40, 0.9) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  /* matches footer background */
  overflow: hidden;
}

/* === Animated background layer === */
.home-root .animated-background,
.home-root #tsparticles {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  /* Ensures particles are behind content */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent !important;
}

/* Hero (homepage) */
.home-root #hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 6rem;
  overflow: hidden;
  z-index: 1; /* Content above animated bg */
}

/* --- FIX: Make overlay more transparent for animated background visibility --- */
.home-root .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(20,20,40,0.18));
  z-index: 1;
}

/* Glass card effect for homepage (same as footer) */
.home-root .hero-cta,
.home-root .glass-card,
.home-root .bg-card {
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Titles and accent gradients - BLENDY FOOTER THEME */
.home-root .home-title,
.home-root .hero-title,
.home-root .section-title,
.home-root .about-title,
.home-root .services-title,
.home-root .why-heading,
.home-root .contact-title {
  font-weight: 800 !important;
  font-size: 3.5rem !important;
  line-height: 1.08 !important;
  margin-bottom: 1rem !important;
  letter-spacing: 0.01em !important;
  font-family: 'Inter', Arial, sans-serif !important;
  background: linear-gradient(135deg, #60a5fa, #a855f7) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  border-bottom: none !important;
}

@media (max-width: 600px) {
  .home-root .home-title,
  .home-root .hero-title,
  .home-root .section-title,
  .home-root .about-title,
  .home-root .services-title,
  .home-root .why-heading,
  .home-root .contact-title {
    font-size: 2.25rem !important;
  }
  .home-root .animated-background,
  .home-root #tsparticles {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
  }
}

.home-root .hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 1.75rem;
}

.home-root .hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.75rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  z-index: 3;
}

/* Homepage-scoped .btn-12 animation; use footer accent blue for unity */
.home-root .btn-12,
.home-root .btn-12 *,
.home-root .btn-12 :after,
.home-root .btn-12 :before,
.home-root .btn-12:after,
.home-root .btn-12:before {
  border: 0 solid;
  box-sizing: border-box;
}

.home-root .btn-12 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  padding: 0.8rem 3rem;
  text-transform: uppercase;
  border-radius: 99rem;
  border-width: 2px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(59,130,246,0.3); /* footer accent blue */
}

.home-root .btn-12 span {
  mix-blend-mode: difference;
  display: inline-block;
}

.home-root .btn-12:after,
.home-root .btn-12:before {
  background: linear-gradient(
    90deg,
    #60a5fa 25%,
    transparent 0,
    transparent 50%,
    #a855f7 0,
    #60a5fa 75%,
    transparent 0
  );
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(var(--progress, 100%));
  transition: transform 0.2s ease;
  pointer-events: none;
}

.home-root .btn-12:after {
  --progress: -100%;
  background: linear-gradient(
    90deg,
    transparent 0,
    transparent 25%,
    #a855f7 0,
    #60a5fa 50%,
    transparent 0,
    transparent 75%,
    #a855f7 0
  );
  z-index: -1;
}

.home-root .btn-12:hover:after,
.home-root .btn-12:hover:before,
.home-root .btn-12:focus:after,
.home-root .btn-12:focus:before {
  --progress: 0;
}

.home-root .btn-12:hover,
.home-root .btn-12:focus {
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  box-shadow: 0 10px 30px rgba(59,130,246,0.12), 0 6px 18px rgba(168,85,247,0.06);
  transform: translateY(-2px);
  border-color: #60a5fa;
}

.home-root .btn-12:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .home-root .hero-inner { padding: 0 1rem; }
  .home-root .home-title,
  .home-root .hero-title,
  .home-root .section-title,
  .home-root .about-title,
  .home-root .services-title,
  .home-root .why-heading,
  .home-root .contact-title {
    font-size: 2.25rem !important;
  }
  .home-root .scroll-to-top-btn { bottom: 1.5rem; right: 1.5rem; width: 48px; height: 48px; }
  .home-root .btn-12 { padding: 0.65rem 2rem; font-size: 0.95rem; }
}