/* ===========================================
   EVAN GILMAN PORTFOLIO - STYLES
   =========================================== */

/* CSS Variables */
:root {
  --color-bg: #080c08;
  --color-bg-elevated: #0d120d;
  --color-bg-card: #131a13;
  --color-text: #f5f5f5;
  --color-text-muted: #8a9a8a;
  --color-text-dim: #4a5a4a;
  --color-accent: #4ade80;
  --color-accent-hover: #86efac;
  --color-accent-dim: #22c55e;
  --color-border: #1e2e1e;
  
  /* Gradient colors */
  --gradient-start: #080c08;
  --gradient-mid: #0a1a0a;
  --gradient-end: #081008;
  
  --font-display: 'Red Rose', serif;
  --font-body: 'Instrument Sans', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --max-width: 1200px;
  --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-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: 
    radial-gradient(ellipse at 0% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(74, 222, 128, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(22, 101, 52, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(8, 12, 8, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    background: #080c08 !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    font-size: 1.5rem;
    color: var(--color-text)
  }
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
main {
  padding-top: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-sm);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 2rem;
  color: var(--color-text-muted);
  max-width: 1000px;
  text-wrap: balance;
}

.reel-wrapper {
  width: 100%;
  max-width: 900px;
}

.reel-label {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  margin-top: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: var(--color-bg-card);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================================
   FEATURED SECTION
   =========================================== */
.featured {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
   align-items: stretch;
}

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

.featured-item {
  background: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
}

.featured-embed {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  position: relative;
}

.featured-embed .video-container {
   position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
 }

.featured-embed.vertical,
.featured-embed.instagram {
 height: 600px;
  width: 100%;
  overflow: hidden; }

.featured-embed.vertical iframe {
  width: 100%;
  height: 100%;
  border: none;
 }


.featured-embed .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
 
}
.featured-embed.instagram {
  height: 350px;
  overflow: hidden;
}

.featured-embed.instagram iframe,
.featured-embed.instagram .instagram-media {
  width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
}

/* Social embed styling */
.featured-embed blockquote {
  margin: 0 auto !important;
}

.featured-info {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.featured-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.featured-role {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-all-btn {
  display: inline-block;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

.view-all-btn:hover {
  color: var(--color-accent-hover);
}

/* ===========================================
   CLIENTS SECTION
   =========================================== */
.clients {
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clients-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-md);
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.clients-logos img {
  width: 100px;
  height: 40px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.clients-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ===========================================
   CONTENT PAGE
   =========================================== */
.content-page {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-embed .video-container {
  width: 100%;
}
.page-header {
  margin-bottom: var(--spacing-lg);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 1000px;
}

.content-role {
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.content-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.content-section.hidden {
  display: none;
}

.content-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--color-border);
}

.twitter-container {
  max-width: 550px;
  background: var(--color-bg-card);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1);
  padding: var(--spacing-sm); /* gives the embed some breathing room */
}

.twitter-container .twitter-tweet {
  margin: 0 !important;
}

.content-item.vertical-card {
  max-width: 280px;
  width: 100%;
}

.content-item.vertical-card .content-embed {
  height: 450px; /* default for YouTube Shorts */
  min-height: auto;
  overflow: hidden;
  position: relative;
   padding: 0;
  background: #000;
  padding: 0 !important;
  margin: 0 !important;
}

/* YouTube Shorts */
.content-item.vertical-card iframe {
  width: 100%;
  height: 100%;
  border: none;
   transform: scale(1.1);
}


/* TikTok - needs special handling because it injects its own size */
.content-item.vertical-card:has(.tiktok-embed) {
  max-width: 290px;
}

.content-item.vertical-card:has(.tiktok-embed) .content-embed {
  height: 500px; /* or 580px, whichever looks better */
  position: relative;
}

.content-item.vertical-card .tiktok-embed {
  margin: 0 !important;
  max-width: 120% !important;
  min-width: 120% !important;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0.899);
  transform-origin: top center;
}

/* Instagram Reels */
.content-item.vertical-card .instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 100% !important;
}


@media (max-width: 1000px) {
  .content-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .content-section {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  /* Center and widen vertical cards on mobile */
  .content-item.vertical-card {
    max-width: 85%;
    width: 100%;
    margin: 0 auto;
  }
}

.content-item {
  background: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.content-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
}

.content-item.large {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .content-item.large {
    grid-column: span 1;
  }
}

.content-item.hidden {
  display: none;
}

.content-embed {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
}

.content-embed blockquote {
  margin: 0 auto !important;
}

.content-info {
  padding: var(--spacing-sm);
}

.content-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-xs);
}

.content-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.content-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===========================================
   ABOUT PAGE
   =========================================== */
.about-page {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.bio-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 800px) {
  .bio-section {
    grid-template-columns: 1fr;
  }
}

.bio-image img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-top: 75px;
}

.bio-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
  margin-top: 60px;
}

.bio-lead {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.bio-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.bio-cta {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.btn-primary {
  padding: 0.8rem 1.5rem;
  background: var(--color-accent);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
}

/* BTS Carousel */
.bts-section {
  margin-bottom: var(--spacing-xl);
}

.bts-carousel {
  padding-bottom: var(--spacing-lg);
}

.bts-carousel .swiper-slide {
  width: 350px;
  height: auto;
}

.bts-carousel .swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.bts-caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
  text-align: center;
}

/* Swiper customization */
.swiper-button-prev,
.swiper-button-next {
  color: var(--color-text) !important;
  background: var(--color-bg-card);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1rem !important;
}

.swiper-pagination-bullet {
  background: var(--color-text-muted) !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent) !important;
}

/* Previous Work / Credits */
.previous-section {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.previous-intro {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--spacing-md);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-sm);
}

.credit-item {
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--color-bg-card);
  border-radius: 8px;
}

.credit-item img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--spacing-xs);
  filter: grayscale(50%);
}

.credit-item span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.credit-item small {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* ===========================================
   CONTACT PAGE
   =========================================== */
.contact-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

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

.contact-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-sm);
    white-space: nowrap;
}

.contact-content > p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--color-bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-weight: 600;
  color: var(--color-accent);
}

.contact-location {
  color: var(--color-text-muted);
}

.contact-location .availability {
  margin-top: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-accent);
}
.video-container.vertical {
  padding-bottom: 177.78%; /* 9:16 aspect ratio */
  max-width: 350px; /* so it doesn't get huge on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer > * {
  flex: 1;
}

.footer > p {
  text-align: left;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.footer > a {
  text-align: right;
}

@media (max-width: 500px) {
  .footer {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .footer > p,
  .footer > a {
    text-align: center;
  }
}
@media (max-width: 500px) {
  .footer {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}
/* Photography page css */ 
.photography-page {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo-grid {
  columns: 3;
  column-gap: var(--spacing-sm);
}

.photo-grid img {
  width: 100%;
  margin-bottom: var(--spacing-sm);
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  break-inside: avoid;
}

.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.2);
}

@media (max-width: 900px) {
  .photo-grid {
    columns: 2;
  }
}

@media (max-width: 500px) {
  .photo-grid {
    columns: 1;
  }
}
/*light box to make pictures clickable to englarge*/ 
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 2000;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

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

.photo-grid img {
  cursor: zoom-in;
}
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  max-width: 80%;
}
.credit-link {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.credit-link:hover {
  color: var(--color-accent);
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.credit-link {
  color: var(--color-text-dim);
  font-size: 0.7rem;
  transition: color var(--transition);
}

.credit-link:hover {
  color: var(--color-accent);}