@layer base {
  :root {
    /* Deep Navy Blue - Primary (Trust/Stability) */
    --background: 220 30% 6%;
    --foreground: 210 20% 95%;

    --card: 220 25% 10%;
    --card-foreground: 210 20% 95%;

    --popover: 220 25% 10%;
    --popover-foreground: 210 20% 95%;

    /* DSK Orange - Brand Accent */
    --primary: 25 95% 53%;
    --primary-foreground: 220 30% 6%;

    /* Metallic Silver/Grey (Technology/Fleet) */
    --secondary: 215 15% 18%;
    --secondary-foreground: 210 20% 90%;

    --muted: 220 15% 15%;
    --muted-foreground: 215 15% 60%;

    /* Accent - Subtle Amber/Gold */
    --accent: 38 92% 50%;
    --accent-foreground: 220 30% 6%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 20% 95%;

    --border: 215 20% 20%;
    --input: 215 20% 18%;
    --ring: 25 95% 53%;

    --radius: 0.625rem;

    /* Custom Design Tokens */
    --navy-deep: 220 30% 6%;
    --navy-medium: 220 25% 12%;
    --navy-light: 215 20% 18%;
    --silver-dark: 215 15% 25%;
    --silver-medium: 215 12% 45%;
    --silver-light: 215 10% 75%;
    --amber-glow: 25 95% 53%;
    --amber-soft: 38 70% 60%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220 30% 6%) 0%, hsl(220 25% 12%) 50%, hsl(215 20% 18%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(220 25% 12%) 0%, hsl(220 30% 8%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(25 95% 53%) 0%, hsl(38 92% 50%) 100%);
    --gradient-overlay: linear-gradient(180deg, hsla(220, 30%, 6%, 0.7) 0%, hsla(220, 30%, 6%, 0.95) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px -2px hsla(220, 30%, 6%, 0.3);
    --shadow-md: 0 8px 24px -8px hsla(220, 30%, 6%, 0.4);
    --shadow-lg: 0 16px 48px -16px hsla(220, 30%, 6%, 0.5);
    --shadow-glow: 0 0 40px hsla(25, 95%, 53%, 0.15);
    --shadow-card: 0 4px 24px -4px hsla(220, 30%, 6%, 0.6);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sidebar (not used but kept for compatibility) */
    --sidebar-background: 220 25% 10%;
    --sidebar-foreground: 210 20% 95%;
    --sidebar-primary: 25 95% 53%;
    --sidebar-primary-foreground: 220 30% 6%;
    --sidebar-accent: 215 20% 18%;
    --sidebar-accent-foreground: 210 20% 95%;
    --sidebar-border: 215 20% 20%;
    --sidebar-ring: 25 95% 53%;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Reduce motion for users who prefer it */
@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;
  }
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

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

.card-glass {
  background-color: hsla(var(--card), 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsla(var(--border), 0.5);
  box-shadow: var(--shadow-card);
  will-change: transform;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  will-change: transform;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.btn-secondary:hover {
  background-color: hsla(var(--secondary), 0.8);
  border-color: hsla(var(--primary), 0.3);
}

.nav-link {
  position: relative;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.heading-xl {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
}

@media (min-width: 768px) {
  .heading-xl {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .heading-xl {
    font-size: 3.75rem;
  }
}

.heading-lg {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
}

@media (min-width: 768px) {
  .heading-lg {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .heading-lg {
    font-size: 3rem;
  }
}

.heading-md {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

@media (min-width: 768px) {
  .heading-md {
    font-size: 1.875rem;
  }
}

.heading-sm {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

@media (min-width: 768px) {
  .heading-sm {
    font-size: 1.5rem;
  }
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .body-lg {
    font-size: 1.25rem;
  }
}

.body-md {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .body-md {
    font-size: 1.125rem;
  }
}

/* Accordion animations */
@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

.accordion-content {
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.accordion-content[data-state="closed"] {
  animation: accordion-up 0.2s ease-out;
}

.accordion-content[data-state="open"] {
  animation: accordion-down 0.2s ease-out;
}

.accordion-trigger svg {
  transition: transform 0.2s;
}

.accordion-trigger[data-state="open"] svg {
  transform: rotate(180deg);
}

/* Mobile menu animations */
@keyframes slide-in-from-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-to-right {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.mobile-menu-panel {
  will-change: transform;
}

#mobile-menu[data-open="true"] .mobile-menu-panel {
  animation: slide-in-from-right 0.3s ease-out;
}

#mobile-menu[data-open="false"] .mobile-menu-panel {
  animation: slide-out-to-right 0.3s ease-out;
}

/* Ensure mobile menu has proper background and is above all content */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Isolate from parent backdrop-filter effects */
  isolation: isolate;
}

/* Mobile menu panel - solid background */
.mobile-menu-panel {
  background: hsl(220 25% 10%) !important;
  background-color: hsl(220 25% 10%) !important;
  opacity: 1 !important;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5) !important;
  /* Prevent any transparency */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  /* Force solid background over any inherited styles */
  background-image: none !important;
  background-blend-mode: normal !important;
}

/* Additional background layer for extra safety */
.mobile-menu-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsl(220 25% 10%) !important;
  background-color: hsl(220 25% 10%) !important;
  z-index: -1;
  opacity: 1 !important;
  /* Prevent transparency from being applied */
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Scroll indicator animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-bounce {
  animation: bounce 1.5s ease-in-out infinite;
}

/* --- POPUP BEZPIECZEŃSTWA DSK TRANSPORT --- */
#dsk-security-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

#dsk-security-box {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    box-sizing: border-box;
    border-top: 5px solid #d9534f;
}

#dsk-security-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

#dsk-security-close:hover {
    color: #333;
}

#dsk-security-box h2 {
    color: #d9534f;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 24px;
}

#dsk-security-box h3 {
    color: #777;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: normal;
}

#dsk-security-box p {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.dsk-highlight {
    font-weight: bold;
    color: #0056b3;
    font-size: 18px;
    display: block;
    margin: 15px 0;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

hr.dsk-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

#dsk-security-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#dsk-security-btn:hover {
    background-color: #c9302c;
}