/* index.css - Advanced Core Design System & Premium Animations for Lunaris Construction */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary-bg: #FFFFFF;
  --color-secondary-bg: #F8FAFC;
  --color-slate-slate: #F1F5F9;
  --color-charcoal: #111827;
  --color-brand-navy: #0F4C81;
  --color-brand-blue: #1E3A8A;
  --color-brand-steel: #3B82F6;
  --color-brand-electric: #60A5FA;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-primary-bg);
  color: var(--color-charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-secondary-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Blueprint Grid Background Pattern (Static for maximum render efficiency) */
.blueprint-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
}

.blueprint-grid-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(96, 165, 250, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
}

/* Custom Typography settings for premium contrast */
h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

/* Scroll-Driven Viewport Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-15px);
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(15px);
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay modifiers for sequential animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Micro-interactions & Custom Hover States */
.hover-lift {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(15, 76, 129, 0.06), 0 10px 10px -5px rgba(15, 76, 129, 0.04);
}

/* Page-Load Animations for Hero section */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active Nav Link Scroll-Track indicator style */
.nav-active {
  color: var(--color-brand-navy) !important;
  font-weight: 600;
}
.nav-active::after {
  width: 100% !important;
}

/* Glassmorphic elements */
.glassmorphism {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glassmorphism-dark {
  background: rgba(10, 37, 64, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow effect for main CTAs */
.glow-on-hover {
  position: relative;
  transition: all 0.3s ease;
}
.glow-on-hover::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.glow-on-hover:hover::after {
  opacity: 1;
}

/* Custom interactive input for Contact Form */
.floating-input:focus-within label {
  transform: translateY(-20px) scale(0.85);
  color: var(--color-brand-steel);
}

.floating-input input:not(:placeholder-shown) + label,
.floating-input textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.85);
}

/* Floating Bottom Moon Button */
.floating-moon-btn {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.floating-moon-btn.visible {
  transform: translateY(0);
  opacity: 1;
}
