/* ===== Home Page Styles ===== */

/* Hero */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  z-index: 0;
}
.hero-spacer {
  height: 100vh;
  position: relative;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: 1;
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 28, 0.97) 0%,
    rgba(0, 30, 80, 0.85) 50%,
    rgba(0, 85, 255, 0.6) 100%
  );
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  will-change: transform;
}
.hero-grid {
  will-change: transform;
}
.hero-content {
  will-change: transform, opacity;
}
.hero-image {
  will-change: transform, opacity;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh);
    opacity: 0;
  }
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  padding-top: 110px;
  min-height: 100vh;
  overflow: visible;
}
.hero-content {
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-bottom: 24px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff, #3a7bd5);
  background-size: 300% 100%;
  animation: badgeShimmer 4s ease infinite;
  /* Keep border and bg visible via pseudo */
  position: relative;
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    rgba(0, 210, 255, 0.08),
    rgba(58, 123, 213, 0.08),
    rgba(0, 210, 255, 0.08)
  );
  background-size: 300% 100%;
  animation: badgeShimmer 4s ease infinite;
  border: 1px solid rgba(0, 210, 255, 0.2);
  z-index: -1;
}
@keyframes badgeShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00d2ff;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 46px;
  padding-top: 34px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.8s ease 0.8s both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
}
.hero-trust-item i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s ease 0.5s both;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.15) 0%,
    transparent 70%
  );
  border-radius: 20px;
  padding: 20px;
  perspective: 800px;
}
.hero-product-img {
  position: absolute;
  max-width: 90%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
}
.hero-product-img.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  animation:
    heroEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroFloat 4s ease-in-out 1.2s infinite;
}
.hero-product-img.leaving {
  animation: heroExit 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroEnter {
  0% {
    opacity: 0;
    transform: translateX(80px);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) blur(0px);
  }
}
@keyframes heroExit {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(-80px);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) blur(4px);
  }
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}
.hero-scroll .mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin: 0 auto 6px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: "";
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Product Cards */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(var(--primary-rgb), 0.3),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 50px rgba(var(--primary-rgb), 0.12),
    0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}
.product-card-img {
  height: 220px;
  background: linear-gradient(145deg, #f4f7ff 0%, #eaefff 50%, #f0f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.product-card-img::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.06) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img::after {
  transform: translate(-50%, -50%) scale(1.4);
}
.product-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}
.product-card:hover .product-card-img img {
  transform: scale(1.1) translateY(-4px);
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.product-card-info {
  padding: 12px 14px 14px;
}
.product-card-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-card-info p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.3s ease;
}
.product-link:hover {
  gap: 12px;
}
.product-link i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}
.product-link:hover i {
  transform: translateX(4px);
}

/* Solution Cards */
.solution-card-link {
  text-decoration: none;
  display: block;
}
.solution-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
}
.solution-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  transition: var(--transition);
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
.solution-card-bg {
  position: absolute;
  inset: 0;
}
.solution-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.solution-card:hover .solution-card-bg img {
  transform: scale(1.1);
}
.solution-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 28, 0.9) 0%,
    rgba(10, 15, 28, 0.3) 100%
  );
  transition: var(--transition);
}
.solution-card:hover .solution-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 85, 255, 0.85) 0%,
    rgba(10, 15, 28, 0.4) 100%
  );
}
.solution-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.solution-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.solution-card:hover .solution-card-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.solution-card-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.solution-card-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  margin: 0;
}

/* Stats */
.stats {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 50%
  );
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.2rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.testimonials .section-badge {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}
.testimonials h2 {
  color: #fff;
}
.testimonial-card {
  text-align: center;
  padding: 30px;
  display: none;
}
.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.testimonial-quote {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}
.testimonial-quote::before {
  content: "\201C";
  font-size: 4rem;
  color: rgba(var(--accent-rgb), 0.2);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}
.testimonial-info h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.testimonial-info p {
  color: #9ca3af;
  font-size: 0.82rem;
  margin: 0;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* CTA */
.cta-section {
  background: var(--gradient-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.cta-section h2 {
  color: #fff;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* About Section (homepage) */
.about-img-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-img-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff;
}
.about-img-float img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.about-experience {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.about-experience h3 {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 2px;
}
.about-experience p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  margin: 0;
  white-space: nowrap;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--dark);
}
.about-feature i {
  color: var(--primary);
}

/* Home Responsive */
@media (max-width: 991px) {
  .hero {
    align-items: stretch;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 24px;
    min-height: 100%;
    text-align: center;
    flex: 1;
  }
  .hero-image {
    order: -1;
  }
  .hero-image-wrapper {
    height: 240px;
  }
  .hero-product-img {
    max-height: 220px;
  }
  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 767px) {
  .hero {
    height: 100vh;
    height: 100dvh;
  }
  .hero-spacer {
    height: 100vh;
    height: 100dvh;
  }
  .hero-inner {
    padding-top: 80px;
    padding-bottom: 20px;
    min-height: 100%;
    gap: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-image {
    flex-shrink: 0;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-outline-light-custom {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .hero-image-wrapper {
    height: 180px;
  }
  .hero-product-img {
    max-height: 160px;
  }
  .hero-trust {
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
  }
  .hero-trust-item {
    font-size: 0.72rem;
  }
  .hero-scroll {
    display: none;
  }
  .about-img-float,
  .about-experience {
    display: none;
  }
  .about-img-main img {
    height: 280px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .solution-card {
    height: 200px;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-outline-light-custom {
    font-size: 0.78rem;
    padding: 10px 12px;
  }
}
