/* Precision3D - Professional 3D Printing Services */

/* Google Fonts - Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* CSS Variables - 3D Printing Color Palette */
:root {
  --primary-color: #4c1d95;      /* Deep purple */
  --primary-hover: #5b21b6;
  --secondary-color: #3b82f6;    /* Electric blue */
  --secondary-hover: #2563eb;
  --accent-color: #4c1d95;       /* Deep purple */
  --accent-light: #ede9fe;
  --bg-light: #f5f3ff;           /* Soft lavender tint */
  --bg-white: #ffffff;
  --text-dark: #1e1040;
  --text-body: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --success-green: #059669;
  --white: #ffffff;
  --black: #000000;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: 2.75rem; line-height: 1.1; }
h2 { font-size: 2rem; letter-spacing: -0.5px; }
h3 { font-size: 1.35rem; letter-spacing: -0.25px; }
h4 { font-size: 1.15rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

a:hover { color: var(--secondary-color); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { margin-bottom: 1.25em; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 750px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--secondary-color);
  background: var(--secondary-color);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 6px;
}

.btn:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.3);
}

.btn-white {
  border-color: var(--white);
  background: var(--white);
  color: var(--primary-color);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Header - Top Bar */
.header-top {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 400;
}

.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--secondary-color); font-weight: 500; }
.header-top a:hover { color: var(--white); }
.header-top .top-features { display: flex; gap: 20px; }
.header-top .top-features span { display: flex; align-items: center; gap: 6px; }

/* Header - Main */
.header-main {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 3px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

/* Logo */
.logo { display: flex; flex-direction: column; }

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.logo h1 a { color: var(--primary-color); }
.logo h1 span.logo-highlight { color: var(--secondary-color); }

.logo .tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Navigation */
.nav-list { display: flex; gap: 30px; }

.nav-list a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 5px 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.header-cta .btn { padding: 10px 20px; font-size: 0.8rem; }

/* Hero Section */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(76,29,149,0.92) 0%, rgba(76,29,149,0.72) 60%, rgba(59,130,246,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--white);
  padding: 60px 0;
}

.hero-content .badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 300;
}

.hero .btn { margin-right: 15px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary-color); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* Section Title */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 15px; }
.section-title p { max-width: 650px; margin: 0 auto; color: var(--text-body); font-size: 1.05rem; }

.section-title .section-label {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.feature-card {
  text-align: center;
  padding: 35px 25px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--secondary-color);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 600; }
.feature-card p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.65; color: var(--text-body); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { margin-bottom: 25px; }

.about-text .section-label {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 25px; }

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

.product-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f8fafc;
}

.product-info { padding: 25px; }

.product-info .product-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.product-info .product-tag.green { background: #d1fae5; color: var(--success-green); }
.product-info .product-tag.blue { background: #dbeafe; color: #2563eb; }
.product-info .product-tag.amber { background: #ffedd5; color: #c2410c; }
.product-info .product-tag.purple { background: #ede9fe; color: #7c3aed; }

.product-info h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.product-info p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.65; color: var(--text-body); }

/* Photo Grid / Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f8fafc;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img { transform: scale(1.08); }

.photo-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(76, 29, 149, 0.08);
  border-radius: 8px;
}

@media (max-width: 992px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat-item h3 { font-size: 3rem; color: var(--secondary-color); margin-bottom: 8px; font-weight: 700; }
.stat-item p { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 500; margin-bottom: 0; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; }
.contact-info a { color: var(--secondary-color); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }

.contact-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.contact-card .card-icon { font-size: 24px; margin-bottom: 10px; }
.contact-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--primary-color); }
.contact-card p { font-size: 0.85rem; margin-bottom: 0; color: var(--text-body); }

/* Contact Form */
.contact-form { background: var(--bg-light); padding: 40px; border-radius: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s ease;
  border-radius: 6px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.1);
}

.form-group textarea { min-height: 130px; resize: vertical; }
.submit-btn { width: 100%; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.08;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.05;
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 15px; font-size: 2.25rem; }

.cta-banner p {
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-banner .btn { border-color: var(--secondary-color); background: var(--secondary-color); color: var(--white); }
.cta-banner .btn:hover { background: var(--white); border-color: var(--white); color: var(--primary-color); }

/* Footer */
.footer { background: #0a0818; color: var(--white); padding: 60px 0 30px; }

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

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p { margin-bottom: 10px; opacity: 0.75; font-size: 0.9rem; line-height: 1.7; }

.footer-section a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.75;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-section a:hover { opacity: 1; color: var(--secondary-color); padding-left: 5px; }

.social-icons { display: flex; gap: 12px; margin-top: 15px; }

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.social-icons a:hover { background: var(--secondary-color); padding-left: 0; }
.social-icons img { width: 18px; height: 18px; opacity: 0.9; }

.footer-bottom { text-align: center; padding-top: 30px; opacity: 0.5; font-size: 0.85rem; }
.footer-legal { margin-top: 8px; margin-bottom: 0; }
.footer-legal a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--secondary-color); }

.compliance-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { opacity: 0.85; margin-bottom: 0; font-weight: 300; }

/* Trust Indicators */
.trust-bar { background: var(--bg-light); padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
}

.trust-item .check { color: var(--success-green); font-weight: 700; }

/* Terms & Conditions Page */
.terms-content { max-width: 900px; margin: 0 auto; }

.terms-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.terms-section:last-of-type { border-bottom: none; }
.terms-section h2 { font-size: 1.2rem; margin-bottom: 18px; color: var(--primary-color); }
.terms-section p { margin-bottom: 12px; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-list { margin: 15px 0; padding-left: 25px; }
.terms-list li { list-style: disc; margin-bottom: 8px; line-height: 1.65; }
.terms-updated { text-align: center; color: var(--text-body); opacity: 0.7; margin-top: 40px; }

/* Invoice Page */
.invoice-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 400px;
  background: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h2 { font-size: 2.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  .header-main .container { flex-direction: column; gap: 12px; }
  .nav-list { gap: 15px; flex-wrap: wrap; justify-content: center; }
  .hero { min-height: 500px; }
  .hero-content h2 { font-size: 2rem; }
  section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .compliance-row { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .header-top { font-size: 0.75rem; }
  .header-top .container { flex-direction: column; gap: 5px; text-align: center; }
  .header-top .top-features { display: none; }
  .nav-list a { font-size: 0.85rem; }
  .hero-content h2 { font-size: 1.75rem; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .contact-form { padding: 25px; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
