:root {
  --primary-red: #D30F15;
  --primary-red-hover: #a80b10;
  --dark-text: #1a1d21;
  --section-bg: #f8f9fa;
  --white: #ffffff;
  --easing: cubic-bezier(0.25, 1, 0.5, 1);
  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: 'Red Hat Display', sans-serif;
  background-color: var(--white);
  color: var(--dark-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, input, textarea, label {
    cursor: none !important;
  }

  .cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000000 !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
  }

  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(211, 15, 21, 0.5);
    transition: width 0.3s var(--easing), height 0.3s var(--easing), background-color 0.3s, border-color 0.3s;
  }

  .cursor-outline.hovered {
    width: 70px;
    height: 70px;
    background: rgba(211, 15, 21, 0.05);
    border-color: rgba(211, 15, 21, 0.2);
    backdrop-filter: blur(2px);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-red);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(211, 15, 21, 0.5);
}

.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: padding 0.4s var(--easing), background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--dark-text) !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-red);
  transition: width 0.3s var(--easing);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.custom-toggler {
  border: none;
  background: transparent;
  padding: 5px;
}

.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.hamburger-box {
  width: 32px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1.5px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 32px;
  height: 3px;
  background-color: var(--dark-text);
  border-radius: 4px;
  position: absolute;
  transition-property: transform, background-color;
  transition-duration: 0.3s;
  transition-timing-function: var(--easing);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

.custom-toggler[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.custom-toggler[aria-expanded="true"] .hamburger-inner::before {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--primary-red);
}

.custom-toggler[aria-expanded="true"] .hamburger-inner::after {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--primary-red);
}

@media (max-width: 991.98px) {
  #navbarNav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-item {
    margin-bottom: 15px;
  }

  .nav-link::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-link:hover::after, .nav-link.active::after {
    width: 40px;
  }

  #navbarNav .btn-red {
    margin-top: 10px;
    width: 100%;
  }
}

.btn-red {
  background: var(--primary-red);
  color: var(--white) !important;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--easing), box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(211, 15, 21, 0.25);
}

.btn-red:hover::before {
  left: 100%;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 250px;
  background: url('/img/hero.png') center/cover no-repeat;
  isolation: isolate;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.95) 0%, rgba(26, 29, 33, 0.6) 100%);
  z-index: -1;
}

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.hero-subtitle {
  color: var(--primary-red);
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary-red);
}

.hero-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.6;
}

.styrofoam-edge {
  position: absolute;
  bottom: 20px;
  left: -2%;
  width: 104%;
  height: 180px;
  background: #cbd5e1;
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 75% 30%, 75% 65%, 50% 65%, 50% 15%, 25% 15%, 25% 55%, 0 55%);
  z-index: 2;
}

.styrofoam-front {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 180px;
  background: var(--section-bg);
  background-image: radial-gradient(#94a3b8 1px, transparent 1px);
  background-size: 12px 12px;
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 75% 30%, 75% 65%, 50% 65%, 50% 15%, 25% 15%, 25% 55%, 0 55%);
  z-index: 3;
}

.section-title {
  font-weight: 900;
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  margin-bottom: 1.5rem;
}

.section-title span {
  color: var(--primary-red);
}

.services-section {
  padding: 120px 0;
  background: var(--section-bg);
}

.perspective-container {
  perspective: 1200px;
}

.service-box {
  background: transparent;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.service-box-inner {
  background: var(--white);
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transform: translateZ(30px);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.4s var(--easing), border-color 0.4s;
}

.service-box:hover .service-box-inner {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(211, 15, 21, 0.2);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-red);
  margin-bottom: 25px;
  transform: translateZ(50px);
}

.gallery-section {
  padding: 120px 0;
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4/3;
  background: #eee;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
  will-change: transform;
}

.gallery-img-wrap:hover img {
  transform: scale(1.08);
}

.contact-section {
  padding: 120px 0;
  background: var(--dark-text);
  color: var(--white);
}

.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}

.contact-list li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.contact-list a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--primary-red);
}

.contact-list i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-red);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 16px;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--primary-red);
}

.form-floating label {
  color: #6c757d;
}

.form-status-msg {
  font-weight: 800;
  font-size: 1.1rem;
}

.text-success-custom {
  color: #198754;
}

.main-footer {
  background-color: #1a1d21;
  padding: 25px 0;
  text-align: center;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #333;
  position: relative;
  z-index: 10;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--easing);
  will-change: opacity, transform;
}

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

.gallery-item-hidden {
  display: none !important;
}
