/* ========================================
   CORNELIA GARDENS CONDO ASSOCIATION
   Custom Styles
======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link {
    position: relative;
}

/* --- Geometric Decorations --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 15%;
    animation: float-slow 7s ease-in-out infinite;
}

.geo-circle-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    bottom: -80px;
    right: -50px;
    animation: float-slow 9s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #34d399;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: #6ee7b7;
    bottom: 15%;
    left: 8%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(251, 191, 36, 0.08);
    top: 30%;
    left: 3%;
    animation: float-slow 10s ease-in-out infinite;
}

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

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

/* --- Floating Cards --- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-main {
    animation-delay: 0s;
}

.card-stats {
    animation-delay: 0.5s;
}

.card-health {
    animation-delay: 1s;
}

.card-location {
    animation-delay: 1.5s;
}

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

/* --- Stat Bar Animation --- */
.stat-bar {
    transition: width 1.5s ease-out;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state: visible (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Amenity Cards --- */
.amenity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(2, 44, 34, 0.3);
}

/* --- Lifestyle Cards --- */
.lifestyle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lifestyle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}

/* --- Mobile Menu --- */
.mobile-link {
    display: block;
}

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

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* --- Selection --- */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
}

/* --- Print --- */
@media print {
    #navbar, .geo-circle, .geo-square, .geo-triangle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
