/* Custom styles for Crescent View Hotel */

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

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

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

::-webkit-scrollbar-thumb {
    background: #C85A3C;
    border-radius: 5px;
}

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

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

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

.hero-geo:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.hero-geo:nth-child(2) {
    animation: float-reverse 8s ease-in-out infinite;
}

.hero-geo:nth-child(3) {
    animation: float 7s ease-in-out infinite;
}

.hero-geo:nth-child(4) {
    animation: float-reverse 9s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #C85A3C 0%, #E07A5F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.room-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Image reveal animation */
.room-img {
    transition: transform 0.5s ease;
}

/* Navigation active state */
.nav-link.active {
    color: #C85A3C;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    .hero-geo {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 90, 60, 0.2);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-geo {
        display: none;
    }
    
    .font-display {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-display {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    .hero-geo,
    .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
    nav {
        background: #fff;
    }
    
    .bg-white\/95 {
        background: #fff;
    }
}
