/* Custom styles for Ormsby House by RedAwning */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #131416;
}
::-webkit-scrollbar-thumb {
    background: #3a3c43;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8645B;
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(50deg); }
}

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

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

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(19, 20, 22, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    max-height: 500px;
}

/* Geometric shape animations */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

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

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}

.btn-shine:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* Input focus animations */
input:focus,
textarea:focus {
    animation: none;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(232, 100, 91, 0.15);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #E8645B 0%, #ff8470 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(232, 100, 91, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(63, 65, 71, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Image hover zoom container */
.img-zoom-container {
    overflow: hidden;
}

/* Custom selection color */
::selection {
    background: rgba(232, 100, 91, 0.3);
    color: white;
}
