/* ================================================================
   SAMUEL — Premium Video Editor Portfolio
   style.css — Complete Design System & Components
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111119;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(20, 20, 40, 0.5);
  --bg-card-hover: rgba(30, 30, 55, 0.7);

  /* Purples */
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #a855f7;
  --purple-300: #c084fc;

  /* Blues */
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border-subtle: rgba(124, 58, 237, 0.12);
  --border-hover: rgba(124, 58, 237, 0.35);

  /* Gradients & Glows */
  --accent-gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
  --glow-sm: 0 0 15px rgba(124, 58, 237, 0.25);
  --glow-md: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
  --glow-lg: 0 0 40px rgba(124, 58, 237, 0.4), 0 0 80px rgba(124, 58, 237, 0.15);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
}


/* ----------------------------------------------------------------
   1. RESET & BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-600);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-500);
}

/* Firefox Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--purple-600) var(--bg-primary);
}

/* Selection */
::selection {
  background: var(--purple-500);
  color: #fff;
}

::-moz-selection {
  background: var(--purple-500);
  color: #fff;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}


/* ----------------------------------------------------------------
   2. SPLASH SCREEN
   ---------------------------------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  overflow: hidden;
}

.splash-letter {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splash-letter-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}

.splash-letter:nth-child(1) {
  animation-delay: 0.1s;
}

.splash-letter:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes splash-letter-in {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.splash-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  animation: splash-progress 1.4s 0.4s ease-in-out forwards;
  width: 0%;
  border-radius: 0 2px 2px 0;
}

@keyframes splash-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}


/* ----------------------------------------------------------------
   3. CUSTOM CURSOR
   ---------------------------------------------------------------- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--purple-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.08s linear, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Hide on touch devices */
@media (pointer: coarse), (hover: none) {
  .cursor,
  .cursor-trail {
    display: none !important;
  }
}


/* ----------------------------------------------------------------
   4. PARTICLES CANVAS
   ---------------------------------------------------------------- */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}


/* ----------------------------------------------------------------
   5. PROGRESS BAR
   ---------------------------------------------------------------- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 9998;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ----------------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(10, 10, 15, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-s,
.logo-e {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.nav-cta {
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.lang-switch {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 16px;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.lang-switch:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: rgba(124, 58, 237, 0.05);
}


/* ----------------------------------------------------------------
   7. MOBILE MENU
   ---------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.mobile-close:hover {
  background: rgba(124, 58, 237, 0.1);
}

.mobile-bg-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 20vw;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mobile-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.mobile-link:hover {
  color: var(--purple-400);
  transform: translateX(8px);
}

.ml-num {
  color: var(--purple-500);
  font-size: 0.9rem;
  margin-right: 16px;
  font-weight: 400;
}

.mobile-cta {
  margin-top: 32px;
  padding: 14px 36px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}


/* ----------------------------------------------------------------
   8. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--purple-500);
  top: -200px;
  right: -100px;
  animation: float-1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-500);
  bottom: -150px;
  left: -100px;
  animation: float-2 10s ease-in-out infinite;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 18vw;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: fit-content;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  line-height: 1.1;
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-accent {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--glow-sm);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--purple-400);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: baseline;
}

.stat-unit {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Hero Photo */
.hero-photo-col {
  display: flex;
  justify-content: center;
}

.photo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  z-index: 1;
}

.photo-ring-1 {
  border-color: rgba(124, 58, 237, 0.3);
  animation: spin-slow 20s linear infinite;
}

.photo-ring-2 {
  inset: -24px;
  border-color: rgba(59, 130, 246, 0.2);
  animation: spin-slow 25s linear infinite reverse;
}

.photo-ring-3 {
  inset: -36px;
  border-color: rgba(124, 58, 237, 0.1);
  animation: spin-slow 30s linear infinite;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

.photo-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  z-index: 3;
}

.photo-badge span {
  color: var(--purple-400);
  font-weight: 600;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  animation: scroll-bounce 2s ease-in-out infinite;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--purple-400));
}

.scroll-chevron {
  width: 20px;
  height: 20px;
  color: var(--purple-400);
}


/* ----------------------------------------------------------------
   9. MARQUEE
   ---------------------------------------------------------------- */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accent-dot {
  color: var(--purple-400);
  font-size: 0.8rem;
  line-height: 1;
}

.accent-dot::before {
  content: '◆';
}


/* ----------------------------------------------------------------
   10. SECTION COMMONS
   ---------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center {
  text-align: center;
}


/* ----------------------------------------------------------------
   11. ABOUT (SOBRE)
   ---------------------------------------------------------------- */
.sobre {
  background: var(--bg-primary);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sobre-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sobre-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.sobre-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Timeline */
.timeline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border-subtle);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--text-muted);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.tl-dot.active {
  border-color: var(--purple-400);
  background: var(--purple-500);
  box-shadow: var(--glow-sm);
}

.tl-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--purple-400);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

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

