:root {
  --bg-dark: #101216;
  --bg-darker: #07080b;
  --bg-light: #f4f5f7;
  --accent: #ff9300;
  --accent-soft: #ffc766;
  --accent-dark: #0d2647;
  --text-main: #ffffff;
  --text-muted: #c5c8ce;
  --steel: #31353b;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

/* UTILITIES */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--steel);
}

.section-light {
  background: var(--bg-light);
  color: #111;
}

.section-light .section-subtitle {
  color: #555;
}

.section-subtitle {
  margin: 8px 0 30px;
  color: var(--text-muted);
}

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.site-header.scrolled {
  background: rgba(7, 8, 11, 0.96);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-social {
  display: flex;
  gap: 14px;
  margin-left: 18px;
}

.header-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

.header-social a:hover {
  background: #ff9d00;
  color: #000;
  transform: translateY(-3px) scale(1.1);
}


.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img img {
  width: 95%;
  height: 95%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.2s ease;
}

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

.btn-small {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #000;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* NAV TOGGLE (MOBILE) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url("../images/hero-workshop.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 147, 0, 0.2), transparent),
              linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 90px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* BUTTONS */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent-soft);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ABOUT */
.about-hero {
  background: radial-gradient(circle at top left, #1a2432, #07080b);
  padding-top: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-overlay-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
  font-size: 0.8rem;
}

/* SERVICE CARDS */
.section-dark h2 {
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.service-card {
  background: var(--bg-darker);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 147, 0, 0.23), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  opacity: 1;
}

/* MACHINES */
.machines-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-top: 30px;
}

.machines-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.9rem;
}

.machines-table th,
.machines-table td {
  padding: 10px 14px;
}

.machines-table thead {
  background: var(--accent);
  color: #000;
}

.machines-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.machines-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* CLIENT LOGO CAROUSEL */
.clients-section {
  background: var(--bg-darker);
}

.clients-row {
  margin-top: 30px;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: clientsScroll 30s linear infinite;
}

.clients-track img {
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.clients-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

@keyframes clientsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* GALLERY SLIDER (GALLERY PAGE) */
.gallery-slider {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-window {
  overflow: hidden;
  flex: 1;
  border-radius: 18px;
  background: #1c2025;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  padding: 8px;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;       /* show entire image */
  border-radius: 16px;
  background: #111;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.gallery-arrow {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.gallery-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CONTACT */
.contact-section {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-top: 10px;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list a {
  color: #0056b3;
  text-decoration: none;
}

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

.contact-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.form-row {
  margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #666;
}

/* FOOTER */
.site-footer {
  background: var(--bg-darker);
  padding: 40px 0 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
  color: #000;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* SCROLL ANIMATIONS */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid,
  .machines-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 110px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 54px;
    right: 0;
    background: #131417;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
    width: 220px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-stats {
    gap: 14px;
  }

  .gallery-slider {
    gap: 8px;
  }

  .gallery-slide img {
    height: 220px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

