/* ============================================
   Canyons Galore - Custom Styles
   ============================================ */

:root {
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --accent-color: #dc2626;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link.btn {
        margin-top: 0.5rem;
        text-align: center;
        border: none;
    }
    
    .navbar-nav .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.logo-img {
    object-fit: contain;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

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

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

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

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

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

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Tour Cards */
.tour-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.tour-image {
    overflow: hidden;
}

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

.tour-card:hover .placeholder-image {
    transform: scale(1.1);
}

.tour-badge {
    z-index: 1;
}

/* Benefits Section */
.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-avatar {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.02em;
}

.btn-warning {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-warning:hover {
    background-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Stats */
.stat-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1a1d20 !important;
    color: #e9ecef;
}

footer h3,
footer h4,
footer h5 {
    color: #ffffff !important;
    font-weight: 600;
}

footer p {
    color: #adb5bd !important;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer a {
    color: #adb5bd !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer ul li {
    color: #adb5bd;
}

footer .social-links a {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

footer hr {
    border-color: #495057 !important;
}

footer small {
    color: #6c757d !important;
}

/* Page Sections */
section {
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

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

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Gallery Styles */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

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

/* Image Loading */
img {
    max-width: 100%;
    height: auto;
}

.tour-image img,
.gallery-item img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Tour Detail Styles */
.tour-detail-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    color: white;
    position: relative;
}

.tour-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

.tour-detail-hero .container {
    position: relative;
    z-index: 1;
}

.tour-info-card {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

/* Utilities */
.text-warning {
    color: var(--primary-color) !important;
}

.bg-warning {
    background-color: var(--primary-color) !important;
}

/* Megamenu Styles */
.nav-item.dropdown {
    position: static;
}

.dropdown-menu.megamenu {
    width: 100%;
    max-width: 1000px;
    padding: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    margin-top: 10px;
    left: 50% !important;
    transform: translateX(-50%);
    background-color: #ffffff;
    z-index: 1050;
    display: none;
}

.dropdown-menu.megamenu.show {
    display: block !important;
}

/* Ensure dropdown is visible on desktop hover */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu.megamenu {
        display: block !important;
    }
}

.megamenu-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    border: none;
}

.megamenu-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
    transform: translateX(5px);
    color: var(--text-dark);
}

.megamenu-item:focus {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--text-dark);
}

.megamenu-item .fw-bold {
    color: var(--text-dark);
}

.megamenu-item img {
    transition: transform 0.3s ease;
}

.megamenu-item:hover img {
    transform: scale(1.05);
}

/* Language Switcher */
.language-switcher .btn {
    min-width: 45px;
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.2);
}

.language-switcher .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.language-switcher .btn:not(.active):hover {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: var(--primary-color);
}

/* Dropdown Animation */
.dropdown-menu {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Megamenu */
@media (max-width: 991.98px) {
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu.megamenu {
        max-width: 100%;
        margin-top: 0.5rem;
        left: 0 !important;
        transform: none;
        position: relative !important;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        display: none;
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .dropdown-menu.megamenu.show {
        display: block !important;
    }
    
    .megamenu .container {
        padding: 1rem !important;
        max-width: 100%;
    }
    
    .megamenu .row {
        margin: 0;
    }
    
    .megamenu .col-lg-4 {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .megamenu .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    .megamenu-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .megamenu-item img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .megamenu h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Smooth scrolling for megamenu on mobile */
    .dropdown-menu.megamenu {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-menu.megamenu::-webkit-scrollbar {
        width: 6px;
    }
    
    .dropdown-menu.megamenu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .dropdown-menu.megamenu::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
    }
    
    .dropdown-menu.megamenu::-webkit-scrollbar-thumb:hover {
        background-color: #ffb300;
    }
    
    /* Make dropdown toggle work better on mobile */
    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.5em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
    
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

