@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@700&display=swap');

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #b0b0b0 0%, #e0e0e0 60%, #bfc3c7 100%);
  background-color: #b0b0b0;
  position: relative;
  margin: 0;
  color: #222;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background: linear-gradient(120deg, rgba(180,180,180,0.12) 0%, rgba(255,255,255,0.08) 100%),
    url('data:image/svg+xml;utf8,<svg width="120" height="120" xmlns="http://www.w3.org/2000/svg"><filter id="noise" x="0" y="0"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.25"/></svg>');
  background-size: 100% 100%, 300px 300px;
}

/* Blog panel for readability */
.blog-panel {
  background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 70%, #bfc3c7 100%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(60,60,60,0.18), 0 1.5px 0 #fff inset;
  border: 1.5px solid #b0b0b0;
  padding: 2.5em 2em;
  margin: 2em auto;
  max-width: 900px;
  color: #222;
  position: relative;
  z-index: 1;
}

.metal-panel {
  background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(60,60,60,0.25), 0 1.5px 0 #fff inset;
  border: 1.5px solid #b0b0b0;
  padding: 2em;
  margin-bottom: 2em;
  position: relative;
}

header {
  background: linear-gradient(180deg, #bfc3c7 0%, #888d92 100%);
  color: #fff;
  padding: 2em 1em 1em 1em;
  text-align: center;
  box-shadow: 0 4px 18px rgba(60,60,60,0.25);
  border-bottom: 3px solid #b0b0b0;
  border-radius: 0 0 18px 18px;
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f8f8f8;
  text-shadow: 0 2px 6px #666, 0 1px 0 #fff, 0 0 2px #b0b0b0;
  filter: brightness(1.1) contrast(1.2);
}
nav {
  margin-top: 1.5em;
  background: linear-gradient(90deg, #bfc3c7 0%, #888d92 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60,60,60,0.15);
  display: flex;
  justify-content: center;
  gap: 1.5em;
  padding: 0.5em 0;
  border: 1.5px solid #b0b0b0;
}
nav a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5em 1.5em;
  border-radius: 6px;
  background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
  box-shadow: 0 1.5px 0 #fff inset;
  border: 1.5px solid #b0b0b0;
  transition: all 0.2s;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}
nav a:hover {
  background: linear-gradient(180deg, #bfc3c7 0%, #b0b0b0 100%);
  color: #222;
  border-color: #bfc3c7;
  box-shadow: 0 2px 8px #bfc3c744;
}

.site-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-right: 1em;
  margin-left: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  vertical-align: middle;
}

main {
  padding: 2em 1em;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  margin: 2.5em 0 2em 0;
}
.section-divider .rivet {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff 60%, #b0b0b0 100%);
  border: 2px solid #888;
  border-radius: 50%;
  margin: 0 0.7em;
  box-shadow: 0 1.5px 0 #fff inset, 0 2px 6px #888a;
}
.section-divider .line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #b0b0b0 0%, #bfc3c7 100%);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Stardos Stencil', Impact, 'Arial Black', sans-serif;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.5px;
  text-shadow: 0 1.5px 0 #fff, 0 2px 6px #888a, 0 0 8px #bfc3c7aa;
  border-left: 6px solid #bfc3c7;
  padding-left: 0.4em;
  text-transform: uppercase;
}

.gallery, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  margin-top: 1.5em;
}
.gallery img, .portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 3px solid #b0b0b0;
  border-radius: 10px;
  background: #e0e0e0;
  box-shadow: 0 2px 8px #888a;
  padding: 4px;
  transition: all 0.2s;
}
.gallery a:hover img, .portfolio-item:hover img {
  border-color: #bfc3c7;
  box-shadow: 0 4px 16px #bfc3c744;
}
.portfolio-item {
  background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
  border-radius: 12px;
  padding: 1.2em;
  box-shadow: 0 4px 18px rgba(60,60,60,0.18);
  border: 1.5px solid #b0b0b0;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.portfolio-image-wrapper {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}
.portfolio-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 3px solid #b0b0b0;
  border-radius: 10px;
  background: #e0e0e0;
  box-shadow: 0 2px 8px #888a;
  padding: 4px;
  transition: all 0.2s;
}
.portfolio-item h3 {
  color: #444;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 0.7em;
  text-shadow: 0 1.5px 0 #fff, 0 2px 6px #888a;
}

/* Estimator Panel */
#three-canvas, .estimator-panel {
  background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(60,60,60,0.18);
  border: 1.5px solid #b0b0b0;
  margin-bottom: 2em;
}
#three-canvas {
  border: 2px solid #bfc3c7;
  min-height: 400px;
  margin-bottom: 1.5em;
}

.cost-table {
  width: 100%;
  background: linear-gradient(135deg, #232326 0%, #44444a 100%);
  border-radius: 8px;
  margin: 2em 0;
  border-collapse: collapse;
  box-shadow: 0 2px 8px #888a;
  border: 1.5px solid #b0b0b0;
  color: #f3f3f3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.cost-table th, .cost-table td {
  padding: 0.5em 1em;
  border-bottom: 1px solid #b0b0b0;
  text-align: left;
  color: #f3f3f3;
  font-weight: 500;
}
.cost-table th {
  color: #bfc3c7;
  font-weight: 700;
  text-shadow: 0 1.5px 0 #fff, 0 2px 6px #888a, 0 0 8px #bfc3c7aa;
}
.cost-table tr:last-child td {
  border-bottom: none;
}
.cost-table .total-row td {
  font-weight: bold;
  color: #bfc3c7;
}

button, input[type="submit"], input[type="button"] {
  background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 80%, #bfc3c7 100%);
  color: #222;
  border: 1.5px solid #b0b0b0;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 1.5px 0 #fff inset;
  transition: all 0.2s;
  margin: 0.2em 0.5em 0.2em 0;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: linear-gradient(180deg, #bfc3c7 0%, #b0b0b0 100%);
  color: #222;
  border-color: #bfc3c7;
  box-shadow: 0 2px 8px #bfc3c744;
}

input, select, textarea {
  background: #f8f8f8;
  border: 1.5px solid #b0b0b0;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  font-size: 1em;
  margin: 0.2em 0.5em 0.2em 0;
  color: #222;
  box-shadow: 0 1.5px 0 #fff inset;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #bfc3c7;
  outline: none;
}

footer {
  text-align: center;
  margin-top: 3em;
  padding: 2em 0 1em 0;
  color: #444;
  font-size: 1em;
  background: linear-gradient(90deg, #bfc3c7 0%, #888d92 100%);
  border-top: 2px solid #b0b0b0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 -2px 8px #888a;
}
