/* Global Styles */
:root {
    --primary-color: #059669;
    --secondary-color: #b45309;
    --text-dark: #1f2937;
    --text-light: #f3f4f6;
    --border-radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Navigation */
nav {
    animation: fadeIn 0.5s ease-out;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #b45309;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle.active {
    background-color: #059669;
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    animation: slideInLeft 0.8s ease-out;
}

.hero-section p {
    animation: slideInRight 0.8s ease-out;
}

/* Cards */
.tour-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.filter-btn {
    background-color: #f3f4f6;
    color: #1f2937;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

.filter-btn:hover {
    border-color: #059669;
    background-color: #ecfdf5;
}

/* Gallery */
.gallery-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image img {
    transition: transform 0.4s ease;
}

/* Forms */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Buttons */
button, a.btn {
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

button:active, a.btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    animation: fadeIn 0.5s ease-out 0.3s backwards;
}

footer a {
    transition: color 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideInLeft 0.3s ease-out;
}

.mobile-dropdown {
    transition: all 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .print-hidden {
        display: none;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #059669, #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(5, 150, 105, 0.3);
    border-radius: 50%;
    border-top-color: #059669;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Transitions */
html {
    scroll-behavior: smooth;
}

/* Link Transitions */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background-color: #059669;
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9fafb;
}
