/**
 * Premium Visual Enhancements
 * This file overrides excessive animations and adds modern styling
 * Color palette is preserved from main style.php
 */

/* ===================================
   1. REMOVE EXCESSIVE ANIMATIONS
   =================================== */

/* Disable all infinite floating/pulsing animations */
.feature-card,
.service-card,
.bus-card,
.about-content,
.about-image,
.about-image img,
.about-text h2,
.about-text p,
.feature-icon,
.feature-card h3,
.service-icon,
.service-card h3,
.service-card p,
.bus-badge,
.btn-primary,
.btn-outline {
    animation: none !important;
}

/* ===================================
   2. IMPROVED HEADER (GLASSMORPHISM)
   =================================== */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ===================================
   3. REFINED HERO SECTION
   =================================== */
.hero-content h1 {
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.hero-content p {
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Subtle gradient overlay instead of solid */
.hero-overlay {
    background: linear-gradient(135deg,
            rgba(44, 85, 48, 0.85) 0%,
            rgba(30, 58, 35, 0.9) 50%,
            rgba(44, 85, 48, 0.85) 100%) !important;
}

/* ===================================
   4. PREMIUM CARD STYLING
   =================================== */

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(44, 85, 48, 0.08);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.05),
        0 25px 50px rgba(44, 85, 48, 0.1),
        0 40px 80px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

/* Service Icon - No rotation, just subtle hover */
.service-icon {
    animation: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.3);
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(44, 85, 48, 0.06);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 35px rgba(44, 85, 48, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Feature Icon - Clean, no glow animation */
.feature-icon {
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.25);
    transition: all 0.35s ease;
}

.feature-icon::after {
    display: none !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(44, 85, 48, 0.3);
}

/* Hotel Cards */
.hotel-card {
    background: white;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.03),
        0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotel-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(44, 85, 48, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Bus Cards */
.bus-card {
    animation: none !important;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04),
        0 15px 40px rgba(0, 0, 0, 0.06);
}

.bus-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 50px rgba(44, 85, 48, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ===================================
   5. REFINED BUTTONS
   =================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 8px 25px rgba(44, 85, 48, 0.35),
        0 0 0 3px rgba(44, 85, 48, 0.1);
}

.btn-whatsapp {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* ===================================
   6. TYPOGRAPHY REFINEMENTS
   =================================== */
.section-title {
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* About section - remove crazy rotation */
.about-image {
    perspective: none !important;
    transform-style: flat !important;
}

.about-image::before {
    animation: none !important;
}

.about-image img {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.1);
}

/* ===================================
   7. FLOATING CONTACT BUTTONS
   =================================== */
.fixed-contact {
    flex-direction: column !important;
}

.whatsapp-btn,
.call-btn {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover,
.call-btn:hover {
    transform: scale(1.15);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   8. GALLERY IMPROVEMENTS
   =================================== */
.gallery-item {
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===================================
   9. TRIP CARDS
   =================================== */
.trip-card {
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05),
        0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.trip-card:hover {
    box-shadow:
        0 20px 50px rgba(44, 85, 48, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ===================================
   10. SMOOTH SCROLL-REVEAL ANIMATION
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply once on load (not infinite) */
.service-card,
.feature-card,
.hotel-card,
.bus-card,
.trip-card,
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards !important;
}

.service-card:nth-child(1),
.feature-card:nth-child(1),
.hotel-card:nth-child(1) {
    animation-delay: 0.1s !important;
}

.service-card:nth-child(2),
.feature-card:nth-child(2),
.hotel-card:nth-child(2) {
    animation-delay: 0.2s !important;
}

.service-card:nth-child(3),
.feature-card:nth-child(3),
.hotel-card:nth-child(3) {
    animation-delay: 0.3s !important;
}

.service-card:nth-child(4),
.feature-card:nth-child(4),
.hotel-card:nth-child(4) {
    animation-delay: 0.4s !important;
}

/* ===================================
   11. MAP CONTAINER
   =================================== */
.map-container {
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===================================
   12. FOOTER POLISH
   =================================== */
.footer {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
}

/* ===================================
   13. MOBILE RESPONSIVE FIXES
   =================================== */
@media (max-width: 768px) {

    /* Fix floating contact buttons - move to bottom right corner */
    .fixed-contact {
        top: auto !important;
        bottom: 20px !important;
        right: 15px !important;
        transform: none !important;
        gap: 10px;
    }

    .whatsapp-btn,
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Fix features grid - single column on mobile */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Fix hero buttons spacing */
    .hero-buttons {
        gap: 10px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Fix about section padding */
    .about-text {
        padding: 0 15px;
    }

    /* Fix service cards padding */
    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Fix section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .section-title::after {
        bottom: -8px;
        width: 40px;
        height: 3px;
    }

    /* Fix hotel cards */
    .hotel-card {
        border-radius: 15px;
    }

    .hotel-content {
        padding: 15px;
    }

    .hotel-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hotel-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix bus cards */
    .bus-card {
        border-radius: 15px;
    }

    /* Fix trip cards */
    .trips-grid {
        gap: 15px !important;
    }

    .trip-card {
        padding: 20px 15px;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Fix galleries */
    .gallery-grid {
        gap: 10px !important;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .fixed-contact {
        bottom: 15px !important;
        right: 10px !important;
    }

    .whatsapp-btn,
    .call-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

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