:root {
  --primary-red: #dc2626;
  --dark-gray: #111827;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Layout & Base Components --- */

.navbar-custom {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}

.footer-custom {
  background-color: var(--dark-gray);
  color: white;
}

.text-primary-red {
  color: var(--primary-red);
}

.bg-primary-red {
  background-color: var(--primary-red);
}

/* --- Buttons --- */

.btn-primary-custom {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-2px);
  color: white;
}

/* --- Hero Sections --- */

/* Main Video Hero */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
}

/* Alternative Hero (Gradient) */
.hero-section-other {
  background: linear-gradient(135deg, var(--dark-gray), #374151);
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Cards & General Hover Effects --- */

.card-hover,
.blog-card,
.contact-card,
.related-card {
  transition: all 0.3s;
}

.card-hover:hover,
.blog-card:hover,
.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  transform: translateY(-8px);
}

.material-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  height: 16rem;
  /* Interactive properties merged from duplicate definition */
  cursor: pointer;
  transition: all 0.3s;
}

.material-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
  padding: 1.5rem;
}

.service-card {
  cursor: pointer;
  transition: all 0.3s;
}

.material-card:hover, 
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.material-card.selected, 
.service-card.selected {
  border-color: var(--primary-red) !important;
  box-shadow: 0 10px 25px rgba(220,38,38,0.2);
}

/* --- Components --- */

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--primary-red);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-red);
}

/* Blog Content */
.blog-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* Mobile Slider */
.mobile-slider {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-slider::-webkit-scrollbar {
  display: none;
}

.mobile-slider-content {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
}

.mobile-slider-item {
  flex: 0 0 320px;
  width: 320px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}

.mobile-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
}

/* Step Indicators (Offers/Process) */
.step-indicator {
  width: 3.5rem;
  height: 3.5rem;
}

.step-line {
  width: 10rem;
  height: 0.25rem;
}

/* Upload & DXF Preview */
.upload-area {
  border: 2px dashed #d1d5db;
  transition: all 0.3s;
}

.upload-area.drag-active {
  border-color: var(--primary-red);
  background-color: #fef2f2;
}

.thickness-btn {
  transition: all 0.3s;
}

.thickness-btn.active {
  background-color: var(--primary-red);
  color: white;
}

.dxf-preview-container {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dxf-preview-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
  linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.dxf-preview-content {
  position: relative;
  z-index: 1;
}

/* Product Gallery */
.product-gallery img {
  cursor: pointer;
  transition: all 0.3s;
}

.product-gallery img:hover {
  transform: scale(1.05);
}

.thumbnail {
  border: 2px solid transparent;
  transition: all 0.3s;
}

.thumbnail.active {
  border-color: var(--primary-red);
}

.spec-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item:hover {
  background-color: #f9fafb;
}
