/* Custom styles for Rum Island */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero text reveal animation */
.reveal-text {
    animation: revealUp 0.8s ease-out forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.reveal-text:nth-child(1) { animation-delay: 0.1s; }
.reveal-text:nth-child(2) { animation-delay: 0.2s; }
.reveal-text:nth-child(3) { animation-delay: 0.3s; }
.reveal-text:nth-child(4) { animation-delay: 0.4s; }
.reveal-text:nth-child(5) { animation-delay: 0.5s; }

/* Scroll reveal for sections */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #A8E6CF !important;
}

/* Button hover animation */
button,
a {
    transition: all 0.3s ease-out;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-text,
    .scroll-reveal,
    img,
    button,
    a {
        animation: none;
        transition: none;
    }
    
    .scroll-reveal.hidden {
        opacity: 1;
        transform: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-serif.text-6xl,
    .font-serif.text-7xl,
    .font-serif.text-8xl {
        font-size: 3.5rem;
        line-height: 1;
    }
    
    .font-serif.text-4xl,
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}
