/* ============================================
   The Pier at Canadohta Lake — Custom Styles
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FDF8F0;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #0A2540;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(64, 224, 208, 0.15);
    border-radius: 24px;
    top: 25%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(10, 37, 64, 0.06);
    top: 40%;
    left: 5%;
    animation: spin-slow 30s linear infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(64, 224, 208, 0.2);
    border-radius: 50%;
    bottom: 10%;
    left: 15%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(10, 37, 64, 0.04);
    border-radius: 16px;
    bottom: 20%;
    right: 15%;
    transform: rotate(20deg);
    animation: float-slow 12s ease-in-out infinite reverse;
}

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

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Room Cards --- */
.room-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.room-card:hover {
    transform: translateY(-8px);
}

/* --- Feature Cards --- */
.feature-card {
    transform: translateY(0);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll-triggered animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0F3460;
}

/* --- Selection --- */
::selection {
    background: #40E0D0;
    color: #0A2540;
}

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

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-rect-1 {
        width: 80px;
        height: 80px;
    }
    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 69px;
    }
}
