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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-group img {
  height: 50px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.site-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 0.5px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

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

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #00d4ff;
}

.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  background: #00d4ff;
  color: #1a1a2e;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #00b8e6;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a2e;
}

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

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.card h3 {
  color: #00d4ff;
  margin-bottom: 1rem;
}

/* Materials section - two column selector */
.material-selector {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 700px;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.core-materials, .sub-materials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.core-btn, .sub-btn {
  padding: 0.75rem 1rem;
  border: none;
  background: #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
}

.core-btn.active, .core-btn:hover,
.sub-btn.active, .sub-btn:hover {
  background: #00d4ff;
  color: #1a1a2e;
}

.material-details {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.material-details h3 {
  color: #00d4ff;
  margin-bottom: 1rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.pros h4 { color: #28a745; }
.cons h4 { color: #dc3545; }

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
}

.color-label {
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  min-height: 2.2em;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: #00d4ff;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: white;
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.note {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

.note a {
  color: #00d4ff;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

footer {
  background: #1a1a2e;
  color: white;
  padding: 2rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icons a {
  color: #00d4ff;
  transition: color 0.3s, transform 0.2s;
}

.social-icons a:hover {
  color: white;
  transform: scale(1.1);
}

.footer-text {
  text-align: right;
}

.footer-text a {
  color: #00d4ff;
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem;
    min-height: 60vh;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 3rem 1.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .logo-group img {
    height: 40px;
  }

  .site-name {
    font-size: 1.1rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .material-selector {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .footer-text {
    text-align: center;
  }

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

  .gallery-img {
    height: 220px;
  }
}

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

  .color-item {
    width: 80px;
  }

  .color-swatch {
    width: 70px;
    height: 70px;
  }
}
