/* =========================================================
   PORTFOLIO DE EDICIÓN & MARKETING – FERMnke
   Design System & Coverflow 3D Carousel Stylesheet
   ========================================================= */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-deep: #060911;
  --bg-surface: #0c121e;
  --bg-surface-elevated: #111a2d;
  --bg-card: rgba(16, 26, 46, 0.85);
  --bg-card-hover: rgba(22, 36, 64, 0.95);

  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-glow: #00e5ff;
  --border-glass: rgba(255, 255, 255, 0.08);

  --accent-cyan: #00e5ff;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(0, 229, 255, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --font-display: 'Gochi Hand', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle cinematic noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient glow accents */
.ambient-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 850px);
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.12) 0%, rgba(56, 189, 248, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
.font-hand {
  font-family: var(--font-display);
}

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

/* =========================================================
   NAVIGATION (Floating Glass Island)
   ========================================================= */
header.header-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

nav.nav-island {
  pointer-events: auto;
  width: min(100%, 1060px);
  background: rgba(12, 18, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

nav.nav-island:hover {
  border-color: var(--border-glow);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo span {
  color: var(--accent-cyan);
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.2rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width 0.25s var(--ease-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Toggle Pill */
.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s var(--ease-smooth);
}

.lang-toggle svg {
  width: 14px;
  height: 14px;
}

.lang-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  transition: background 0.2s ease;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover {
  color: var(--accent-cyan);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 26, 46, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInDown 0.8s var(--ease-smooth) both;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 950px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s 0.1s var(--ease-smooth) both;
}

.hero h1 span.brand-highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 35px var(--accent-glow);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
  font-weight: 400;
  animation: fadeInUp 0.8s 0.2s var(--ease-smooth) both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.25s var(--ease-smooth) both;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.hero-btns {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s 0.3s var(--ease-smooth) both;
}

/* Button with nested icon (High-End CTA pattern) */
.btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background 0.25s ease, border-color 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-smooth);
}

.btn-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff, #0077ff);
  color: #060911;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary .btn-icon-wrapper {
  background: rgba(6, 9, 17, 0.2);
  color: #060911;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.45);
}

.btn-primary:hover .btn-icon-wrapper {
  transform: translateX(2px) translateY(-1px);
}

.btn-secondary {
  background: rgba(16, 26, 46, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary .btn-icon-wrapper {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* =========================================================
   SECTION BASE ARCHITECTURE
   ========================================================= */
section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text-primary);
  line-height: 1.15;
}

.section-title span {
  color: var(--accent-cyan);
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0.7rem auto 0;
}

/* Double Bezel Outer-Shell for Cards */
.double-bezel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.double-bezel:hover {
  border-color: var(--border-glow);
}

.double-bezel-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 2rem;
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: center;
}

.about-card-profile {
  position: relative;
  text-align: center;
}

.profile-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #111e38, #090e1a);
  border: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 229, 255, 0.08);
}

.profile-visual-icon {
  width: 72px;
  height: 72px;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.profile-badge-pill {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.profile-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.profile-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-cyan);
  display: block;
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.about-text-lead strong {
  color: var(--accent-cyan);
}

.about-text-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(16, 26, 46, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.highlight-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon-box svg {
  width: 18px;
  height: 18px;
}

.highlight-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.highlight-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   SKILLS & CREATIVE STACK (Bento Grid)
   ========================================================= */
.skills-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bento-badge {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* =========================================================
   3D COVERFLOW CAROUSEL (Uniform Bounds & Mobile Centering)
   ========================================================= */
.coverflow-section-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.video-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 26, 46, 0.5);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

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

.filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #060911;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Coverflow Stage Container */
.coverflow-stage {
  position: relative;
  width: 100%;
  height: 380px;
  perspective: 1000px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-stage:active {
  cursor: grabbing;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Coverflow Card Item - UNIFORM 16:9 OUTER FRAME FOR PERFECT ALIGNMENT */
.cf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(340px, 78vw);
  height: 230px;
  margin-left: calc(-1 * min(340px, 78vw) / 2);
  margin-top: -115px;
  background: #080d19;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  will-change: transform, opacity;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cf-card.is-active {
  border-color: var(--accent-cyan);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px var(--accent-glow);
}

.cf-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* High Resolution Poster Image */
.cf-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  transition: transform 0.4s var(--ease-smooth), opacity 0.3s ease;
}

.cf-card:hover .cf-poster-img {
  transform: scale(1.06);
  opacity: 1;
}

/* Stylized Poster Gradient Overlay */
.cf-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.3) 0%, rgba(6, 9, 17, 0.85) 100%);
  pointer-events: none;
}

