/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080810;
  --bg2:      #0e0e18;
  --bg3:      #16161f;
  --border:   #252535;
  --accent:   #1a6fc4;
  --accent2:  #2980d4;
  --text:     #e8e8e8;
  --text-dim: #888;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:   8px;
  --trans:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--trans);
}
.btn-nav:hover { background: var(--accent2); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--trans), padding var(--trans);
}
.nav.scrolled {
  background: rgba(8,8,16,0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-family: var(--font-head); font-size: 26px; letter-spacing: 0.08em; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); transition: color var(--trans); }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--trans); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 40%, rgba(26,111,196,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 60%, rgba(26,111,196,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(8,8,16,0.95) 0%, transparent 40%),
    var(--bg);
}

/* Fender shield watermark */
.hero-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 680px;
  z-index: 1;
  pointer-events: none;
}
.hero-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.72;
  filter: brightness(1.05) contrast(1.1) saturate(1.3);
  clip-path: polygon(50% 0%, 100% 12%, 100% 62%, 50% 100%, 0% 62%, 0% 12%);
  -webkit-clip-path: polygon(50% 0%, 100% 12%, 100% 62%, 50% 100%, 0% 62%, 0% 12%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, black 35%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto 0 0;
  padding-left: calc((100vw - 1200px) / 2 + 24px);
}
@media (max-width: 1248px) { .hero-content { padding-left: 24px; } }

