/*!
 * FBO.aero - Modern Design
 * Updated 2024 - Contemporary styling with modern best practices
 */

/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
:root {
  /* Modern Color Palette */
  --primary-color: #3b82f6; /* Modern blue */
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary-color: #1e293b; /* Sophisticated dark blue */
  --secondary-light: #334155;
  --accent-color: #06b6d4; /* Cyan accent */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-display: 'Plus Jakarta Sans', var(--font-family-sans);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.modern-design {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ===== MODERN NAVIGATION ===== */
.modern-nav {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  padding: var(--spacing-md) 0;
}

.modern-nav.scrolled {
  background: rgba(30, 41, 59, 0.98);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-light) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link {
  color: var(--gray-300) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg) !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after {
  width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

/* ===== MODERN BUTTONS ===== */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary.modern-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  border: 2px solid transparent;
}

.btn-primary.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.btn-primary.modern-btn:active {
  transform: translateY(0);
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--gray-50);
}

.map-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.modern-map {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-xl) auto;
}

@media (min-width: 768px) {
  .modern-map {
    height: 800px;
  }
}

/* ===== MODERN FOOTER ===== */
.modern-footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-main {
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-section {
  margin-bottom: var(--spacing-xl);
}

.footer-title {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
}

.footer-title i {
  color: var(--primary-color);
}

.footer-content {
  line-height: 1.8;
}

.footer-content p {
  margin-bottom: var(--spacing-xs);
  color: var(--gray-400);
}

.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--gray-800);
  color: var(--gray-300);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--gray-800);
  background: var(--gray-950);
}

.copyright-text {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links .footer-link {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(-50%, 0, 0);
  }
  40%, 43% {
    transform: translate3d(-50%, -10px, 0);
  }
  70% {
    transform: translate3d(-50%, -5px, 0);
  }
  90% {
    transform: translate3d(-50%, -2px, 0);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary-color) !important;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .modern-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
  }
  
  .footer-main {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }
  
  .footer-links {
    justify-content: center;
    margin-top: var(--spacing-md);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-arrow {
    animation: none;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --secondary-color: #000000;
  }
}

/* ===== GOOGLE MAPS INFO WINDOW STYLING ===== */
.modern-info-window {
  font-family: var(--font-family-sans);
  line-height: 1.5;
}

.modern-info-window h5 {
  margin-bottom: var(--spacing-md) !important;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-sm);
}

.modern-info-window .services-list {
  background: var(--gray-50);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.modern-info-window .services-list h6 {
  color: var(--gray-700);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm) !important;
}

.modern-info-window .service-items {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.modern-info-window .btn {
  font-size: 0.8rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.modern-info-window .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  color: var(--white);
}

.modern-info-window .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.modern-info-window .btn-outline-secondary {
  border-color: var(--gray-300);
  color: var(--gray-600);
}

.modern-info-window .btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.modern-info-window .btn-secondary {
  background: var(--gray-400);
  border-color: var(--gray-400);
  color: var(--white);
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {
  .hero-section {
    min-height: 85vh;
    padding: var(--spacing-xl) 0;
  }
  
  .modern-map {
    height: 500px;
    margin: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
  }
  
  .modern-info-window {
    min-width: 250px !important;
  }
  
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
  }
  
  body {
    background-color: var(--gray-50);
    color: var(--gray-700);
  }
  
  .map-header {
    background: var(--gray-100);
    border-bottom-color: var(--gray-300);
  }
  
  .modern-footer {
    background: var(--gray-900);
  }
  
  .footer-bottom {
    background: var(--gray-800);
  }
}