/* Modern CSS Reset & Setup */
:root {
  /* Trendy Neutral Color Palette */
  --color-bg: #FDFBF7;
  /* Soft aesthetic cream */
  --color-surface: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.7);
  --color-text: #1F1F1F;
  --color-text-mutated: #666666;
  --color-border: #E8E5DF;
  --color-accent: #111111;
  --color-accent-hover: #333333;
  --color-polaroid-bg: #FAFAFA;

  /* Easel Colors */
  --color-wood: #D4B895;
  --color-wood-dark: #A58B6D;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows for depth */
  --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-glass: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 32px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --trans-smooth: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  background-image: url('bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.eyebrow {
  font-family: var(--font-heading);
}

/* Common Helper Classes */
.section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.flex-gap {
  display: flex;
  gap: 3rem;
}

.align-center {
  display: flex;
  align-items: center;
}

.accent-text {
  font-style: italic;
  color: var(--color-text-mutated);
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: #CCC;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
}

/* Glassmorphism */
.card-glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  padding: 2.5rem;
}

/* Navbar */
.navbar {
  justify-content: space-between;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo-base {
  background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-accent {
  background: linear-gradient(135deg, #FF7A00 0%, #FF006A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-mutated);
  font-weight: 500;
  font-family: var(--font-heading);
  transition: color var(--trans-fast);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.cart-icon {
  position: relative;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 80vh;
  padding-top: 10rem;
  padding-bottom: 4rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-text-mutated);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-mutated);
  margin-bottom: 2.5rem;
  max-width: 450px;
}

.hero-graphics {
  position: relative;
  height: 600px;
}

/* Floating Polaroids in Hero */
.floating-polo {
  position: absolute;
  background: var(--color-polaroid-bg);
  padding: 1.2rem;
  padding-bottom: 4rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0.4s, box-shadow 0.4s;
  will-change: transform;
}

/* Hover effect on all hero polaroids */
.floating-polo:hover {
  z-index: 10 !important;
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: var(--shadow-large);
  cursor: pointer;
}

.polo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.polo-img {
  flex-grow: 1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.polo-text {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 4rem;
  /* match polaroid-text-area height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-mutated);
}

/* Mini - Left */
.polo-1 {
  top: 15%;
  left: -20%;
  z-index: 1;
  transform: rotate(-12deg);
  animation: float 6s ease-in-out infinite;
}

/* Large - Center Front */
.polo-2 {
  top: 2%;
  left: 50%;
  margin-left: -180px;
  /* Half of large width 360px */
  z-index: 5;
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite 1s;
}

/* Classic (Medium) - Right */
.polo-3 {
  top: 12%;
  right: -25%;
  z-index: 2;
  transform: rotate(15deg);
  animation: float 5s ease-in-out infinite 2s;
}

.shadow-small {
  box-shadow: var(--shadow-small);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-large {
  box-shadow: var(--shadow-large);
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(auto);
  }

  50% {
    transform: translateY(-15px) rotate(auto);
  }

  100% {
    transform: translateY(0px) rotate(auto);
  }
}

/* Background Blur Graphic */
.bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220, 210, 190, 0.4) 0%, rgba(253, 251, 247, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}



/* Customizer Section */
.customizer {
  padding-top: 4rem;
}

.customizer-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  min-height: 800px;
}

.controls-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.control-group {
  margin-bottom: 2rem;
}

.control-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  background: rgba(255, 255, 255, 0.4);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-accent);
  background: #fff;
}

.upload-zone i {
  font-size: 2rem;
  color: var(--color-text-mutated);
  margin-bottom: 0.75rem;
  display: block;
}

.upload-zone .link {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

.upload-zone.has-image {
  border-color: #2e8b57;
  background: rgba(46, 139, 87, 0.05);
}

/* Size Selector */
.size-selector {
  display: flex;
  gap: 1rem;
}

.size-option {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  background: #fff;
}

.size-option:hover {
  border-color: var(--color-text-mutated);
}

.size-option.active {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: var(--shadow-small);
}

.size-name {
  display: block;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.size-dim {
  font-size: 0.8rem;
  color: var(--color-text-mutated);
}

/* Input Fields */
.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border var(--trans-fast);
  background: #fff;
}

.input-field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Offers and Postage Info */
.offers-info {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 95, 31, 0.1), rgba(255, 0, 106, 0.1));
  border: 1px solid rgba(255, 95, 31, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c94a00;
  font-family: var(--font-heading);
}

.offer-badge i {
  font-size: 0.75rem;
}

.postage-info {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--color-text-mutated);
  line-height: 1.5;
}

.postage-info i {
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--color-text-mutated);
}

