/* ─────────────────────────────────────────
   ELIZABETH PYDEN PORTFOLIO
   style.css — Ambient dark theme
───────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@property --frame-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg:       #0a0608;
  --bg2:      #110b0f;
  --bg3:      #180d14;
  --card:     #1a0e16;
  --card2:    #200f18;
  --border:   #3a1a28;
  --text:     #f0e8ec;
  --muted:    #9a7a88;
  --accent:   #e0408a;
  --accent2:  #ff6b35;
  --accent3:  #c026d3;
  --gradient: linear-gradient(90deg, #e0408a, #ff6b35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.amb-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,64,138,0.35), rgba(255,107,53,0.25), transparent);
}

/* ── Nav ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,6,8,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(224,64,138,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(192,38,211,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 30%, rgba(255,107,53,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.hero-img-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #e0408a, #ff6b35, #c026d3, #e0408a);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  animation: spin 6s linear infinite;
  opacity: 0.75;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes frameSpin {
  to { --frame-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-glow { animation: none; }
}

.hero-role {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 1rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

.quote-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  max-width: 520px;
  position: relative;
  text-align: left;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -18px;
  left: 20px;
  font-size: 60px;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.6;
  line-height: 1;
}

.quote-card p {
  font-size: 14px;
  color: #d4bec9;
  font-style: italic;
  line-height: 1.75;
}

.quote-card .by {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: normal;
}

/* ── Sections ── */
.section {
  padding: 3.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.sec-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0.5rem 0 1.25rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 1.75rem;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s;
  outline: none;
  min-height: 180px;
}

.svc-card:hover,
.svc-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.svc-head {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.icon-va  { background: rgba(224,64,138,0.15);  color: #e0408a; }
.icon-wd  { background: rgba(255,107,53,0.15);  color: #ff6b35; }
.icon-mk  { background: rgba(192,38,211,0.15);  color: #c026d3; }

.svc-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.svc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.svc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.svc-toggle i {
  transition: transform 0.3s ease;
}

.svc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,2,4,0.85);
  z-index: 150;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}

.svc-modal-overlay.open {
  display: flex;
}

.svc-modal {
  background: #150910;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.svc-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--frame-angle),
    transparent 0%,
    rgba(224,64,138,0.1) 10%,
    rgba(224,64,138,0.9) 20%,
    rgba(255,107,53,0.9) 35%,
    rgba(192,38,211,0.7) 45%,
    rgba(224,64,138,0.1) 55%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: frameSpin 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.svc-modal-header {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 2;
}

.svc-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.svc-icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.svc-modal-title h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.svc-modal-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.svc-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.svc-modal-body h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.svc-modal-foot {
  padding: 1rem 1.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.svc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.svc-panel.open {
  max-height: 600px;
}

.svc-panel-inner {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 0.5px solid var(--border);
}

.svc-panel-inner h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.project-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.dot-orange { background: var(--accent2); }
.dot-purple { background: var(--accent3); }

.project-item p {
  font-size: 13px;
  color: #c8b0bc;
  line-height: 1.55;
}

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

/* ── Testimonials ── */
.testimonials-wrap {
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  padding: 0.25rem;
}

.test-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.test-stars {
  color: var(--accent2);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.test-quote {
  font-size: 14px;
  color: #c8b0bc;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.test-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.avatar-pink   { background: rgba(224,64,138,0.15); color: #e0408a; }
.avatar-orange { background: rgba(255,107,53,0.15);  color: #ff6b35; }
.avatar-purple { background: rgba(192,38,211,0.15);  color: #c026d3; }

.test-name {
  font-size: 14px;
  font-weight: 600;
}

.test-role {
  font-size: 12px;
  color: var(--muted);
}

.hire-btn {
  background: var(--gradient);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: opacity 0.2s;
  font-family: inherit;
}

.hire-btn:hover { opacity: 0.82; }

.slide-arrows {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.arrow-btn {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}

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

.slide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none;
  transition: background 0.25s, width 0.25s;
}

.dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  text-align: center;
  background: var(--bg2);
}

footer p {
  color: var(--muted);
  font-size: 13px;
}

.foot-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.85rem 0;
}

.social-row a {
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}

.social-row a:hover { color: var(--accent); }

.footer-copy {
  font-size: 11px;
  color: rgba(154,122,136,0.45);
  margin-top: 0.5rem;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,2,4,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}

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

.modal {
  background: #150910;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

/* Step progress bar */
.steps-bar {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  gap: 0.35rem;
}

.step-pip {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.step-pip.done   { background: var(--accent); }
.step-pip.active { background: var(--gradient); }

/* Step content */
.step-body {
  padding: 1.25rem 1.5rem 1.5rem;
  min-height: 220px;
}

.step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.step-q {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.field-wrap {
  margin-bottom: 0.85rem;
}

.field-wrap label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field-input {
  width: 100%;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.field-input:focus {
  border-color: var(--accent);
}

.field-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.opt-btn {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.opt-btn i {
  font-size: 17px;
  color: var(--muted);
  margin-top: 1px;
  flex-shrink: 0;
}

.opt-btn:hover,
.opt-btn.sel {
  border-color: var(--accent);
  background: rgba(224,64,138,0.08);
}

.opt-btn.sel i { color: var(--accent); }

.opt-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
}

.opt-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* Step nav */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 0.5px solid var(--border);
}

.btn-back {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}

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

.btn-next {
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}

.btn-next:hover    { opacity: 0.85; }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* Success screen */
.success-wrap {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(224,64,138,0.12);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}

.success-wrap h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-wrap p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

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

.success-close {
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
}

/* ── Snake Frame ── */
.snake-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  padding: 2px;
  background: conic-gradient(from var(--frame-angle), 
    transparent 0%, 
    rgba(224,64,138,0.1) 10%, 
    rgba(224,64,138,0.9) 20%, 
    rgba(255,107,53,0.9) 35%, 
    rgba(192,38,211,0.7) 45%,
    rgba(224,64,138,0.1) 55%, 
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: frameSpin 6s linear infinite;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10,6,8,0.97);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    border-bottom: 0.5px solid var(--border);
    gap: 1rem;
  }

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

  .nav-toggle { display: block; }

  .hero { padding: 3.5rem 1.25rem 2.5rem; }

  .section { padding: 2.5rem 1.25rem; }

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

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

  .test-footer { flex-direction: column; align-items: flex-start; }

  .modal-header h3 { font-size: 14px; }

  .step-q { font-size: 15px; }
}
