/* ==========================================================================
   Arthur Tonni® — Editorial Video Editing Portfolio
   Color Palette:
   - Dominant BG (50%): #EADEDA (Warm Editorial Champagne Cream)
   - Secondary BG (20%): #BFB8AD (Subtle Muted Warm Beige)
   - Primary Accent (15%): #823329 (Deep Crimson Wine)
   - Secondary Accent (5%): #8A3033 (Rich Burgundy Red)
   - Neutrals (10%): #998888 (Muted Dusty Rose-Grey)
   - Text Dark: #211C1B (Warm Charcoal Espresso)
   ========================================================================== */

:root {
  --bg-primary: #EADEDA;
  --bg-secondary: #BFB8AD;
  --accent-primary: #823329;
  --accent-secondary: #8A3033;
  --neutral-muted: #998888;
  --text-dark: #211C1B;

  --glass-bg: rgba(234, 222, 218, 0.92);
  --glass-border: rgba(130, 51, 41, 0.18);
  --shadow-subtle: 0 10px 30px rgba(33, 28, 27, 0.08);
  --shadow-card: 0 14px 36px rgba(33, 28, 27, 0.16);
  --shadow-hover: 0 20px 48px rgba(130, 51, 41, 0.24);

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background-color: transparent;
}

/* ==========================================================================
   Ultra HD Background Image Layer (Full HD Crisp Rendering)
   ========================================================================== */
.bg-gradient-wash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: url('../assets/background/backgroundtonni.png'), url('../assets/background/backgroundtonni.jpg'), url('../assets/backgroundtonni.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Page Content Stack Layer */
header, main, footer {
  position: relative;
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  .bg-gradient-wash {
    animation: none;
  }
}

/* Focus Ring for Keyboard Accessibility */
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Common Layout Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Glass UI Navigation
   ========================================================================== */
.header-container {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

/* Calibrated Circular Avatar in Nav */
.nav-avatar-container {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--accent-primary);
  box-shadow: 0 2px 8px rgba(130, 51, 41, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
}

.nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.brand-name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

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

.nav-link {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--accent-primary);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 100px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(130, 51, 41, 0.2);
}

.nav-cta-btn:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(138, 48, 51, 0.3);
}

/* Mobile Hamburger Button */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hamburger-icon {
  width: 26px;
  height: 26px;
}

/* Mobile Dropdown Navigation Menu Overlay */
.mobile-nav-dropdown {
  display: none;
  width: 100%;
  max-width: 420px;
  margin-top: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(33, 28, 27, 0.15);
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-dropdown.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent-primary);
  opacity: 1;
}

.mobile-nav-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(130, 51, 41, 0.25);
  transition: var(--transition-smooth);
}

.mobile-nav-cta-btn:hover {
  background-color: var(--accent-secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 7.5rem;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-height: calc(82vh - 2rem);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.highlight-underline {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
  border-bottom: 3.5px solid var(--accent-primary);
  padding-bottom: 2px;
}

.hero-subhead {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-dark);
  opacity: 0.88;
  max-width: 680px;
  margin: 0 auto 2.25rem auto;
}

.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   CTA Button Styles with Text Transformation & Hover Glow
   ========================================================================== */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.75rem;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(130, 51, 41, 0.28);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.cta-button .btn-text-default,
.cta-button .btn-text-hover {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cta-button .btn-text-hover {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  white-space: nowrap;
}

.cta-button:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  animation: pulseGlow 1.8s infinite;
}

.cta-button:hover .btn-text-default {
  opacity: 0;
  transform: translateY(-20px);
}

.cta-button:hover .btn-text-hover {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(130, 51, 41, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(130, 51, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(130, 51, 41, 0);
  }
}

/* ==========================================================================
   Fading Section Divider (Enhanced Crisp Visibility & Subtle Ambient Glow)
   ========================================================================== */
.section-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem 0 3.5rem 0;
}

.divider-line {
  width: 75%;
  max-width: 720px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(130, 51, 41, 0.78) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(130, 51, 41, 0.35);
}

/* ==========================================================================
   Portfolio Section (Short-Form Content)
   ========================================================================== */
.portfolio-section {
  padding: 2.5rem 0 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-tag {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.highlight-text {
  color: var(--accent-primary);
}

/* Video Grid (3 Vertical Shorts Layout) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.video-card {
  background: rgba(191, 184, 173, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(33, 28, 27, 0.16);
  border: 1px solid rgba(130, 51, 41, 0.22);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover {
  box-shadow: 0 20px 48px rgba(130, 51, 41, 0.24), 0 0 14px rgba(130, 51, 41, 0.22);
  border-color: rgba(130, 51, 41, 0.55);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: var(--bg-secondary);
  overflow: hidden;
  border-radius: 20px;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Micro-Zoom & Subtle Brightness Boost on Hover */
.video-card:hover .portfolio-video {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(130, 51, 41, 0.88);
  backdrop-filter: blur(8px);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.play-icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.video-wrapper:hover .video-play-btn {
  background: var(--accent-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Contact / Final CTA Section & Calibrated Avatar Element
   ========================================================================== */
.contact-section {
  padding: 4rem 0 5rem 0;
  text-align: center;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Calibrated Circular Avatar Above Contact Title */
.contact-avatar-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--accent-primary);
  box-shadow: 0 8px 24px rgba(130, 51, 41, 0.24);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: var(--transition-smooth);
}

.contact-avatar-wrapper:hover .contact-avatar-img {
  transform: scale(1.15);
}

.contact-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.accent-underline {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
  border-bottom: 3.5px solid var(--accent-primary);
  padding-bottom: 2px;
}

.contact-subtitle {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--text-dark);
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.lets-talk-btn {
  font-size: 1.05rem;
  padding: 1.15rem 3.25rem;
}

/* Clean Email Envelope Icon Link */
.email-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0.25rem;
}

.email-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--neutral-muted);
  color: var(--accent-primary);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.email-icon {
  width: 24px;
  height: 24px;
}

.email-icon-link:hover .email-icon-wrapper {
  transform: scale(1.15);
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 22px rgba(130, 51, 41, 0.28);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer-container {
  width: 100%;
  background-color: rgba(191, 184, 173, 0.5);
  backdrop-filter: blur(8px);
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(130, 51, 41, 0.1);
  position: relative;
}

.footer-content {
  text-align: center;
}

.copyright-text {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* ==========================================================================
   Scroll-Triggered Fade-In Animations (Intersection Observer)
   ========================================================================== */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    top: 0.75rem;
  }

  .nav-pill {
    padding: 0.5rem 0.85rem;
  }

  .nav-links, .desktop-only {
    display: none !important;
  }

  .mobile-hamburger-btn {
    display: flex !important;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-section {
    padding-top: 6rem;
    min-height: auto;
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .hero-subhead {
    font-size: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.92rem;
  }

  .lets-talk-btn {
    padding: 1rem 2.2rem;
  }
}
