/* =============================================
   RYAN BONYADI — Actor Website
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.7;
}

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

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

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #1a1a1a;
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #4a7c9e;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 64px; /* offset for fixed nav */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center top;
}

.hero-name {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.6);
  line-height: 1.2;
  text-align: left;
}

.hero-text {
  padding: 1.2rem 2rem 2rem;
  text-align: center;
}


.hero-divider {
  width: 60px;
  height: 2px;
  background: #4a7c9e;
  margin: 0 auto 1.5rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}

.hero-icon-link svg {
  fill: #444;
  transition: fill 0.2s;
}

.hero-icon-link:hover {
  border-color: #4a7c9e;
  background: #f5f8fb;
}

.hero-icon-link:hover svg {
  fill: #4a7c9e;
}

/* Instagram gradient icon */
.ig-link {
  border: none;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.ig-link svg {
  fill: #fff;
}

.ig-link:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  opacity: 0.85;
  border: none;
}

.ig-link:hover svg {
  fill: #fff;
}

.imdb-link {
  background: #f5c518;
  border-color: #f5c518;
  width: auto;
  padding: 0 10px;
  border-radius: 6px;
}

.imdb-link:hover {
  background: #e6b800;
  border-color: #e6b800;
}

.imdb-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.02em;
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: #4a7c9e;
  margin-bottom: 3rem;
}

/* =============================================
   BIO
   ============================================= */
.bio-section {
  padding: 6rem 0;
  background: #fafafa;
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.bio-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.bio-photo img {
  width: 100%;
}

/* =============================================
   REELS
   ============================================= */
.reels-section {
  padding: 6rem 0;
  background: #fff;
}

.reels-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 3rem;
}

.reel-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.reel-tab:hover {
  color: #1a1a1a;
}

.reel-tab.active {
  color: #1a1a1a;
  border-bottom-color: #4a7c9e;
}

.reel-panel {
  display: none;
}

.reel-panel.active {
  display: block;
}

.audio-reel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  margin-bottom: 1rem;
}

.audio-reel-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  white-space: nowrap;
  min-width: 180px;
}

.audio-reel audio {
  width: 100%;
  filter: none;
}

.reels-coming-soon {
  font-size: 0.9rem;
  font-weight: 300;
  color: #aaa;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3rem 0;
}

@media (max-width: 600px) {
  .audio-reel {
    flex-direction: column;
    align-items: flex-start;
  }
  .audio-reel audio {
    width: 100%;
  }
  .reel-tab {
    padding: 0.75rem 1rem;
  }
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-section {
  padding: 6rem 0;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-overlay span {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,0.25);
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  filter: grayscale(100%);
  filter: none; /* show full color in lightbox */
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 1rem;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  padding: 6rem 0;
  background: #fafafa;
  text-align: center;
}

.contact-intro {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.contact-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4a7c9e;
  border-bottom: 1px solid #4a7c9e;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: #2c5a7a;
  border-color: #2c5a7a;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
  }

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

  /* Bio */
  .bio-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bio-photo {
    order: -1;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: 60vh;
  }
}
