/* --- Far Better Adventures Enhanced Outdoor Theme --- */

:root {
    --fba-green: #20551b;
    --fba-green-light: #4caf50;
    --fba-green-glow: #2d7d23;
    --fba-red: #e53935;
    --fba-offwhite: #f8f9fa;
    --fba-dark: #1a1a1a;
    --fba-gray: #6c757d;
    --fba-light: #ffffff;
    --fba-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --fba-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    --fba-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --fba-gradient: linear-gradient(135deg, #20551b 0%, #4caf50 100%);
    --fba-gradient-hover: linear-gradient(135deg, #2d7d23 0%, #66bb6a 100%);
}

/* Base Styles with Enhanced Typography */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--fba-dark);
    line-height: 1.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(32, 85, 27, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(32, 85, 27, 0.02) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Enhanced Header & Navigation */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(32, 85, 27, 0.1);
    position: static;
    z-index: 1000;
    transition: var(--fba-transition);
}

.header-main:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}



.navbar {
    padding: 0.5rem 0;
    position: static !important;
    box-shadow: none;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.logo {
    height: 160px;
    width: auto;
    max-width: 90vw;
    transition: var(--fba-transition);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 8px 16px rgba(32, 85, 27, 0.2));
}

.navbar-nav {
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--fba-dark) !important;
    font-weight: 600;
    padding: 0.8rem 1.5rem !important;
    transition: var(--fba-transition);
    position: relative;
    border-radius: 25px;
    margin: 0 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fba-gradient);
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--fba-transition);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover {
    color: var(--fba-light) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--fba-gradient);
    color: var(--fba-light) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

/* Enhanced Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--fba-transition);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    box-shadow: var(--fba-shadow);
}

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

/* Ripple Effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--fba-gradient);
    color: var(--fba-light);
}

.btn-primary:hover {
    background: var(--fba-gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--fba-shadow-hover);
}

.btn-outline-primary {
    background: transparent;
    color: var(--fba-green);
    border: 2px solid var(--fba-green);
}

.btn-outline-primary:hover {
    background: var(--fba-gradient);
    border-color: transparent;
    color: var(--fba-light);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline-light {
    background: transparent;
    color: var(--fba-light);
    border: 2px solid var(--fba-light);
}

.btn-outline-light:hover {
    background: var(--fba-light);
    color: var(--fba-green);
    transform: translateY(-3px) scale(1.02);
}

/* Enhanced Cards with Glassmorphism */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--fba-transition);
    box-shadow: var(--fba-shadow);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--fba-shadow-hover);
}

.card-title {
    color: var(--fba-green);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Enhanced Forms */
.form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.2rem;
    transition: var(--fba-transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--fba-green);
    box-shadow: 0 0 0 0.3rem rgba(32, 85, 27, 0.15);
    transform: translateY(-2px);
}

.form-control.has-value {
    border-color: var(--fba-green);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced Footer */
.footer-main {
    background: var(--fba-gradient);
    color: var(--fba-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: grainMove 20s linear infinite;
}

@keyframes grainMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.footer-main h5 {
    color: var(--fba-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-main h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--fba-green-light);
    border-radius: 2px;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 1rem;
    transition: var(--fba-transition);
}

.footer-links li:hover, .footer-contact li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--fba-light);
    text-decoration: none;
    transition: var(--fba-transition);
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--fba-transition);
}

.footer-links a:hover {
    color: var(--fba-green-light);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
}

/* Enhanced Adventure Cards */
.adventure-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.adventure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: var(--fba-transition);
    z-index: 2;
}

.adventure-card:hover::before {
    transform: translateX(100%);
}

.adventure-card img {
    transition: var(--fba-transition);
    filter: brightness(0.9);
}

.adventure-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.adventure-card .card-body {
    position: relative;
    z-index: 3;
}

/* Enhanced Country Cards */
.country-card {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 20px;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    transition: var(--fba-transition);
}

.country-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
}

.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--fba-transition);
    filter: saturate(1.1);
}

.country-card:hover img {
    transform: scale(1.15);
    filter: saturate(1.3);
}

.country-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--fba-light);
    padding: 2.5rem 2rem;
    z-index: 2;
    transform: translateY(20px);
    transition: var(--fba-transition);
}

.country-card:hover .card-body {
    transform: translateY(0);
}

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

@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 pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Enhanced Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Hero Section */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(32, 85, 27, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content .lead {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 1.1s both;
}

/* Enhanced Features Section */
.features-section {
    background: linear-gradient(135deg, var(--fba-offwhite) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(32,85,27,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.feature-card {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--fba-shadow);
    transition: var(--fba-transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fba-gradient);
    transform: scaleX(0);
    transition: var(--fba-transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--fba-shadow-hover);
}

.feature-icon {
    color: var(--fba-green);
    margin-bottom: 1.5rem;
    transition: var(--fba-transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--fba-green-light);
}

/* Enhanced CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(32, 85, 27, 0.95) 0%, rgba(76, 175, 80, 0.9) 100%), url('/images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q25 0 50 10 T100 10 V20 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
    animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.cta-section h2 {
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* Enhanced Currency Selector */
.currency-selector .form-select {
    border-radius: 25px;
    border: 2px solid rgba(32, 85, 27, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--fba-transition);
    font-weight: 600;
}

.currency-selector .form-select:focus {
    border-color: var(--fba-green);
    box-shadow: 0 0 0 0.3rem rgba(32, 85, 27, 0.15);
    transform: translateY(-2px);
}

/* Parallax Elements */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Keyboard Navigation */
.keyboard-navigation .btn:focus,
.keyboard-navigation .nav-link:focus {
    outline: 3px solid var(--fba-green);
    outline-offset: 2px;
}

/* Responsive Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: var(--fba-shadow);
        margin-top: 1rem;
    }

    .nav-actions {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .navbar-brand {
        flex: 0 0 180px;
        max-width: 180px;
    }
    
    .logo {
        height: 60px;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Enhanced Utility Classes */
.text-primary { color: var(--fba-green) !important; }
.bg-primary { background: var(--fba-gradient) !important; }
.text-secondary { color: var(--fba-gray) !important; }
.bg-fba-green { background: var(--fba-gradient) !important; }
.bg-fba-red { background: var(--fba-red) !important; }
.text-fba-green { color: var(--fba-green) !important; }
.text-fba-red { color: var(--fba-red) !important; }

/* Enhanced Spacing */
.container, .content-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--fba-offwhite);
}

::-webkit-scrollbar-thumb {
    background: var(--fba-gradient);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fba-gradient-hover);
}

/* Enhanced Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.3rem rgba(32, 85, 27, 0.25);
}

/* Enhanced Text Selection */
::selection {
    background: var(--fba-green);
    color: var(--fba-light);
}

::-moz-selection {
    background: var(--fba-green);
    color: var(--fba-light);
}

/* Enhanced Loading Performance */
body.loaded .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .btn:active,
    .card:active,
    .nav-link:active {
        transform: scale(0.98);
    }
}