/* ==========================================================================
   COLORTOKENS EXECUTIVE CYBERSECURITY FORUM — RED & WHITE THEME
   Enterprise Zero-Trust & Cyber Resilience Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ColorTokens Red & White Palette */
  --ct-red-600: #CC0000;
  --ct-red-500: #E60000;
  --ct-red-400: #FF1A1A;
  --ct-red-50: #FFF5F5;
  --ct-red-100: #FFE3E3;

  --ct-black: #0F141C;
  --ct-charcoal: #1E293B;
  --ct-slate: #475569;
  --ct-muted: #64748B;

  --surface-white: #FFFFFF;
  --surface-offwhite: #F8FAFC;
  --surface-warm: #FAFBFD;

  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--surface-white);
  color: var(--ct-black);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative;
  background-color: var(--surface-white);
  color: var(--ct-black);
  line-height: 1.65;
}

/* Site Header Styling (Crisp White + Red Accent) */
#site-header {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 32px -12px rgba(15, 20, 28, 0.08) !important;
  border-bottom-color: rgba(230, 0, 0, 0.22);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ct-red-500);
}

/* Selection Color */
::selection {
  background: var(--ct-red-500);
  color: #FFFFFF;
}

/* Typography Helpers */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* ColorTokens Red & White Backgrounds & Grids */
.bg-ct-hero {
  background:
    radial-gradient(circle at 85% 22%, rgba(230, 0, 0, 0.08) 0%, rgba(230, 0, 0, 0.03) 35%, transparent 65%),
    radial-gradient(circle at 12% 82%, rgba(230, 0, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #FFFDFD 60%, #F8FAFC 100%);
}

.bg-ct-red-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #D90000 0%, #B30000 100%);
}

.bg-ct-form-section {
  background:
    radial-gradient(circle at 88% 15%, rgba(230, 0, 0, 0.07) 0%, transparent 48%),
    radial-gradient(circle at 12% 85%, rgba(230, 0, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #F8FAFC 0%, #FFF5F5 100%);
}

.bg-cyber-grid {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(230, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 0, 0, 0.045) 1px, transparent 1px);
}

.bg-light-grid {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

/* Subtle Ambient Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.ambient-orb {
  animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

.float-slow {
  animation: floatSlow 5.5s ease-in-out infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -48;
  }
}

.cyber-vector-flow {
  stroke-dasharray: 6 6;
  animation: dashFlow 3.5s linear infinite;
}

/* Primary & Secondary Buttons (ColorTokens Red & White Style) */
.btn-ct-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #E60000 0%, #C40000 100%);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid #CC0000;
  box-shadow: 0 10px 24px -6px rgba(230, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-ct-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.55s ease;
}

.btn-ct-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FF0A0A 0%, #D10000 100%);
  box-shadow: 0 16px 32px -6px rgba(230, 0, 0, 0.48);
  border-color: #E60000;
}

.btn-ct-primary:hover::before {
  left: 100%;
}

.btn-ct-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: #FFFFFF;
  color: var(--ct-black);
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 20, 28, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ct-secondary:hover {
  background: var(--ct-red-50);
  color: var(--ct-red-500);
  border-color: rgba(230, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Event Info Cards */
.event-info-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.event-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 0, 0.35);
  box-shadow: 0 18px 36px -14px rgba(230, 0, 0, 0.12);
}

/* Discussion Cards */
.editorial-takeaway-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.editorial-takeaway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E60000 0%, #FF4D4D 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.editorial-takeaway-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 0, 0.3);
  box-shadow: 0 22px 44px -16px rgba(230, 0, 0, 0.12);
}
.editorial-takeaway-card:hover::before {
  transform: scaleX(1);
}

/* Why Attend Cards */
.benefit-card {
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 0, 0, 0.4);
  box-shadow: 0 20px 40px -14px rgba(230, 0, 0, 0.14);
}

/* Form Input Styling & Validation Error States */
.ct-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.ct-input:focus {
  border-color: #E60000 !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.14);
  background-color: #FFFFFF;
  outline: none;
}

label.error {
  display: block;
  color: #DC2626 !important;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.375rem;
  line-height: 1.3;
}

input.error {
  border-color: #DC2626 !important;
  background-color: #FFF5F5 !important;
}

/* Scroll Reveal Transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
