/* ============================================
   SHONA CHARLTON — Portfolio Redesign
   Clean, white, minimal aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light-grey: #f0f0f0;
  --mid-grey: #999999;
  --dark-grey: #333333;
  --black: #111111;
  --accent: #1a1a1a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1400px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-grey);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.site-nav .logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.site-nav .logo span {
  font-weight: 300;
  color: var(--mid-grey);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-grey);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

/* --- Landing Page Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero-name .name-first {
  font-weight: 300;
  font-style: normal;
}

.hero-name .name-middle {
  font-weight: 300;
  font-style: italic;
  color: var(--mid-grey);
}

.hero-name .name-last {
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-grey);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-tagline a {
  color: var(--dark-grey);
  transition: var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.hero-tagline a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

.hero-tagline .dot {
  margin: 0 0.5rem;
  color: var(--light-grey);
}



/* Subtle decorative line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--light-grey), transparent);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

/* --- Portfolio Page Layout --- */
.page-wrapper {
  padding-top: 64px; /* nav height */
}

.page-header {
  padding: 4rem 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  border-radius: 2px;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.portfolio-item .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.portfolio-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .thumb img {
  transform: scale(1.03);
}

.portfolio-item .item-info {
  padding: 1.25rem 1.5rem;
}

.portfolio-item .item-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.portfolio-item .item-info p {
  font-size: 0.8rem;
  color: var(--mid-grey);
  font-weight: 300;
}

/* --- About Section (for landing page) --- */
.about-brief {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  text-align: center;
}

.about-brief p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark-grey);
  font-weight: 300;
}

.about-brief .connect-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.about-brief .connect-link:hover {
  color: var(--black);
  border-color: var(--black);
}

/* --- Showreel / Featured Section --- */
.featured-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.featured-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--off-white);
  border-radius: 2px;
  overflow: hidden;
}

.featured-video video,
.featured-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}

.featured-video:hover .play-overlay {
  opacity: 1;
}

.featured-video .play-overlay svg {
  width: 48px;
  height: 48px;
  fill: white;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--light-grey);
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--mid-grey);
  letter-spacing: 0.08em;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.site-footer .footer-links a {
  font-size: 0.75rem;
  color: var(--mid-grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.site-footer .footer-links a:hover {
  color: var(--black);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered fade-in for portfolio items */
.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--light-grey);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-disciplines {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-disciplines a {
    width: 200px;
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .page-header {
    padding: 3rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }
}

/* --- Footer Connect --- */
.footer-connect {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.footer-connect .connect-label {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dark-grey);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.footer-connect .social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-connect .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--dark-grey);
  transition: all 0.25s ease;
}

.footer-connect .social-icons a:hover {
  color: #111;
  border-color: #111;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--mid-grey);
  letter-spacing: 0.02em;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
