/* ============================================
   The Highdaway Cove — Custom Styles
   ============================================ */

/* Geometric animated shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #F5ECDA 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #EDD9B5 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    bottom: -50px;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.1;
}

.geo-triangle-1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #F5ECDA;
    top: 20%;
    left: 10%;
    animation: rotate-slow 25s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    opacity: 0.08;
    background: #F5ECDA;
    border-radius: 12px;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-diamond {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    transform: rotate(45deg);
}

.geo-diamond-1 {
    top: 10%;
    right: 5%;
    animation: rotate-slow 30s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 15%;
    opacity: 0.6;
}

/* Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes rotate-slow {
    0%, 100% { transform: rotate(45deg); }
    50% { transform: rotate(225deg); }
}

/* Nav scroll state */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(196, 87, 58, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C4573A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 87, 58, 0.1);
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #C4573A;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #C4573A;
    color: #FDFBF7;
}

/* 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;
    }
}

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

/* Scroll reveal (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

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