/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll reveal base — content is visible by default, JS adds animated state */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== NAVBAR ===== */
.nav-fixed {
  background: rgba(254, 249, 239, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  background: rgba(254, 249, 239, 0.97);
  box-shadow: 0 4px 24px rgba(12, 25, 43, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #d4a84b;
  border-radius: 1px;
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* ===== HERO GRADIENT ===== */
.hero-gradient {
  background: radial-gradient(ellipse at 30% 50%, #1e3a5f 0%, #0c192b 50%, #060f1a 100%);
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shapes .shape-circle {
  border-radius: 50%;
  position: absolute;
}

.shape-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.15) 0%, transparent 70%);
  top: -5%;
  right: -5%;
  animation: float-slow 12s ease-in-out infinite;
}

.shape-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 100, 90, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -3%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(95, 184, 160, 0.15) 0%, transparent 70%);
  top: 30%;
  left: 10%;
  animation: float-slow 10s ease-in-out infinite;
}

/* Square */
.shape-square {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(155, 142, 196, 0.1);
  border-radius: 24px;
  top: 15%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

/* Diamond */
.shape-diamond {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(212, 168, 75, 0.12);
  border-radius: 12px;
  bottom: 25%;
  right: 25%;
  transform: rotate(30deg);
  animation: float-slow 8s ease-in-out infinite;
}

/* Ring */
.shape-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(212, 168, 75, 0.1);
  border-radius: 50%;
  top: 20%;
  left: 5%;
  animation: spin-slow 30s linear infinite reverse;
}

/* Dots */
.shape-dot {
  position: absolute;
  border-radius: 50%;
}

.shape-7 {
  width: 12px;
  height: 12px;
  background: rgba(232, 100, 90, 0.4);
  top: 40%;
  right: 8%;
  animation: pulse-dot 3s ease-in-out infinite;
}

.shape-8 {
  width: 8px;
  height: 8px;
  background: rgba(95, 184, 160, 0.5);
  bottom: 35%;
  left: 18%;
  animation: pulse-dot 4s ease-in-out infinite 1s;
}

/* Line */
.shape-line {
  position: absolute;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(212, 168, 75, 0.2), transparent);
  bottom: 20%;
  right: 10%;
  transform: rotate(-15deg);
  animation: float-slow 9s ease-in-out infinite;
}

/* Animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
}

/* ===== SECTION TRANSITIONS ===== */
section {
  position: relative;
}

/* ===== BUTTON FOCUS ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #d4a84b;
  outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fef9ef;
}
::-webkit-scrollbar-thumb {
  background: #9bb5dc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7193cc;
}

/* ===== PRINT ===== */
@media print {
  .hero-shapes, .scroll-reveal { display: none !important; }
  nav { position: static !important; }
  body { color: #000; background: #fff; }
}
