/* ============================================
   The K&K Real Estate Group — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -80px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(16, 185, 129, 0.06);
    top: 25%;
    right: 5%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-medium 6s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(5, 150, 105, 0.05);
    bottom: 20%;
    right: 15%;
    animation: float-medium 7s ease-in-out infinite reverse;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 40%;
    left: 5%;
    opacity: 0.6;
    animation: float-slow 9s ease-in-out infinite;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(48deg); }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    border: 1px solid rgba(5, 150, 105, 0.1);
}

/* ============================================
   Neighborhood Cards
   ============================================ */
.neighborhood-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.neighborhood-card:hover::after {
    border-color: rgba(16, 185, 129, 0.5);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    border: 1px solid rgba(5, 150, 105, 0.08);
}

/* ============================================
   Navbar Styles
   ============================================ */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(5, 78, 59, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.menu-line {
    display: block;
}

#mobileMenu.open {
    transform: translateX(0);
}

/* ============================================
   Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #064e3b;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