.cf-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.cf-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.5);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth), background 0.2s ease, box-shadow 0.3s ease;
}

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

.cf-card:hover .cf-play-btn,
.cf-card.is-active:hover .cf-play-btn {
  transform: scale(1.15);
  background: #ffffff;
  box-shadow: 0 0 25px #ffffff;
}

.cf-card-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Nav Chevron Buttons */
.cf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 18, 30, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s var(--ease-smooth);
}

.cf-nav-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glow);
  color: var(--accent-cyan);
  transform: translateY(-50%) scale(1.08);
}

.cf-nav-btn.prev { left: -10px; }
.cf-nav-btn.next { right: -10px; }

.cf-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Active Caption Metadata Box */
.coverflow-caption-box {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.cf-caption-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cf-caption-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 1rem;
}

.cf-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  background: rgba(16, 26, 46, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.4rem;
}

.cf-meta-item {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.cf-meta-label {
  color: var(--text-muted);
}

.cf-meta-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Direct Play Button under Caption for Instant Play */
.cf-caption-play-btn {
  margin-top: 0.8rem;
}

/* Pagination Dots */
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.cf-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* =========================================================
   CINEMATIC THEATER MODAL (Mobile-First Safe Player)
   ========================================================= */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 13, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

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

.theater-box {
  width: 100%;
  max-width: 980px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-smooth);
}

.theater-modal.active .theater-box {
  transform: scale(1);
}

/* Modal Header Bar */
.theater-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.theater-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.theater-video-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theater-format-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.theater-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theater-direct-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.theater-direct-link:hover {
  background: var(--accent-cyan);
  color: #060911;
}

.theater-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theater-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Frame Screen Container */
.theater-frame-container {
  width: 100%;
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Aspect ratio handling for video player */
.theater-frame-container.aspect-horizontal {
  aspect-ratio: 16 / 9;
  max-height: 68vh;
}

.theater-frame-container.aspect-vertical {
  width: min(100%, 380px);
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 0 auto;
}

.theater-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Modal Bottom Navigation Controls */
.theater-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

.theater-nav-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.theater-nav-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.theater-counter {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
}

.contact-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.contact-channel-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel-btn:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.contact-channel-btn:hover .channel-icon {
  transform: scale(1.1);
}

.channel-icon.tiktok {
  background: rgba(254, 44, 85, 0.12);
  color: #fe2c55;
  border: 1px solid rgba(254, 44, 85, 0.25);
}

.channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.channel-icon.instagram {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.channel-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.footer-brand span {
  color: var(--accent-cyan);
}

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

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet (<= 992px) */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .skills-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card.span-2 {
    grid-column: span 2;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  nav.nav-island {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 6.5rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

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

  section {
    padding: 3.5rem 1rem;
  }

  .skills-bento {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .coverflow-stage {
    height: 310px;
    overflow: hidden;
  }

  .coverflow-track {
    position: absolute;
    inset: 0;
    left: 50%;
    right: auto;
    width: 0;
    height: 100%;
  }

  .cf-card {
    left: 0;
    width: min(250px, calc(100vw - 5rem));
    height: 180px;
    margin-left: 0;
    margin-top: -90px;
  }

  .cf-nav-btn.prev { left: 0px; }
  .cf-nav-btn.next { right: 0px; }

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

  .theater-modal {
    padding: 0.5rem;
  }

  .theater-box {
    max-height: calc(100dvh - 1rem);
  }

  .theater-topbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .theater-frame-container.aspect-vertical {
    height: min(64vh, calc(100dvh - 10rem));
    width: auto;
    max-width: 100%;
    max-height: none;
  }

  .theater-frame-container.aspect-horizontal {
    max-height: calc(100dvh - 10rem);
  }

  .theater-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .theater-counter {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .about-highlights-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cf-meta-list {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem 1.2rem;
  }

  .cf-card {
    left: 0;
    width: min(220px, calc(100vw - 4.5rem));
    height: 160px;
    margin-left: 0;
    margin-top: -80px;
  }

  .theater-topbar {
    padding: 0.65rem 0.75rem;
  }

  .theater-title-wrapper {
    min-width: 0;
    flex: 1 1 calc(100% - 48px);
  }

  .theater-video-title {
    font-size: 0.9rem;
  }
}
