/* ═══════════════════════════════════════════
   ASHLEY — PORTFOLIO STYLES
   Dark purple + cyan | DIN-inspired | Mobile-first
   ═══════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Purple spectrum */
  --bg-deep:       #0d0a14;
  --bg-base:       #110e1a;
  --bg-surface:    #1a1525;
  --bg-elevated:   #231d32;
  --purple-mid:    #3a2d5c;
  --purple-light:  #6b5b9e;

  /* Accent */
  --cyan:          #00e5cc;
  --cyan-dim:      #00b8a3;
  --cyan-glow:     rgba(0, 229, 204, 0.15);

  /* Text — meets WCAG AA on dark backgrounds */
  --text-primary:  #eae6f2;
  --text-secondary:#a89ec2;
  --text-muted:    #6d6283;

  /* Gradients */
  --grad-main:     linear-gradient(135deg, var(--bg-deep) 0%, var(--cyan) 100%);
  --grad-card:     linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  --grad-text:     linear-gradient(90deg, var(--cyan) 0%, var(--purple-light) 100%);
  --grad-accent:   linear-gradient(135deg, var(--cyan) 0%, #6b5b9e 50%, var(--bg-deep) 100%);

  /* Type scale (clamp for fluid) */
  --fs-xs:    clamp(0.81rem, 0.75rem + 0.29vw, 0.92rem);
  --fs-sm:    clamp(0.92rem, 0.86rem + 0.35vw, 1.04rem);
  --fs-base:  clamp(1.09rem, 0.98rem + 0.46vw, 1.27rem);
  --fs-md:    clamp(1.27rem, 1.15rem + 0.58vw, 1.55rem);
  --fs-lg:    clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --fs-xl:    clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  --fs-hero:  clamp(2.4rem, 1.6rem + 3.5vw, 5rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-2xl: 8rem;

  /* Layout */
  --max-w:  1200px;
  --radius: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-med:  0.5s;
  --dur-slow: 0.8s;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ─── DESKTOP TYPE SCALE BOOST ─── */
@media (min-width: 1024px) {
  :root {
    --fs-xs:   1rem;
    --fs-sm:   1.15rem;
    --fs-base: 1.29rem;
    --fs-md:   1.58rem;
  }
}

body {
  font-family: 'DM Sans', 'D-DIN', 'DIN Alternate', 'DIN', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}


/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-sm);
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: var(--sp-sm);
}


/* ─── TYPOGRAPHY UTILITIES ─── */
.condensed {
  font-stretch: condensed;
  letter-spacing: 0.02em;
}

.expanded {
  font-stretch: expanded;
  letter-spacing: 0.08em;
}


/* ─── NAV ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 10, 20, 0.8);
  border-bottom: 1px solid rgba(0, 229, 204, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-sm) var(--sp-md);
}

.nav__logo {
  text-decoration: none;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-dot {
  color: var(--cyan);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease-out);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Open state */
.nav__toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--cyan);
}

.nav__toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--cyan);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(80vw, 320px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-lg);
  padding: var(--sp-xl);
  background: var(--bg-base);
  border-left: 1px solid rgba(0, 229, 204, 0.1);
  list-style: none;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
}

.nav__menu.is-open {
  transform: translateX(0);
}

.nav__link {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--cyan);
}

.nav__link--cta {
  color: var(--bg-deep);
  background: var(--cyan);
  padding: 0.85em 2em;
  border-radius: var(--radius);
  border: 2px solid var(--cyan);
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__link--cta:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-md);
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
  }

  .nav__link {
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
  }
}


/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
}

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

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 229, 204, 0.3);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--fs-base);
}


/* ─── HERO ─── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(45px + 0.3rem) calc(var(--sp-md) + 15px) var(--sp-lg);
  text-align: center;
  overflow: hidden;
}

.hero__gradient-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  top: 10%;
  right: -150px;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 20px) scale(1.1); }
}

.hero__portrait {
  width: clamp(200px, 38vw, 320px);
  margin-bottom: var(--sp-md);
  filter: drop-shadow(0 0 40px rgba(0, 229, 204, 0.15));
  transition: filter var(--dur-med);
}

.hero__portrait:hover {
  filter: drop-shadow(0 0 60px rgba(0, 229, 204, 0.3));
}

/* Cat slow-blink — eyelids cover the eyes briefly */
.cat-eyelid {
  transform-box: fill-box;
  transform-origin: top center;
  transform: scaleY(0);
  animation: catBlink 5.5s ease-in-out infinite;
}

/* Stagger the second eyelid very slightly for realism */
.cat-eyelid:nth-of-type(2) {
  animation-delay: 0.04s;
}

@keyframes catBlink {
  0%, 40%  { transform: scaleY(0); animation-timing-function: cubic-bezier(0.6, 0, 1, 0.8); }  /* open → slowly closing */
  46%      { transform: scaleY(1); animation-timing-function: ease-in-out; }                    /* fully shut */
  51%      { transform: scaleY(1); animation-timing-function: cubic-bezier(0, 0.2, 0.4, 1); }  /* hold → slowly opening */
  58%      { transform: scaleY(0); }                                                            /* back open */
  100%     { transform: scaleY(0); }                                                            /* stay open */
}

