@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Cybrinix Premium Navy Theme */
  --bg-color: #040914;
  --bg-color-rgb: 4, 9, 20;
  --surface-color: #0b1320;
  --surface-color-rgb: 11, 19, 32;
  --surface-border: #1e293b;
  --surface-hover: #152238;
  
  --primary-cyan: #3b82f6;
  --primary-violet: #60a5fa;
  --primary-magenta: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.2);
  --accent-red: #f87171;
  --accent-red-bg: rgba(248, 113, 113, 0.1);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

/* Micro-interactions */
::selection {
  background: var(--primary-violet);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* Reset & Basics */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .container { padding: 0 16px; } }

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-violet), var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-xl { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 24px; }
.title-lg { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 20px; }
.title-md { font-size: 1.5rem; margin-bottom: 16px; }
.text-lead { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 32px; font-weight: 400; }

/* UI Components */
/* Crisp Panel */
.glass-panel {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}
.glass-panel:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 40px var(--accent-glow);
}

.test-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.quote-icon {
  color: var(--primary-cyan);
  opacity: 0.5;
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
}
.test-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
  font-style: italic;
  color: #e2e8f0;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-violet), var(--primary-cyan));
  color: #fff;
  box-shadow: 0 10px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--surface-border);
  color: var(--text-main);
  padding: 14px 30px;
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 0;
  z-index: 100;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(var(--bg-color-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--surface-color-rgb), 0.7);
  border: 1px solid var(--surface-border);
  padding: 8px 24px;
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.logo img {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface-hover);
  padding: 8px 32px;
  border-radius: 100px;
  border: 1px solid var(--surface-border);
  height: 50px;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary-cyan);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-actions a.contact {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-actions a.contact:hover {
  color: var(--primary-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: 80px;
  background-image: 
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(14, 165, 233, 0.1) 0px, transparent 50%);
}
.hero-bg-mesh {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}

/* Sections */
section { padding: var(--section-padding); position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 64px; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mouse Glow for Light Theme (very subtle) */
.glow-effect {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.glass-panel:hover .glow-effect { opacity: 1; }

/* Mega Footer */
footer {
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  padding: 80px 0; 
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}
.footer-grid .footer-col:first-child p {
  color: rgba(148, 163, 184, 0.6) !important;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 0.3s;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--primary-cyan);
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  margin-bottom: 0;
}
.social-links a:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  footer {
    padding: 60px 0 20px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: inline-block;
  padding: 16px;
  margin: -16px;
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-muted);
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--primary-violet);
  color: #fff;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  margin-top: 0;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 16px;
}
.faq-icon {
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Profile / Team Card */
.team-card {
  text-align: center;
  padding: 32px 24px;
}
.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 4px solid var(--surface-hover);
}
.team-role {
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Compact CTA */
.cta-compact {
  padding: 40px 0;
}
.cta-compact .title-lg {
  margin-bottom: 16px;
  font-size: 2rem;
}
.cta-compact .text-lead {
  margin-bottom: 24px;
}

/* Smaller Service Cards */
.card-compact {
  padding: 24px;
}
.card-compact .title-lg {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.card-compact .text-lead {
  font-size: 1rem;
  margin-bottom: 20px;
}
.card-compact i {
  width: 32px !important;
  height: 32px !important;
  margin-bottom: 16px !important;
}

/* Form Styles Standardization */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  font-family: var(--font-body);
  color: var(--text-main);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
  border-color: var(--primary-violet);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-input::placeholder {
  color: #94a3b8;
}

/* Animated Counter Utilities */
.counter {
  display: inline-block;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-logo {
  height: 64px;
  width: auto;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.particles-js-canvas-el {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Internal Pages */
.internal-hero {
  position: relative;
  padding: 140px 0 60px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}
.internal-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.internal-hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0;
}

/* Premium Micro-Interactions */
.btn-solid-blue i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-solid-blue:hover i {
  transform: translateX(4px);
}

.icon-box-blue {
  transition: transform 0.3s ease, background 0.3s ease;
}
.auto-card:hover .icon-box-blue {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.2);
}

/* Deep Shadows for Premium Depth */
.auto-card, .ops-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.auto-card:hover, .ops-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.3) inset;
}

/* Page Transition Smoothness */
html {
  scroll-behavior: smooth;
}
body {
  animation: fadeInPage 0.8s ease-out forwards;
}
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sticky Glassmorphic Header */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1600px;
  height: 90px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    height: 70px;
  }
}

/* Ensure the body or main content doesn't jump under the nav */
/* (position: sticky handles this automatically compared to position: fixed) */

/* Mobile Navigation Menu Panel */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-color, #040914);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

#mobile-menu.open {
  right: 0 !important;
}

#menu-trigger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

/* Responsiveness overrides for Nav Bar */
@media (max-width: 1150px) {
  nav .nav-links,
  nav .nav-actions {
    display: none !important;
  }
  #menu-trigger {
    display: flex !important;
  }
}
