/* ===============================================
   DESIGN SYSTEM - EDN Computing Group Refonte
   =============================================== */

/* Color Palette */
:root {
  /* Primary Colors */
  --brand-red: #c00505;
  --brand-red-dark: #920505;
  --brand-red-light: #e53838;
  
  /* Neutrals - Light Mode */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f0f2f5;
  --gray-100: #e8eaed;
  --gray-300: #d1d5db;
  --gray-500: #9ca3af;
  --gray-700: #515763;
  --dark-gray: #313a43;
  --char-gray: #1f2937;
  --dark-navy: #0f172a;
  --black: #01060a;
  
  /* Accents */
  --tech-blue: #0f6fee;
  --tech-blue-light: #3b82f6;
  
  /* Glass Effect */
  --glass-light: rgba(255, 255, 255, 0.8);
  --glass-dark: rgba(15, 23, 42, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 6px 30px rgba(192, 5, 5, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.2);
  
  /* Z-index */
  --z-sticky: 1000;
  --z-modal: 1050;
  --z-cursor: 9999;
}

/* Typography Enhancements */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--white);
  color: var(--dark-gray);
  font-family: 'Barlow', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Links */
a {
  color: var(--brand-red);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--brand-red-dark);
}

/* Buttons */
.btn {
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}

.btn-brand {
  background: #E30613;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.15);
}

.btn-brand:hover {
  background: #B80510;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.25);
}

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

.btn-outline:hover {
  background-color: #E30613;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
  transform: translateY(-2px);
}

/* Glass Effect Utility */
.glass {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* Gradient Backgrounds */
.gradient-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.5));
}

.gradient-brand {
  background: linear-gradient(135deg, #c00505, #920505);
  color: var(--white);
}

.gradient-dark {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: var(--white);
}

/* Sections */
section {
  padding: 80px 0;
  overflow: hidden;
}

section.light {
  background-color: var(--white);
}

section.gray {
  background-color: var(--light-gray);
}

section.dark {
  background-color: var(--dark-navy);
  color: var(--white);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h6 {
  color: var(--brand-red);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-700);
  font-size: 1.1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-base);
  transition: all 0.4s ease;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card.glass {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 32px;
}

/* Container */
.container {
  max-width: 1280px;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(192, 5, 5, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(192, 5, 5, 0.6);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-reveal.visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.rounded-xl {
  border-radius: 16px;
}

img.rounded-2xl {
  border-radius: 24px;
}

/* Utility Classes */
.text-brand {
  color: var(--brand-red);
}

.text-light {
  color: var(--gray-500);
}

.text-dark {
  color: var(--black);
}

.text-uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.font-light {
  font-weight: 400;
}

.font-regular {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.py-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.py-section-sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: var(--brand-red);
  margin: 20px auto;
  border-radius: 2px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-brand {
  background-color: rgba(192, 5, 5, 0.1);
  color: var(--brand-red);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-light: rgba(31, 41, 55, 0.9);
    --glass-dark: rgba(255, 255, 255, 0.1);
  }
  
  body {
    background-color: var(--dark-navy);
    color: #e5e7eb;
  }
}
