/* ==========================================================================
   NOBLE AURA - Luxury Architectural Styling & Premium Animation Engine
   ========================================================================== */

:root {
  --color-noble-navy: #203A68;
  --color-noble-dark: #080F1E;
  --color-noble-deep: #0E1A33;
  --color-noble-green: #7FC77A;
  --color-noble-green-light: #A1DD9C;
  --color-noble-gold: #C5A059;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 80px;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Noble Green Utility Classes */
.text-noble-green {
  color: #7FC77A !important;
}

.bg-noble-green {
  background-color: #7FC77A !important;
}

.bg-noble-green-light {
  background-color: #A1DD9C !important;
}

.border-noble-green {
  border-color: #7FC77A !important;
}

.shadow-glow-green {
  box-shadow: 0 0 25px rgba(127, 199, 122, 0.4) !important;
}

.shadow-glow-gold {
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.35) !important;
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(8, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
  background: rgba(14, 26, 51, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(127, 199, 122, 0.15);
}

/* Subtle architectural grid pattern */
.bg-arch-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-arch-grid-dark {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(32, 58, 104, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 58, 104, 0.06) 1px, transparent 1px);
}

/* Orbit Rotations */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.animate-spin-slow {
  animation: spin-slow 35s linear infinite;
}

.animate-spin-reverse {
  animation: spin-reverse 25s linear infinite;
}

/* Vertical Text for Floating Right Actions */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080F1E;
}
::-webkit-scrollbar-thumb {
  background: #203A68;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7FC77A;
}

/* ==========================================================================
   PREMIUM SCROLL REVEAL & KEYFRAME ANIMATIONS
   ========================================================================== */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -25px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-35px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(35px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Zoom In Subtle */
@keyframes zoomInSubtle {
  from {
    opacity: 0;
    transform: scale3d(0.96, 0.96, 0.96);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Floating / Gentle Bobbing */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Shimmer Light Sweep Effect */
@keyframes shimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Glowing Pulsing Ring */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Reveal Trigger Classes (Managed via IntersectionObserver) */
.reveal-init {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-35px, 0, 0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translate3d(35px, 0, 0);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-zoom {
  opacity: 0;
  transform: scale3d(0.95, 0.95, 0.95);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* When In Viewport */
.reveal-in {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
}

/* Stagger Delays for Grid Elements */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-350 { transition-delay: 350ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Interactive Hover Enhancements */
.card-hover-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.card-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

.card-hover-lift-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(127, 199, 122, 0.15);
}

/* Button Pulse Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s ease;
}

.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Image Zoom on Hover Container */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Respect user's reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }
}
