/* Frankly Oscar - Custom CSS */
/* Royal Color Scheme: Black (#000000), White (#FFFFFF), Blue (#0000FF), Charcoal Gray (#36454F), Dark Green (#013220) */

/* Custom Properties - Muted Professional Palette */
:root {
    --muted-charcoal: #2C2C2C;
    --muted-stone: #F5F5F0;
    --muted-sage: #6B7280;
    --muted-cream: #FEFCF8;
    --muted-taupe: #8B7F72;
    --muted-slate: #4A5568;
    --muted-warm: #E8E6E1;
    --accent-copper: #A0735C;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-subtle: all 0.2s ease-out;
    --shadow-soft: 0 4px 12px rgba(44, 44, 44, 0.08);
    --shadow-medium: 0 8px 24px rgba(44, 44, 44, 0.12);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--muted-charcoal);
    background-color: var(--muted-cream);
    overflow-x: hidden;
}

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

/* Custom Scrollbar Styling */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--muted-taupe) var(--muted-warm);
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--muted-warm);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-taupe);
    border-radius: 6px;
    border: 2px solid var(--muted-warm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-copper);
}

/* Loading Animation */
.loading-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-copper);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade In Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

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

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

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

/* Navigation Styles */
.nav-link {
    color: var(--muted-cream);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: var(--transition-subtle);
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-copper);
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-copper);
    transition: var(--transition-subtle);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.mobile-nav-link {
    display: block;
    color: var(--muted-cream);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-copper);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--muted-charcoal);
    color: var(--muted-cream);
    padding: 0.875rem 1.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-subtle);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--accent-copper);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted-charcoal);
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--muted-charcoal);
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-subtle);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--muted-charcoal);
    color: var(--muted-cream);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted-cream);
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--muted-cream);
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-subtle);
    cursor: pointer;
}

.btn-secondary-light:hover {
    background: var(--muted-cream);
    color: var(--muted-charcoal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

/* Leaf Pattern Background */
.bg-leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23013220' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Flash Messages */
.flash-message {
    animation: slideInRight 0.5s ease-out;
}

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

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    transition: var(--transition-smooth);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
}

/* Gallery Styles */
.gallery-item {
    transition: var(--transition-smooth);
}

.gallery-item.hidden {
    display: none;
}

.filter-btn {
    background: var(--royal-white);
    color: var(--royal-charcoal);
    border: 2px solid var(--royal-charcoal);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--royal-blue);
    color: var(--royal-white);
    border-color: var(--royal-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

/* Hover Effects */
.group:hover .group-hover\:bg-opacity-20 {
    background-opacity: 0.2;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .animate-fade-in,
    .animate-fade-in-delay,
    .animate-fade-in-delay-2,
    .animate-fade-in-delay-3 {
        animation-duration: 0.6s;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

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

/* Custom Aspect Ratios */
.aspect-w-4 {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.aspect-h-3 {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Weather Widget Styles */
#weather-widget {
    transition: var(--transition-smooth);
}

#weather-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-royal);
}

/* Package Cards */
.package-card {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.package-card:hover::before {
    left: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-royal);
}

/* Modal Styles */
#gallery-modal {
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease-out;
}

#gallery-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#gallery-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--royal-charcoal);
    border-top-color: var(--royal-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Shadows */
.shadow-royal {
    box-shadow: var(--shadow-royal);
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

/* Text Selection */
::selection {
    background: var(--royal-blue);
    color: var(--royal-white);
}

::-moz-selection {
    background: var(--royal-blue);
    color: var(--royal-white);
}

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

::-webkit-scrollbar-track {
    background: var(--royal-white);
}

::-webkit-scrollbar-thumb {
    background: var(--royal-charcoal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--royal-blue);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border-width: 3px;
    }
    
    .nav-link::before {
        height: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--royal-blue);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--royal-blue);
    color: var(--royal-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        filter: invert(1) hue-rotate(180deg);
    }
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, var(--royal-black), var(--royal-charcoal));
}

footer a:hover {
    transform: translateY(-2px);
    transition: var(--transition-smooth);
}
