/* Custom styles for Scotland Park Motel & Apartments */

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

/* Custom animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero animation */
.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Feature cards stagger animation */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Room cards stagger animation */
.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }

/* Button hover effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.feature-card,
.room-card {
    position: relative;
}

.feature-card::after,
.room-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FF6B4A;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after,
.room-card:hover::after {
    transform: scaleX(1);
}

/* Form focus states */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.2);
}

/* Image hover zoom */
.room-image img {
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

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

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .btn-primary,
    .btn-secondary,
    .contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

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

/* Touch device optimizations */
@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .room-card:hover {
        transform: none;
    }
}
