/* ==========================================================================
   DESIGN SYSTEM - Curation for Video Editor (Warm Cinematic / Editorial)
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #121212;
  --bg-secondary: #181715;
  --accent-color: #d4c5b9;
  --accent-dark: #b8a89b;
  --text-primary: #f4ebe1;
  --text-muted: #9c948c;
  --border-color: #2a2825;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s 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-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Utility Containers */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.5rem, 5vw);
  padding-right: max(1.5rem, 5vw);
}

/* Typography Helper */
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.icon-play {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(18, 18, 18, 0.95);
  height: 70px;
}

.header-container {
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.nav-link.btn-cta {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

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

/* Mobile Toggle Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: contrast(1.05) brightness(0.95);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 50%, var(--bg-primary) 95%),
              linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-video-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  transform: translateZ(0); /* Hardware acceleration for Android */
  backface-visibility: hidden;
}

.hero-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

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

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 5;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.video-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.75);
}

.video-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.hero-play-btn {
  width: 72px;
  height: 72px;
  background-color: rgba(244, 235, 225, 0.95);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateZ(0);
  backface-visibility: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hero-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

/* Hover States for Hero Play */
.video-cover:hover .video-cover-img {
  transform: scale(1.02);
}

.video-cover:hover .video-cover-overlay {
  background-color: rgba(18, 18, 18, 0.35);
}

.video-cover:hover .hero-play-btn {
  transform: scale(1);
  background-color: var(--accent-color);
  color: var(--bg-primary);
  box-shadow: 0 15px 40px rgba(212, 197, 185, 0.35);
}

/* Global Mobile/Android optimization styles */
a, button, select, input, textarea, .work-card-media, .video-cover {
  -webkit-tap-highlight-color: transparent; /* Remove tap flash on Android/Chrome */
}

.chat-container {
  position: relative;
  width: 300px; /* Adjust as needed */
  margin: 20px auto; /* Center it below the PR UI */
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.chat-bubble {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px; /* Space for the pointer */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble .chat-text {
  margin: 0;
}

.chat-pointer {
  position: absolute;
  bottom: -15px; /* Position it below the bubble */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--border-color); /* Matches border color */
}

.chat-bubble::after { /* Optional: Inner bubble pointer for depth */
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--bg-secondary); /* Matches bubble background */
}

/* Example of showing the second message */
.chat-container.show-second-message .chat-bubble .chat-text::after {
  content: 'Open the project folder to see what's inside';
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .chat-container {
    width: 90%;
    margin: 15px auto;
  }
  .chat-bubble {
    padding: 10px;
  }
  .chat-pointer {
    border-top: 12px solid var(--border-color);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    bottom: -12px;
  }
  .chat-bubble::after {
    border-top: 12px solid var(--bg-secondary);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    bottom: -11px;
  }
}


/* ==========================================================================
   WORKS SECTION & FILTER
   ========================================================================== */

.works-section {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.works-section .container {
  max-width: 1600px;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.filter-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--accent-color);
  font-weight: 500;
}

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

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.work-card-media {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.9) brightness(0.95);
}

.work-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.play-indicator {
  width: 54px;
  height: 54px;
  background-color: rgba(244, 235, 225, 0.9);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.play-indicator svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

/* Hover States for Card */
.work-card-media:hover .work-card-img {
  transform: scale(1.04);
}

.work-card-media:hover .work-card-overlay {
  opacity: 1;
  background-color: rgba(18, 18, 18, 0.65);
}

.work-card-media:hover .play-indicator {
  transform: scale(1);
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.work-card-category {
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 500;
}

.work-card-role {
  color: var(--text-muted);
}

.work-card-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 300;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
  background-color: var(--bg-secondary);
  padding-top: 10rem;
  padding-bottom: 10rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.service-icon {
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.service-icon svg {
  width: 36px;
  height: 36px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Software Strip */
/* Software Strip Ticker Marquee */
.software-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
  overflow: hidden;
}

.learning-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.learning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.learning-header .software-label {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
  border-bottom: none;
  width: auto;
  text-align: center;
}


.learning-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.learning-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 220px;
  position: relative;
}

.learning-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
}

.learning-card-icon .app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.learning-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

.learning-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.65;
}

