/* ============================================
   University Commons West — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(62, 195, 158, 0.3);
    color: #0A1628;
}

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

#navbar.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 195, 158, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(62, 195, 158, 0.06);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(62, 195, 158, 0.12);
    top: 35%;
    right: 38%;
    animation: float-slow 10s ease-in-out infinite;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(62, 195, 158, 0.1);
    top: 20%;
    left: 3%;
    transform: rotate(45deg);
    animation: rotate-slow 30s linear infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(62, 195, 158, 0.15);
    bottom: 25%;
    right: 10%;
    transform: rotate(20deg);
    animation: rotate-slow 20s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(62, 195, 158, 0.05);
    top: 60%;
    left: 15%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-dots {
    top: 15%;
    right: 42%;
    opacity: 0.4;
}

.shape-dots svg circle {
    animation: pulse-dot 3s ease-in-out infinite;
}

.shape-dots svg circle:nth-child(2) { animation-delay: 0.3s; }
.shape-dots svg circle:nth-child(3) { animation-delay: 0.6s; }
.shape-dots svg circle:nth-child(4) { animation-delay: 0.9s; }
.shape-dots svg circle:nth-child(5) { animation-delay: 1.2s; }
.shape-dots svg circle:nth-child(6) { animation-delay: 1.5s; }
.shape-dots svg circle:nth-child(7) { animation-delay: 1.8s; }
.shape-dots svg circle:nth-child(8) { animation-delay: 2.1s; }
.shape-dots svg circle:nth-child(9) { animation-delay: 2.4s; }

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Scroll Reveal --- */
.reveal,
.room-reveal,
.amenity-reveal,
.location-reveal,
.contact-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.room-reveal.visible,
.amenity-reveal.visible,
.location-reveal.visible,
.contact-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Room Cards --- */
.room-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Amenity Cards --- */
.amenity-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Form Inputs --- */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* --- 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;
    }
    .reveal,
    .room-reveal,
    .amenity-reveal,
    .location-reveal,
    .contact-reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }
    .shape-triangle {
        display: none;
    }
}
