/* AR Associates Custom Stylesheet */

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

:root {
  --color-primary-navy: #0B132B;
  --color-secondary-navy: #1C2541;
  --color-accent-teal: #0D9488;
  --color-accent-gold: #C5A880;
  --color-gold-hover: #B4966E;
  
  --font-sans: 'Outfit', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #0B132B;
  color: #F8FAFC;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0B132B;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
  border: 2px solid #0B132B;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Custom Selection */
::selection {
  background-color: var(--color-accent-teal);
  color: #FFFFFF;
}

/* Parallax Effect Classes */
.parallax-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Fallback for touch and mobile devices where background-attachment: fixed performs poorly */
@media (hover: none) or (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll !important;
  }
  .parallax-container {
    height: auto;
    padding: 6rem 1rem;
  }
}

/* Reveal-on-Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Hover Micro-Animations */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 168, 128, 0.3); /* gold accent with opacity */
  box-shadow: 0 20px 40px -15px rgba(11, 19, 43, 0.7), 0 0 20px 0 rgba(13, 148, 136, 0.1);
}

.service-card-icon {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--color-accent-gold);
  color: var(--color-primary-navy);
}

/* Glassmorphism Backgrounds */
.glass-nav {
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav.scrolled {
  background: rgba(11, 19, 43, 0.95);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: rgba(28, 37, 65, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Custom Text and Underline Animations */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Custom CTA Button styling */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, #B4966E 100%);
  color: var(--color-primary-navy);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(197, 168, 128, 0.4);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(197, 168, 128, 0.6);
  filter: brightness(1.1);
}

/* Glowing text effects */
.glow-text-gold {
  text-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

/* Custom Contact Form Focus Styling */
.form-input-custom:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}
