/* Mad Prints 3D - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

:root {
  --black: #000;
  --white: #fff;
  --dark-bg: #1a1a1a;
  --accent: #333;
  --text-light: #f0f0f0;
  --max-width: 1400px;
  --page-padding: 4vw;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
}

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 1.5vw var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  border-bottom-color: var(--black);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 400;
}

.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 29%;
  z-index: 0;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
}

/* ====== SECTIONS ====== */
.section {
  padding: 4rem var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: 4rem var(--page-padding);
}

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

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ====== INTRO ====== */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.intro h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1rem;
  color: #444;
}

.printer-icon {
  width: 100px;
  height: 100px;
  margin: 1.5rem auto;
}

.printer-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro .caption {
  font-size: 0.85rem;
  color: #666;
}

/* ====== BUTTON ====== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--black);
}

/* ====== GALLERY GRID (3 columns) ====== */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ====== THREE COLUMN PORTFOLIO ====== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--page-padding);
}

.three-col .col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.three-col img {
  width: 100%;
  border-radius: 4px;
}

.three-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.three-col .col-center {
  text-align: center;
}

@media (max-width: 900px) {
  .three-col {
    grid-template-columns: 1fr;
  }
}

/* ====== REVIEWS ====== */
.reviews {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.reviews h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.review {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.review:last-child {
  border-bottom: none;
}

.review-author {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.review-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

.review-rating {
  color: #f5a623;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem var(--page-padding);
  text-align: center;
}

.site-footer h4 {
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}

.site-footer a:hover {
  text-decoration-color: var(--white);
}

/* ====== CONTACT PAGE ====== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--page-padding);
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  color: #444;
  line-height: 1.7;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #2d7d2d;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ====== FDM PAGE ====== */
.fdm-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.fdm-section.reversed {
  direction: rtl;
}

.fdm-section.reversed > * {
  direction: ltr;
}

.fdm-section img {
  width: 100%;
  border-radius: 4px;
}

.fdm-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.fdm-section p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .fdm-section,
  .fdm-section.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ====== PORTFOLIO GRID ====== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--page-padding);
}

.portfolio-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 1.2rem 0;
}

.portfolio-card-body h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

/* ====== PORTFOLIO DETAIL ====== */
.portfolio-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem var(--page-padding);
}

.portfolio-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.portfolio-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-detail-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.portfolio-detail-gallery img:hover {
  opacity: 0.9;
}

.portfolio-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.portfolio-back:hover {
  color: var(--black);
}

/* ====== OUR STORY ====== */
.story-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem var(--page-padding);
  text-align: center;
}

.story-section h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.story-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* ====== LIGHTBOX ====== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
