/* ==========================================================================
   Jakob Emanuele - Portfolio Stylesheet
   Precision match of alexdlevin.com layout, typography, & interaction design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-muted: #787878;
  --text-light: #ababab;
  --accent-color: #000000;
  --border-color: #eaeaea;
  --overlay-bg: rgba(14, 14, 14, 0.65);
  
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-nav: 'Crimson Text', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --max-width: 1400px;
  --content-padding: 40px;
}

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

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

/* ==========================================================================
   Header & Split Navigation
   ========================================================================== */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 3.5rem auto 3.5rem auto;
  padding: 0 var(--content-padding);
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left, .header-right {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 24px;
}

.site-title {
  margin: 0;
  line-height: 1.15;
}

.site-title a {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  display: block;
}

.site-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

.nav-link {
  font-family: var(--font-nav);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  font-size: 20px;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.site-main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding) 90px var(--content-padding);
  flex: 1 0 auto;
}

.tab-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-view.active {
  display: block;
}

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

/* ==========================================================================
   Home / Reel Section
   ========================================================================== */
.reel-container {
  max-width: 1140px;
  margin: 0 auto;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #0b0b0b;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.video-frame-wrapper iframe,
.video-frame-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #111;
  transition: opacity 0.4s ease;
}

.video-poster-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.play-button-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.video-poster-overlay:hover .play-button-circle {
  transform: scale(1.08);
  background: #ffffff;
}

.play-button-circle svg {
  width: 28px;
  height: 28px;
  fill: #111;
  margin-left: 4px;
}

.reel-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Project Index Grids (Commercial, Documentary, Narrative)
   ========================================================================== */
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 32px;
  width: 100%;
}

.project-card {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 cinematic ratio */
  background-color: #141414;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.project-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.04);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-title {
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.project-card-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   About Section & Resume Integration
   ========================================================================== */
.about-container {
  max-width: 920px;
  margin: 0 auto;
}

.about-hero-image-wrapper {
  max-width: 760px;
  margin: 0 auto 48px auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  background-color: #f7f7f7;
}

.about-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.about-header-text {
  text-align: center;
  margin-bottom: 40px;
}

.about-name {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}

.about-tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.about-bio {
  font-family: var(--font-nav);
  font-size: 21px;
  line-height: 1.7;
  color: #2b2b2b;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.about-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 60px 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn-primary:hover {
  background-color: #333;
  border-color: #333;
}

.btn-outline {
  background-color: transparent;
  color: #111;
  border: 1px solid #ccc;
}

.btn-outline:hover {
  border-color: #111;
  background-color: #f9f9f9;
}

/* Resume Layout Sections */
.resume-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 40px 0;
}

.resume-section-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #111;
}

.resume-item {
  margin-bottom: 32px;
}

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

.resume-item-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.resume-item-org {
  font-family: var(--font-nav);
  font-size: 17px;
  font-style: italic;
  color: var(--text-muted);
}

.resume-item-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.resume-item ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.resume-item li {
  font-size: 14.5px;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.55;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skill-category h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 10px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f2f2f2;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #333;
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.94);
  z-index: 500;
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: modalSlide 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes modalSlide {
  from {
    transform: translateY(20px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: #ffffff;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.modal-video-wrapper iframe,
.modal-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-details {
  padding: 36px 40px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-meta span strong {
  color: #111;
  margin-right: 4px;
}

.modal-description {
  font-family: var(--font-nav);
  font-size: 19px;
  line-height: 1.65;
  color: #333;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px var(--content-padding) 60px var(--content-padding);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-email {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #333;
  display: inline-block;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #000;
}

.footer-phone {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-social-link {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  color: #111;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .site-header {
    margin: 2rem auto 2.5rem auto;
  }
  
  .header-left, .header-right {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-container {
    justify-content: space-between;
  }
  
  .header-center {
    padding: 0;
    text-align: left;
  }
  
  .site-title a {
    font-size: 24px;
  }
  
  .site-tagline {
    font-size: 10px;
  }
  
  .index-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .modal-details {
    padding: 24px;
  }
  
  .modal-title {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  :root {
    --content-padding: 20px;
  }
  
  .site-title a {
    font-size: 20px;
  }
  
  .about-bio {
    font-size: 17px;
  }
  
  .resume-item-header {
    flex-direction: column;
    gap: 4px;
  }
}
