/* ========== DSM Group — Custom Styles ========== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Body base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Header ========== */
#header {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

#header.scrolled {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Active nav link */
.nav-link.active {
  color: #C41E2A;
  font-weight: 600;
}

/* ========== Language Switcher ========== */
.lang-btn.active {
  background: #C41E2A;
  color: white;
  font-weight: 600;
}

/* ========== Hero Section ========== */
#hero {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196, 30, 42, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 30, 42, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #111111 0%, #1A1A1A 100%);
}

/* ========== Section animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for cards */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========== Category cards ========== */
.category-card {
  transition: transform 0.3s, background 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
}

/* ========== Custom scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C41E2A;
}

/* ========== Selection ========== */
::selection {
  background: rgba(196, 30, 42, 0.3);
  color: white;
}

/* ========== Form focus ========== */
input:focus,
textarea:focus {
  border-color: #C41E2A;
  box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

/* ========== Responsive adjustments ========== */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  #hero .text-xl {
    font-size: 1rem;
  }

  .category-card {
    padding: 1rem;
  }

  .category-card .w-16 {
    width: 3rem;
    height: 3rem;
  }

  .category-card i {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ========== Print styles ========== */
@media print {
  #header,
  .animate-bounce {
    display: none;
  }

  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
