/* ==============================
   3D PRINTING PAGE – FINAL PERFECT VERSION
   4 IN A ROW ON DESKTOP → VERTICAL ON MOBILE
   Lato + Inter Fonts | Premium Design
   ============================== */

:root {
  --primary: #1E3F5C;
  --orange: #ff8b00;
  --text-light: #e5e7eb;
  --text-muted: #b7c0cc;
  --bg-dark: #000;
  --radius: 20px;
  --transition: all 0.4s ease;
  --nav-h: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #000;
  color: #ddd;
  padding-top: 0%;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Lato', sans-serif; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); color: #fff; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); color: #fff; }
h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
h4 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }

p, li, figcaption, .hero-sub, .section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  color: #ccc;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-inner { z-index: 2; padding: 0 1.5rem; }
.typed-text { color: #fff; text-shadow: 0 0 30px rgba(0,0,0,.8); }
.cursor { color: #fff; animation: blink .7s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin-top: 1rem; font-size: clamp(1.1rem, 3vw, 1.35rem); }

.typed-text {
    font-size: 50px;   /* reduce here */
    line-height: 1.2;
    font-weight: 800;
}

.cursor {
    font-size: 48px;   /* match the caret size */
}

.typed-text,
.cursor {
    font-size: 48px;
}
@media (max-width: 768px) {
  .typed-text,
  .cursor {
      font-size: 32px;
  }
}


/* WHAT WE OFFER – 4 IN A ROW (DESKTOP) */
.offer-section { padding: 100px 5vw; background: #0d0d0d; text-align: center; }
.offer-title h2 { color: var(--orange); margin-bottom: 0.5rem; }
.offer-title p { margin-bottom: 3rem; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.offer-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255,122,0,.3);
  border-radius: var(--radius);
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(255,122,0,.15);
  transition: var(--transition);
}
.offer-card:hover {
  transform: translateY(-12px);
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(255,140,0,.3);
}
.offer-icon { font-size: 3.6rem; color: var(--orange); margin-bottom: 1.2rem; }
.offer-card h3 { color: #fff; margin: 1rem 0 0.5rem; font-size: 1.3rem; }
.offer-card p { line-height: 1.5; }

/* HOW IT WORKS – 4 STEPS IN A ROW (DESKTOP) */
.section-title {
  color: #ff7a00 !important;
}
.process-flow-section { padding: 110px 5vw; background: #000; text-align: center; }
.section-title { margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 4rem; }

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 23%;
  right: 23%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  z-index: 1;
}

.p-step { text-align: center; position: relative; z-index: 2; }
.circle {
  width: 85px; height: 85px;
  background: #141414;
  border: 3px solid var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem; color: var(--orange);
  box-shadow: 0 0 20px rgba(255,123,0,.5);
}
.p-step h4 { color: var(--orange); margin: 1rem 0 0.5rem; font-size: 1.2rem; }
.p-step p { line-height: 1.5; }
.p-arrow {
  font-size: 2.4rem;
  color: var(--orange);
  position: absolute;
  top: 35px;
  left: 100%;
  transform: translateX(-50%);
}

/* MOBILE: VERTICAL LAYOUT FOR BOTH SECTIONS */
@media (max-width: 1024px) {
  .offer-grid,
  .process-flow {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-flow::before { display: none; }
  .p-arrow { 
    position: static;
    transform: rotate(90deg);
    margin: 10px auto;
    display: block;
  }
}

/* ==== OUR 3D PRINTS – GALLERY ==== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Each card */
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

/* The image itself */
.g-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;       /* fill the card nicely, no stripes */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Caption */
.g-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.0)
  );
}

/* Hover effect */
.g-item:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Optional “masonry-style” shapes */
.gallery {
  grid-auto-rows: 220px;
}

.g-item.tall {
  grid-row: span 2;
}

.g-item.wide {
  grid-column: span 2;
}

/* Mobile: simple 1-column layout */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .g-item.tall,
  .g-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* Lightbox & Contact Teaser */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; padding: 2rem; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; }
.lb-caption { margin-top: 1rem; color: #eee; }
.lb-close { position: absolute; top: 20px; right: 25px; font-size: 2.5rem; color: #fff; background: none; border: none; cursor: pointer; }

.contact-teaser-fw { padding: 100px 5vw; background: #000; }
.ctfw-card { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.04); backdrop-filter: blur(12px); max-width: 1300px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ctfw-img img { width: 100%; height: 100%; object-fit: cover; }
.ctfw-content { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.ctfw-content ul { list-style: none; margin: 2rem 0; }
.ctfw-content li { margin: 0.8rem 0; display: flex; align-items: center; gap: 12px; }
.ctfw-content li i { color: #27ff89; }
.ctfw-btn { align-self: start; background: var(--orange); color: #fff; padding: 14px 32px; border-radius: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.ctfw-btn:hover { background: #e67e00; transform: translateY(-3px); }
@media (max-width: 900px) { 
  .ctfw-card { grid-template-columns: 1fr; } 
  .ctfw-content { padding: 3rem; text-align: center; } 
  .ctfw-btn { align-self: center; } 
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }