/* ═══════════════════════════════════════
   GLOBAL.CSS - Agence Topo
   Variables, base, animations, fonts
   ═══════════════════════════════════════ */

:root {
  --color-primary: #0044FF;
  --color-primary-light: #3366FF;
  --color-primary-dark: #0033CC;
  --color-accent: #FF9F1C;
  --color-accent-light: #FFB84D;
  --color-dark: #1E293B;
  --color-darker: #0F172A;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;
  --font-family: 'Lexend', sans-serif;
  --transition-base: all 0.3s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 68, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 68, 255, 0.6); }
}
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideImages {
  0% { transform: translateX(0); }
  20% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  45% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  70% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  95% { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}

.bg-grid-slate {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ═══ Hero Animations ═══ */
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { 0% { opacity: 0; transform: translateX(-40px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes countUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateX(60px); } 100% { opacity: 1; transform: translateX(0); } }

.hero-fade-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.hero-fade-up-d1 { animation-delay: 0.1s; }
.hero-fade-up-d2 { animation-delay: 0.3s; }
.hero-fade-up-d3 { animation-delay: 0.5s; }
.hero-fade-up-d4 { animation-delay: 0.7s; }
.hero-fade-up-d5 { animation-delay: 0.9s; }
.hero-fade-left { animation: fadeInLeft 0.8s ease-out forwards; opacity: 0; }
.hero-scale-in { animation: scaleIn 0.6s ease-out forwards; opacity: 0; }
.hero-slide-right { animation: slideInRight 0.8s ease-out forwards; opacity: 0; }
.hero-slide-right-d1 { animation-delay: 1.1s; }
.hero-slide-right-d2 { animation-delay: 1.3s; }
.hero-slide-right-d3 { animation-delay: 1.5s; }

.hero-stat { position: relative; overflow: hidden; }
.hero-stat::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 3s infinite; }

/* ═══ Text Effects ═══ */
.drop-text { display: inline-block; animation: dropIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards; opacity: 0; }
.drop-dot { display: inline-block; animation: dropIn 0.8s cubic-bezier(0.5, 0, 0.75, 0) forwards; opacity: 0; }
.delay-text { animation-delay: 0.2s; }
.delay-dot { animation-delay: 0.6s; }

.reveal-text span { display: inline-block; opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out; }
.reveal-text.visible span { opacity: 1; transform: translateY(0); }
.font-morph { font-weight: 300; transition: font-weight 1s ease, color 1s ease; }
.reveal-text.visible .font-morph { font-weight: 800; color: #0044FF; }

/* ═══ Portfolio Slider ═══ */
.slider-track { display: flex; width: 300%; transition: transform 0.5s ease-out; }
.project-card:hover .slider-track { animation: slideImages 4s infinite alternate; }

::selection {
  background-color: var(--color-primary);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
