﻿/* ==========================================================================
   AMAINAR - Ingeniería Estructural & Naval
   Styles & Design System
   ========================================================================== */

:root {
  --color-navy-950: #050b14;
  --color-navy-900: #0a1727;
  --color-navy-800: #10243d;
  --color-navy-700: #1a385c;
  --color-blue-600: #0284c7;
  --color-cyan-500: #06b6d4;
  --color-cyan-400: #22d3ee;
  --color-amber-500: #f59e0b;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-400: #94a3b8;
  --color-slate-600: #475569;
  --color-slate-800: #1e293b;
  
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1727;
}
::-webkit-scrollbar-thumb {
  background: #1e3e62;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Engineering Blueprint & Grid backgrounds */
.bg-blueprint {
  background-color: var(--color-navy-950);
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.02) 20px, transparent 20px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.02) 20px, transparent 20px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.15), transparent 70%);
}

.bg-technical-dots {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(10, 23, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(16, 36, 61, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.glass-card-dark:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(2, 132, 199, 0.25);
}

/* Service Card Transitions */
.service-card {
  transition: var(--transition-normal);
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #0284c7;
}

/* Glowing tag badge */
.badge-tech {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Material Pills */
.material-pill {
  transition: var(--transition-normal);
  cursor: pointer;
}
.material-pill.active {
  background-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Toast alert notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}
#toast-notification.show {
  transform: translateY(0);
}

/* Section Anchor Offset for fixed navbar */
section[id] {
  scroll-margin-top: 5.5rem;
}