.learning-pill {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  opacity: 0.8;
  margin-top: auto;
  white-space: nowrap;
}

.software-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  padding-right: 2rem;
  border-right: 1px solid var(--border-color);
  margin-right: 2rem;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee-scroll 25s linear infinite;
  padding-right: 4rem; /* Match gap for seamless loop */
}




.software-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 400;
  opacity: 0.85;
}

.software-icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Simple Icons via cdn.simpleicons.org — brand color already embedded */
.app-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.learning-card-icon .app-icon {
  width: 40px;
  height: 40px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.about-image-wrap {
  position: relative;
  min-height: 500px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.1) contrast(1.03);
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-size: 1rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

.philosophies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.philosophy-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.philosophy-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

.philosophy-item strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
}

.philosophy-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

/* About Contact Cards Row */
.about-contact-section {
  margin-top: 2.5rem;
  width: 100%;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  min-width: 0;
}

.contact-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
}

.contact-card-icon .app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card-icon .linkedin-logo {
  transform: scale(1.25);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.contact-card-value {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ==========================================================================
   GALLERY (Native CSS-only Multi-column Masonry Layout)
   ========================================================================== */
.gallery-section {
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.gallery-title-bar {
  padding: 4rem max(1.5rem, 5vw) 3rem;
  text-align: center;
}

.gallery-title-bar .software-label {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
}

.gallery-clip {
  width: 100%;
}

.gallery-desktop {
  display: block;
  height: 1800px;
  overflow: hidden;
}

.gallery-mobile {
  display: none;
}

.gallery-grid {
  -webkit-column-count: 4;
  -webkit-column-gap:   0px;
  -moz-column-count:    4;
  -moz-column-gap:      0px;
  column-count:         4;
  column-gap:           0px;
  width: 100%;
}

.gallery-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  filter: grayscale(0%) contrast(1.05) brightness(1.0);
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .gallery-desktop {
    display: none;
  }
  .gallery-mobile {
    display: block;
    height: auto;
    overflow: visible;
  }
  .gallery-grid {
    -webkit-column-count: 1;
    -moz-column-count:    1;
    column-count:         1;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: var(--bg-primary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-attribution {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}



/* ==========================================================================
   LIGHTBOX MODAL VIDEO PLAYER
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  outline: none;
}

.lightbox-close:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-close:focus,
.lightbox-close:focus-visible {
  outline: none;
}

.lightbox-content {
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 90vh;
}

.lightbox-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background-color: #000;
}

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

.lightbox-details {
  padding-top: 1.5rem;
  color: var(--text-primary);
  text-align: left;
}

.lightbox-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.lightbox-category {
  position: relative;
}

.lightbox-category::after {
  content: '•';
  position: absolute;
  right: -0.85rem;
  color: var(--text-muted);
}

.lightbox-role {
  color: var(--text-muted);
}

.lightbox-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lightbox-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 800px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.reveal-item:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVENESS (MOBILE-FIRST PRINCIPLES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-info {
    text-align: center;
    align-items: center;
  }
  
  .contact-desc {
    max-width: 600px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: calc(var(--header-height) + 5.5rem);
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Menu Styles */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link.btn-cta {
    border: none;
    padding: 0;
    color: var(--accent-color);
  }
  
  /* Mobile menu active animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* Works grid mobile scaling */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .philosophies {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-wrap {
    padding: 2.5rem 1.5rem;
  }

  .software-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .software-label {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    width: 100%;
  }

  .lightbox-content {
    padding: 1rem;
    width: 95%;
  }
  
  .lightbox-title {
    font-size: 1.35rem;
  }
  
  .lightbox-desc {
    font-size: 0.9rem;
  }
  
  .lightbox-meta {
    gap: 1rem;
    font-size: 0.75rem;
  }
  
  .lightbox-category::after {
    right: -0.6rem;
  }

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

  .learning-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    min-height: auto;
    position: static;
  }

  .learning-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    padding: 6px;
    flex-shrink: 0;
  }

  .learning-card-info {
    gap: 0.15rem;
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .learning-card-name {
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .learning-card-sub {
    font-size: 0.7rem;
  }

  .learning-pill {
    margin-top: 0;
    margin-left: auto;
    font-size: 0.65rem;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .about-title {
    font-size: 2.8rem;
  }
  
  .contact-link {
    font-size: 1.4rem;
  }

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

  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TIMELINE EDITOR SIMULATOR
   ========================================================================== */
.timeline-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.timeline-editor-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.timeline-editor-box {
  background-color: #121212;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', -apple-system, sans-serif;
  color: #e0e0e0;
}

/* Header */
.editor-header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #282828;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.editor-dot.red { background-color: #ff5f56; }
.editor-dot.yellow { background-color: #ffbd2e; }
.editor-dot.green { background-color: #27c93f; }

.editor-filename {
  font-size: 0.85rem;
  color: #aaa;
  margin-left: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.editor-timecode-main {
  font-family: monospace;
  font-size: 1.1rem;
  color: #ff9f0a; /* DaVinci Resolve gold timecode color */
  font-weight: bold;
  letter-spacing: 0.05em;
  background-color: #0d0d0d;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #222;
}

/* Workspace */
.editor-workspace {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  background-color: #161616;
  border-bottom: 1px solid #282828;
}

/* Monitor Panel */
.monitor-panel {
  padding: 1rem;
  border-right: 1px solid #282828;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .editor-workspace {
    grid-template-columns: 1.6fr 1fr; /* Adjust column ratio slightly for mobile */
  }
  
  .info-row {
    font-size: 0.65rem;
  }
  
  .inspector-group {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .inspector-group h4 {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }
  
  .inspector-tab {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }
  
  .monitor-controls {
    padding: 0.4rem 0.6rem;
    gap: 0.5rem;
  }
  
  .editor-timecode-main {
    font-size: 0.85rem;
    padding: 0.1rem 0.3rem;
  }
  
  .editor-filename {
    font-size: 0.7rem;
  }
}

.monitor-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.monitor-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.monitor-screen iframe,
.monitor-screen video {
  width: 100%;
  height: 100%;
  display: block;
}

.monitor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 5;
  pointer-events: auto;
}



.monitor-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  background-color: #1e1e1e;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.monitor-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.monitor-btn:hover {
  background-color: #333;
  color: #ff9f0a;
}

.monitor-timeline-slider-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.monitor-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #333;
  outline: none;
  cursor: pointer;
}

.monitor-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff9f0a;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.monitor-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.monitor-duration {
  font-family: monospace;
  font-size: 0.8rem;
  color: #888;
}

/* Inspector Panel */
.inspector-panel {
  padding: 1rem;
  background-color: #141414;
  display: flex;
  flex-direction: column;
}

.inspector-tab {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #ff9f0a;
  border-bottom: 2px solid #ff9f0a;
  padding-bottom: 0.4rem;
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.inspector-group {
  margin-bottom: 1.25rem;
  background-color: #1a1a1a;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #242424;
}

.inspector-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #282828;
  padding-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #777;
}

.info-val {
  color: #ccc;
  font-weight: 500;
}

.info-val.tint-yellow {
  color: #ff9f0a;
}

/* Timeline Panel */
.timeline-panel {
  background-color: #181818;
  padding: 1rem;
  overflow: hidden;
}

.timeline-scroll-wrap {
  width: 100%;
  overflow: hidden;
}

.timeline-tracks-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  border-bottom: 1px solid #2c2c2c;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.track-label-col {
  font-size: 0.75rem;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-ruler-col {
  position: relative;
  height: 20px;
}

.time-ruler {
  position: relative;
  width: 100%;
  height: 100%;
}

.time-ruler span {
  position: absolute;
  font-family: monospace;
  font-size: 0.7rem;
  color: #555;
  transform: translateX(-50%);
}

.tracks-area-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #282828;
  border-radius: 6px;
  background-color: #111;
  padding: 8px 0;
  overflow: hidden;
  cursor: ew-resize;
}

.track-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  height: 38px;
  position: relative;
}

.track-info {
  background-color: #1d1d1d;
  color: #888;
  font-size: 0.7rem;
  font-weight: bold;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  border-right: 1px solid #282828;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.track-clips {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.timeline-clip {
  position: absolute;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s, border 0.2s, box-shadow 0.2s;
}

.timeline-clip:hover {
  filter: brightness(1.15);
}

/* Clip Types colors (inspired by Adobe / DaVinci) */
.timeline-clip.video-clip {
  background-color: #2b5c8f; /* Blue A-Roll video */
  color: #fff;
  border: 1px solid #1a3c61;
}

.timeline-clip.video-clip.active {
  background-color: #0f82ff;
  border: 1.5px solid #fff;
  box-shadow: 0 0 10px rgba(15, 130, 255, 0.6);
}

.timeline-clip.fx-clip {
  background-color: #5d3f8a; /* Adjustment purple */
  color: #e2d2ff;
  border: 1px solid #3c2461;
  font-size: 0.7rem;
}

.timeline-clip.audio-clip {
  background-color: #1b6b50; /* Green Audio track */
  color: #d1f7ea;
  border: 1px solid #0f402f;
  background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.05) 50%);
  background-size: 8px 100%;
}

.timeline-clip.sfx-clip {
  background-color: #9c6c2e; /* SFX copper/orange */
  color: #ffe6c2;
  border: 1px solid #664319;
  font-size: 0.7rem;
}

/* Playhead */
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ff2d55; /* Premiere/Resolve Red playhead */
  z-index: 10;
  pointer-events: none;
  left: 80px; /* Offset to start right after V1/V2 labels */
  transition: left 0.1s linear;
}

.playhead-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -4px);
  width: 12px;
  height: 12px;
  background-color: #ff2d55;
  border-radius: 50% 50% 0 0;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

.playhead-line {
  width: 100%;
  height: 100%;
  background-color: #ff2d55;
  box-shadow: 0 0 4px rgba(255, 45, 85, 0.5);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* ============================================================
   PREMIERE PRO UI SIMULATOR
   ============================================================ */
.prem-section { padding: 60px 0 100px; }
.prem-section-intro { text-align: center; margin-bottom: 28px; }
.prem-app-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.prem-app {
  background: #191919; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 11px; color: #a9a9a9; user-select: none;
}
.prem-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #2d2d2d;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 14px;
  height: 38px;
}
.prem-titlebar-left,
.prem-titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1;
}
.prem-titlebar-right { gap: 8px; }
.prem-dots { display: flex; gap: 7px; margin-right: 2px; }
.prem-dot { width: 11px; height: 11px; border-radius: 50%; }
.prem-dot-r { background: #ff5f56; } .prem-dot-y { background: #ffbd2e; } .prem-dot-g { background: #27c93f; }
.prem-home-btn,
.prem-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #d8d8d8;
  border-radius: 3px;
  cursor: default;
}
.prem-home-btn:hover,
.prem-header-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.prem-wspace-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 4px;
}
.prem-wspace {
  position: relative;
  cursor: default;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
}
.prem-wspace:hover { color: #d8d8d8; }
.prem-wspace.active {
  color: #f0f0f0;
  font-weight: 500;
}
.prem-wspace.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #f0f0f0;
  border-radius: 1px;
}
.prem-app-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
  pointer-events: none;
}
.prem-learning-tag {
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.prem-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 2px;
  flex-shrink: 0;
}
.prem-user-avatar svg { display: block; width: 100%; height: 100%; }

