/* ============================================================
   Editorial Theme - High-End Minimalist Agency Aesthetic
   ============================================================ */

:root {
  /* Editorial Palette (Light Mode Default) */
  --bg-color: #F4F4F0; 
  --text-primary: #111111; 
  --text-secondary: #555555;
  --accent: #A89F91; 
  --card-bg: #E8E8E4;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

[data-theme="dark"] {
  --bg-color: #121212; 
  --text-primary: #EDEDED; 
  --text-secondary: #A0A0A0;
  --accent: #8E8476; 
  --card-bg: #1A1A1A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---------- Header ---------- */
.editorial-header {
  padding: 40px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Theme Switch Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.theme-toggle-btn:hover {
  color: var(--text-primary);
}


.brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.contact-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--text-primary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.contact-link:hover::after { transform: translateX(0); }

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  position: relative;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 40px;
}

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  font-weight: 300;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--text-secondary);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 10px; height: 100%;
  background: var(--text-primary);
  animation: scrollAnim 2s infinite linear;
}

@keyframes scrollAnim {
  0% { transform: translateX(-10px); }
  100% { transform: translateX(60px); }
}

/* ---------- Asymmetric Layout ---------- */
.asymmetric-container {
  display: flex;
  padding: 0 5vw 120px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Left Column (Sticky) */
.sticky-column {
  width: 30%;
  padding-right: 40px;
}

.table-of-contents {
  position: sticky;
  top: 120px; /* Offset from top */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  width: fit-content;
}
.toc-link.active {
  color: var(--text-primary);
  font-weight: 500;
}
.toc-link::before {
  content: '—';
  position: absolute;
  left: -24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.toc-link.active::before { opacity: 1; }

/* Right Column (Scrolling Content) */
.content-column {
  width: 70%;
  padding-top: 20px;
}

.content-section {
  margin-bottom: 160px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 48px;
  color: var(--text-primary);
}

/* Content Typography */
.prose .lead {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 32px;
  font-weight: 400;
}

.prose p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 700px;
}

/* Experience */
.experience-block {
  margin-bottom: 64px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 32px;
}

.exp-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exp-date { color: var(--accent); }

.exp-role {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.exp-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
}

/* Projects */
.project-card {
  margin-bottom: 80px;
}

.proj-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 32px;
  transition: transform 0.5s ease;
  filter: grayscale(80%) contrast(120%);
}
.project-card:hover .proj-image {
  transform: scale(0.98);
  filter: grayscale(0%) contrast(100%);
}

.editorial-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 48px;
  filter: grayscale(80%) contrast(120%);
  transition: filter 0.5s ease;
}
.editorial-image:hover {
  filter: grayscale(0%) contrast(100%);
}

.proj-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.proj-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.proj-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 700px;
}

.editorial-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.editorial-btn:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

.skill-category h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 16px;
}

.skill-category p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.editorial-footer {
  background: var(--text-primary);
  color: var(--bg-color);
  padding: 120px 5vw 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 120px;
  flex-wrap: wrap;
  gap: 64px;
}

.footer-cta {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.massive-link {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}
.massive-link:hover { opacity: 0.7; }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  color: var(--bg-color);
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-link:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 14px;
  opacity: 0.5;
}

/* ---------- Smooth Reveal Animations ---------- */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1), transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-text.active, .reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .asymmetric-container {
    flex-direction: column;
  }
  .sticky-column {
    width: 100%;
    position: static;
    margin-bottom: 64px;
    padding-right: 0;
  }
  .table-of-contents {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .toc-link::before { display: none; }
  .content-column {
    width: 100%;
  }
  .hero-title { font-size: 3.5rem; }
}
