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

:root {
  --primary: #606746;
  --background: #0f0f0f;
  --secondary: #dcdccf;
  --accent: #a2a87b;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100; /* lowered so it won't cover footer links */
  background: linear-gradient(to bottom, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0) 100%);
  transition: background 0.3s ease;
}

nav.scrolled {
  background: rgba(15,15,15,0.98);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.3s;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  position: relative;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* center main content vertically */
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 0 2rem; /* no extra top padding */
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(96,103,70,0.1) 0%, transparent 70%);
  opacity: 0;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* Home hero: refined to avoid harsh seam with fixed footer */
.hero--home {
  min-height: calc(100vh - 140px);
  padding-bottom: 120px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--secondary);
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards 0.5s;
}

.hero-tagline {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards 1s;
}

.cta-button {
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--secondary);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards 1.5s;
  text-decoration: none;
  display: inline-block;
  margin: 0 auto;
}

.cta-button:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(96,103,70,0.3);
}

/* Sections */
.page-section { min-height: 100vh; padding: 8rem 4rem 4rem; }

/* About spacing */
.page-about { padding-top: 10rem; }

.section-title { font-size: 4rem; margin-bottom: 1rem; text-align: center; }
.section-subtitle { text-align: center; color: var(--accent); font-size: 1rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 3rem; }

/* About content */
.about-content { max-width: 900px; margin: 0 auto; text-align: center; }
.about-intro { font-size: 1.8rem; font-family: 'Cormorant Garamond', serif; line-height: 1.8; margin-bottom: 2rem; }
.about-text { font-size: 1.1rem; line-height: 1.9; color: rgba(220,220,207,0.8); margin-bottom: 1.5rem; }

/* Headshot */
.about-headshot {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 3rem;
}
.about-headshot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Portfolio selection */
.portfolio-selection { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.portfolio-selection .section-title, .portfolio-selection .section-subtitle { width: 100%; text-align: center; }

.selection-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem;
  max-width: 1200px; width: 100%; margin: 2rem auto 0;
}

.selection-card {
  position: relative; height: 500px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(96,103,70,0.3);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  cursor: pointer; transition: all 0.5s ease; overflow: hidden;
  opacity: 0; transform: translateY(30px); text-decoration: none; color: inherit;
}

.selection-card.visible { opacity: 1; transform: translateY(0); }
.selection-card:nth-child(1) { transition-delay: 0.2s; }
.selection-card:nth-child(2) { transition-delay: 0.4s; }

.selection-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(96,103,70,0.2) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}

.selection-card:hover::before { opacity: 1; }
.selection-card:hover { transform: translateY(-10px); border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(96,103,70,0.3); }

.selection-icon { font-size: 4rem; margin-bottom: 1rem; color: var(--accent); transition: all 0.5s ease; }
.selection-card:hover .selection-icon { transform: scale(1.1); }

.selection-title { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; margin-bottom: 0.5rem; text-align: center; }
.selection-description { font-size: 1rem; color: rgba(220,220,207,0.7); text-align: center; padding: 0 2rem; letter-spacing: 0.05em; }

/* Portfolio grid */
.portfolio-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 8rem; }

.project-card { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.project-card.visible { opacity: 1; transform: translateY(0); }

.project-video {
  width: 100%; height: 600px; background: #1a1a1a; margin-bottom: 2rem;
  border: 1px solid rgba(96,103,70,0.2); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem; letter-spacing: 0.1em;
}

.project-info { max-width: 800px; margin: 0 auto; }
.project-title { font-size: 2.2rem; margin-bottom: 0.75rem; color: var(--secondary); }
.project-description { font-size: 1.05rem; line-height: 1.8; color: rgba(220,220,207,0.85); margin-bottom: 1.5rem; }
.project-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tag { padding: 0.4rem 1.2rem; background: rgba(96,103,70,0.2); border: 1px solid var(--primary);
  font-size: 0.85rem; letter-spacing: 0.1em; color: var(--accent); }

/* Footer */
footer {
  margin-top: 3rem; padding: 3rem 2rem; border-top: 1px solid rgba(96,103,70,0.15);
  text-align: center; width: 100%; position: relative; z-index: 1000; background: transparent;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--accent); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.1em; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary); }
