:root {
  --bg-dark: #2f3038;
  --bg-darker: #25262d;
  --accent: #ef4635;
  --accent-soft: #ffd8b1;
  --paper: #d8ccba;
  --text-main: #1d1d21;
  --text-soft: #65666d;
  --white: #ffffff;
  --radius-lg: 1.1rem;
  --radius-md: 0.8rem;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: #f4f1ea;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -15vmax;
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 70, 53, 0.12), transparent 34%),
    radial-gradient(circle at 83% 12%, rgba(84, 110, 255, 0.11), transparent 32%),
    radial-gradient(circle at 45% 82%, rgba(255, 190, 80, 0.08), transparent 36%);
  filter: blur(28px);
  animation: ambientDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4635 0%, #ff9a44 100%);
  box-shadow: 0 2px 10px rgba(239, 70, 53, 0.55);
  z-index: 1100;
}

h1,
h2,
h3,
.navbar,
.btn,
.eyebrow,
.hero-kicker {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
}

p {
  color: var(--text-soft);
}

.site-header {
  background: rgba(37, 38, 45, 0.9);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(28, 29, 35, 0.97);
}

.navbar {
  padding: 0.7rem 0;
}

.brand-logo {
  height: 58px;
  width: auto;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  display: block;
  width: 1.35em;
  height: 1.35em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff;
}

.navbar-collapse.collapse {
  display: none;
}

.navbar-collapse.collapse.show {
  display: block;
}

.section-space {
  padding: 5.7rem 0;
}

.section-title {
  max-width: 760px;
}

.section-title p {
  margin-bottom: 0;
}

.eyebrow,
.hero-kicker {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(110deg, rgba(19, 18, 20, 0.78) 0%, rgba(26, 23, 24, 0.58) 43%, rgba(36, 33, 36, 0.22) 100%), url("../assets/img/hero-jungle.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  padding-top: 84px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.07), transparent 38%);
  mix-blend-mode: screen;
  animation: heroSweep 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 84%, rgba(239, 70, 53, 0.25), transparent 46%);
  animation: overlayPulse 7s ease-in-out infinite alternate;
}

.hero-section h1 {
  max-width: 680px;
  color: #fff;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.45);
  animation: titleBreath 4.8s ease-in-out infinite;
}

.hero-lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: normal;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #ef4635 0%, #ff6a3d 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(239, 70, 53, 0.35);
  animation: ctaGlow 2.8s ease-in-out infinite alternate;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, #dc3c2b 0%, #ff5a2f 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(239, 70, 53, 0.45);
}

.section-light {
  background: #f8f4ed;
}

.section-dark {
  background: linear-gradient(150deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-contact h2,
.section-contact p {
  color: #f2f2f6;
}

.section-paper {
  background: linear-gradient(180deg, #e3d9ca 0%, #d4c7b4 100%);
}

.news-card,
.portfolio-card,
.service-card,
.contact-form,
.contact-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.motion-item {
  opacity: 1;
  transform: none;
}

.js-motion .motion-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-motion .motion-item.is-visible {
  opacity: 1;
  transform: none;
}

.news-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-body {
  padding: 1.25rem;
}

.news-card:hover img {
  transform: scale(1.05);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: #ca341f;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(239, 70, 53, 0.9);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.service-card i {
  font-size: 2rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.service-card p {
  color: rgba(242, 242, 246, 0.8);
}

.portfolio-card {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
}

.portfolio-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.portfolio-card figcaption {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: #1e1f25;
  font-size: 1.15rem;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 4px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-image:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.22);
}

.about-list {
  padding-left: 1.1rem;
}

.about-list li {
  margin-bottom: 0.5rem;
}

.section-contact {
  background: linear-gradient(145deg, #2c2b32 0%, #17181f 100%);
  position: relative;
  overflow: hidden;
}

.section-contact::before,
.section-contact::after {
  content: "";
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
}

.section-contact::before {
  background: radial-gradient(circle, rgba(239, 70, 53, 0.9) 0%, transparent 64%);
  top: -11rem;
  right: -8rem;
  animation: orbDriftA 14s ease-in-out infinite alternate;
}

.section-contact::after {
  background: radial-gradient(circle, rgba(92, 121, 255, 0.8) 0%, transparent 66%);
  bottom: -12rem;
  left: -8rem;
  animation: orbDriftB 17s ease-in-out infinite alternate;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.contact-panel {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  position: relative;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.8rem;
}

.contact-card a {
  color: #fff;
  text-decoration: none;
}

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

.contact-card i {
  color: var(--accent-soft);
  margin-right: 0.45rem;
}

.contact-details-list p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.contact-details-list a {
  color: #fff;
  text-decoration: none;
}

.contact-details-list a:hover {
  text-decoration: underline;
}

.contact-details-list i {
  color: var(--accent-soft);
  margin-right: 0.45rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
}

.contact-form .form-label {
  color: #f6f6fa;
  font-weight: 600;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #ff6a3d;
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 61, 0.25);
}

.tilt-item {
  transform-style: preserve-3d;
}

.tilt-item > * {
  transform: translateZ(18px);
}

.site-footer {
  background: #14151b;
  color: rgba(255, 255, 255, 0.78);
  padding: 1.3rem 0;
  font-size: 0.95rem;
}

@keyframes overlayPulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1.5%, 0) scale(1.05);
  }
}

@keyframes ctaGlow {
  from {
    box-shadow: 0 12px 24px rgba(239, 70, 53, 0.35);
  }
  to {
    box-shadow: 0 18px 34px rgba(239, 70, 53, 0.58);
  }
}

@keyframes titleBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes heroSweep {
  from {
    opacity: 0.2;
    transform: translateX(-2%);
  }
  to {
    opacity: 0.5;
    transform: translateX(2%);
  }
}

@keyframes orbDriftA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.1);
  }
}

@keyframes orbDriftB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, -5%, 0) scale(1.12);
  }
}

@media (max-width: 991.98px) {
  .navbar .container {
    position: relative;
    padding-right: 3.5rem;
  }

  .navbar-toggler {
    display: block !important;
    position: fixed;
    right: 0.9rem;
    top: 1rem;
    margin-left: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(239, 70, 53, 0.95);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 10;
  }

  .navbar-collapse {
    background: rgba(26, 27, 33, 0.95);
    margin-top: 0.6rem;
    border-radius: 0.8rem;
    padding: 0.55rem 0.9rem;
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 0.1rem !important;
  }

  .nav-link {
    font-size: 1.02rem;
    padding: 0.35rem 0;
  }

  .hero-section {
    min-height: 86vh;
    background-position: 66% center;
  }

  .hero-section h1 {
    animation: none;
  }

  .brand-logo {
    height: 52px;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 4.4rem 0;
  }

  .hero-section {
    background-position: 70% center;
    padding-top: 92px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-section .btn {
    width: 100%;
    max-width: 320px;
  }

  .news-card img,
  .portfolio-card img {
    height: 250px;
  }

  .site-footer {
    text-align: center;
  }

  .contact-panel,
  .contact-form {
    padding: 1.2rem;
  }
}
