:root {
  --steel: #1a1f2e;
  --rust: #c0392b;
  --amber: #e67e22;
  --chrome: #b8c5d6;
  --smoke: #2c3347;
  --fog: #f0f2f5;
  --white: #ffffff;
  --gold: #d4a843;
}

.text-rust {
  color: var(--rust);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", sans-serif;
  background: var(--steel);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--rust);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.4s ease,
    width 0.3s,
    height 0.3s;
}

/* SECTION COMMONS */
section {
  padding: 7rem 4rem;
}

.section-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--rust);
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 2rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== SECTION 1 - HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: var(--steel);
  padding: 0 4rem;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 35%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 70%);
  z-index: 3;
  pointer-events: none;
}

/* Animated real background image with parallax-style Ken Burns */
.hero-img-bg {
  position: absolute;
  inset: -8%;
  background: url("../image/image.webp") center center / cover no-repeat;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.08) translate(0%, 0%);
  }

  33% {
    transform: scale(1.12) translate(-1.5%, 0.5%);
  }

  66% {
    transform: scale(1.1) translate(1%, -1%);
  }

  100% {
    transform: scale(1.08) translate(0%, 0%);
  }
}

/* Dark overlay over the image - deep industrial tint */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(26, 31, 46, 0.88) 0%,
      rgba(26, 31, 46, 0.75) 50%,
      rgba(26, 31, 46, 0.92) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 59px,
      rgba(184, 197, 214, 0.035) 60px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 59px,
      rgba(184, 197, 214, 0.035) 60px);
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(192, 57, 43, 0.18) 0%,
      transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 3;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  text-align: left;
  z-index: 4;
  padding: 2rem 0;
  max-width: 1200px;
  width: 100%;
}

.hero-tag {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-title .line-1 {
  display: block;
  color: #006ead;
}

.hero-title .line-2 {
  display: block;
  color: #2b434f;
}

.hero-sub {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  letter-spacing: 6px;
  color: #2b434f;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-tagline {
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--steel);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
  z-index: 4;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--rust));
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.scroll-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--chrome);
  writing-mode: vertical-rl;
}

/* Steel beams decorative */
.beam-h {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right,
      transparent,
      rgba(192, 57, 43, 0.3),
      transparent);
  animation: beamSlide 6s ease-in-out infinite;
  z-index: 3;
}

.beam-h.top {
  top: 20%;
  width: 60%;
  left: 20%;
  animation-delay: 0s;
}

.beam-h.bot {
  bottom: 20%;
  width: 40%;
  left: 30%;
  animation-delay: 3s;
}

@keyframes beamSlide {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }

  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===================== SECTION 2 - WHO WE ARE ===================== */
#about {
  background: var(--smoke);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "KRS";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: 20rem;
  color: rgba(184, 197, 214, 0.03);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-visual {
  position: relative;
}

.about-text p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--chrome);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

/* ===================== SECTION 3 - SERVICES ===================== */
#services {
  background: var(--steel);
  position: relative;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}

.services-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--chrome);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(184, 197, 214, 0.08);
  border: 1px solid rgba(184, 197, 214, 0.08);
}

/* ===================== SECTION 4 - CLIENTS ===================== */
#clients {
  background: var(--fog);
  color: var(--steel);
  padding: 5rem 0;
  overflow: hidden;
}

#clients .section-label {
  justify-content: center;
}

#clients .section-label::before {
  background: var(--rust);
}

#clients .section-title {
  text-align: center;
  color: var(--steel);
  margin-bottom: 3rem;
}

/* ===================== SECTION 5 - TEAM ===================== */
#team {
  background: var(--smoke);
  overflow: hidden;
}

.team-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team-header {
  margin-bottom: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================== SECTION 6 - TESTIMONIALS ===================== */
#testimonials {
  background: var(--steel);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 2rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 20rem;
  color: rgba(192, 57, 43, 0.06);
  line-height: 1;
  pointer-events: none;
}

.testimonials-inner {
  max-width: 900px;
  margin: 0 auto;
}

.testi-slider {
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== SECTION 7 - CONTACT ===================== */
#contact {
  background: var(--smoke);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right,
      transparent,
      var(--rust),
      var(--amber),
      transparent);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 2rem;
}

.contact-info p {
  font-weight: 300;
  line-height: 1.8;
  color: var(--chrome);
  margin-bottom: 2.5rem;
}

/* Extracted Page Layouts & Styles */
#contact {
  padding: 3rem 4rem;
}

.contact-title-main {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 3px;
  line-height: 1;
  display: block;
  margin-bottom: 1.5rem;
}

.contact-inner p {
  font-weight: 300;
  line-height: 1.8;
  color: var(--chrome);
  margin-bottom: 2.5rem;
}

.contact-inner .reveal-right {
  transition-delay: 0.2s;
}