.copyright { font-size: 0.85rem; color: rgba(220,220,207,0.5); letter-spacing: 0.1em; }

/* Home fixed footer (visible without scroll) */
.home-footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 1.25rem 2rem;
  border-top: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.95), rgba(15,15,15,0.6));
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* Animations */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

/* Resume page */
.page-resume { padding-top: 10rem; }

.resume-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.resume-link {
  display: inline-block;
  padding: 1.25rem 2rem;
  margin-top: 2rem;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.resume-link:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(96,103,70,0.3);
}

.resume-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.resume-link:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

/* Project images and videos */
.project-image {
  width: 100%; margin-bottom: 2rem;
  border: 1px solid rgba(96,103,70,0.2);
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 750px;
}

.project-image img {
  max-width: 80%;
  max-height: 700px;
  height: auto;
  display: block;
  object-fit: contain;
}

.project-image video {
  max-width: 45%;
  max-height: 480px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.project-image iframe {
  max-width: 45%;
  height: 400px;
  display: block;
  margin-bottom: 1rem;
  border: none;
}

.instagram-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 2rem;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid rgba(96,103,70,0.2);
}

.instagram-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-highlights {
  margin: 1.5rem 0;
  padding-left: 1.8rem;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--secondary);
}

.project-highlights li {
  position: relative;
  margin-bottom: 0.9rem;
  padding-left: 0.5rem;
}

.project-highlights li:before {
  content: "▹";
  position: absolute;
  left: -1.5rem;
  color: var(--accent);
  font-weight: bold;
}

.project-highlights strong {
  color: var(--accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  nav { 
    padding: 1rem 1.5rem; 
    flex-direction: row;
    justify-content: space-between;
  }
  .logo { font-size: 1.2rem; }
  .nav-links { 
    gap: 1rem; 
    font-size: 0.75rem;
  }
  .nav-links a { letter-spacing: 0.1em; }
  
  .hero-logo { 
    font-size: 2.5rem; 
    letter-spacing: 0.15em;
    line-height: 1.2;
  }
  .hero-tagline { 
    font-size: 0.9rem; 
    letter-spacing: 0.2em;
  }
  .cta-button { 
    padding: 0.875rem 2rem; 
    font-size: 0.8rem;
  }
  
  .section-title { font-size: 2rem; }
  .page-section { padding: 6rem 1.5rem 2rem; }
  .page-about { padding-top: 8rem; }
  .page-resume { padding-top: 8rem; }
  
  /* About page mobile */
  .about-headshot {
    max-width: 300px;
    margin-bottom: 2rem;
  }
  .about-intro { 
    font-size: 1.3rem; 
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .about-text { 
    font-size: 1rem; 
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }
  .about-content {
    padding: 0 0.5rem;
  }
  
  /* Instagram video containers on mobile */
  .instagram-container {
    max-width: 280px;
  }
  
  .project-video { height: 300px; }
  .selection-grid { grid-template-columns: 1fr; gap: 2rem; }
  .selection-card { height: 400px; }
  
  .hero--home { 
    min-height: 100vh;
    padding: 6rem 1.5rem 160px;
    justify-content: center;
  }
  
  .home-footer {
    padding: 1rem 1.5rem;
  }
  .footer-links { 
    gap: 1.25rem; 
    font-size: 0.85rem;
  }
  .copyright { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-logo { 
    font-size: 2rem; 
    letter-spacing: 0.1em;
  }
  .hero-tagline { 
    font-size: 0.8rem; 
    letter-spacing: 0.15em;
  }
  .cta-button { 
    padding: 0.75rem 1.75rem; 
    font-size: 0.75rem;
  }
  .nav-links a { font-size: 0.7rem; }
  .logo { font-size: 1.1rem; }
  
  .section-title { font-size: 1.75rem; }
  .about-intro { font-size: 1.15rem; }
  .about-text { font-size: 0.95rem; }
  .about-headshot { max-width: 250px; }
}
