@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Industrial Garage Color Palette */
  --bg-base: #0a0a0b;
  --bg-card: #141416;
  --bg-card-hover: #1c1c1f;
  --bg-elevated: #232326;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Warning/Tool Colors - Amber/Orange */
  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-amber-glow: rgba(245, 158, 11, 0.4);
  --accent-orange-glow: rgba(234, 88, 12, 0.3);

  /* Industrial accent */
  --accent-steel: #60a5fa;
  --accent-metal: #94a3b8;

  --gradient-hero: linear-gradient(
    135deg,
    var(--accent-amber) 0%,
    var(--accent-orange) 100%
  );
  --gradient-glow: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    rgba(245, 158, 11, 0.15),
    transparent 70%
  );

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-active: rgba(245, 158, 11, 0.3);

  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-soft: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  --shadow-amber: 0 0 40px -10px var(--accent-amber-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-base);
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 { font-size: clamp(3.5rem, 10vw, 7rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

nav { display: flex; gap: 0.5rem; align-items: center; }

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

nav a.active {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
}

.btn-portal {
  background: var(--gradient-hero);
  color: white !important;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
}

.btn-portal:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-amber);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-base) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(245, 158, 11, 0.08), transparent 70%);
  z-index: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-amber);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: "JetBrains Mono", monospace;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 { margin-bottom: 1.5rem; color: var(--text-primary); }
.hero h1 span { color: var(--accent-amber); }

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

section { padding: 6rem 0; }

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "//";
  color: var(--text-muted);
}

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.service-item {
  background: var(--bg-card);
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-item:hover { background: var(--bg-card-hover); }

.service-item h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-item h4::before {
  content: "->";
  color: var(--accent-amber);
  font-family: "JetBrains Mono", monospace;
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-category {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 0.25rem;
}

.portfolio-vehicle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-container {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border-subtle);
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

textarea { min-height: 150px; resize: vertical; }

button[type="submit"] {
  width: 100%;
  padding: 1.25rem;
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button[type="submit"]:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(234, 88, 12, 0.4);
}

footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .header-content { flex-direction: column; gap: 1rem; }
  nav { flex-wrap: wrap; justify-content: center; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item img { height: 240px; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-2xl);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
}
