/* ========================================
   Powderidge 10 — Snowshoe Mountain
   Custom Styles
======================================== */

/* Base reset & smooth scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* Geometric background shapes */
.geometric-shapes {
  z-index: 0;
}

.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.geo-circle--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -200px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
  position: absolute;
  pointer-events: none;
  background: rgba(212, 160, 23, 0.05);
}

.geo-square--1 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 5%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.geo-triangle {
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 60px 104px 60px;
  border-color: transparent transparent rgba(212, 160, 23, 0.06) transparent;
  top: 60%;
  left: 3%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.08);
  pointer-events: none;
}

.geo-ring--1 {
  width: 300px;
  height: 300px;
  top: 30%;
  left: 60%;
  animation: spin-slow 25s linear infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

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

/* Navbar styles */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(4, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
  max-height: 500px;
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Property cards */
.property-card {
  position: relative;
}

.property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), transparent, rgba(212, 160, 23, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.property-card:hover::after {
  opacity: 1;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Select dropdown styling */
select option {
  background: #0a1628;
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #040d1f;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, 0.5);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(212, 160, 23, 0.6);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .geo-circle--1 {
    width: 300px;
    height: 300px;
    right: -100px;
  }
  
  .geo-circle--2 {
    width: 200px;
    height: 200px;
  }
  
  .geo-square--1 {
    width: 100px;
    height: 100px;
  }
}
