/* ========================================
   ABRASIVE SEPARATION SYSTEMS WEBSITE
   Industrial Engineering Authority
   ======================================== */

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

:root {
  --primary-dark: #0a1628;
  --primary-blue: #1e3a5f;
  --secondary-blue: #2d5a8c;
  --accent-orange: #ff6b35;
  --accent-light: #f0f4f8;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --border-gray: #d4d4d4;
  --bg-light: #f9fafb;
  --success: #16a34a;
  --warning: #d97706;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--accent-orange);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.cta-button {
  background-color: var(--accent-orange);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.cta-button:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><circle cx="200" cy="200" r="150" fill="rgba(255,107,53,0.05)"/><circle cx="200" cy="200" r="100" fill="rgba(255,107,53,0.03)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.5;
}

.hero-meta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-orange);
  display: inline-block;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #e55a2b;
  border-color: #e55a2b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
  display: inline-block;
  font-size: 1rem;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

section {
  padding: 4rem 2rem;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-orange);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.7;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ========================================
   CARDS & FEATURES
   ======================================== */

.card {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.12);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.card-text {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
}

.card-link:hover {
  color: #e55a2b;
}

/* ========================================
   FEATURE BOXES
   ======================================== */

.feature-box {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent-orange);
  padding: 2rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.feature-box h3 {
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.feature-box p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========================================
   TECHNICAL SPECS
   ======================================== */

.tech-specs {
  background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.specs-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-orange);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spec-item {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.spec-label {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.spec-value {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.comparison-table th {
  background-color: var(--primary-dark);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
}

.comparison-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  background-color: white;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.comparison-table tbody tr:hover {
  background-color: #f0f4f8;
}

.check-mark {
  color: var(--success);
  font-weight: bold;
}

.x-mark {
  color: #999;
  font-weight: bold;
}

/* ========================================
   PROCESS DIAGRAMS
   ======================================== */

.process-flow {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.process-step-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.process-step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}

.arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--accent-orange);
}

@media (max-width: 768px) {
  .process-flow {
    flex-direction: column;
  }

  .arrow {
    transform: rotate(90deg);
  }
}

/* ========================================
   SIDEBAR & NAVIGATION
   ======================================== */

.sidebar {
  position: sticky;
  top: 100px;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  height: fit-content;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-orange);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.8rem;
}

.sidebar-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.8rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent-orange);
  border-left-color: var(--accent-orange);
}

/* ========================================
   BLOG & CONTENT
   ======================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-orange);
}

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #e55a2b;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 2rem 1rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--accent-orange);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-orange);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3,
  .grid-4,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.8rem;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  nav {
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}