/* ========================================
   Trigo Digital - Bold Creative Design
   Main Stylesheet - Shared Across All Pages
   PHP 8.4 | Strict CSP | No Inline Styles
   ======================================== */

:root {
  /* Bold Color Palette */
  --orange-primary: #FF6B35;
  --orange-secondary: #F7931E;
  --orange-bright: #FFD700;
  --teal-primary: #4ECDC4;
  --teal-secondary: #44A08D;
  --teal-blue: #0093E9;
  --purple-primary: #9D50BB;
  --purple-secondary: #6E48AA;
  --yellow-primary: #F7971E;
  --yellow-secondary: #FFD200;
  
  /* Base Colors */
  --bg-dark: #0a0e27;
  --bg-darker: #0d0d0d;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Gradients */
  --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  --gradient-teal: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  --gradient-purple: linear-gradient(135deg, #9D50BB 0%, #6E48AA 100%);
  --gradient-yellow: linear-gradient(135deg, #F7971E 0%, #FFD200 100%);
  --gradient-rainbow: linear-gradient(135deg, #FF6B35 0%, #4ECDC4 50%, #9D50BB 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  /* Spacing */
  --section-padding: 120px;
  --container-max: 1400px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Container */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--orange-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.btn-large {
  padding: 18px 50px;
  font-size: 1.2rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 80px;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--gradient-orange);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .wrap {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .wrap {
    padding: 0 20px;
  }
  
  .btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  .btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

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