/* Feeali Buddies Inn - Custom Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0e7490;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #0891b2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hero-content h1,
.hero-content p,
.hero-content .flex {
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .flex {
    animation-delay: 0.4s;
}

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

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

.floating-card:nth-child(2) {
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    animation-delay: 4s;
}

/* Gradient Overlays */
.gradient-coral {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
}

.gradient-tropical {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

.gradient-sunset {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

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

.btn-coral::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;
}

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

/* Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.image-hover img {
    transition: transform 0.5s ease;
}

.image-hover:hover img {
    transform: scale(1.1);
}

.image-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(20, 184, 166, 0.3), rgba(8, 145, 178, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Gallery Modal Styles */
#imageModal {
    backdrop-filter: blur(5px);
}

#imageModal img {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Activity Card Hover Effects */
.activity-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(20, 184, 166, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-card:hover::before {
    opacity: 1;
}

/* Text Gradient Effects */
.text-gradient-coral {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-ocean {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Section Dividers */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0891b2, transparent);
}

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

/* Island Theme Decorations */
.island-decoration {
    position: relative;
}

.island-decoration::before {
    content: '🌴';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

.island-decoration::after {
    content: '🌊';
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite reverse;
}

/* Typography Enhancements */
.playfair-heading {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.inter-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

/* Contact Card Styles */
.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Price Badge Styles */
.price-badge {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Room Amenities Icon Styles */
.amenity-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-grid {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Custom Utility Classes */
.bg-maldivian-blue {
    background-color: #0891b2;
}

.bg-maldivian-teal {
    background-color: #14b8a6;
}

.bg-maldivian-coral {
    background-color: #f97316;
}

.text-maldivian-blue {
    color: #0891b2;
}

.text-maldivian-teal {
    color: #14b8a6;
}

.text-maldivian-coral {
    color: #f97316;
}

/* Booking Form Enhancements */
.booking-form {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.9));
    backdrop-filter: blur(10px);
}

.form-field {
    position: relative;
}

.form-field label {
    transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field select:focus + label {
    color: #0891b2;
    transform: translateY(-2px);
}

/* Success/Error Message Styles */
.message-success {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.message-error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

/* Footer Styles */
.footer-bg {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e293b 100%);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 40;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

.wave-animation {
    animation: wave 2s ease-in-out infinite;
}

/* Island Pattern Background */
.island-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .hero-section {
        page-break-after: always;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link::after {
        background-color: currentColor;
    }
    
    .btn-coral {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}