/* ================================================
   Chohan Travel & Tours - Custom CSS
   ================================================ */

/* ================================================
   Variables & Global Styles
   ================================================ */
:root {
    --primary-color: #2d7d32;
    --primary-dark: #1b5e20;
    --secondary-color: #ffffff;
    --accent-color: #ff9800;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --transition-smooth: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.btn-white {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary-color) !important;
}

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

/* ================================================
   Navigation
   ================================================ */
.navbar {
    background: rgba(12, 30, 13, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(12, 30, 13, 0.95) !important;
    padding: 10px 0;
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    color: var(--accent-color);
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition-smooth);
}

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

.dropdown-menu {
    background: white;
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 10px;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 125, 50, 0.7), rgba(27, 94, 32, 0.7));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

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

/* ================================================
   Search Section
   ================================================ */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    max-width: 1200px;
    margin: 0 auto;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-select,
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition-smooth);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

.search-btn {
    margin-top: 8px;
    height: 48px;
}

/* ================================================
   Section Styles
   ================================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ================================================
   Package Cards
   ================================================ */
.package-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    height: 100%;
}

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

.package-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

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

.package-content {
    padding: 25px;
}

.package-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.package-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.package-features span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-features i {
    color: var(--primary-color);
    margin-right: 5px;
}

.package-price {
    margin-bottom: 20px;
}

.package-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price .per-person {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 5px;
}

/* ================================================
   Destination Cards
   ================================================ */
.destination-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.destination-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.destination-card:hover .destination-image img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.destination-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.destination-country {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ================================================
   Testimonial Cards
   ================================================ */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 25px;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================================
   Call to Action
   ================================================ */
.cta {
    background: var(--gradient-primary);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: #1a1a1a !important;
}

.footer-brand h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #cccccc;
    line-height: 1.7;
}

.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition-smooth);
}

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

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.newsletter .input-group {
    margin-top: 10px;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-color);
}

/* ================================================
   Floating Elements
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    line-height: 60px;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #20ba5a;
    color: white;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .search-card {
        padding: 20px;
        margin: 0 15px;
    }
    
    .package-features {
        justify-content: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .cta-subtitle {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 100vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px;
    }
    
    .search-card .row {
        gap: 15px;
    }
    
    .search-btn {
        margin-top: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .destination-card {
        height: 250px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-card {
        padding: 15px;
    }
    
    .package-content {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .footer .container {
        padding: 0 20px;
    }
}

/* ================================================
   Loading Animation
   ================================================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}