/* CNC Components India - Global Styles */
:root {
  --primary-red: #D32F2F;
  --secondary-gray: #424242;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #212121;
  --text-muted: #757575;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--secondary-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-red);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://picsum.photos/seed/industrial/1920/600') center/cover no-repeat;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  max-width: 800px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.9;
}

/* Section Common */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-gray);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-red);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary-red);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-gray);
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  margin-top: auto;
}

.btn:hover {
  background: #b71c1c;
}

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-image img {
  width: 100%;
  border-radius: 8px;
}

.product-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-gray);
}

.product-content .overview {
  margin-bottom: 2rem;
}

.product-content h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--primary-red);
}

.features-list {
  margin-bottom: 2rem;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* Capabilities Section */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.capability-card {
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.capability-card:hover {
  border-color: var(--primary-red);
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.capability-card h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

/* Product Detail Hero */
.product-detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 3rem;
}

.product-detail-hero .product-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detail-hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary-gray);
}

.product-detail-hero .overview p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Product Full Content */
.product-full-content {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-left: 4px solid var(--primary-red);
  padding-left: 1rem;
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media (max-width: 992px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .product-detail-hero h1 {
    font-size: 2rem;
  }
}

/* Footer */
footer {
  background: var(--secondary-gray);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-red);
}

.footer-section p, .footer-section li {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #888;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .product-detail, .contact-grid {
    grid-template-columns: 1fr;
  }
}
