/* ========================================
   Jersey Films 2nd Avenue - Styles
   ======================================== */

/* CSS Variables */
:root {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-text: #fafafa;
  --color-text-muted: #888888;
  --color-accent: #ffffff;
  --color-border: #222222;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.7;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.nav-link-cta {
  color: var(--color-text);
  padding: 10px 20px;
  border: 1px solid var(--color-text);
  transition: all var(--transition);
}

.nav-link-cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 24px;
  font-weight: 500;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-secondary));
}

.hero-content {
  max-width: 800px;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: inline-block;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1px solid var(--color-text);
  transition: all var(--transition);
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons .hero-cta {
  animation: none;
}

button.hero-cta {
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 120px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -1px;
}

/* ========================================
   Work Section
   ======================================== */
.work-section {
  background: var(--color-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: block;
}

.project-card:hover {
  transform: scale(1.02);
  z-index: 2;
}

.project-card.hidden {
  display: none;
}

/* Bento grid sizing */
.project-card.size-large {
  grid-column: span 7;
  grid-row: span 3;
}

.project-card.size-medium {
  grid-column: span 5;
  grid-row: span 3;
}

.project-card.size-wide {
  grid-column: span 6;
  grid-row: span 2;
}

.project-card.size-tall {
  grid-column: span 5;
  grid-row: span 4;
}

.project-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card.no-crop .project-image img {
  object-fit: contain;
  background: var(--color-bg-secondary);
}

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

/* Overlay gradient */
.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 70%
  );
  transition: opacity var(--transition);
}

.project-card:hover .project-image::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card.size-wide .project-title,
.project-card.size-medium .project-title {
  font-size: 20px;
}

.project-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: var(--color-bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Team Section */
.team-section {
  margin-top: 48px;
}

.team-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.team-grid {
  display: flex;
  gap: 32px;
}

.team-member {
  text-align: center;
}

.team-image {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--color-bg);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.team-member:hover .team-image img {
  transform: scale(1.05);
}

.team-name {
  font-size: 16px;
  font-weight: 500;
}

.team-role {
  font-size: 12px;
  color: #999;
  opacity: 0.7;
  margin-top: 4px;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
  background: var(--color-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.news-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: #333;
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  max-height: 120px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-title {
  font-size: 18px;
  font-weight: 500;
  margin: 12px 0;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.news-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.news-link:hover {
  opacity: 0.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: var(--color-bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-text {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact-details p {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-details strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.mailing-list-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 1px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.mailing-list-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 16px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.submit-btn:hover {
  opacity: 0.9;
}

/* ========================================
   Mailing List Modal
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 48px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-form .submit-btn {
  width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-links h4,
.footer-social h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.footer-links a,
.social-links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--color-text);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.instagram-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px;
  }

  .project-card.size-large,
  .project-card.size-tall {
    grid-column: span 6;
    grid-row: span 3;
  }

  .project-card.size-medium,
  .project-card.size-wide {
    grid-column: span 6;
    grid-row: span 2;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-grid {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .project-card.size-large,
  .project-card.size-medium,
  .project-card.size-wide,
  .project-card.size-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .project-title {
    font-size: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

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

  .hero {
    padding: 100px 24px;
  }

  .hero-title {
    font-size: 40px;
  }
}