/* Logo — transparent PNG, no blend tricks needed */
.hero-logo-img {
  max-width: 700px;
  width: 100%;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 32px rgba(26, 111, 196, 0.45));
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(64px, 9vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline span { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* === SHARED SECTION === */
section { padding: 100px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.section-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* === GALLERY TABS === */
.gallery-section { background: var(--bg2); }

.gallery-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn svg { opacity: 0.7; }
.tab-btn.active svg { opacity: 1; }

/* === GALLERY PANELS === */
.tab-panel { display: none; min-height: 300px; }
.tab-panel.active { display: block; }

.gallery-grid {
  columns: 3;
  column-gap: 16px;
  min-height: 240px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.35s ease;
  /* Soft edges — no hard borders */
  mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, black 55%, transparent 100%);
}
.gallery-item:hover .gallery-img { transform: scale(1.03); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.gallery-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.gallery-item:hover .gallery-remove { display: flex; }
.gallery-remove:hover { background: rgba(200,57,43,0.8); }

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 12px;
  color: var(--text-dim);
  columns: initial;
}
.gallery-empty-icon { font-size: 48px; margin-bottom: 8px; }
.gallery-empty-sub { font-size: 13px; color: #555; }

/* === SPOTLIGHT CAROUSEL === */
.spotlight {
  margin-bottom: 48px;
  position: relative;
}
.spotlight-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-height: 520px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.spotlight-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  background: #0a0a12;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.spotlight-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.spotlight-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 6px 14px;
}
.spotlight-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.spotlight-btn:hover { color: var(--accent); }
.spotlight-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  min-width: 48px;
  text-align: center;
}

/* Overlay always visible on seed items */
.gallery-overlay--always { opacity: 1; }

/* Gallery lightbox-style zoom on click */
.gallery-item { cursor: zoom-in; }

/* Smooth image loading */
.gallery-img { opacity: 0; transition: opacity 0.4s ease, transform 0.35s ease; }
.gallery-img.loaded { opacity: 1; }

/* === AI SORT BAR === */
.ai-sort-bar {
  margin-top: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ai-sort-label svg { color: var(--accent); flex-shrink: 0; }
.ai-sort-inputs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ai-url-input {
  flex: 1;
  min-width: 260px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.ai-url-input:focus { border-color: var(--accent); }
.ai-url-input::placeholder { color: #444; }
.ai-sort-status {
  font-size: 13px;
  color: var(--text-dim);
  min-height: 18px;
  padding-left: 2px;
}
.ai-sort-status.success { color: #4caf50; }
.ai-sort-status.error { color: #e84c3d; }
.ai-sort-status.loading { color: var(--accent); }

/* === REVIEWS === */
.reviews-section { background: var(--bg); }

/* Notable client feature block */
.notable-client {
  background: linear-gradient(135deg, rgba(26,111,196,0.12) 0%, rgba(26,111,196,0.04) 100%);
  border: 1px solid rgba(26,111,196,0.3);
  border-radius: 14px;
  padding: 32px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.notable-client::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 14px 0 0 14px;
}
.notable-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.notable-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.notable-name {
  font-family: var(--font-head);
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 10px;
}
.notable-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 620px;
}
.notable-desc strong { color: var(--text); }
.notable-stat {
  text-align: center;
  flex-shrink: 0;
}
.notable-num {
  display: block;
  font-family: var(--font-head);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.notable-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .notable-content { flex-direction: column; align-items: flex-start; }
  .notable-client { padding: 24px; }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
}
.review-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.review-card--cta { justify-content: center; align-items: center; text-align: center; background: var(--bg3); }

.review-stars { color: #f5b731; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }

.review-text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1;
}

.review-author { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-name { font-weight: 600; font-size: 14px; color: var(--text); }
.review-source {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg3);
  padding: 3px 8px;
  border-radius: 4px;
}

.review-leave-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.review-leave-links a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === PROCESS === */
.process-section { background: var(--bg2); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step { padding: 32px; border-left: 2px solid var(--border); transition: border-color var(--trans); }
.step:hover { border-color: var(--accent); }
.step-num { font-family: var(--font-head); font-size: 56px; color: var(--accent); opacity: 0.25; line-height: 1; margin-bottom: 12px; }
.step h3 { font-family: var(--font-head); font-size: 26px; letter-spacing: 0.06em; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* === ABOUT === */
.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-dim); margin-bottom: 20px; line-height: 1.8; }
.about-stats { display: flex; gap: 40px; margin: 40px 0; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 48px; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 4px; }
.about-img-placeholder {
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, black 55%, transparent 100%);
}

/* === SHIP CALLOUT === */
.ship-section { background: var(--accent); padding: 60px 0; }
.ship-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ship-section h3 { font-family: var(--font-head); font-size: 36px; letter-spacing: 0.04em; color: #fff; margin-bottom: 8px; }
.ship-section p { color: rgba(255,255,255,0.85); }
.ship-section .btn-primary { background: #fff; color: var(--accent); border-color: #fff; white-space: nowrap; }
.ship-section .btn-primary:hover { background: var(--bg); color: #fff; border-color: var(--bg); }

/* === CONTACT / QUOTE === */
.contact-section { background: var(--bg2); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 14px; color: var(--text-dim); font-size: 15px; }
.contact-item svg { color: var(--accent); flex-shrink: 0; }
.contact-item a:hover { color: var(--accent); }

.contact-note {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-note p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.contact-note strong { color: var(--text); }

/* Form */
.quote-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--trans);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; min-height: 120px; }

.file-upload { position: relative; }
.file-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color var(--trans), color var(--trans);
  text-align: center;
}
.file-label:hover { border-color: var(--accent); color: var(--accent); }
.file-label span { font-size: 14px; }
.file-hint { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 8px; }

/* === FOOTER === */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-logo { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.08em; color: var(--text); display: block; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 4px; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { color: var(--text-dim); transition: color var(--trans); }
.footer-social a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; transition: color var(--trans); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 13px; color: var(--text-dim); }
.footer-credit { margin-top: 6px; font-size: 12px; }
.footer-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; z-index: 100; }

  .hero-content { padding-left: 0; }
  .hero-watermark { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { order: -1; }
  .about-stats { gap: 24px; }

  .form-row { grid-template-columns: 1fr; }
  .ship-inner { flex-direction: column; text-align: center; }
  .ship-inner .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: row; flex-wrap: wrap; }
  .ai-sort-inputs { flex-direction: column; }
  .ai-url-input { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .tab-btn { padding: 12px 14px; font-size: 11px; gap: 5px; }
  .tab-btn svg { display: none; }
  .hero-headline { font-size: clamp(52px, 14vw, 80px); }
  .spotlight-frame { max-height: 320px; }
  .spotlight-img { max-height: 320px; }
}

/* === REVIEWS PAGE === */
.reviews-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.review-card--featured {
  border-color: rgba(26,111,196,0.35);
  background: linear-gradient(135deg, rgba(26,111,196,0.08) 0%, var(--bg2) 100%);
  position: relative;
}

.review-badge-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  border: 1px solid rgba(26,111,196,0.3);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .reviews-hero { padding: 100px 0 40px; }
  .review-card { padding: 24px; }
}

/* === PORTFOLIO PAGINATION === */
.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding: 8px 0 24px;
}

.page-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.page-btn:hover:not(:disabled) {
  background: rgba(26,111,196,0.2);
  border-color: var(--accent);
  transform: scale(1.03);
}
.page-btn:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }

.page-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 110px;
  justify-content: center;
}
.page-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.page-sep { font-size: 13px; color: var(--text-dim); }
.page-total { font-size: 18px; font-weight: 500; color: var(--text-dim); }

@media (max-width: 480px) {
  .portfolio-pagination { gap: 12px; }
  .page-btn { padding: 12px 18px; font-size: 13px; }
  .page-current { font-size: 22px; }
}

/* === PORTFOLIO LARGE VIEW (3 per page) === */
#portfolio-grid {
  display: grid !important;
  columns: unset !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
#portfolio-grid .portfolio-item {
  break-inside: unset;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}
#portfolio-grid .gallery-img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  object-position: center;
  background: #0a0a12;
  display: block;
  transform: none;
  transition: transform 0.35s ease, opacity 0.4s ease;
}
#portfolio-grid .portfolio-item:hover .gallery-img { transform: scale(1.03); }
.portfolio-note {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  font-style: italic;
}
.portfolio-note:empty::before {
  content: '+ Add note';
  color: rgba(255,255,255,0.15);
  font-style: normal;
}

@media (max-width: 900px) {
  #portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  #portfolio-grid .gallery-img { height: 340px; }
}
@media (max-width: 540px) {
  #portfolio-grid { grid-template-columns: 1fr; }
  #portfolio-grid .gallery-img { height: 280px; }
}
