/* Custom styles for Carole Gold Real Estate website */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.geo-circle, .geo-rect, .geo-triangle {
    animation: float 6s ease-in-out infinite;
}

.geo-circle:nth-child(2n) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geo-circle:nth-child(3n) {
    animation-delay: -4s;
    animation-duration: 10s;
}

/* Subtle pulse for the hero accent dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 248, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(148, 18, 51, 0.08);
}

.nav-scrolled .nav-link {
    color: #1a1a1a;
}

.nav-scrolled .mobile-menu {
    background: rgba(255, 248, 247, 0.98);
}

/* Mobile menu button animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Service card geometric accent */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #941233, #ff6b4a);
    border-radius: 4px 0 0 4px;
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card {
    position: relative;
}

/* Testimonial card hover */
.testimonial-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Button styles */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-pulse:hover::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom selection color */
::selection {
    background: #fce7eb;
    color: #681127;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #941233;
    outline-offset: 2px;
}

/* 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;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-split {
        min-height: auto;
    }
    
    .geo-circle {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-split {
        min-height: auto;
    }
}
