/**
 * National Cyber Security Centre - Premium Template
 * Ultra-modern design with sophisticated gold/dark theme
 */

/* ========================================
   CSS VARIABLES - PREMIUM DESIGN SYSTEM
   ======================================== */

:root {
  /* Premium Gold Palette */
  --gold-primary: #D4AF37;
  --gold-bright: #FFD700;
  --gold-accent: #F5A623;
  --gold-dark: #B8941F;
  --gold-light: #FFF4CC;
  --gold-rose: #E8B4B8;
  
  /* Sophisticated Dark Backgrounds */
  --bg-primary: #050507;
  --bg-secondary: #0A0A0F;
  --bg-tertiary: #12121A;
  --bg-card: #1A1A24;
  --bg-elevated: #22222E;
  --bg-overlay: rgba(10, 10, 15, 0.85);
  
  /* Premium Text Hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: #C9C9D4;
  --text-tertiary: #8A8A9A;
  --text-muted: #5A5A6A;
  --text-gold: #D4AF37;
  
  /* Status Colors */
  --status-success: #00D9A3;
  --status-warning: #FFB547;
  --status-error: #FF5C6C;
  --status-info: #5B9FFF;
  --status-frozen: #FF3B47;
  
  /* Border System */
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.04);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-bright: rgba(212, 175, 55, 0.6);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  /* Premium Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #F5A623 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(245, 166, 35, 0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #050507 0%, #12121A 100%);
  --gradient-card: linear-gradient(135deg, rgba(26, 26, 36, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
  --gradient-radial: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  --gradient-mesh: 
    radial-gradient(at 20% 30%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(245, 166, 35, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 215, 0, 0.04) 0px, transparent 50%);
  
  /* Glassmorphism */
  --glass-bg: rgba(26, 26, 36, 0.6);
  --glass-bg-strong: rgba(26, 26, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;
  --glass-blur-strong: 40px;
  
  /* Premium Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 32px 96px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.25);
  --shadow-gold-lg: 0 16px 48px rgba(212, 175, 55, 0.35);
  --shadow-gold-glow: 0 0 60px rgba(212, 175, 55, 0.4);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-secondary: 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   GLOBAL RESET
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Premium Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

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

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.text-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

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

/* ========================================
   PREMIUM GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md), var(--shadow-inner);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--border-gold) 0%, transparent 50%, var(--border-gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  background: var(--glass-bg-strong);
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1;
}

/* Premium Gold Border Card */
.gold-border-card {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
}

.gold-border-card::after {
  opacity: 1;
  background: var(--gradient-gold);
  padding: 2px;
}

.gold-border-card {
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* ========================================
   PREMIUM BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-gold), var(--shadow-inner);
  font-weight: 700;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg), var(--shadow-gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--border-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.875rem;
  width: 48px;
  height: 48px;
}

/* ========================================
   PREMIUM HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1rem 0;
}

.header.scrolled {
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  padding: 0.5rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: all var(--transition-base);
}

.logo i {
  font-size: 1.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.logo span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--gold-primary);
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: var(--gradient-radial);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 540px;
}

/* ========================================
   PREMIUM BADGE
   ======================================== */

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}

.premium-badge i {
  font-size: 0.75rem;
}

.premium-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--status-success);
  border-radius: 50%;
  position: relative;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 163, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 217, 163, 0);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

/* Scroll reveal animations */
.glass-card,
.step-card,
.feature-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.glass-card.fade-in,
.step-card.fade-in,
.feature-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   TRUST SIGNALS - PREMIUM MARQUEE
   ======================================== */

.trust-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  overflow: hidden;
  position: relative;
}

.trust-section::before {
  content: 'TRUSTED BY INDUSTRY LEADERS';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  z-index: 2;
}

.marquee-container {
  margin-top: 1.5rem;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee {
  display: flex;
  gap: 5rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.marquee-item img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.marquee-item:hover {
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   STEPS / PROCESS SECTION
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #000;
  box-shadow: var(--shadow-gold), var(--shadow-inner);
  position: relative;
  font-family: var(--font-display);
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0.3;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  opacity: 0.1;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

.step-description {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    border-bottom: 1px solid var(--border-primary);
    height: calc(100vh - 70px);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-content {
    padding: 0.75rem 1.5rem;
  }
  
  .container,
  .container-narrow {
    padding: 0 1.25rem;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }

/* Selection */
::selection {
  background: var(--gold-primary);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-primary));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}
