/* ===== Theme colours – change these to restyle the whole site ===== */
:root {
  --bg: #1a1a1d;          /* charcoal */
  --bg-soft: #232327;     /* lighter charcoal for surfaces */
  --text: #f5f5f5;        /* near-white */
  --muted: #a8a8b0;       /* grey body text */
  --accent: #c9a96e;      /* soft gold accent */
  --line: rgba(255, 255, 255, 0.08);
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #26262b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.site-header {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  text-align: left;
}

.brand-name {
  font-family: "Allura", cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
  animation: fadeDown 1.4s ease-out both;
}

/* thin gold line under the name */
.brand-name::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 0.6rem 0 0 0;
  background: var(--accent);
}

/* ===== Hero layout ===== */
.hero {
  max-width: 1150px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

/* ===== Photo frame ===== */
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  animation: fadeIn 1.6s ease-out 0.3s both;
}



.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.photo-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Intro text ===== */
.intro-eyebrow {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.intro-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.intro-text {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
}

.intro-text span {
  display: block;
  margin-bottom: 0.6rem;
}

.intro-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ===== Slow line-by-line reveal (Now handled by GSAP) ===== */
.reveal {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ===== Mobile: stack photo above text ===== */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1.5rem;
  }

  .photo-frame {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .intro-text {
    margin: 0 auto;
  }
}

/* ===== Why Choose My Services ===== */
.services-why {
  max-width: 1150px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.services-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0.3rem 0 1rem;
}

.services-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 580px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.service-card {
  background: rgba(35, 35, 39, 0.6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateX(4px);
  border-color: rgba(201, 169, 110, 0.4);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.services-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.services-photo {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s ease;
}

.services-photo:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .services-why {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 3rem;
  }
  .services-photo-wrap {
    order: -1;
    margin-bottom: 2rem;
  }
  .services-photo {
    max-width: 360px;
  }
}

/* ===== My Projects ===== */
.projects {
  max-width: 1150px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  text-align: center;
}

.projects-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 3.5rem;
}

.projects-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(3rem, 10vw, 8rem);
}

.projects-logos img {
  display: block;
  max-width: clamp(170px, 20vw, 240px);
  max-height: clamp(80px, 11vw, 115px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.projects-logos a:hover img {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* ===== Certifications ===== */
.cert-section {
  border-top: 1px solid var(--line);
  padding-top: 5rem;
  margin-top: 5rem;
}

.cert-logos img {
  max-width: clamp(240px, 25vw, 320px);
}

.white-logo {
  filter: brightness(0) invert(1) !important;
}

/* ===== Contact Us ===== */
.contact-section {
  border-top: 1px solid var(--line);
  padding: 6rem 1.5rem;
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}

.contact-container {
  width: 100%;
  max-width: 700px;
  background: var(--bg-soft);
  padding: 4rem 3rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  font-family: "Allura", cursive;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.submit-btn {
  background: var(--accent);
  color: #111;
  border: none;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #d4b57a;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* ===== SECTION 4: CLEAN STAGGERED GRID ===== */
.mfg-section {
  padding: 5rem 0;
}

.mfg-title {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mfg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.mfg-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Create the staggered effect */
.mfg-col.right-col {
  margin-top: 5rem;
}

.mfg-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.mfg-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.mfg-img-wrapper:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .mfg-grid {
    grid-template-columns: 1fr;
  }
  .mfg-col.right-col {
    margin-top: 0;
  }
}

/* ===== Header Socials ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-socials a {
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-content {
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.preloader-text {
  font-family: "Allura", cursive;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  white-space: nowrap;
}

.preloader-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1); /* Dark grey empty state */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-fill {
  width: 0%;
  height: 100%;
  background: var(--text); /* Silver/white fill */
  border-radius: 4px;
  transition: width 0.3s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===== MANUFACTURING FLOOR SLIDESHOW ===== */
.mfg-slideshow-section {
  padding: 4rem 10%;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.mfg-slideshow-header {
  text-align: center;
  margin-bottom: 3rem;
}

.mfg-slideshow-header h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.mfg-slideshow-header p {
  color: #a0a0a0;
  font-size: 1rem;
}

.slideshow-container {
  width: 100%;
  overflow: hidden;
  /* Soft fade at the edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slideshow-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* The animation scrolls the track to the left continuously */
  animation: scrollSlideshow 30s linear infinite;
}

/* Pause on hover */
.slideshow-container:hover .slideshow-track {
  animation-play-state: paused;
}

.slideshow-track img {
  height: 320px; /* Scaled up slightly */
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(40%);
}

.slideshow-track img:hover {
  transform: scale(1.03);
  filter: grayscale(0%);
}

@keyframes scrollSlideshow {
  0% { transform: translateX(0); }
  /* We shift exactly half the width (which is the first set of 8 images + gaps) */
  100% { transform: translateX(calc(-50% - 10px)); }
}

@media (max-width: 768px) {
  .slideshow-track img {
    height: 220px; /* Scaled up slightly on mobile */
  }
}
