
/* ==============================
   AUTO LINE LAB — COMPLETE STYLE
================================ */

:root {
  --bg: #080808;
  --panel: #111112;
  --red: #ff1020;
  --white: #f5f5f5;
  --muted: #999;
  --border: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.045);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

body, button, a {
  font-family: 'Manrope', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

::selection {
  background: var(--red);
  color: white;
}

.red,
h1 span,
h2 span,
.logo span,
.about-text strong {
  color: var(--red);
}

section {
  position: relative;
}

.section {
  padding: 120px 8%;
}

.glass {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 70px rgba(0,0,0,.2);
}

/* PRELOADER */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #080808;
  transition: opacity .6s ease, visibility .6s ease;
}

.preloader span {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 5px;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 20px;
  left: 5%;
  right: 5%;
  z-index: 1000;
  height: 75px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,.09);
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span:not(.red) {
  color: #aaa;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #aaa;
  font-size: 13px;
  transition: color .3s;
}

.nav-links a:hover {
  color: white;
}

.nav-button {
  padding: 13px 20px;
  background: rgba(255,16,32,.08);
  border: 1px solid rgba(255,16,32,.25);
  border-radius: 12px;
  font-size: 13px;
  transition: .3s;
}

.nav-button:hover {
  background: var(--red);
  border-color: var(--red);
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  margin: 5px auto;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 8% 60px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("./assets/images/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 12s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.2) 100%),
    linear-gradient(0deg, #080808 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  width: 100%;
}

.eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--red);
}

.hero h1 {
  font-size: clamp(45px, 7.5vw, 100px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -5px;
}

.hero h1 span {
  display: inline-block;
}

.hero-description {
  max-width: 600px;
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,.7);
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.button-primary,
.button-outline {
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: .3s ease;
}

.button-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 0 30px rgba(255,16,32,.15);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(255,16,32,.3);
}

.button-primary span {
  transition: transform .3s;
}

.button-primary:hover span {
  transform: translateX(5px);
}

.button-outline {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
}

.button-outline:hover {
  border-color: var(--red);
  background: rgba(255,16,32,.07);
}

.hero-bottom {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 90px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

.feature-icon {
  color: var(--red);
  font-size: 23px;
}

/* SECTION HEADINGS */

.section-heading {
  margin-bottom: 55px;
}

.section-heading h2,
.about-content h2,
.contacts-box h2 {
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.12;
  letter-spacing: -3px;
  font-weight: 800;
}

.section-heading > p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  margin-top: 20px;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 290px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: transform .4s, border-color .4s;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(255,16,32,.15), transparent 70%);
  transition: transform .5s;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,16,32,.35);
}

.service-card:hover::after {
  transform: scale(1.5);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--red);
  font-size: 27px;
  background: rgba(255,16,32,.08);
  border: 1px solid rgba(255,16,32,.2);
  margin-bottom: 30px;
}

.service-number {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
}

.service-card h3 {
  font-size: 23px;
  margin-top: 12px;
  letter-spacing: -.5px;
}

.service-card p {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  margin-top: 15px;
  max-width: 500px;
}

.card-arrow {
  position: absolute;
  top: 35px;
  right: 35px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: .3s;
}

.service-card:hover .card-arrow {
  background: var(--red);
  transform: rotate(45deg);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.about-image img {
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  transition: transform 1s;
}

.about-image:hover img {
  transform: scale(1.04);
}

.image-label {
  position: absolute;
  bottom: 25px;
  left: 25px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 10px;
  letter-spacing: 2px;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-text {
  padding: 30px;
  border-radius: 24px;
}

.about-text p {
  font-size: 14px;
  line-height: 1.9;
  color: #aaa;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: white;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.about-stat {
  padding: 24px;
  border-radius: 20px;
  transition: .3s;
}

.about-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,16,32,.3);
}

.about-stat h3 {
  font-size: 26px;
  color: var(--red);
  margin-bottom: 10px;
}

.about-stat p {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s, filter .5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.gallery-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* CONTACTS */

.contacts {
  padding-top: 50px;
  padding-bottom: 120px;
}

.contacts-box {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  padding: 90px 30px;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
}

.contacts-box::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,16,32,.12), transparent 70%);
  pointer-events: none;
}

.contacts-box > * {
  position: relative;
}

.contacts-box h2 {
  margin-bottom: 25px;
}

.contacts-box > p {
  max-width: 650px;
  margin: 0 auto 35px;
  color: #999;
  font-size: 15px;
  line-height: 1.9;
}

.contact-note {
  margin-top: 45px;
  color: #666;
  font-size: 10px;
  letter-spacing: 3px;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  padding: 35px 8%;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer p,
.footer-top {
  color: #777;
  font-size: 11px;
  letter-spacing: 1px;
}

.footer-top:hover {
  color: var(--red);
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

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

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

/* RESPONSIVE */

@media(max-width:1000px) {
  .navbar {
    left: 3%;
    right: 3%;
  }

  .nav-links {
    gap: 18px;
  }

  .section {
    padding: 100px 5%;
  }

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

  .about-image,
  .about-image img {
    min-height: 450px;
  }

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

  .gallery-item:last-child {
    grid-column: 1/-1;
  }
}

@media(max-width:700px) {
  .navbar {
    top: 12px;
    height: 65px;
    padding: 0 18px;
    border-radius: 17px;
  }

  .logo {
    font-size: 16px;
  }

  .nav-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 20px;
    background: rgba(10,10,10,.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .3s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 17px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,.04);
  }

  .hero {
    min-height: 850px;
    padding: 130px 6% 40px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg,#080808 0%,rgba(0,0,0,.8) 35%,rgba(0,0,0,.4) 100%);
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 65px);
    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-bottom {
    gap: 20px;
    margin-top: 55px;
  }

  .feature {
    font-size: 12px;
  }

  .section {
    padding: 85px 6%;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2,
  .about-content h2,
  .contacts-box h2 {
    font-size: 40px;
    letter-spacing: -2px;
  }

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

  .service-card {
    min-height: 270px;
    padding: 25px;
  }

  .card-arrow {
    top: 25px;
    right: 25px;
  }

  .about-image,
  .about-image img {
    min-height: 350px;
  }

  .about-text {
    padding: 23px;
  }

  .about-stats {
    gap: 12px;
  }

  .about-stat {
    padding: 18px;
  }

  .about-stat h3 {
    font-size: 23px;
  }

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

  .gallery-item,
  .gallery-item:last-child {
    grid-column: auto;
    height: 320px;
  }

  .contacts-box {
    padding: 65px 20px;
    border-radius: 25px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 35px 6%;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