.hero__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-xs);
}

.hero__line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero__line--1 { animation-delay: 0.4s; }
.hero__line--2 { animation-delay: 0.6s; }

.hero__line--2 em {
  font-style: italic;
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.60) 50%, transparent 60%),
    var(--grad-text);
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.10em;
  animation: moveShineText 9s ease-in-out infinite;
}

@keyframes moveShineText {
  0%, 55%  { background-position: 100% 0, 0 0; }
  70%      { background-position:  -5% 0, 0 0; }
  100%     { background-position:  -5% 0, 0 0; }
}

.hero__line--2 em:hover {
  background-image:
    linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.92) 50%, transparent 70%),
    var(--grad-text);
  animation: moveShineHover 0.55s cubic-bezier(0.25, 0, 0.4, 1) forwards;
}

@keyframes moveShineHover {
  from { background-position: 115% 0, 0 0; }
  to   { background-position: -15% 0, 0 0; }
}

/* ─── CURSOR BLINK ─── */
.cursor-blink {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__sub {
  max-width: 520px;
  margin: 0 auto var(--sp-lg);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

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


/* ─── MARQUEE ─── */
.marquee {
  overflow: hidden;
  padding: var(--sp-md) calc(var(--sp-md) + 15px);
  border-top: 1px solid rgba(0, 229, 204, 0.08);
  border-bottom: 1px solid rgba(0, 229, 204, 0.08);
  background: var(--bg-base);
}

.marquee__track {
  display: flex;
  gap: var(--sp-lg);
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.marquee__track span {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.marquee__track span::after {
  content: '✦';
  margin-left: var(--sp-lg);
  color: var(--cyan);
  opacity: 0.4;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}


/* ─── SECTIONS ─── */
.section {
  padding: var(--sp-2xl) calc(var(--sp-md) + 15px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--sp-xs);
}

.section__subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary);
}


/* ─── PROJECTS GRID ─── */
.projects__grid {
  display: grid;
  gap: var(--sp-md);
}

.project-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid rgba(0, 229, 204, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-fast),
              box-shadow var(--dur-fast);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 204, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px var(--cyan-glow);
}

.project-card__visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--bg-elevated) 0%,
    color-mix(in srgb, var(--card-accent, var(--cyan)) 10%, var(--bg-surface)) 100%
  );
  transition: background var(--dur-med);
}

.project-card__icon {
  font-size: 3rem;
  color: var(--card-accent, var(--cyan));
  opacity: 0.3;
}

.project-card:hover .project-card__icon {
  opacity: 0.6;
}

.project-card__info {
  padding: var(--sp-md);
}

.project-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-xs);
}

.project-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-xs);
}

.project-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-sm);
}

.project-card__link {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Stretch the link to cover the whole card */
.project-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.project-card__link:hover {
  color: var(--text-primary);
}

/* Featured card spans full width */
.project-card--featured {
  border-color: rgba(0, 229, 204, 0.12);
}

@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  .project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }

  .project-card--featured .project-card__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-lg);
  }
}


/* ─── ABOUT ─── */
.about__layout {
  max-width: 720px;
  margin: 0 auto;
}

#about-heading {
  text-align: center;
}

.about__photo {
  display: flex;
  justify-content: center;
  margin: var(--sp-md) auto;
  width: 200px;
}

.about__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  border: 2px solid rgba(0, 229, 204, 0.2);
}

.about__bio {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.about__strengths {
  display: grid;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.strength {
  display: block;
  padding: var(--sp-md);
  background: var(--grad-card);
  border: 1px solid rgba(0, 229, 204, 0.06);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.strength:hover,
.strength:focus {
  border-color: rgba(0, 229, 204, 0.2);
  transform: translateY(-2px);
}

.strength__icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: var(--sp-xs);
}

.strength__title {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
  color: var(--cyan);
}

.strength__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .about__strengths {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ─── REEL ─── */
.reel__player {
  max-width: 800px;
  margin: 0 auto;
}

.reel__placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  background: var(--grad-card);
  border: 1px dashed rgba(0, 229, 204, 0.15);
  border-radius: var(--radius);
}

.reel__play-btn {
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce);
}

.reel__play-btn:hover {
  transform: scale(1.15);
}

.reel__wip {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ─── CONTACT ─── */
.contact {
  text-align: center;
}

.contact__layout {
  max-width: 600px;
  margin: 0 auto;
}

.contact__text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--sp-md) 0 var(--sp-lg);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
}

.contact__note {
  margin-top: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  opacity: 0.6;
  letter-spacing: 0.02em;
}


/* ─── FOOTER ─── */
.site-footer {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  border-top: 1px solid rgba(0, 229, 204, 0.06);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}


/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee__track {
    animation: none;
  }
}


/* ─── CUSTOM CURSOR (desktop only) ─── */
@media (pointer: fine) {
  body {
    cursor: crosshair;
  }

  a, button, [tabindex="0"] {
    cursor: pointer;
  }
}
