/* ==========================================================================
   TOBISOFT ELITE DESIGN SYSTEM - CORE STYLES & TOKENS
   Theme: Obsidian Cyber-Ruby Luxury Tech (Inspired by Stripe & Linear)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Obsidian Palette */
  --bg-primary: #07080c;
  --bg-secondary: #0d0f17;
  --bg-tertiary: #131722;
  --bg-glass: rgba(13, 15, 23, 0.75);
  --bg-card: rgba(19, 23, 34, 0.7);
  --bg-card-hover: rgba(28, 34, 51, 0.85);

  /* Cyber Ruby Accents */
  --brand-primary: #e6192a;
  --brand-light: #ff334b;
  --brand-dark: #a80c19;
  --brand-glow: rgba(230, 25, 42, 0.35);
  --brand-glow-subtle: rgba(230, 25, 42, 0.15);
  
  /* Cyber Secondary Accents */
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --accent-gold: #ffb703;
  --accent-purple: #8a2be2;

  /* Typography & Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(230, 25, 42, 0.4);
  --border-active: rgba(255, 255, 255, 0.22);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-ruby: 0 0 35px rgba(230, 25, 42, 0.3);
  --shadow-ruby-lg: 0 0 70px rgba(230, 25, 42, 0.45);

  /* Radius & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --container-max: 1280px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(230, 25, 42, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(138, 43, 226, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(230, 25, 42, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* Background Canvas for Particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Layout Utilities */
.container {
  width: min(var(--container-max), calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.75rem);
  }
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-hero {
  padding: 7.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-inline: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(230, 25, 42, 0.12);
  border: 1px solid rgba(230, 25, 42, 0.3);
  color: var(--brand-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(230, 25, 42, 0.15);
  animation: pulseGlow 4s infinite alternate;
}

.badge-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 10px var(--brand-light);
  animation: blink 2s infinite;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #ff5c72 60%, #e6192a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

.section-header.text-left .section-desc {
  margin-inline: 0;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 8, 12, 0.92);
  border-bottom-color: rgba(230, 25, 42, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(230, 25, 42, 0.4));
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.brand-badge-heritage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--text-light);
  background: rgba(230, 25, 42, 0.18);
  border: 1px solid rgba(230, 25, 42, 0.4);
  box-shadow: 0 0 15px rgba(230, 25, 42, 0.2);
}

/* Header Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.2rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--brand-primary);
  color: var(--text-light);
  box-shadow: 0 0 12px var(--brand-glow);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e6192a 0%, #b30c17 100%);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 25px rgba(230, 25, 42, 0.35);
  transition: all var(--transition-fast);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(230, 25, 42, 0.6);
  background: linear-gradient(135deg, #ff334b 0%, #d10a16 100%);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  height: calc(100vh - 82px);
  background: rgba(7, 8, 12, 0.97);
  backdrop-filter: blur(25px);
  z-index: 99;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  border-bottom: 1px solid var(--border-glow);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--text-light);
  background: rgba(230, 25, 42, 0.15);
  border-color: rgba(230, 25, 42, 0.3);
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-nav-cta {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS & CALL TO ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #e6192a 0%, #ba0d1a 100%);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(230, 25, 42, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff334b 0%, #d80b18 100%);
  box-shadow: 0 8px 30px rgba(230, 25, 42, 0.65);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 30px var(--brand-light);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
  opacity: 0.6;
}

/* Icon animations in buttons */
.btn svg, .btn i {
  transition: transform var(--transition-fast);
}

.btn:hover svg, .btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   CARDS & GLASSMORPHISM
   ========================================================================== */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 25, 42, 0.4);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(230, 25, 42, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 5.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1.25rem 0 1.5rem;
  max-width: 340px;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 1.8s infinite;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--brand-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-contact-icon {
  color: var(--brand-light);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(230, 25, 42, 0.15); }
  100% { box-shadow: 0 0 30px rgba(230, 25, 42, 0.35); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

/* Utility Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
