/* Custom styles for Green Hills Estates */

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

/* Geometric shapes animation */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 144, 10, 0.4) 0%, transparent 70%);
    top: 10%;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 144, 10, 0.3) 0%, transparent 70%);
    top: 60%;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(212, 144, 10, 0.2);
    top: 30%;
    right: 15%;
    animation: pulse 6s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 144, 10, 0.15);
    top: 25%;
    right: 5%;
    transform: rotate(15deg);
    animation: rotate 20s linear infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(212, 144, 10, 0.2);
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: rotate 15s linear infinite reverse;
}

.geo-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(212, 144, 10, 0.1);
    top: 45%;
    left: 20%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

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

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

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 21, 31, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a2130;
}

::-webkit-scrollbar-thumb {
    background: #2e6b8c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4900a;
}

/* Selection color */
::selection {
    background: rgba(212, 144, 10, 0.3);
    color: #f0f4f8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4900a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Card hover effects */
@media (prefers-reduced-motion: no-preference) {
    .group:hover img {
        transform: scale(1.05);
    }
}
