/* =============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Central place to update colors, fonts, spacing.
   Change these to restyle the entire site.
============================================= */
:root {
  --color-bg: #0a0a0a;           /* Near-black background */
  --color-surface: #111111;      /* Slightly lighter surface for cards/inputs */
  --color-surface-2: #1a1a1a;    /* Input hover / elevated surface */
  --color-border: #2a2a2a;       /* Subtle borders */
  --color-accent: #39ff14;       /* Neon green — primary brand accent */
  --color-accent-dim: rgba(57, 255, 20, 0.12); /* Accent with low opacity for glows */
  --color-text: #ffffff;         /* Primary text */
  --color-text-muted: #888888;   /* Secondary / placeholder text */
  --color-nav-bg: #0d0d0d;       /* Bottom navigation background */

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-height: 72px;            /* Height of the fixed bottom nav */
  --max-width: 680px;            /* Max content width on desktop */
  --radius: 14px;                /* Standard border radius */
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PAGE SYSTEM
============================================= */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.page.active.services-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page.active.about-page {
  display: flex;
}

/* =============================================
   BOTTOM NAVIGATION BAR
   Fixed to the bottom of the screen on all devices.
============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--color-nav-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-item.active {
  color: var(--color-accent);
}

.nav-item.active .nav-icon {
  color: var(--color-accent);
  filter: drop-shadow(0 0 6px var(--color-accent));
}

.nav-item:hover:not(.active) {
  background: var(--color-surface-2);
  color: #ccc;
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: inherit;
}

.nav-item.active .nav-icon-wrap {
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 0 10px var(--color-accent);
}

.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

/* =============================================
   ── SERVICES PAGE ──
============================================= */
.services-page {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - var(--nav-height));
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: fadeIn 0.3s ease;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Mobile: full-width, edge-to-edge form */
@media (max-width: 767px) {
  .services-page {
    padding: 16px 0 0;
  }

  .services-inner {
    width: 100%;
  }

  .services-header {
    padding: 0 20px;
    margin-bottom: 24px;
  }

  .form-card {
    border-radius: 0;
    padding: 20px 20px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 18px;
    padding: 18px 18px 18px 52px;
  }

  .form-textarea {
    padding: 18px;
    min-height: 108px;
  }

  .submit-btn {
    padding: 18px;
    font-size: 17px;
  }
}

.services-header {
  margin-bottom: 16px;
  padding-top: 32px;
  text-align: center;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 80px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.services-title span {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.services-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---- The Form Card ---- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
}

/* ---- Individual Form Fields ---- */
.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 17px;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  padding: 18px 18px 18px 52px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.form-textarea {
  padding: 18px;
  resize: vertical;
  min-height: 108px;
  line-height: 1.5;
}

.form-group.textarea-group .input-wrap {
  align-items: flex-start;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-select option {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
  background: #1e1e1e;
}

/* ---- Submit Button ---- */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 9999px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
}

.submit-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
}

.submit-btn:active {
  background: rgba(57, 255, 20, 0.25);
  box-shadow: none;
}

/* ---- Success State ---- */
.form-card.success {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.form-card.success::before {
  display: none;
}

.success-message {
  display: none;
  text-align: center;
}

.success-message.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

.success-title {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.02em;
  color: #000;
  line-height: 1;
  margin-bottom: 8px;
}

.success-text {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

/* ---- Error State ---- */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.2);
  background: #1e0f0f;
}

/* =============================================
   ── ABOUT PAGE ──
============================================= */
.about-page {
  min-height: calc(100vh - var(--nav-height));
  flex-direction: column;
}

/* ---- Top row: identity + bio ---- */
.about-top {
  display: flex;
  flex-direction: column;
}

.about-identity {
  background: var(--color-bg);
  background-image: url('images/mainStreet.png');
  background-size: cover;
  background-position: center;
  padding: 48px 24px 32px;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-identity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}


.about-identity-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 140px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 28px);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.about-location {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.about-location svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.about-bio {
  background: var(--color-surface);
  padding: 36px 24px;
  border-top: 1px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
}

.about-bio-text {
  font-size: 16px;
  line-height: 1.8;
  color: #cccccc;
  margin: 0;
}

/* ---- Work Section ---- */
.work-section {
  width: 100%;
  padding: 32px 24px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.work-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Desktop grid: hidden on mobile */
.work-grid {
  display: none;
}

/* Mobile carousel: shown on mobile */
.work-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.work-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.2),
    0 0 20px rgba(57, 255, 20, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.5);
}

.work-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.work-slide img,
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  background: var(--color-surface);
}

.work-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.2),
    0 0 20px rgba(57, 255, 20, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateX(2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.35),
    0 0 32px rgba(57, 255, 20, 0.2),
    0 28px 48px rgba(0, 0, 0, 0.5),
    0 12px 20px rgba(0, 0, 0, 0.3);
}

.work-carousel .work-slide img {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.2),
    0 0 24px rgba(57, 255, 20, 0.15),
    0 16px 32px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .work-grid {
    display: flex;
    gap: 20px;
  }

  .work-grid .work-card {
    flex: 1;
    aspect-ratio: 3 / 2;
  }

  .work-carousel {
    display: none;
  }
}

/* ---- Bottom: What I Do (full width, centered) ---- */
.about-bottom {
  background: var(--color-surface);
  background-image: radial-gradient(ellipse at 50% 30%, rgba(57, 255, 20, 0.06) 0%, transparent 65%);
  border-top: 1px solid var(--color-border);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-services {
  margin-bottom: 28px;
  width: 100%;
}

.about-services-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.about-services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.about-services-list li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.about-services-list li.active {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border-color: rgba(57, 255, 20, 0.4);
}

.about-services-list li:hover:not(.active) {
  color: #ccc;
  border-color: #444;
}

/* ---- Carousel ---- */
.carousel {
  position: relative;
  height: 320px;
  margin-bottom: 8px;
}

.carousel-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 20px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Liquid glass */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.carousel-card.active {
  opacity: 1;
  pointer-events: auto;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card-summary {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-price-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card-price-amount {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  line-height: 1;
}

.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
  text-decoration: none;
}

.about-cta-link:hover {
  gap: 12px;
  border-color: var(--color-accent);
}

/* ---- Desktop Layout ---- */
@media (min-width: 768px) {
  .about-top {
    flex-direction: row;
  }

  .about-identity {
    width: 45%;
    flex-shrink: 0;
    padding: 80px 48px;
    border-right: 1px solid var(--color-border);
    border-top: none;
  }

  .about-bio {
    flex: 1;
    padding: 80px 56px;
    border-top: none;
    border-left: 1px solid var(--color-border);
  }

  .about-bio-text {
    font-size: 17px;
    max-width: 520px;
  }

  .about-bottom {
    padding: 56px 48px;
  }

  .about-services {
    width: 100%;
    max-width: 680px;
  }

  .carousel {
    height: 280px;
  }
}

/* =============================================
   UTILITY CLASSES
============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---- Work Preview Modal ---- */
.work-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.work-modal.open {
  display: flex;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work-modal-container {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  height: min(88vh, 800px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.25),
    0 0 40px rgba(57, 255, 20, 0.15),
    0 32px 64px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.work-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.work-modal-close:hover {
  background: rgba(57, 255, 20, 0.15);
  border-color: rgba(57, 255, 20, 0.6);
}

.work-modal-close svg {
  width: 16px;
  height: 16px;
}

.work-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* Clickable cursor on work cards */
.work-card[data-preview],
.work-slide[data-preview] {
  cursor: pointer;
}