/* Grid Layout */
.prem-workspace-grid {
  display: grid;
  grid-template-columns: 260px 240px 1fr;
  height: 340px;
  background: #191919;
  border-bottom: 2px solid #141414;
}

.prem-app {
}
.prem-panel { background: #1c1c1c; border-right: 1px solid #141414; display: flex; flex-direction: column; overflow: hidden; }
.prem-panel-monitor { border-right: none; }
.prem-panel-tabs { display: flex; background: #222222; border-bottom: 1px solid #141414; padding: 0 8px; align-items: center; height: 26px; gap: 4px; flex-shrink: 0; }
.prem-monitor-tabbar { justify-content: space-between; }
.prem-ptab { font-size: 10px; color: #8e8e8e; padding: 2px 8px; border-radius: 2px; cursor: default; }
.prem-ptab-active { color: #e2e2e2; background: #1c1c1c; font-weight: 500; }
.prem-monitor-expand { color: #666; font-size: 11px; cursor: pointer; }

/* Left Project Bin Panel styling */
.prem-proj-search { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border-bottom: 1px solid #222; flex-shrink: 0; }
.prem-search-box { background: #262626; border: 1px solid #353535; border-radius: 2px; padding: 2px 5px; width: 90px; height: 18px; display: flex; align-items: center; }
.prem-item-count { color: #666; font-size: 9px; }
.prem-col-header { display: grid; grid-template-columns: 1fr 65px; padding: 3px 8px; border-bottom: 1px solid #222; color: #666; font-size: 9.5px; flex-shrink: 0; }
.prem-sort-tri { color: #8c8c8c; }
.prem-file-tree { overflow-y: auto; flex: 1; padding: 2px 0; background: #1c1c1c; }
.prem-file-tree::-webkit-scrollbar { width: 5px; }
.prem-file-tree::-webkit-scrollbar-thumb { background: #353535; border-radius: 3px; }
.prem-bin-row, .prem-file-row { display: grid; grid-template-columns: 1fr 65px; align-items: center; padding: 2px 8px; cursor: default; border-radius: 2px; min-height: 20px; }
.prem-bin-row:hover, .prem-file-row:hover { background: #262626; }
.prem-file-row.selected, .prem-bin-row.selected { background: #183e66 !important; color: #fff !important; }
.prem-file-row.selected .prem-bin-name, .prem-bin-row.selected .prem-bin-name { color: #fff !important; }
.prem-file-row.selected .prem-bin-tri, .prem-bin-row.selected .prem-bin-tri { color: #fff !important; }
.prem-file-row.selected .prem-file-fps, .prem-file-row.selected .prem-file-ms { color: #8cb5e1 !important; }
.prem-bin-row { color: #cccccc; } .prem-file-row { color: #b5b5b5; font-size: 10px; }
.prem-bin-content { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.prem-bin-tri { font-size: 8px; color: #7c7c7c; width: 10px; flex-shrink: 0; transition: transform 0.15s; }
.prem-bin-tri.open { transform: rotate(90deg); }
/* Custom premium SVG file/folder icons styling */
.prem-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 12px;
  flex-shrink: 0;
  margin-right: 4px;
}
.prem-icon-svg {
  display: block;
  width: 14px;
  height: 12px;
}
.prem-bin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #b5b5b5; font-weight: 500; }
.prem-file-fps { color: #666; font-size: 9px; text-align: right; padding-right: 6px; } .prem-file-ms { color: #666; font-size: 9px; }
.prem-col-header span:last-child { text-align: right; padding-right: 6px; }
.prem-bin-children { padding-left: 12px; } .prem-bin-children.hidden { display: none; }

/* Effect Controls */
.prem-ec-src { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid #141414; color: #888; font-size: 10px; background: #222; flex-shrink: 0; }
.prem-ec-src-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prem-ec-expand-icon { color: #666; font-size: 11px; }
.prem-ec-scroll { overflow-y: auto; flex: 1; }
.prem-ec-scroll::-webkit-scrollbar { width: 5px; }
.prem-ec-scroll::-webkit-scrollbar-thumb { background: #353535; }
.prem-ec-group { margin-bottom: 2px; }
.prem-ec-group-title { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-bottom: 1px solid #141414; color: #cccccc; font-size: 10.5px; background: #262626; }
.prem-ec-tri { font-size: 7px; color: #7c7c7c; }
.prem-ec-fx-badge { background: #3c3c78; color: #9c9cff; font-size: 8px; padding: 0 3px; border-radius: 1px; font-style: italic; }
.prem-ec-paren { color: #7c7c7c; }
.prem-ec-params { padding: 2px 0 4px; }
.prem-ec-row { display: flex; align-items: center; gap: 4px; padding: 3px 8px; min-height: 20px; }
.prem-ec-row:hover { background: #222; }
.prem-ec-watch, .prem-ec-watch-ph { font-size: 10px; color: #3c82d6; width: 12px; flex-shrink: 0; }
.prem-ec-watch-ph { visibility: hidden; }
.prem-ec-pname { color: #999; font-size: 10px; flex: 1; }
.prem-ec-indent { padding-left: 12px; }
.prem-ec-vals { display: flex; gap: 6px; }
.prem-ec-val { color: #999; font-size: 10px; }
.prem-ec-blue { color: #3a82d6; cursor: ew-resize; font-weight: 500; }
.prem-ec-font-row { display: flex; gap: 4px; align-items: center; padding: 4px 8px; }
.prem-ec-sel { background: #262626; border: 1px solid #353535; color: #a9a9a9; font-size: 9px; padding: 2px; border-radius: 2px; flex: 1; max-width: 80px; }
.prem-ec-sel-bold { max-width: 50px; }
.prem-ec-fontsize { color: #3a82d6; cursor: ew-resize; }
.prem-ec-tool-row { display: flex; gap: 3px; padding: 4px 8px; }
.prem-ec-tool { width: 18px; height: 16px; display: flex; align-items: center; justify-content: center; background: #262626; border: 1px solid #353535; border-radius: 2px; color: #a9a9a9; font-size: 10px; cursor: default; }
.prem-ec-tool-i { font-style: italic; } .prem-ec-tool-u { text-decoration: underline; } .prem-ec-tool-del { text-decoration: line-through; }

/* Monitor Panel with Enforced 16:9 Aspect Ratio */
.prem-panel-monitor { background: #191919; display: flex; flex-direction: column; justify-content: space-between; }
.prem-monitor-screen {
  flex: 1;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9; /* Enforced 16:9 aspect ratio */
  width: 100%;
  max-width: 100%;
}
.prem-monitor-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.prem-monitor-tc-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #1c1c1c; border-top: 1px solid #141414; flex-shrink: 0; }
.prem-tc { background: #0c0c0c; border: 1px solid #2d2d2d; padding: 2px 6px; border-radius: 2px; min-width: 85px; text-align: center; }
.prem-tc-scrub { cursor: ew-resize; border-color: #222; }
.prem-tc-scrub:hover { border-color: #3c82d6; background: #11111c; }
.prem-tc-text { font-family: 'Courier New', 'Lucida Console', monospace; font-size: 13px; font-weight: bold; color: #4af0ff; letter-spacing: 0.5px; display: block; line-height: 1.3; }
.prem-tc-dur .prem-tc-text { color: #39a3b0; }
.prem-monitor-mid { flex: 1; display: flex; justify-content: center; }
.prem-fit-sel { background: #262626; border: 1px solid #353535; color: #a9a9a9; font-size: 9.5px; padding: 2px 6px; border-radius: 2px; cursor: default; }
.prem-monitor-prog-row { padding: 0 10px 3px; background: #1c1c1c; flex-shrink: 0; }
.prem-monitor-prog-track { height: 6px; background: #262626; border-radius: 3px; overflow: hidden; cursor: pointer; }
.prem-monitor-prog-fill { height: 100%; width: 0%; background: #3c82d6; border-radius: 3px; transition: width 0.1s linear; }
.prem-monitor-ctrl-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; background: #1c1c1c; border-top: 1px solid #141414; flex-shrink: 0; }
.prem-ctrl-left-group, .prem-ctrl-center-group, .prem-ctrl-right-group { display: flex; align-items: center; gap: 3px; }
.prem-ctrl { background: transparent; border: none; color: #a9a9a9; font-size: 11px; width: 22px; height: 22px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.prem-ctrl:hover { background: #2a2a2a; color: #fff; }
.prem-ctrl-play { background: #222232; border: 1px solid #3c3c64; color: #d9d9d9; width: 24px; height: 24px; }
.prem-ctrl-play:hover { background: #2d2d48; }

/* Bottom Layout with vertical toolbar, timeline panel, and audio meters side-by-side */
.prem-bottom-workspace {
  display: grid;
  grid-template-columns: 36px 1fr 50px;
  background: #191919;
  border-top: 2px solid #141414;
}

/* Vertical Toolbar */
.prem-toolbar-panel {
  background: #222222;
  border-right: 1px solid #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 8px;
}
.prem-tool-btn {
  background: transparent; border: none;
  color: #8c8c8c; width: 24px; height: 24px;
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.prem-tool-btn:hover { background: #353535; color: #fff; }
.prem-tool-btn.active { background: #1473e6; color: #fff; }

/* Timeline Panel */
.prem-panel-timeline { display: flex; flex-direction: column; background: #1c1c1c; }
.prem-tl-topbar { display: flex; align-items: center; gap: 12px; padding: 4px 10px; background: #222222; border-bottom: 1px solid #141414; height: 28px; flex-shrink: 0; }
.prem-tl-seqname { color: #cccccc; font-size: 10.5px; font-weight: 500; }
.prem-tl-tc { font-family: 'Courier New', monospace; font-size: 13px; font-weight: bold; color: #4af0ff; letter-spacing: 0.5px; }
.prem-tl-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.prem-tl-tool { background: transparent; border: none; color: #666; font-size: 11px; width: 20px; height: 20px; border-radius: 2px; cursor: pointer; }
.prem-tl-tool:hover { background: #333; color: #bbb; }
.prem-tl-cc { color: #666; font-size: 9px; }

/* Timeline tracks and headers */
.prem-tl-body { display: flex; height: 258px; overflow: hidden; flex: 1; }
.prem-tl-headers { width: 155px; flex-shrink: 0; background: #191919; border-right: 1px solid #141414; display: flex; flex-direction: column; overflow: hidden; }
.prem-th-ruler-gap { height: 22px; border-bottom: 1px solid #141414; background: #151515; flex-shrink: 0; }
.prem-th { display: flex; align-items: center; gap: 4px; padding: 0 6px; border-bottom: 1px solid #141414; height: 33px; flex-shrink: 0; overflow: hidden; }
.prem-th-a { height: 33px; background: #191919; }
.prem-th-target { background: #1c222c; }
.prem-th-label { flex: 1; color: #9c9c9c; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: bold; }
.prem-th-lock { font-size: 9px; color: #666; cursor: pointer; }
.prem-th-lock:hover { color: #999; }
.prem-th-patch { font-size: 9.5px; width: 18px; height: 14px; border-radius: 2px; display: flex; align-items: center; justify-content: center; border: 1px solid #353535; color: #555; font-weight: bold; flex-shrink: 0; }
.prem-th-patch.active { background: #3a5c86; border-color: #5b7da8; color: #d0e2f5; }
.prem-th-eye, .prem-th-mute, .prem-th-solo, .prem-th-mic { font-size: 9.5px; color: #666; width: 14px; text-align: center; cursor: pointer; }
.prem-th-eye:hover, .prem-th-mute:hover, .prem-th-solo:hover, .prem-th-mic:hover { color: #bbb; }

/* Ruler and track scrolling area */
.prem-tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; position: relative; background: #151515; }
.prem-tl-scroll::-webkit-scrollbar { height: 0; }
.prem-playhead { position: absolute; top: 0; left: 200px; z-index: 20; pointer-events: none; width: 1px; }
.prem-ph-tri {
  width: 10px; height: 11px; background: #1473e6; margin-left: -5px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 50% 100%, 0% 60%);
  filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.5));
}
.prem-ph-line { width: 1px; height: 800px; background: #1473e6; }
.prem-ruler { height: 22px; background: #222222; border-bottom: 1px solid #141414; position: relative; cursor: pointer; }
.prem-ruler-mark { position: absolute; top: 0; height: 100%; border-left: 1px solid #333333; padding-left: 4px; display: flex; align-items: center; }
.prem-ruler-mark span { font-size: 8.5px; color: #666666; white-space: nowrap; }

/* Yellow render bar below ruler marks */
.prem-render-bar { height: 3px; background: #c6a23c; border-bottom: 1px solid #141414; }

.prem-track { position: relative; height: 33px; border-bottom: 1px solid #141414; background: #1c1c1c; overflow: hidden; }
.prem-track::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.03); pointer-events: none; }
.prem-track-v:last-of-type { border-bottom: 2px solid #333333; }
.prem-track-a { background: #171c17; }
.prem-track-target { background: #171c26; }

/* Clip segments styling */
.prem-clip {
  position: absolute;
  top: 1px;
  height: calc(100% - 2px);
  border-radius: 2px;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 6px;
  min-width: 4px;
  box-sizing: border-box;
  transition: filter 0.1s, border-color 0.1s;
}
.prem-clip:hover { filter: brightness(1.15); }
.prem-clip.prem-clip-selected { border: 1.5px solid #4af0ff !important; filter: brightness(1.1); box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.2); }
.prem-clip-label { font-size: 9px; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; font-weight: 500; }
.prem-clip-video      { background: #5a7b9c; border-color: #435b75; }
.prem-clip-motion     { background: #a26189; border-color: #82476b; }
.prem-clip-adjustment { background: #86689d; border-color: #654d78; }
.prem-clip-graphic    { background: #86689d; border-color: #654d78; }
.prem-clip-audio      { background: #599279; border-color: #3e6d57; }

/* Timeline Horizontal Scrollbar */
.prem-tl-hscroll-row { display: flex; align-items: center; background: #191919; border-top: 1px solid #141414; padding: 2px 0; height: 14px; flex-shrink: 0; }
.prem-hscroll-pad { width: 155px; flex-shrink: 0; }
.prem-hscroll { flex: 1; height: 8px; appearance: none; background: #262626; border-radius: 4px; outline: none; cursor: pointer; }
.prem-hscroll::-webkit-slider-thumb { appearance: none; width: 30px; height: 8px; background: #444; border-radius: 4px; cursor: grab; }
.prem-hscroll::-webkit-slider-thumb:active { cursor: grabbing; background: #666; }
.prem-hscroll-end { width: 28px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #555; font-size: 9px; flex-shrink: 0; }
.prem-statusbar { background: #191919; border-top: 1px solid #141414; padding: 4px 12px; color: #666; font-size: 9.5px; }
.prem-chat-hint {
  position: relative;
  width: min(460px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 18px 14px;
  border: 1px solid #3b3834;
  border-radius: 18px;
  background: linear-gradient(180deg, #23201c 0%, #191714 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.prem-chat-hint::before,
.prem-chat-hint::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}
.prem-chat-hint::before {
  top: -14px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #3b3834;
}
.prem-chat-hint::after {
  top: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #23201c;
}
.prem-chat-hint-title {
  margin: 0;
  color: #f4ebe1;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.prem-chat-hint-copy {
  margin: 4px 0 0;
  color: #c7beb6;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .prem-section {
    padding-top: 48px;
    padding-bottom: 80px;
  }
  .prem-app-shell {
    padding: 0;
  }
}

/* Premiere Pro active panel highlight border */
.prem-panel.active-panel {
  outline: 1.5px solid #1473e6 !important;
  z-index: 10;
}

/* Audio Meters panel styles */
.prem-audio-meter-panel {
  width: 50px;
  background: #191919;
  border-left: 1px solid #141414;
  display: flex;
  flex-direction: row;
  padding: 4px;
  box-sizing: border-box;
  align-items: stretch;
  height: 258px;
  overflow: hidden;
}
.prem-meter-ticks {
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 4px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  color: #666;
  height: 220px;
}
.prem-meter-ticks span {
  line-height: 1;
}
.prem-meter-bars {
  flex: 1;
  display: flex;
  gap: 3px;
  height: 220px;
  padding-top: 4px;
}
.prem-meter-bar-track {
  flex: 1;
  background: #101010;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.prem-meter-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12%; /* Default volume indicator */
  background: linear-gradient(to top, #00ff22 0%, #00ff22 70%, #ffff00 85%, #ff0000 100%);
  transition: height 0.05s ease-out;
}
.prem-meter-bottom-tags {
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 4px;
  display: flex;
  justify-content: space-around;
  font-family: sans-serif;
  font-size: 8px;
  color: #666;
  font-weight: bold;
}

/* Premiere Pro Loading Card styling */
.prem-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.4s ease-in-out, visibility 0.4s;
  border-radius: 10px;
}
.prem-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.prem-loading-card {
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 260px;
  box-sizing: border-box;
}
.prem-loading-icon {
  animation: prem-spin 1s linear infinite;
  margin-bottom: 4px;
}
@keyframes prem-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.prem-loading-title {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.prem-loading-bar-bg {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.prem-loading-bar-fill {
  height: 100%;
  background: #1473e6;
  transition: width 0.1s ease-out;
}
.prem-loading-text {
  color: #8c8c8c;
  font-size: 10px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Premium horizontal line divider between sections */
.prem-section-divider {
  width: min(100%, 1200px);
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  margin: 60px auto;
}
