/* ============================================
   KELLER WILLIAMS - THE IULIUCCI TEAM
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   HERO GEOMETRIC SHAPES
   ============================================ */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 218, 221, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(123, 17, 48, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(123, 17, 48, 0.06);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(250, 218, 221, 0.2);
    top: 30%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(123, 17, 48, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* Clip triangle for hero image */
.clip-triangle-bottom {
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive enhancement — content visible by default)
   ============================================ */
@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:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    perspective: 1000px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 17, 48, 0.1);
}

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

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
    margin-left: 0;
}

/* Mobile menu open state */
#mobileMenu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(123, 17, 48, 0.1);
}

/* ============================================
   FORM FOCUS STATES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #7B1130 !important;
    background-color: #fff !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }

    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }

    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }

    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(250, 218, 221, 0.2);
    }

    .shape-dots {
        width: 50px;
        height: 50px;
        background-size: 8px 8px;
    }
}
