/* Custom Fonts */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
}

/* Hero Background */
.hero-bg {
    background-image: url('images/rotorua-geothermal-landscape-hero-1920x1080.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Fallback gradient if image fails to load */
    background-color: #1a1a2e;
}

@keyframes heroShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Experience Card Backgrounds */
.bg-geothermal {
    background-image: url('images/rotorua-geothermal-bubbling-mud-pools-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-wellness {
    background-image: url('images/polynesian-spa-lake-rotorua-sunset-view-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-maori {
    background-image: url('images/maori-cultural-performance-te-puia-rotorua-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-adventure {
    background-image: url('images/redwoods-forest-walking-trails-rotorua-sunlight-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-lakes {
    background-image: url('images/lake-tarawera-kayaking-sunset-mount-tarawera-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-luxury {
    background-image: url('images/luxury-lodge-private-spa-rotorua-starlight-800x600.jpg');
    background-size: cover;
    background-position: center;
}

.bg-waiOTapu {
    background-image: url('images/wai-o-tapu-champagne-pool-orange-turquoise-1200x800.jpg');
    background-size: cover;
    background-position: center;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.experience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

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

/* Section Fade In on Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Steam Animation Effect */
@keyframes steam {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

.steam-effect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: steam 5s ease-in-out infinite;
}

/* Button Glow Effect */
.btn-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    transition: box-shadow 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-playfair {
        letter-spacing: -0.02em;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Card Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Image Overlay on Hover */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

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

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Grid Fade In Stagger */
.grid-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    animation: slideDown 0.3s ease-out;
}

/* Section Divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #f59e0b, #fb923c);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Quote Styling */
blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 1.5rem;
    font-style: italic;
    color: #6b7280;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.8s ease-out forwards;
}
