/* ===========================================================
   HOME PAGE — PREMIUM REDESIGN
   =========================================================== */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(10, 10, 30, 0.92) 0%,
    rgba(10, 10, 30, 0.7) 55%,
    rgba(79, 35, 4, 0.4) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 8rem 10vw 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(190, 16, 3, 0.15);
  border: 1px solid rgba(190, 16, 3, 0.4);
  color: #ff8080;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-text h1 span {
  color: var(--primary-color);
  display: block;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 1rem 2.2rem;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary-solid:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(190, 16, 3, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 1rem 2.2rem;
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: white;
  color: #1a1a2e;
  border-color: white;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  object-fit: cover;
}

.trust-avatars img:first-child {
  margin-left: 0;
}

.hero-trust span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Hero visual side */
.hero-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-visual {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  color: white;
  align-self: flex-end;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-floating-card.top {
  align-self: flex-start;
}

.hero-floating-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.hero-floating-card div {
  display: flex;
  flex-direction: column;
}

.hero-floating-card strong {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.hero-floating-card span {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary-color);
  color: white;
  padding: 3.5rem 0;
}

.stats-bar .container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-number sup {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: 1px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.stat-sep {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.25);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-tag::before,
.section-tag::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  color: #0f0f1a;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-header h2 span {
  color: var(--primary-color);
}

.section-header p {
  color: #888;
  line-height: 1.85;
  font-size: 0.97rem;
}

#home,
#services,
#about,
#projects,
#testimonials,
#contact {
  scroll-margin-top: 140px;
}

/* ===== SERVICES ===== */
.services {
  padding: 8rem 0;
  background: #f5f6fa;
}

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

.service-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
  border: 2px solid var(--primary-color);
}

.service-card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
}

.service-card-body {
  padding: 1.4rem 1.6rem 1.8rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(190, 16, 3, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: white;
}

.service-card-body h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f0f1a;
  margin-bottom: 0.6rem;
}

.service-card-body p {
  color: #888;
  line-height: 1.75;
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.service-link:hover {
  gap: 0.9rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 8rem 0;
  background: white;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 70%;
  height: 60%;
  border: 3px solid var(--primary-color);
  border-radius: 16px;
  z-index: 0;
  opacity: 0.18;
}

.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  max-height: 540px;
  display: block;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  right: -2rem;
  z-index: 2;
  background: var(--primary-color);
  color: white;
  padding: 1.6rem 1.8rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(190, 16, 3, 0.38);
}

.experience-badge .num {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 0.15rem;
}

.experience-badge .lbl {
  font-size: 0.75rem;
  opacity: 0.88;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.about-header {
  text-align: left !important;
  margin: 0 0 2rem !important;
}

.about-header .section-tag::before {
  display: none;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: #f8f9fc;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.about-feature:hover {
  background: rgba(190, 16, 3, 0.04);
  border-left-color: var(--primary-color);
}

.about-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.about-feature-text h4 {
  font-weight: 700;
  color: #0f0f1a;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.about-feature-text p {
  color: #888;
  font-size: 0.87rem;
  line-height: 1.65;
}

.btn-primary-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 1rem 2.2rem;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary-red:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== PROCESS ===== */
.process {
  padding: 8rem 0;
  background: #f5f6fa;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.process-step {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  position: relative;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.1);
}

.process-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--primary-color);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.process-img {
  height: 170px;
  overflow: hidden;
}

.process-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.process-step:hover .process-img img {
  transform: scale(1.06);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f0f1a;
  padding: 1.4rem 1.6rem 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.7;
  padding: 0 1.6rem 1.8rem;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  padding: 8rem 0;
  background: #0f0f1a;
  color: white;
}

.why-us .section-header h2 {
  color: white;
}
.why-us .section-header p {
  color: rgba(255, 255, 255, 0.55);
}
.why-us .section-tag {
  color: #ff8080;
}
.why-us .section-tag::before,
.why-us .section-tag::after {
  background: #ff8080;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.why-card {
  padding: 2.5rem 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  background: rgba(190, 16, 3, 0.08);
  border-color: rgba(190, 16, 3, 0.25);
  transform: translateY(-6px);
}

.why-card .icon {
  width: 58px;
  height: 58px;
  background: rgba(190, 16, 3, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.4rem;
  transition: background 0.3s ease;
}

.why-card:hover .icon {
  background: var(--primary-color);
  color: white;
}

.why-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 8rem 0;
  background: white;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testi-card {
  padding: 2.5rem 2rem;
  border-radius: 18px;
  border: 1px solid #eee;
  background: #fafafa;
  transition: all 0.35s ease;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(190, 16, 3, 0.2);
}

.testi-card.featured {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.testi-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
  color: #f5a623;
  font-size: 0.88rem;
}

.testi-card.featured .testi-stars {
  color: #ffe082;
}

.testi-card p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1.8rem;
  font-style: italic;
}

.testi-card.featured p {
  color: rgba(255, 255, 255, 0.88);
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  flex-shrink: 0;
}

.testi-card.featured .testi-author img {
  border-color: rgba(255, 255, 255, 0.4);
}

.testi-author div {
  display: flex;
  flex-direction: column;
}

.testi-author strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f0f1a;
}

.testi-card.featured .testi-author strong {
  color: white;
}

.testi-author span {
  font-size: 0.8rem;
  color: #999;
}

.testi-card.featured .testi-author span {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  color: white;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(190, 16, 3, 0.95) 0%,
    rgba(60, 5, 1, 0.97) 100%
  );
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.82;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  padding: 1rem 2.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-white:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
  }

  .hero-cards {
    order: -1;
  }

  .hero-visual img {
    height: 300px;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .experience-badge {
    right: 1rem;
    bottom: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .stat-sep {
    display: none;
  }

  .stats-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-floating-card {
    display: none;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 6rem;
    padding-bottom: 4.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .about-img-accent {
    display: none;
  }

  .section-header h2 {
    line-height: 1.22;
  }
}
