/* =========================================
   HOME PAGE STYLES
========================================= */

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.04), rgba(0, 0, 0, 0.02)),
    #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 700px;
  margin-bottom: 18px;
}

.hero-copy .lead {
  max-width: 620px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-black);
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.hero-visual {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f4f4f4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.floating-card strong {
  color: var(--color-black);
  font-size: 1rem;
}

.floating-card span {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card-a {
  left: -22px;
  bottom: 70px;
  animation: floatCard 4.5s ease-in-out infinite;
}

.card-b {
  top: 52px;
  right: -18px;
  animation: floatCard 5.2s ease-in-out infinite;
}

/* ================================
   INTRO STRIP
================================ */
.intro-strip {
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
  background: #fcfcfc;
}

.intro-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.intro-strip h2 {
  max-width: 580px;
}

.intro-strip p:last-child {
  max-width: 620px;
}

/* ================================
   SERVICES PREVIEW
================================ */
.services-preview {
  background: #ffffff;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid #efefef;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.service-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card h3 {
  padding: 22px 22px 10px;
}

.service-card p {
  padding: 0 22px 18px;
}

.service-card a {
  display: inline-block;
  margin: 0 22px 24px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* ================================
   WHY CHOOSE US
================================ */
.why-us {
  background: linear-gradient(180deg, #fafafa, #ffffff);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.why-image img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
}

.why-copy h2 {
  max-width: 650px;
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.feature-list > div {
  padding: 20px 22px;
  border: 1px solid #efefef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.feature-list h3 {
  margin-bottom: 8px;
}

/* ================================
   STATS
================================ */
.stats-section {
  padding-top: 30px;
  padding-bottom: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-box {
  padding: 32px 18px;
  border: 1px solid #efefef;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.stat-box .counter {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 2.3rem;
  font-weight: 700;
}

.stat-box p {
  max-width: 170px;
  margin: 0 auto;
  color: var(--color-black);
}

/* ================================
   PORTFOLIO PREVIEW
================================ */
.portfolio-preview {
  background: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid #efefef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.project-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-content {
  padding: 22px;
}

.project-content span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 10px;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ================================
   SOCIAL PREVIEW FEED
================================ */
.social-live-section {
  background: linear-gradient(180deg, #fafafa, #ffffff);
}

.social-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.social-window {
  overflow: hidden;
  border: 1px solid #efefef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.social-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f1f1;
  background: #ffffff;
}

.social-window-header h3 {
  margin: 0;
}

.social-window-header a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.social-window-header a:hover {
  text-decoration: underline;
}

.social-window-body {
  padding: 20px;
  background: #fcfcfc;
}

.social-preview-feed {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.social-preview-feed::before,
.social-preview-feed::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 58px;
  pointer-events: none;
}

.social-preview-feed::before {
  top: 0;
  background: linear-gradient(180deg, #fcfcfc, rgba(252, 252, 252, 0));
}

.social-preview-feed::after {
  bottom: 0;
  background: linear-gradient(0deg, #fcfcfc, rgba(252, 252, 252, 0));
}

.social-post-track {
  display: grid;
  gap: 16px;
  animation: socialAutoScroll 26s linear infinite;
}

.social-preview-feed:hover .social-post-track {
  animation-play-state: paused;
}

.tiktok-track {
  animation-duration: 23s;
}

.facebook-track {
  animation-duration: 29s;
}

.social-post-card {
  overflow: hidden;
  border: 1px solid #efefef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.social-post-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f4f4f4;
}

.social-post-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.social-post-card span {
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.social-post-card h4,
.social-post-card p {
  margin: 0;
}

.social-post-card h4 {
  color: var(--color-black);
  font-size: 1.05rem;
}

.social-post-card p {
  font-size: 0.94rem;
}

.video-style {
  position: relative;
}

.video-style::before {
  content: "";
  position: absolute;
  top: 92px;
  left: 50%;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  transform: translateX(-50%);
}

.video-style::after {
  content: "";
  position: absolute;
  top: 106px;
  left: calc(50% - 5px);
  z-index: 2;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
}

/* ================================
   CTA BANNER
================================ */
.cta-banner-inner {
  min-height: 220px;
}

.cta-banner-inner h2 {
  max-width: 680px;
  color: #ffffff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes socialAutoScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 8px));
  }
}

/* ================================
   RESPONSIVE
================================ */
@media (min-width: 1100px) {
  .social-live-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .social-preview-feed {
    height: 700px;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 460px;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .intro-strip-grid {
    grid-template-columns: 1fr;
  }

  .service-cards,
  .portfolio-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero-slider {
    min-height: 340px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    text-align: center;
  }

  .service-cards,
  .portfolio-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .why-image img {
    height: 360px;
  }

  .project-card img,
  .service-card img {
    height: 220px;
  }

  .social-preview-feed {
    height: 500px;
  }

  .social-post-card img {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-post-track {
    animation: none;
  }
}
