/* ============================================
   Natasha Chiz — Erie PA Real Estate
   Custom Styles
   ============================================ */

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

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

body {
    background-color: #0a1e30;
    color: #f0f4f8;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    opacity: 0.03;
    animation: spin-slow 30s linear infinite;
}

.geo-diamond {
    width: 200px;
    height: 200px;
    background: #f59e0b;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.04;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #f59e0b;
    bottom: 20%;
    right: 15%;
    opacity: 0.03;
    animation: spin-slow 40s linear infinite reverse;
}

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

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

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

.floating-card-2 {
    animation: float-card-2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-card-3 4.5s ease-in-out infinite;
}

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

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

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

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(10, 30, 48, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .mobile-nav-link {
    color: #d9e2ec;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Neighborhood Cards --- */
.neighborhood-card {
    position: relative;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(245, 158, 11, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* --- Mobile Menu --- */
#mobileMenu {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

#mobileMenu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* --- Selection --- */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card-3 {
        display: none;
    }
    
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square-1,
    .geo-diamond,
    .geo-triangle {
        display: none;
    }
}

@media (max-width: 640px) {
    .floating-card-1 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: inline-flex;
        margin-bottom: 1rem;
    }
    
    .floating-card-2 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: inline-flex;
    }
}
