/* ==========================================================================
   CTechnology - Corporate Web Stylesheet
   Dark Tech Modern Design System
   ========================================================================== */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1322;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1a243d;
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-focus: rgba(56, 189, 248, 0.4);
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-electric: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --glow-color: rgba(14, 165, 233, 0.15);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent 70%),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.08), transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(37, 99, 235, 0.07), transparent 40%);
  background-attachment: fixed;
}

/* Subtle Technical Grid Background */
.bg-tech-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.bg-circuit-pattern {
  background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080c14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: rgba(13, 19, 34, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
  transform: translateY(-3px);
}

.glass-modal {
  background: rgba(13, 19, 34, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 40px rgba(37, 99, 235, 0.15);
}

/* Gradient Borders & Text */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-border-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(26, 36, 61, 0.6), rgba(13, 19, 34, 0.8));
  border: 1px solid transparent;
}

.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent 60%, rgba(37, 99, 235, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glowing Badges & Dots */
.badge-glow {
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
}

.status-dot-pulse {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Micro-animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Service filter animation */
.service-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-item.hidden-service {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

/* Active Nav Links */
.nav-link.active {
  color: #38bdf8;
  font-weight: 600;
}

/* Custom button hover glow */
.btn-tech-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-tech-glow:hover {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.6), 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Terminal / Code mockup styling */
.tech-terminal {
  background: #080c14;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.1);
}

/* Interactive Quiz Simulator Styles */
.quiz-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.quiz-option:hover:not(.disabled) {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: rgba(30, 41, 59, 0.8);
}

.quiz-option.selected {
  border-color: #38bdf8;
  background-color: rgba(14, 165, 233, 0.12);
}

.quiz-option.correct {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #ecfdf5 !important;
}

.quiz-option.incorrect {
  border-color: #f43f5e !important;
  background-color: rgba(244, 63, 94, 0.15) !important;
  color: #fff1f2 !important;
}