/* Skills Grid */
.sobre-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  color: var(--purple-400);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 20px;
  height: 20px;
}

.skill-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}


/* ----------------------------------------------------------------
   12. DEMO REEL
   ---------------------------------------------------------------- */
.demoreel {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.demoreel-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.demoreel-badge {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-300);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demoreel-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 48px;
  line-height: 1.2;
}

.demoreel-embed-wrap {
  position: relative;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.4));
  box-shadow: var(--glow-lg);
  animation: glow-pulse 3s ease-in-out infinite;
}

.demoreel-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.demoreel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ----------------------------------------------------------------
   13. PORTFOLIO
   ---------------------------------------------------------------- */
.portfolio {
  background: var(--bg-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  break-inside: avoid;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-md);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-thumb-wrap {
  position: absolute;
  inset: 0;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .yt-thumb {
  transform: scale(1.05);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .thumb-overlay {
  opacity: 1;
}

.play-btn {
  width: 56px;
  height: 56px;
  color: #fff;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}

.play-btn:hover {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 16px 20px;
}

.portfolio-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.portfolio-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ----------------------------------------------------------------
   14. REASONS
   ---------------------------------------------------------------- */
.reasons {
  background: var(--bg-primary);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reason-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

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

.reason-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  user-select: none;
}

.reason-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 14px;
  color: var(--purple-400);
  font-size: 1.4rem;
}

.reason-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.reason-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

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


/* ----------------------------------------------------------------
   15. CONTACT (CONTATO)
   ---------------------------------------------------------------- */
.contato {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contato::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contato-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.contato-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.contato-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-btn.primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--glow-sm);
}

.contact-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-md);
}

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

.contact-btn.secondary:hover {
  border-color: var(--purple-400);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-3px);
}

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

.contact-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
  border-color: var(--purple-400);
  color: var(--purple-400);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

.social-link svg {
  width: 20px;
  height: 20px;
}


/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--purple-400);
  color: var(--purple-400);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-copy a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copy a:hover {
  color: var(--purple-300);
}


/* ----------------------------------------------------------------
   17. VIDEO MODAL
   ---------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--glow-lg);
}

.modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ----------------------------------------------------------------
   18. FAB (FLOATING ACTION BUTTON)
   ---------------------------------------------------------------- */
.fab-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--glow-md);
  z-index: 998;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  border: none;
  cursor: pointer;
}

.fab-contact.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-contact:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--glow-lg);
}

.fab-contact svg {
  width: 24px;
  height: 24px;
}


/* ----------------------------------------------------------------
   19. SCROLL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1;
  transform: translate(0);
}


/* ----------------------------------------------------------------
   20. INTRO ANIMATIONS (Hero Entrance)
   ---------------------------------------------------------------- */
.intro-badge,
.intro-w1,
.intro-w2,
.intro-sub,
.intro-ctas,
.intro-stats,
.intro-photo {
  opacity: 0;
  animation-fill-mode: both;
}

.intro-badge {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.intro-w1 {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.intro-w2 {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.intro-sub {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.intro-ctas {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}

.intro-stats {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

.intro-photo {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}


/* ----------------------------------------------------------------
   21. KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float-1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-5deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes rotate-hue {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}


/* ----------------------------------------------------------------
   22. RESPONSIVE — 1024px
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text-col {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-photo-col {
    order: -1;
  }

  .photo-wrap {
    width: 280px;
    height: 280px;
  }

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

  .cursor,
  .cursor-trail {
    display: none !important;
  }
}


/* ----------------------------------------------------------------
   22. RESPONSIVE — 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: 60px;
  }

  .demoreel {
    padding: 80px 0;
  }

  .hero-scroll {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}


/* ----------------------------------------------------------------
   22. RESPONSIVE — 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .contato-buttons {
    flex-direction: column;
    align-items: center;
  }

  .photo-wrap {
    width: 220px;
    height: 220px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-name {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-accent {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

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

  .btn-primary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

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

  .skill-item {
    padding: 14px 16px;
  }

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

  .container {
    padding: 0 16px;
  }

  .mobile-link {
    font-size: 1.6rem;
    padding: 12px 0;
  }

  .splash-logo {
    font-size: 2.5rem;
  }
}


/* ----------------------------------------------------------------
   UTILITY CLASSES
   ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-scroll {
  overflow: hidden;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}


/* ----------------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-orb-1,
  .hero-orb-2,
  .photo-ring-1,
  .photo-ring-2,
  .photo-ring-3,
  .photo-glow,
  .marquee-track,
  .splash-letter,
  .splash-line {
    animation: none !important;
  }

  .reveal-up,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}


/* ----------------------------------------------------------------
   PRINT STYLES
   ---------------------------------------------------------------- */
@media print {
  .nav,
  .splash,
  .cursor,
  .cursor-trail,
  .particles-canvas,
  #progress-bar,
  .fab-contact,
  .video-modal,
  .mobile-menu,
  .hero-scroll,
  .hero-orb,
  .photo-ring,
  .photo-glow {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
}
