/* 
 * Dudu Fevereiro Portfolio - Master Stylesheet
 * Integrates with Tailwind CSS (via CDN)
 * Aesthetic: Cinematic Noir & Gaming Premium 
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;500;700;900&display=swap');

:root {
  /* Brand colors */
  --color-cinematic-red: #E11D48;
  --color-laser-red: #BE123C;
  --color-studio-onyx: #030305;
  --color-charcoal: #0F0F12;
  
  /* Text */
  --color-starlight: #F8FAFC;
  --color-ash: #80808A;
  
  /* Effects */
  --glow-subtle: 0 0 25px rgba(225, 29, 72, 0.15);
  --glow-strong: 0 0 50px rgba(225, 29, 72, 0.4);
}

/* Base Override */
body {
  background-color: var(--color-studio-onyx);
  color: var(--color-starlight);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  /* Very subtle film noise for texture */
  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.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
}

/* Typography classes */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.text-stroke {
    -webkit-text-stroke: 1px #E11D48;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    transition: all 0.4s ease;
}
.text-stroke:hover {
    -webkit-text-fill-color: #E11D48;
    color: #E11D48; /* Fallback */
    -webkit-text-stroke: 1px transparent;
    text-shadow: 0 0 50px rgba(225, 29, 72, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-studio-onyx);
}
::-webkit-scrollbar-thumb {
  background: var(--color-charcoal);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-laser-red);
}

/* Custom GSAP / UI Patterns */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid var(--color-cinematic-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(225, 29, 72, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Special Ambient Glow */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225,29,72,0.08) 0%, rgba(3,3,5,0) 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glow-text {
  text-shadow: 0 0 15px rgba(225, 29, 72, 0.6);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card {
  background: rgba(15, 15, 18, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(15, 15, 18, 0.7);
  box-shadow: var(--glow-subtle);
  transform: translateY(-8px);
}

/* Buttons */
.btn-primary {
  background-color: transparent;
  color: var(--color-starlight);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px; /* Pill shape */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-cinematic-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.btn-primary:hover {
    border-color: var(--color-cinematic-red);
    box-shadow: var(--glow-subtle);
}

/* Page Transitions */
.page-transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-studio-onyx);
    z-index: 10000;
    transform: translateY(0%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-top: 2px solid var(--color-cinematic-red);
}
.page-transition-layer.active {
    pointer-events: all;
}

/* Specific Utilities */
.mix-blend-overlay {
    mix-blend-mode: overlay;
}
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

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

.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}