.price-display {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Live Preview Stage */
.preview-panel {
  display: flex;
  flex-direction: column;
  /* Changed to allow elements below the stage */
  align-items: center;
  justify-content: center;
  background: radial-gradient(50% 50% at 50% 50%, #ffffff 0%, var(--color-bg) 100%);
  border-radius: 24px;
  position: sticky;
  top: 130px;
  align-self: start;
  padding: 2rem 0;
}

.preview-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

/* The Polaroid Itself */
.polaroid-wrapper {
  background: var(--color-polaroid-bg);
  padding: 1.2rem;
  padding-bottom: 4rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
  transition: transform var(--trans-smooth);
  /* Only transition transforms to prevent layout engine popping bugs */
  /* The "acrylic" reflection */
  overflow: hidden;
  position: relative;
}

/* Dynamic Features Card */
.preview-features-card {
  margin-top: calc(8rem - 12px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease-out forwards;
}

.features-header {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features-list {
  list-style-type: none;
  font-size: 0.95rem;
  color: var(--color-text-mutated);
}

.features-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list li:last-child {
  margin-bottom: 0;
}

.features-list li i {
  color: var(--color-primary);
  opacity: 0.7;
  font-size: 0.85rem;
}

/* 3 Sizes Definitions */
.size-mini {
  width: 240px;
  height: 320px;
}

.size-small {
  width: 300px;
  height: 380px;
}

.size-medium {
  width: 360px;
  height: 460px;
  padding: 1.5rem;
  padding-bottom: 5rem;
}

.polaroid-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.polaroid-photo {
  flex-grow: 1;
  background: #EAEAEA;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Image Adjustment Toolbar */
.img-adjust-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.img-adjust-left {
  right: 100%;
  margin-right: 20px;
}

.img-adjust-right {
  left: 100%;
  margin-left: 20px;
}

.adj-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.adj-btn:hover {
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.04);
}

.adj-reset {
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.75rem;
}

.placeholder-icon {
  font-size: 3rem;
  color: #CCC;
  opacity: 0.5;
}


.polaroid-text-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  /* or 5rem for large */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 12px;
  /* Lift the text slightly so easel base doesn't hide it */
}

.size-medium .polaroid-text-area {
  height: 5rem;
}

.preview-text-1 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.preview-text-2 {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.2rem;
}

/* The Acrylic Glare */
.acrylic-glare {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: glare 6s infinite;
  pointer-events: none;
  z-index: 20;
  /* Keep glare above photo and text */
}

@keyframes glare {

  0%,
  50% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Custom Wooden Easel Stand */
.easel-stand {
  position: absolute;
  bottom: -60px;
  /* Moves base to overlap exactly the bottom 5px of the Polaroid */
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  /* Fixed width of the mini polaroid */
  height: 65px;
  z-index: 30;
  /* Sits just in front of the polaroid base */
  display: none;
  /* Hidden by default */
}

/* Hanging Ribbon - Redesigned Hole & Loop */
.ribbon-hang {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 15;
  display: none;
}

.ribbon-hole {
  position: absolute;
  top: 2px;
  /* Punched into the top white border of the polaroid */
  left: -14px;
  width: 28px;
  height: 14px;
  /* Oval shaped hole */
  background: #2a2a2a;
  /* Dark void */
  border-radius: 50%;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 1);
  z-index: 3;
}

.ribbon-loop-new {
  position: absolute;
  top: -85px;
  left: -10px;
  width: 20px;
  /* Outer width narrower than the hole */
  height: 95px;
  /* Reaches down into the hole */
  border: 5px solid #d4c1b1;
  /* Natural ribbon color */
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  z-index: 2;
  /* Hides behind the top edge of the hole */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Texture lines on ribbon */
.ribbon-loop-new::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px 5px 0 0;
  background: repeating-linear-gradient(transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.03) 4px,
      rgba(0, 0, 0, 0.03) 5px);
}

/* Ensure the ribbon scales down proportionally in the cart */
.cart-item .ribbon-hang {
  top: 0px;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  margin-top: 0.5rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--color-accent);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.easel-base {
  width: 100%;
  height: 25px;
  background: linear-gradient(to bottom, #D9B98A, #B48D5B);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #9A7649;
}

.easel-leg {
  width: 18px;
  height: 40px;
  background: linear-gradient(to right, #A88151, #846034);
  position: absolute;
  top: 24px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #755530;
  border-radius: 0 0 2px 2px;
}

.easel-leg-left {
  left: 40px;
}

.easel-leg-right {
  right: 40px;
}

.easel-center-clip {
  width: 14px;
  height: 12px;
  background: linear-gradient(to right, #A88151, #846034);
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid #755530;
  border-top: none;
}

/* Gallery / Cart Carousel Section */
.gallery-cart {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  padding-bottom: 4rem;
  width: 90%;
  max-width: 1200px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-header h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  padding: 2rem 5%;
  min-height: 400px;
  scroll-behavior: smooth;
  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.empty-state {
  text-align: center;
  color: var(--color-text-mutated);
  font-size: 1.2rem;
  margin-top: 5rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Carousel Item styling */
.cart-item {
  flex: 0 0 auto;
  width: 200px;
  /* Strict uniform Thumbnail size */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center polaroids in their track slots */
  animation: fadeIn var(--trans-smooth);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item .polaroid-wrapper {
  transform: scale(0.65);
  /* Shrink it to fit the 200px thumbnail slot without losing its Aspect Ratio */
  transform-origin: top center;
  margin-bottom: -80px;
  /* Pull the text up since the scale down leaves a large CSS layout gap */
  cursor: default;
}

/* Ensure the easel stand scales down proportionally in the cart */
.cart-item .easel-stand {
  bottom: -60px;
  /* Maintain the 5px overlap logic */
}

.cart-item-details {
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.remove-btn {
  color: #d63031;
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.5rem;
}

.checkout-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Footer */
footer {
  background: var(--color-accent);
  color: #FFF;
  padding: 6rem 5% 2rem 5%;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Customer Gallery Section */
.customer-gallery {
  padding-bottom: 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  background: var(--color-surface);
  line-height: 0;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Animation classes for Intersection Observer */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }

  .hero p {
    margin: 0 auto 2.5rem auto;
  }

  .hero-graphics {
    height: 400px;
  }

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

  .customizer-container {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform var(--trans-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.modal-text {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .modal-actions {
    flex-direction: row;
  }

  .modal-actions .btn {
    flex: 1;
  }
}