/* ============================================
   SAMARITAN'S VIEW — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(124, 58, 237, 0.08);
    backdrop-blur: 10px;
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #7c3aed;
}

/* ============================================
   HERO GEOMETRIC SHAPES
   ============================================ */
.hero-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geometric-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f59e0b;
    top: -100px;
    right: -100px;
    animation: floatSlow 8s ease-in-out infinite;
}

.geometric-square-1 {
    width: 200px;
    height: 200px;
    background: #a855f7;
    bottom: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.geometric-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #fbbf24;
    top: 40%;
    right: 10%;
    animation: floatSlow 7s ease-in-out infinite;
}

.geometric-circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #c084fc;
    bottom: 10%;
    left: 15%;
    animation: floatSlow 9s ease-in-out infinite reverse;
}

.geometric-diamond-1 {
    width: 120px;
    height: 120px;
    background: #fde68a;
    transform: rotate(45deg);
    top: 20%;
    left: 40%;
    animation: floatSlow 6s ease-in-out infinite;
}

/* ============================================
   AMENITIES GEOMETRIC SHAPES
   ============================================ */
.amenity-shape {
    position: absolute;
    pointer-events: none;
}

.geometric-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #7c3aed;
    top: -200px;
    left: -200px;
    opacity: 0.15;
    animation: floatSlow 12s ease-in-out infinite;
}

.geometric-square-2 {
    width: 180px;
    height: 180px;
    background: #f59e0b;
    bottom: -50px;
    right: 5%;
    transform: rotate(30deg);
    opacity: 0.1;
    animation: floatSlow 8s ease-in-out infinite reverse;
}

.geometric-triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 139px solid #a855f7;
    top: 30%;
    right: 15%;
    opacity: 0.1;
    animation: floatSlow 9s ease-in-out infinite;
}

/* ============================================
   CTA GEOMETRIC SHAPES
   ============================================ */
.cta-shape {
    position: absolute;
    pointer-events: none;
}

.geometric-circle-4 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #f59e0b;
    bottom: -150px;
    right: -100px;
    opacity: 0.08;
    animation: floatSlow 10s ease-in-out infinite;
}

.geometric-square-3 {
    width: 140px;
    height: 140px;
    background: #c084fc;
    top: 10%;
    left: 5%;
    transform: rotate(60deg);
    opacity: 0.1;
    animation: floatSlow 7s ease-in-out infinite reverse;
}

/* ============================================
   FLOATING CARDS
   ============================================ */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

.card-2 {
    animation-delay: 1.3s;
}

.card-3 {
    animation-delay: 2.6s;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

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

/* ============================================
   ROOM CARDS
   ============================================ */
.room-card {
    will-change: transform;
}

/* ============================================
   AMENITY CARDS
   ============================================ */
.amenity-card {
    will-change: transform;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    will-change: transform;
}

/* ============================================
   SCROLL REVEAL (Progressive Enhancement)
   Only applied when JS runs AND user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        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; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    position: relative;
}

/* ============================================
   FORM STYLES
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-shape {
        display: none;
    }
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.75rem 0;
        animation: none;
    }
    
    .card-1, .card-2, .card-3 {
        animation: none;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: #c084fc;
    color: white;
}
