/* global.css - PakSec Nation Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Colors */
  --color-bg: #0B0F19;
  /* Obsidian Black */
  --color-primary: #00F260;
  /* Matrix Green */
  --color-secondary: #004B23;
  /* Crescent Green */
  --color-text-main: #FFFFFF;
  /* Pure White */
  --color-text-muted: #828F9C;
  /* Steel Gray */
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-error: #FF3366;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 10rem;


  /* Transitions & Effects */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-glow: 0 0 20px rgba(0, 242, 96, 0.2);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 242, 96, 0.03) 0%, transparent 70%),
    linear-gradient(rgba(0, 242, 96, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 96, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Awesome Utils */
.glow-text {
  text-shadow: 0 0 15px rgba(0, 242, 96, 0.5);
}

.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  border-radius: inherit;
}

.glow-border:hover::after {
  opacity: 0.5;
}

/* Cyber Scanning Line */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 242, 96, 0.05);
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.2);
  z-index: 9999;
  pointer-events: none;
  animation: scan 10s linear infinite;
}

@keyframes scan {
  from { top: -5%; }
  to { top: 105%; }
}


/* Animations */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.page-enter {
  animation: pageFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Floating Particles */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

body::after {
  content: '';
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  bottom: -10px;
  left: 20%;
  box-shadow:
    0 0 6px rgba(0, 242, 96, 0.4),
    80vw -10vh 0 0 rgba(0, 242, 96, 0.2),
    30vw -30vh 0 0 rgba(0, 242, 96, 0.15),
    70vw -50vh 0 0 rgba(0, 242, 96, 0.25),
    15vw -60vh 0 0 rgba(0, 242, 96, 0.1),
    85vw -80vh 0 0 rgba(0, 242, 96, 0.2),
    50vw -90vh 0 0 rgba(0, 242, 96, 0.15);
  animation: floatUp 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Enhanced button transitions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth glass card tilt on hover */
.glass-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Stagger reveals */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

/* Layout Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}


.section {
  padding: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mt-3 {
  margin-top: var(--space-lg);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

.mb-3 {
  margin-bottom: var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 200px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #000;
  /* Fixed contrast for bright green background */
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: #00d655;
  /* Slightly darker green on hover instead of transparent */
  color: #000;
  border-color: #00d655;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Glassmorphism Common Utilities */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  box-shadow: 0 10px 30px rgba(0, 242, 96, 0.15);
}

/* Navigation Base */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;

  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.nav-brand img {
  height: 95px;
  width: auto;
  transition: transform var(--transition-normal);
}


.nav-brand span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Footer Base */
.footer {
  background-color: #05080c;
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  right: 2rem;
  transform: translateX(120%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  pointer-events: auto;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast-show {
  opacity: 1;
  transform: translateX(0);
}

.toast-exit {
  opacity: 0;
  transform: translateX(120%);
}

.toast-success {
  background: rgba(0, 242, 96, 0.12);
  border: 1px solid rgba(0, 242, 96, 0.4);
  color: var(--color-primary);
}

.toast-error {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: #FF3366;
}

.toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon {
  background: rgba(0, 242, 96, 0.15);
}

.toast-error .toast-icon {
  background: rgba(255, 51, 102, 0.15);
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Inline Form Status Messages */
.form-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.2rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.form-status.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 200px;
  margin-top: 1.2rem;
  padding: 1rem 1.25rem;
}

.form-status-success {
  background: rgba(0, 242, 96, 0.1);
  border: 1px solid rgba(0, 242, 96, 0.3);
  color: var(--color-primary);
}

.form-status-error {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #FF3366;
}

.form-status-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-status-success .form-status-icon {
  background: rgba(0, 242, 96, 0.15);
}

.form-status-error .form-status-icon {
  background: rgba(255, 51, 102, 0.15);
}

.form-status-text {
  flex: 1;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
    --space-md: 1.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.5px;
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  /* Navbar mobile */
  .navbar {
    padding: 1rem 0;
  }

  .nav-brand {
    font-size: 1.25rem;
    gap: 8px;
  }

  .nav-brand img {
    height: 50px !important;
  }

  /* Mobile menu - hidden off screen by default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 320px);
    height: 100vh;
    height: 100dvh;
    background: #0d1120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--color-border);
    z-index: 999;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  /* Revealed state */
  .nav-links.active {
    right: 0;
  }

  /* Individual nav link tap targets */
  .nav-links a {
    font-size: 1.15rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  /* Show hamburger button */
  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  /* Overlay behind menu */
  .nav-links.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(2px);
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Glass card */
  .glass-card {
    padding: 1.5rem;
  }

  /* Mobile performance: disable heavy effects */
  .scanline {
    display: none;
  }

  body::after {
    display: none;
  }

  .glow-border::after {
    display: none;
  }

  /* Simplify transitions on mobile */
  .reveal {
    transition-duration: 0.5s;
  }

  .reveal-left,
  .reveal-right {
    transition-duration: 0.5s;
  }

  .reveal-scale {
    transition-duration: 0.5s;
  }

  .glass-card,
  .diff-card,
  .why-stat-card,
  .event-card,
  .future-card {
    transition-duration: 0.25s;
  }

  /* Disable hover transforms that cause layout shifts on mobile scroll */
  .glass-card:hover {
    transform: none;
  }

  .diff-card:hover {
    transform: none;
  }

  .event-card:hover {
    transform: none;
  }

  .future-card:hover {
    transform: none;
  }

  .why-stat-card:hover {
    transform: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  .toast-notification {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
    max-width: none;
  }

  .toast-show {
    transform: translateX(0) translateY(0);
  }

  .toast-exit {
    transform: translateX(0) translateY(20px);
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-lg: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }

  .nav-brand {
    font-size: 1.4rem;
  }
}