/* ===============================
   AEVON ADVISORY - styles.css
   Brand: Deep Aubergine #4B1F5E
   Gold #D4AF37 | Ivory #F7F3EE
   =============================== */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F7F3EE;
  color: #2E2A2F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* === UTILITY === */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift:hover {
  transform: translateY(-1px);
}

/* === NAVBAR === */
#navbar {
  transition: all 0.4s ease;
}

.navbar-inner {
  background: rgba(75, 31, 94, 0.0);
  backdrop-filter: blur(0px);
  border: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#navbar.scrolled .navbar-inner {
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(20px);
  border-color: rgba(75, 31, 94, 0.12);
  box-shadow: 0 8px 32px rgba(75, 31, 94, 0.08);
}

#navbar.scrolled .navbar-logo {
  color: #4B1F5E;
}

#navbar.scrolled .nav-link {
  color: #2E2A2F;
}

#navbar .navbar-logo {
  color: #F7F3EE;
  transition: color 0.4s ease;
  letter-spacing: -0.02em;
}

#navbar .nav-link {
  color: rgba(247, 243, 238, 0.8);
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

#navbar .nav-link:hover {
  color: #D4AF37;
}

/* === MAGNETIC BUTTONS === */
.magnetic-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.magnetic-btn:hover {
  transform: scale(1.03);
}

.magnetic-btn .btn-bg {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
}

.magnetic-btn:hover .btn-bg {
  transform: translateX(0);
}

.magnetic-btn .btn-text {
  position: relative;
  z-index: 1;
}

/* Navbar CTA */
.cta-btn {
  background: #D4AF37;
  color: #2E2A2F;
}

.cta-btn .btn-bg {
  background: #4B1F5E;
}

.cta-btn:hover .btn-text {
  color: #F7F3EE;
}

/* Primary CTA */
.primary-btn {
  background: #D4AF37;
  color: #2E2A2F;
  font-weight: 700;
}

.primary-btn .btn-bg {
  background: #F7F3EE;
}

.primary-btn:hover {
  box-shadow: 0 12px 40px rgba(197, 160, 40, 0.35);
}

/* Service CTA */
.service-cta-btn {
  background: #D4AF37;
  color: #2E2A2F;
}

.service-cta-btn .btn-bg {
  background: #F7F3EE;
}

/* Contact CTA */
.contact-cta {
  background: #D4AF37;
  color: #2E2A2F;
  font-weight: 700;
}

.contact-cta .btn-bg {
  background: #F7F3EE;
}

.contact-cta:hover {
  box-shadow: 0 16px 48px rgba(197, 160, 40, 0.40);
}

/* === HERO === */
.hero-section {
  background: #4B1F5E;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(101, 48, 122, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(197, 160, 40, 0.08) 0%, transparent 50%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(46, 42, 47, 0.9) 0%,
    rgba(75, 31, 94, 0.5) 50%,
    transparent 100%
  );
}

/* === ABOUT === */
.about-photo-wrap {
  box-shadow: 0 24px 64px rgba(75, 31, 94, 0.2);
}

.about-photo-overlay {
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(75, 31, 94, 0.15) 100%
  );
}

.about-card {
  background: linear-gradient(135deg, #4B1F5E 0%, #65307A 100%);
  box-shadow: 0 24px 64px rgba(75, 31, 94, 0.3);
}

.about-card-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(197, 160, 40, 0.1) 0%, transparent 50%);
  border-radius: inherit;
}

.credential-tag {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: rgba(75, 31, 94, 0.08);
  color: #4B1F5E;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(75, 31, 94, 0.15);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* === FEATURE CARDS === */
.feature-card {
  background: rgba(247, 243, 238, 0.04);
  border: 1px solid rgba(247, 243, 238, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(197, 160, 40, 0.3);
  transform: translateY(-4px);
}

/* Shuffle stack */
.shuffle-item {
  background: rgba(247, 243, 238, 0.06);
  border: 1px solid rgba(247, 243, 238, 0.1);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shuffle-item.active {
  opacity: 1;
  transform: translateY(0px);
}

.shuffle-item:nth-child(1) { transform: translateY(-8px); }
.shuffle-item:nth-child(2) { transform: translateY(0); }
.shuffle-item:nth-child(3) { transform: translateY(8px); }

/* Protocol domain cells */
.protocol-domain {
  background: rgba(247, 243, 238, 0.05);
  border: 1px solid rgba(247, 243, 238, 0.08);
}

/* Typewriter cursor blink */
.typewriter-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === PHILOSOPHY === */
.philosophy-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(197, 160, 40, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(247, 243, 238, 0.04) 0%, transparent 40%);
}

/* === TRUTH GAP === */
.truth-pillar {
  background: rgba(75, 31, 94, 0.05);
  border: 1px solid rgba(75, 31, 94, 0.10);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.truth-pillar:hover {
  background: rgba(75, 31, 94, 0.09);
  border-color: rgba(197, 160, 40, 0.25);
}

.tg-diagram {
  background: linear-gradient(135deg, #4B1F5E 0%, #2E2A2F 100%);
  box-shadow: 0 24px 64px rgba(75, 31, 94, 0.25);
}

.tg-diagram-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(197, 160, 40, 0.12) 0%, transparent 60%);
}

/* === SERVICES === */
.service-card {
  background: rgba(247, 243, 238, 0.04);
  border: 1px solid rgba(247, 243, 238, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 40, 0.25);
}

.service-card-featured {
  background: rgba(75, 31, 94, 0.5);
  border-color: rgba(197, 160, 40, 0.3);
}

/* Service animation backgrounds */
.service-anim-1 {
  background: linear-gradient(135deg, rgba(75, 31, 94, 0.4) 0%, rgba(46, 42, 47, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.service-anim-2 {
  background: linear-gradient(135deg, rgba(197, 160, 40, 0.15) 0%, rgba(75, 31, 94, 0.5) 100%);
  position: relative;
  overflow: hidden;
}

.service-anim-3 {
  background: linear-gradient(135deg, rgba(181, 107, 76, 0.15) 0%, rgba(46, 42, 47, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

/* SVG animation overlays on service cards */
.service-anim-1::before,
.service-anim-2::before,
.service-anim-3::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(197, 160, 40, 0.08) 0%, transparent 70%);
}

/* === SECTOR CARDS === */
.sector-card {
  background: rgba(75, 31, 94, 0.05);
  border: 1px solid rgba(75, 31, 94, 0.08);
  transition: all 0.3s ease;
}

.sector-card:hover {
  background: rgba(75, 31, 94, 0.09);
  border-color: rgba(197, 160, 40, 0.25);
  transform: translateY(-2px);
}

/* === CONTACT === */
.contact-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(197, 160, 40, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(247, 243, 238, 0.04) 0%, transparent 50%);
}

/* === EYEBROW === */
.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow span::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
}

.fade-in {
  opacity: 0;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
  }

  .hero-headline span:last-child {
    font-size: clamp(3rem, 13vw, 5rem) !important;
  }

  .about-card {
    margin-top: 0;
  }

  .feature-card {
    margin-bottom: 1rem;
  }
}

/* === SVG ANIMATIONS ON SERVICE CARDS === */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scan-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-wave {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 60; }
}

.rotate-anim {
  animation: rotate-slow 12s linear infinite;
}

.scan-anim {
  animation: scan-line 2.5s ease-in-out infinite;
}

.wave-anim {
  animation: pulse-wave 2s ease-in-out infinite;
  stroke-dasharray: 80;
}

/* === FOOTER === */
footer a {
  text-decoration: none;
}
