:root {
  --bg-primary: #090a0f;
  --bg-secondary: #11131c;
  --bg-card: rgba(22, 25, 38, 0.78);
  --bg-card-hover: rgba(30, 35, 54, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #db2777 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --shadow-glow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.09), transparent 35%),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.08), transparent 38%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06), transparent 45%);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #262b3d;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-role {
  font-size: 0.76rem;
  color: var(--accent-amber);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 136px;
  padding-bottom: 84px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 640px;
  text-align: justify;
}

.hero-subtitle strong {
  color: #d8b98a;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--accent-amber);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Hero Profile Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-showcase {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-glow);
}

.profile-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 4.15;
  background: #161925;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.profile-showcase:hover .profile-img-wrap img {
  transform: scale(1.03);
}

.profile-overlay-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  left: 14px;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.software-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sw-chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.sw-chip.davinci { border-color: rgba(245, 158, 11, 0.45); color: #fbbf24; }
.sw-chip.ae { border-color: rgba(139, 92, 246, 0.45); color: #c4b5fd; }
.sw-chip.pr { border-color: rgba(59, 130, 246, 0.45); color: #93c5fd; }
.sw-chip.ps { border-color: rgba(6, 182, 212, 0.45); color: #67e8f9; }
.sw-chip.ai { border-color: rgba(234, 88, 12, 0.45); color: #fdba74; }

/* Section Headers */
.section {
  padding: 84px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 42px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 720px;
}

/* Portfolio Controls & Filter Bar */
.portfolio-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.controls-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.tab-count {
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.76rem;
}

.search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 12px;
  background: rgba(9, 10, 15, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-amber);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

/* Video Sections & Grids */
.video-group-block {
  margin-bottom: 52px;
}

.group-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.group-banner-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.aspect-badge {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.aspect-badge.vertical {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Desktop Grid (16:9 Widescreen Cards) */
.desktop-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Mobile Grid (9:16 Reels / Vertical Cards) */
.mobile-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  background: #05060a;
  overflow: hidden;
}

.video-card.desktop-card .video-thumb-wrap {
  aspect-ratio: 16 / 9;
}

.video-card.mobile-card .video-thumb-wrap {
  aspect-ratio: 9 / 16;
}

.video-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.video-card:hover .video-thumb-wrap video {
  transform: scale(1.04);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.85) 0%, rgba(9, 10, 15, 0.15) 50%, rgba(9, 10, 15, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-card:hover .play-circle {
  transform: scale(1.12);
  background: #ea580c;
}

.video-meta-top {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.platform-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(9, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.duration-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(9, 10, 15, 0.82);
  color: #fbbf24;
  direction: ltr;
}

.video-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.video-cat {
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.video-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
}

.video-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* About & Skills Grid */
.about-resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.panel-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Skills Bars */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.skill-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar-bg {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 99px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  padding-right: 20px;
  border-right: 2px solid rgba(245, 158, 11, 0.3);
}

.timeline-item {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -27px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber);
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-details {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-box {
  background: linear-gradient(135deg, rgba(22, 25, 38, 0.95) 0%, rgba(15, 18, 28, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 26px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
  transform: translateY(-2px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.contact-val {
  font-size: 0.9rem;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

/* Cinema Lightbox Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 5, 10, 0.92);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 1020px;
  background: #11131d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.modal-content.vertical-mode {
  max-width: 460px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1rem;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--accent-amber);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #ef4444;
}

.modal-video-stage {
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-stage video {
  width: 100%;
  max-height: 75vh;
  display: block;
  outline: none;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #0c0e16;
}

.modal-nav-btns {
  display: flex;
  gap: 8px;
}

.modal-nav-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-nav-btn:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

@media (max-width: 992px) {
  .hero-grid,
  .about-resume-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .desktop-video-grid {
    grid-template-columns: 1fr;
  }
  .mobile-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .contact-list {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 24px;
  }
}
/* Responsive and motion refinements */
html { scroll-padding-top: 100px; }
body { overflow-x: clip; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.motion-canvas { position: absolute; inset: 0; z-index: -1; opacity: .7; pointer-events: none; }
.motion-canvas canvas { display: block; width: 100%; height: 100%; }
.hero-grid > *, .contact-box > *, .nav-inner > * { min-width: 0; }
.nav-toggle { display: none; }
.video-thumb-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.video-card:hover .video-thumb-wrap img, .video-card:focus-visible .video-thumb-wrap img { transform: scale(1.06); }
.video-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.video-card:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #fbbf24; outline-offset: 3px; }
.modal-video-stage iframe { width: 100%; height: 100%; min-height: min(52vw, 480px); border: 0; }
.modal-video-stage [hidden] { display: none !important; }
.vertical-mode .modal-video-stage iframe { min-height: min(65vh, 650px); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 992px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-secondary); cursor: pointer; order: 3; flex: 0 0 auto; }
  .nav-toggle span { width: 20px; height: 2px; margin: 0 auto; background: var(--text-primary); }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: calc(100% + 10px); inset-inline: 0; padding: 16px; background: #161923; border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: 0 20px 40px #0008; }
  .nav-links.is-open a { display: block; padding: 9px; }
  .hero-visual { max-width: 520px; width: 100%; margin: auto; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1200px); }
  .nav-inner { gap: 10px; }
  .brand-role { font-size: .65rem; }
  .brand-name { font-size: .8rem; }
  .brand-badge { width: 38px; height: 38px; flex: 0 0 auto; }
  .nav-actions { display: none; }
  .hero { padding-top: 40px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.5; }
  .hero-subtitle { font-size: .95rem; }
  .hero-cta .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 10px; }
  .stat-box { padding: 12px; }
  .section { padding-block: 55px; }
  .section-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .controls-top, .group-banner, .modal-footer { flex-wrap: wrap; }
  .platform-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .tab-btn { flex: 0 0 auto; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .mobile-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-info { padding: 12px; }
  .video-title { font-size: .9rem; overflow-wrap: anywhere; }
  .video-desc { font-size: .78rem; }
  .video-meta-top { gap: 4px; }
  .platform-pill, .duration-pill { font-size: .65rem; }
  .modal-backdrop { padding: 10px; }
  .modal-content { max-height: 94dvh; overflow-y: auto; }
  .modal-footer p { max-width: 100% !important; }
  .contact-val { overflow-wrap: anywhere; }
}
@media (max-width: 380px) { .mobile-video-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .hero-subtitle { text-align: start; }
  .motion-canvas { opacity: .35; }
}
/* The Aparat embed controls its own video fitting. Its player uses a landscape
   viewport even when the uploaded video itself is portrait. */
.modal-content, .modal-content.vertical-mode { max-width: min(1020px, calc((100dvh - 230px) * 16 / 9)); max-height: calc(100dvh - 30px); overflow-y: auto; }
.modal-video-stage { width: 100%; aspect-ratio: 16 / 9; flex: 0 0 auto; }
.modal-video-stage iframe, .modal-video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; }
.modal-video-stage video { object-fit: contain; }
.vertical-mode .modal-video-stage iframe { min-height: 0; }

/* A visible, looping editing timeline in the hero. */
.edit-timeline { direction: ltr; margin: 25px 0 28px; max-width: 540px; padding: 12px 14px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(18,20,29,.9); box-shadow: 0 18px 45px #0005; overflow: hidden; }
.timeline-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #a8b2c3; font: 700 10px/1.4 monospace; letter-spacing: .1em; }
.timeline-topline span:last-child { color: #fb7185; animation: rec-pulse 1.4s ease-in-out infinite; }
.timeline-timecode { color: #fbbf24; }
.timeline-tracks { position: relative; display: grid; gap: 5px; }
.timeline-track { display: flex; gap: 4px; height: 22px; overflow: hidden; }
.clip { display: flex; align-items: center; flex-shrink: 0; padding: 0 8px; border-radius: 3px; color: #fff; font: normal 700 9px monospace; letter-spacing: .05em; white-space: nowrap; }
.clip-a { width: 33%; background: #b74a23; animation: clip-cut 5s steps(1,end) infinite; }
.clip-b { width: 25%; background: #d98717; }
.clip-c { width: 36%; background: #a6314f; }
.clip-d { width: 48%; background: #6947ae; }
.clip-e { width: 43%; background: #9c59b0; }
.clip-audio { width: 95%; color: #b6f6dc; background: repeating-linear-gradient(90deg,#215b52 0 3px,#2e9d7d 3px 5px,#215b52 5px 9px); }
.timeline-playhead { position: absolute; top: -3px; bottom: -3px; left: 3%; width: 2px; background: #fff; box-shadow: 0 0 9px #fff9; animation: timeline-scrub 5s linear infinite; }
.timeline-playhead::before { content: ''; position: absolute; top: -3px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #fff; }
@keyframes timeline-scrub { from { left: 3%; } to { left: 97%; } }
@keyframes rec-pulse { 50% { opacity: .35; } }
@keyframes clip-cut { 0%, 42%, 100% { filter: brightness(1); } 43%, 48% { filter: brightness(1.9); } }
@media (max-width: 640px) {
  .modal-content, .modal-content.vertical-mode { max-width: 100%; max-height: calc(100dvh - 20px); }
  .edit-timeline { margin-block: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-playhead, .clip-a, .timeline-topline span:last-child { animation: none; }
}
.player-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 8px 20px; color: #aebace; background: #11131d; font-size: .75rem; }
.player-hint[hidden] { display: none; }
.player-hint a { color: #fbbf24; text-decoration: none; white-space: nowrap; }
.player-hint a:hover { text-decoration: underline; }
@media (max-width: 640px) { .player-hint { padding-inline: 14px; font-size: .72rem; } }
