/* ===== Custom Styles for Billie Anderson Real Estate ===== */

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

/* ===== Floating Background Shapes ===== */
.floating-shapes {
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #831130;
  top: 10%;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #ff78a3;
  bottom: 20%;
  left: -50px;
  animation: float2 15s ease-in-out infinite;
}

.shape-square-1 {
  width: 150px;
  height: 150px;
  background: #831130;
  top: 50%;
  left: 10%;
  border-radius: 24px;
  transform: rotate(45deg);
  animation: float3 18s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid #ffaec8;
  top: 30%;
  left: 5%;
  animation: float1 22s ease-in-out infinite reverse;
}

.shape-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 20px solid #831130;
  bottom: 10%;
  right: 5%;
  animation: float2 16s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 25px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(50deg) translate(20px, -20px); }
}

/* ===== Geometric Hero Shapes ===== */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 3px solid #ffaec8;
  top: -100px;
  right: -100px;
  animation: spin 40s linear infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ff78a3;
  bottom: 10%;
  left: 5%;
  animation: pulse 6s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #ffaec8;
  top: 20%;
  left: 8%;
  border-radius: 20px;
  transform: rotate(30deg);
  animation: float1 12s ease-in-out infinite;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  border: 3px solid #ff78a3;
  bottom: 30%;
  right: 10%;
  border-radius: 12px;
  transform: rotate(15deg);
  animation: float2 10s ease-in-out infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid #ffaec8;
  top: 40%;
  right: 15%;
  animation: spin 25s linear infinite;
}

.geo-diamond {
  width: 100px;
  height: 100px;
  background: #ff78a3;
  top: 60%;
  left: 15%;
  transform: rotate(45deg);
  border-radius: 8px;
  animation: float3 14s ease-in-out infinite;
}

.geo-ring-1 {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #ffaec8;
  bottom: 25%;
  right: 5%;
  animation: pulse 8s ease-in-out infinite;
}

.geo-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.geo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.geo-photo-1 {
  width: 200px;
  height: 260px;
  top: 15%;
  right: 5%;
  animation: float1 18s ease-in-out infinite;
}

.geo-photo-2 {
  width: 180px;
  height: 230px;
  bottom: 15%;
  left: 3%;
  animation: float2 15s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes float3 {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(50deg) translate(15px, -15px); }
}

/* ===== About Section Geos ===== */
.about-geo {
  position: absolute;
  pointer-events: none;
}

.about-geo-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(255, 174, 200, 0.15);
  top: -100px;
  left: -100px;
  animation: spin 50s linear infinite;
}

.about-geo-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 120, 163, 0.08);
  bottom: -50px;
  right: 10%;
  animation: pulse 8s ease-in-out infinite;
}

.about-geo-square {
  width: 100px;
  height: 100px;
  background: rgba(255, 174, 200, 0.1);
  top: 20%;
  right: 5%;
  border-radius: 16px;
  transform: rotate(30deg);
  animation: float1 15s ease-in-out infinite;
}

/* ===== CTA Section Geos ===== */
.cta-geo {
  position: absolute;
  pointer-events: none;
}

.cta-circle-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(255, 174, 200, 0.1);
  top: -80px;
  left: -80px;
  animation: spin 35s linear infinite;
}

.cta-circle-2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 120, 163, 0.06);
  bottom: -40px;
  right: 5%;
  animation: pulse 6s ease-in-out infinite;
}

.cta-stripe {
  width: 400px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 174, 200, 0.2), transparent);
  bottom: 20%;
  left: 10%;
  animation: float1 20s ease-in-out infinite;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Default state — visible for no-JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

/* ===== Navbar Scroll State ===== */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(131, 17, 48, 0.08);
}

nav.scrolled .nav-link {
  color: #831130;
}

nav.scrolled .menu-line {
  background: #831130;
}

nav.scrolled .mobile-nav-link {
  color: #831130;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Active nav link ===== */
.nav-link.active {
  color: #d93762;
}

/* ===== Custom selection ===== */
::selection {
  background: #ff78a3;
  color: #3d0714;
}

/* ===== Form focus states ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .geo-photo-1 {
    width: 120px;
    height: 160px;
    right: 2%;
  }
  
  .geo-photo-2 {
    width: 100px;
    height: 130px;
    left: 2%;
  }
  
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }
  
  .geo-circle-2 {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .shape-circle-1 {
    width: 200px;
    height: 200px;
  }
  
  .shape-circle-2 {
    width: 120px;
    height: 120px;
  }
  
  .shape-square-1 {
    width: 80px;
    height: 80px;
  }
  
  .shape-triangle {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #ffaec8;
  }
}
