/* Curved Bottom Design with Scroll Arrow */
/* Inspired by modern landing page designs */

.section-curved-bottom {
    position: relative;
    overflow: hidden;
}

.curved-bottom-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.curved-bottom-svg .svg-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    align-items: flex-end;
}

.curved-bottom-svg .bg-extend-left,
.curved-bottom-svg .bg-extend-right {
    flex: 1;
    height: 50px;
    background-color: #ffffff;
    margin: 0 -2px;
}

.curved-bottom-svg svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #ffffff;
    flex-shrink: 0;
    min-width: 376px; /* Ensure desktop coverage */
}

/* Desktop optimizations */
@media (min-width: 769px) {
    .curved-bottom-svg svg {
        min-width: 450px; /* Wider for larger screens */
    }
}

/* Mobile optimizations - flex approach */
@media (max-width: 768px) {
    .curved-bottom-svg .svg-wrapper {
        justify-content: center;
    }
    
    .curved-bottom-svg svg {
        min-width: 420px; /* Optimal for mobile */
    }
    
    .curved-bottom-svg .bg-extend-left,
    .curved-bottom-svg .bg-extend-right {
        min-width: 50px; /* Ensure coverage on small screens */
    }
}

/* Scroll Arrow Animation */
.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgb(255 255 255 / 0%);
    border: 2px solid #ffffff; /* Make sure it's white */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2); /* Slight white background on hover */
    border-color: #ffffff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-arrow i {
    font-size: 18px;
    color: #ffffff; /* White arrow icon */
    transition: color 0.3s ease;
}

.scroll-arrow:hover i {
    color: #ffffff; /* Keep white on hover */
}

/* Bounce Animation */
@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-5px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

.animate-arrowBounce {
    animation: arrowBounce 2s infinite;
}

/* Hero section enhancement */
.hero {
    position: relative;
}

.hero .search-bar {
    z-index: 15; /* Make sure search bar is above curved bottom */
}

/* Responsive Design - Simplified and Optimized */
@media (max-width: 768px) {
    .curved-bottom-svg {
        height: 50px;
    }
    
    .curved-bottom-svg .bg-extend-left,
    .curved-bottom-svg .bg-extend-right {
        height: 50px;
    }
    
    .scroll-arrow {
        width: 45px;
        height: 45px;
        bottom: 15px;
    }
    
    .scroll-arrow i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .curved-bottom-svg {
        height: 50px;
    }
    
    .curved-bottom-svg .bg-extend-left,
    .curved-bottom-svg .bg-extend-right {
        height: 50px;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        bottom: 10px;
    }
    
    .scroll-arrow i {
        font-size: 14px;
    }
}

/* Color Variations for Property Theme */
.property-theme .scroll-arrow {
    border-color: #ffffff; /* White stroke */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.property-theme .scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.property-theme .scroll-arrow i {
    color: #ffffff; /* White arrow */
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Additional styling for section backgrounds */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

.body-content {
    background: #f8f9fa;
    padding: 80px 0 0;
    position: relative;
    z-index: 5;
}
