/* =========================================================================
   NEXOSUR DESIGN SYSTEM 
   Modern, Premium, Tech-Focused CSS
   ========================================================================= */

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

:root {
  /* Core Colors - Light Theme */
  --color-primary: #1240A8; /* Blue */
  --color-primary-soft: rgba(18, 64, 168, 0.1);
  --color-secondary: #0D47A1; /* Deeper Blue */
  --color-secondary-bright: #1B5E20; /* Dark Green */
  --color-accent: #3b82f6; /* Bright Blue */
  
  /* Backgrounds and Surfaces */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f5f9;
  
  /* Text */
  --color-text-main: #334155;
  --color-text-heading: #0f172a;
  --color-text-muted: #64748b;
  --color-white: #ffffff;
  
  /* Borders */
  --color-border: #e2e8f0;           /* Light grey border */

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.cyber-bg {
  background-color: #060912;
  background-image: 
    linear-gradient(rgba(6, 9, 18, 0.3), rgba(6, 9, 18, 0.3)),
    url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  position: relative;
  overflow: hidden;
  color: white;
}

.cyber-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(18, 64, 168, 0.03), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(141, 198, 63, 0.03), transparent 40%);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(18, 64, 168, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white !important;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-bright));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary-bright);
  background: var(--color-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
  opacity: 1;
}

/* Icons */
.icon-container {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(141, 198, 63, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-bright);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(141, 198, 63, 0.2);
}

.icon-container svg {
  width: 24px;
  height: 24px;
}

/* =========================================================================
   NAVIGATION (Navbar)
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.85rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white; /* Initial state on background images */
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-heading); /* Turn dark when bg is white */
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background-color: #0F172A;
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.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;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .navbar-links {
    display: none; /* Mobile menu handled by JS in real app */
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================================
   MODAL STYLES
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-heading);
}

.modal-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 2rem;
    }
}
