/* ========================================
   SHANNON - Premium Portfolio CSS
   Inspired by big.dk aesthetics
   ======================================== */

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

:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #e8e8e8;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.3);
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.3s;
  --duration-medium: 0.6s;
  --duration-slow: 1s;
  --duration-slower: 1.4s;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* ----- CUSTOM CURSOR ----- */
.cursor,
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover .cursor,
body:hover .cursor-follower {
  opacity: 1;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), 
              height 0.3s var(--ease-out-expo),
              border-color 0.3s ease;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
}

/* ----- HEADER ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--accent);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-title-wrapper {
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.hero-subtitle-wrapper {
  overflow: hidden;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.subtitle-line {
  display: block;
  overflow: hidden;
}

.subtitle-text {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.hero-footer {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
}

.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
}

/* ----- MANIFESTO ----- */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.manifesto-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.manifesto-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--text-subtle);
}

.eyebrow-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.manifesto-content {
  margin-bottom: var(--space-xl);
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.manifesto-text.secondary {
  color: var(--text-muted);
}

.text-reveal {
  display: block;
  overflow: hidden;
}

.text-reveal > span,
.text-reveal {
  display: inline;
}

.manifesto-text .highlight {
  color: var(--accent);
  font-style: italic;
}

.manifesto-footer {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* ----- WORK SECTION ----- */
.work {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg);
}

.work-header {
  max-width: 1400px;
  margin: 0 auto var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-subtle);
  opacity: 0.3;
}

/* ----- PROJECTS GRID ----- */
.projects-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.project-item {
  position: relative;
  opacity: 0;
  transform: translateY(60px);
}

.project-item.large {
  grid-column: span 2;
}

.project-link {
  display: block;
  position: relative;
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.project-item.large .project-image-wrapper {
  aspect-ratio: 21 / 9;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration-medium) var(--ease-out-expo);
}

.project-link:hover .project-image {
  transform: scale(1);
}

.project-link:hover .project-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.project-info {
  padding: var(--space-md) 0;
}

.project-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.project-category,
.project-year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast) ease;
}

.project-link:hover .project-name {
  color: var(--accent);
}

.project-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* Work CTA */
.work-cta {
  max-width: 1400px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}

.cta-link:hover {
  color: var(--accent);
}

.cta-arrow {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.cta-link:hover .cta-arrow {
  transform: translateX(8px);
}

/* ----- FOOTER ----- */
.footer {
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-cta {
  text-align: right;
}

.cta-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-sm);
}

.cta-email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.cta-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-medium) var(--ease-out-expo);
}

.cta-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.copyright,
.footer-line {
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
  }
  
  .projects-grid {
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }
  
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-item.large {
    grid-column: span 1;
  }
  
  .project-item.large .project-image-wrapper {
    aspect-ratio: 16 / 10;
  }
  
  .footer-main {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .footer-cta {
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
  }
  
  .header {
    padding: var(--space-sm) var(--space-lg);
  }
  
  .hero {
    padding: var(--space-lg);
  }
}

/* ----- PAGE LOAD ANIMATION ----- */
.is-loading {
  overflow: hidden;
}

.is-loading .hero-title,
.is-loading .hero-subtitle,
.is-loading .hero-footer {
  opacity: 0;
}