@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Oswald:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #282525;
  /*#0f0f0f*/
  --bg-card: #151515;
  --text-main: #ffffff;
  --text-muted: #888888;
  --brand-red: #E31E24;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

/* UTILITIES */
.text-red {
  color: var(--brand-red);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.bg-card {
  background-color: var(--bg-card);
}

/* BUTTONS */
.btn-industrial {
  display: inline-block;
  padding: 15px 40px;
  background: var(--brand-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-industrial:hover {
  background: #fff;
  color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(227, 30, 36, 0.3);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand img {
  height: 50px;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--brand-red);
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images_new/main6.png') center center / cover no-repeat;
  /* Using the Red Truck image as established */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: 5rem;
  line-height: 0.9;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #ccc;
}

/* HERO FEATURES */
.hero-features {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 800px;
  background: rgba(11, 11, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 100px;
  /* Pill shape */
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 50px;
  z-index: 5;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.feature-item i {
  color: var(--brand-red);
  font-size: 1.8rem;
  background: rgba(227, 30, 36, 0.1);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

/* NAV CONTROLS */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.lang-switcher a,
.lang-switcher span {
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.lang-switcher .active,
.lang-switcher a:hover {
  color: var(--brand-red);
}

.lang-switcher .divider {
  color: var(--text-muted);
}

/* SERVICES */
.section {
  padding: 100px 50px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  padding: 40px;
  border-top: 3px solid transparent;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-top-color: var(--brand-red);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  color: var(--brand-red);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card a {
  display: block;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.service-card a:hover {
  color: var(--brand-red);
}

.about-content {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-left-desktop {
  text-align: left;
}

/* FOOTER */
.footer {
  padding: 50px;
  background: #000;
  border-top: 1px solid #222;
  text-align: center;
}

/* RESPONSIVE */
.menu-toggle {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    width: auto;
    left: 0;
    right: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    gap: 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu-toggle {
    display: block !important;
    cursor: pointer;
  }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Hide the desktop-specific gradient patch to prevent artifacts */
  .hero::after {
    display: none;
  }

  /* Ensure menu button is clickable and visible */
  .menu-toggle {
    position: relative;
    z-index: 1002;
  }

  .section {
    padding: 50px 20px;
  }

  .about-content {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 100px;
    flex-direction: column;
    justify-content: center;
  }

  .hero-features {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 350px;
    /* Constrain width for card look */
    min-width: 0;

    margin-top: 40px;
    margin-bottom: 0;

    border-radius: 20px;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    flex-direction: column;
    padding: 25px;
    gap: 20px;
  }

  .feature-item {
    font-size: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .feature-item i {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  .nav-controls {
    gap: 15px;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }
}