/* ========================================
   Variables y Reset
   ======================================== */
:root {
    --primary-color: #2d5f3f;
    --secondary-color: #8fae7f;
    --accent-color: #d4a574;
    --dark-color: #1a3a2e;
    --light-color: #f5f5f0;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --overlay-dark: rgba(26, 58, 46, 0.7);

    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition: all 0.3s ease;

    --footer-blue: #0D3B66;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   Utilities
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: var(--light-color);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 95, 63, 0.25);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero-logo.jpeg');
    background-size: cover;
    background-position: bottom;
    opacity: 1;
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
}

.header.scrolled {
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

/* Keep the same transparent overlay on scroll */
.header.scrolled::after {
    background: rgba(255, 255, 255, 0.25);
}

.navbar {
    position: relative;
    z-index: 1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: brightness(1) drop-shadow(0 2px 4px rgba(255,255,255,0.8));
    transition: var(--transition);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
}

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

.language-selector {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    padding: 5px 12px;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-btn .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-shadow: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.85) 0%, rgba(45, 95, 63, 0.80) 50%, rgba(13, 59, 102, 0.75) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 15%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 25%;
    bottom: 25%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 20%;
    bottom: 20%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 50%;
    top: 40%;
    animation-delay: 3s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) translateX(30px) scale(1.05);
        opacity: 0.4;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 25px;
    text-shadow: 4px 4px 12px rgba(0,0,0,0.7), 2px 2px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.title-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 1;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 1px 1px 5px rgba(0,0,0,0.6);
}

.title-highlight {
    display: block;
    font-size: 6rem;
    font-weight: 700;
    color: white;
    position: relative;
    text-shadow: 4px 4px 12px rgba(0,0,0,0.8), 2px 2px 6px rgba(0,0,0,0.6);
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 1px 1px 5px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}


.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroll span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: white;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 2rem;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--light-color);
    background-image: url('background-pattern.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.about-content {
    display: grid;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about .section-header {
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 80px 0;
    background: white;
    background-image: url('chiloe-church.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.85) 0%, rgba(45, 95, 63, 0.80) 100%);
    pointer-events: none;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.why-us .section-header h2,
.why-us .section-header p {
    color: white;
}

.why-us .divider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), var(--accent-color));
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.why-card-compact {
    position: relative;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.why-card-compact:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(45, 95, 63, 0.25);
}

.why-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.why-card-compact:hover .why-image {
    transform: scale(1.1);
}

.why-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(26, 58, 46, 0.95), rgba(26, 58, 46, 0.7), transparent);
    color: white;
    z-index: 1;
}

.why-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.why-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========================================
   Tours Section
   ======================================== */
.tours {
    padding: 100px 0;
    background: white;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tour-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.05), rgba(212, 165, 116, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tour-card:hover::after {
    opacity: 1;
}

.tour-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(45, 95, 63, 0.25);
}

.tour-gallery {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.tour-main-image.active {
    opacity: 1;
}

.tour-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.tour-content {
    padding: 25px;
}

.tour-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.tour-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.tour-details {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
}

.tour-details li {
    padding: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

.tour-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    text-align: center;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    padding: 100px 0;
    background: white;
    background-image: url('reviews-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 46, 0.85) 0%, rgba(45, 95, 63, 0.80) 100%);
    pointer-events: none;
}

.reviews .container {
    position: relative;
    z-index: 1;
}

.reviews .section-header h2,
.reviews .section-header p {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.reviews .divider {
    background: rgba(255, 255, 255, 0.5);
}

.reviews-grid {
    margin-top: 50px;
    position: relative;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.reviews-track .review-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
}

.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.reviews-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.reviews-prev {
    left: 0;
}

.reviews-next {
    right: 0;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.reviews-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.review-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 1);
}

.review-stars {
    color: #FFB800;
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.review-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-style: italic;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.review-language {
    font-size: 0.75rem;
    color: #999;
    font-style: normal;
    margin-bottom: 10px;
    font-weight: 600;
}

.review-read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-weight: 600;
}

.review-read-more:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
    border-top: 2px solid var(--accent-color);
}

.review-author strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-author span {
    color: #888;
    font-size: 0.9rem;
}

/* Gallery Lightbox Modal */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.gallery-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: white;
    color: var(--dark-color);
    transform: rotate(90deg);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-lightbox-nav:hover {
    background: white;
    color: var(--dark-color);
}

.gallery-lightbox-prev {
    left: 20px;
}

.gallery-lightbox-next {
    right: 20px;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.review-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.review-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.review-modal-stars {
    color: #FFB800;
    font-size: 1.8rem;
    letter-spacing: 4px;
}

.review-modal-date {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.review-modal-language {
    display: inline-block;
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.review-modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.review-modal-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--light-color);
}

.review-modal-author-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.review-modal-author-country {
    color: #888;
    font-size: 1rem;
}

.review-translate-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-bottom: 20px;
}

.review-translate-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: 100px 0;
    background: var(--dark-color);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('background-pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery .section-header h2,
.gallery .section-header p {
    color: white;
}

.gallery .divider {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.7) 0%, rgba(143, 174, 127, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* Featured large item (first one) */
.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:first-child img {
    height: 100%;
    min-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:first-child img {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 0;
    background: white;
    background-image: url('background-pattern.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.93);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    border: none;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--footer-blue);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #4DB8E8;
    margin-bottom: 15px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul li {
    padding: 5px 0;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: #4DB8E8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .title-line {
        font-size: 2rem;
    }

    .title-highlight {
        font-size: 4.5rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .language-selector {
        order: 3;
        margin-left: auto;
        margin-right: 10px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 30px 0;
        gap: 0;
        order: 4;
        flex-basis: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .title-line {
        font-size: 1.5rem;
    }

    .title-highlight {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        gap: 30px;
        flex-direction: column;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Reviews mobile fixes */
    .reviews-carousel {
        padding: 0 50px;
    }

    .reviews-track .review-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .review-card {
        height: auto;
        min-height: 350px;
    }

    .reviews-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .reviews-prev {
        left: 5px;
    }

    .reviews-next {
        right: 5px;
    }
}

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

    .title-line {
        font-size: 1.2rem;
    }

    .title-highlight {
        font-size: 2.5rem;
    }

    .title-highlight::after {
        width: 100px;
        height: 3px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .btn-outline {
        padding: 12px 30px;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
