/* ============================================
   Garrett Palmer — Theatre Design Portfolio
   Black & Gold Theme
   ============================================ */

/* --- Reset & Variables --- */

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

:root {
  --color-bg:        #0a0a0a;
  --color-surface:   #141414;
  --color-surface-2: #1c1c1c;
  --color-border:    #2a2a2a;
  --color-text:      #e8e8e8;
  --color-text-dim:  #888;
  --color-gold:      #c9a84c;
  --color-gold-light:#d4b95f;
  --color-gold-dark: #b08f3a;
  --font-heading:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:       1080px;
  --nav-height:      72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold-light);
}

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

/* --- Navigation --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.35em;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav-link.active {
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.7) 80%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

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

/* --- Main Content --- */

.content {
  padding: 100px 24px;
  min-height: 60vh;
}

.page-content {
  padding-top: calc(var(--nav-height) + 60px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Typography in Content --- */

.container h1 {
  font-family: var(--font-heading);
  font-size: 2.4em;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.container h2 {
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.container h3 {
  font-family: var(--font-heading);
  font-size: 1.3em;
  font-weight: 600;
  color: var(--color-gold);
  margin-top: 32px;
  margin-bottom: 12px;
}

.container p {
  font-size: 1.05em;
  color: var(--color-text-dim);
  margin-bottom: 20px;
  line-height: 1.8;
}

.container strong {
  color: var(--color-text);
  font-weight: 600;
}

.container em {
  font-style: italic;
  color: var(--color-text-dim);
}

.container ul,
.container ol {
  text-align: left;
  margin: 16px 0 24px 0;
  padding-left: 24px;
  color: var(--color-text-dim);
  line-height: 1.8;
}

.container li {
  margin-bottom: 8px;
}

.container li::marker {
  color: var(--color-gold);
}

/* --- Decorative Divider --- */

.content-divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 48px auto;
}

/* --- Portfolio Grid --- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-4px);
}

.portfolio-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.portfolio-card-body .card-role {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.portfolio-card-body p {
  font-size: 0.95em;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin: 0;
}

.portfolio-card-body .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.portfolio-card-body .card-tag {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* --- About Page --- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-top: 20px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.about-text h1 {
  margin-bottom: 8px;
}

.about-text .about-role {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.about-text p {
  text-align: left;
}

/* --- Resume Page --- */

.resume-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.resume-top h1 {
  margin: 0;
}

.resume-download {
  display: inline-block;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 10px 24px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.resume-download:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.resume-section {
  margin-bottom: 48px;
}

.resume-section h2 {
  font-size: 1.5em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-top: 0;
}

.resume-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.resume-item:last-child {
  border-bottom: none;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.resume-item-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.resume-item-header .resume-venue {
  font-size: 0.9em;
  font-weight: 400;
  color: var(--color-gold);
  margin-left: 8px;
}

.resume-item-header .resume-date {
  font-size: 0.85em;
  color: var(--color-text-dim);
}

.resume-item p {
  font-size: 0.95em;
  color: var(--color-text-dim);
  margin: 0;
  text-align: left;
}

.resume-item-roles {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.resume-roles {
  font-size: 0.95em;
  color: var(--color-text-dim);
}

.resume-director {
  font-size: 0.9em;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.resume-skill {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 6px;
}

/* --- Contact Page --- */

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

.contact-content h1 {
  margin-bottom: 8px;
}

.contact-content .contact-role {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.contact-content p {
  font-size: 1.05em;
  color: var(--color-text-dim);
  margin-bottom: 32px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.3em;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  margin-bottom: 40px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.contact-social a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-social a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.05);
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 80px 24px;
  background: var(--color-surface);
}

.footer-inner {
  text-align: center;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-email {
  display: inline-block;
  font-size: 1.05em;
  color: var(--color-gold);
  margin-bottom: 32px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.footer-email:hover {
  border-bottom-color: var(--color-gold);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.footer-social a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-social a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.footer-copy {
  font-size: 0.8em;
  color: var(--color-text-dim);
}

/* --- 404 Page --- */

.error-page {
  text-align: center;
  padding: 120px 24px 80px;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 5em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.error-page p {
  font-size: 1.1em;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

.error-page a {
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 1em;
  }

  .hero {
    min-height: 500px;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .content {
    padding: 60px 20px;
  }

  .page-content {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .container h1 {
    font-size: 1.8em;
  }

  .container h2 {
    font-size: 1.4em;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-portrait {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-text p {
    text-align: left;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 4px;
  }

  .site-footer {
    padding: 48px 20px;
  }

  .footer-heading {
    font-size: 1.4em;
  }

  .contact-social {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 0.8em;
  }

  .portfolio-card-body {
    padding: 18px;
  }
}
