/* ============================================
   PromoRedex — Custom CSS
   Dark theme + Neon/Gradient effects
   ============================================ */

:root {
  --dark:        #0B0B1A;
  --darker:      #070712;
  --surface:     #13132B;
  --surface-2:   #1A1A3E;
  --primary:     #7C3AED;
  --primary-rgb: 124, 58, 237;
  --secondary:   #EC4899;
  --secondary-rgb: 236, 72, 153;
  --accent:      #06B6D4;
  --accent-rgb:  6, 182, 212;
  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --border:      rgba(255,255,255,0.08);
  --glow-purple: 0 0 40px rgba(124,58,237,0.4);
  --glow-pink:   0 0 40px rgba(236,72,153,0.4);
  --glow-cyan:   0 0 40px rgba(6,182,212,0.4);
  --gradient:    linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-2:  linear-gradient(135deg, #06B6D4 0%, #7C3AED 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(124,58,237,0.4); color: #fff; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

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

/* ============================================
   ANIMATED HERO BACKGROUND
   ============================================ */

.hero-bg {
  position: relative;
  overflow: hidden;
  background: var(--darker);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(236,72,153,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(6,182,212,0.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-bg > * { position: relative; z-index: 1; }

@keyframes heroGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; left: -100px;
  animation-duration: 7s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  top: 100px; right: -150px;
  animation-duration: 9s;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: -100px; left: 40%;
  animation-duration: 11s;
  animation-delay: -6s;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(11,11,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.65rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(124,58,237,0.5);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(124,58,237,0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}

/* ============================================
   CARDS
   ============================================ */

.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.glass-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.2);
}

/* Gradient border card */
.gradient-border {
  position: relative;
  border-radius: 16px;
  background: var(--surface);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.gradient-border:hover::before { opacity: 1; }

/* Service icon box */
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(236,72,153,0.2));
  border: 1px solid rgba(124,58,237,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-purple);
}

/* ============================================
   STATS COUNTER
   ============================================ */

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #A78BFA;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   PORTFOLIO / CASES
   ============================================ */

.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.case-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.case-card:hover .case-img { transform: scale(1.05); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,26,0.95) 0%, transparent 60%);
}

.case-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #A78BFA;
}

.case-metric {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.case-metric span:first-child {
  font-weight: 700;
  font-size: 0.95rem;
  color: #4ADE80;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-3px);
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: rgba(124,58,237,0.2);
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.stars { color: #FBBF24; letter-spacing: 2px; }

/* ============================================
   PROCESS STEPS
   ============================================ */

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

.step-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(124,58,237,0.6), transparent);
  margin: 0.5rem auto;
}

/* ============================================
   TEAM CARDS
   ============================================ */

.team-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(124,58,237,0.3);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-social a {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.team-social a:hover {
  background: rgba(124,58,237,0.2);
  color: #A78BFA;
  border-color: rgba(124,58,237,0.4);
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: rgba(124,58,237,0.25);
}

.blog-card > div:first-child img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover > div:first-child img { transform: scale(1.04); }

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   LOGOS STRIP
   ============================================ */

.logos-strip {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  gap: 3rem;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}

.logos-track:hover { animation-play-state: paused; }

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1rem;
  opacity: 0.4;
  transition: opacity 0.3s;
  filter: grayscale(1) brightness(3);
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.logo-item:hover { opacity: 0.8; }

/* ============================================
   FORM
   ============================================ */

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.form-input::placeholder { color: rgba(148,163,184,0.5); }

.form-input:focus {
  border-color: rgba(124,58,237,0.6);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.form-input:focus::placeholder { opacity: 0.7; }

select.form-input option {
  background: var(--surface);
  color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover { color: #A78BFA; }

.footer-social {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.25s;
  text-decoration: none;
}

.footer-social:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.4);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,58,237,0.2) 0%, transparent 70%);
}

/* ============================================
   ANIMATIONS (Intersection Observer)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7,7,18,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

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

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-desktop { display: none; }
}

/* ============================================
   MISC UTILS
   ============================================ */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
  margin: 0;
}

.glow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Filter pills (portfolio) */
.filter-pill {
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124,58,237,0.35);
}

/* Number badge */
.badge-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; height: 24px;
  border-radius: 50px;
  background: var(--gradient);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 0 6px;
}

/* Section padding */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .stat-number { font-size: 2.5rem; }
}
