/* Custom Styles for King Motel */

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

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

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

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(127, 40, 40, 0.08) 0%, rgba(255, 92, 92, 0.05) 100%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: pulse-glow 6s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 142, 142, 0.1) 0%, rgba(127, 40, 40, 0.05) 100%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: pulse-glow 8s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(253, 242, 242, 0.5);
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: rotate-slow 20s linear infinite;
}

.shape-square {
    width: 150px;
    height: 150px;
    background: rgba(127, 40, 40, 0.05);
    border: 3px solid rgba(127, 40, 40, 0.1);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: rotate-slow 25s linear infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(127, 40, 40, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    top: 50%;
    left: 15%;
    opacity: 0.6;
}

/* Scroll Reveal Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .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; }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
.js-enabled .reveal {
    opacity: 1;
    transform: none;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(254, 252, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(127, 40, 40, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7f2828, #ff5c5c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4a0e0e, #e06565);
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #7f2828, #ff5c5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(127, 40, 40, 0.1);
}

/* Print Styles */
@media print {
    .geo-shape,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}
