/* ═══════════════════════════════════════════════════════
   ISLAMIC SAFAR - Premium Frontend Styles
   ═══════════════════════════════════════════════════════ */

:root {
    --navy: #0B3C5D;
    --navy-light: #1a5276;
    --navy-dark: #072a42;
    --gold: #D4AF37;
    --gold-light: #e8c547;
    --gold-dark: #c9a227;
    --cream: #FDF8F0;
}

html {
    scroll-behavior: smooth;
}

/* ── Page Loader ── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212,175,55,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Navigation ── */
.nav-scrolled {
    background: rgba(11, 60, 93, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-scrolled .nav-inner {
    height: 64px !important;
}
.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Hero Sections ── */
.hero-overlay {
    background: linear-gradient(135deg, rgba(7,42,66,0.92) 0%, rgba(11,60,93,0.85) 50%, rgba(7,42,66,0.92) 100%);
}
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Buttons ── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}
.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.1);
    color: var(--gold-light);
}
.btn-navy {
    background: var(--navy);
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11,60,93,0.3);
}

/* ── Cards ── */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: var(--gold);
}
.package-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}
.package-card:hover .package-img {
    transform: scale(1.05);
}
.package-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Trip Cards ── */
.trip-card {
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}
.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--gold);
}

/* ── Package Placeholder ── */
.package-placeholder {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.package-placeholder i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.5;
}

/* ── Itinerary Timeline ── */
.timeline-item {
    position: relative;
    padding-left: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(212,175,55,0.2));
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-dot {
    position: absolute;
    left: 4px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--navy-dark);
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
}

/* ── Stats Counter ── */
.stat-number {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-weight: 700;
}

/* ── Call Float (mobile only) ── */
.call-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #0B3C5D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(11,60,93,0.4);
    transition: all 0.3s;
    animation: call-pulse 2s infinite;
}
.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(11,60,93,0.5);
}
@keyframes call-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(11,60,93,0.4); }
    50% { box-shadow: 0 4px 30px rgba(11,60,93,0.6), 0 0 0 10px rgba(11,60,93,0.1); }
}

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ── Section Divider ── */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

/* ── Form Styles ── */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

/* ── Inclusion/Exclusion Lists ── */
.inclusion-list ul,
.exclusion-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.inclusion-list ul li,
.exclusion-list ul li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    line-height: 1.5;
}
.inclusion-list ul li:last-child,
.exclusion-list ul li:last-child {
    border-bottom: none;
}
.inclusion-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D1FAE5;
    color: #065F46;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
}
.exclusion-list ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEE2E2;
    color: #991B1B;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
}
.inclusion-list li::before {
    content: '✓';
    color: #10B981;
    font-weight: 700;
    margin-right: 10px;
}
.exclusion-list li::before {
    content: '✕';
    color: #EF4444;
    font-weight: 700;
    margin-right: 10px;
}

/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 998;
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

/* ── Toast/Flash Messages ── */
.flash-message {
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ── Filter Buttons ── */
.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ── Gradient Text ── */
.text-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Meals Badge ── */
.meal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.meal-badge.included {
    background: #D1FAE5;
    color: #065F46;
}
.meal-badge.excluded {
    background: #FEE2E2;
    color: #991B1B;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

/* ── Mobile Menu Animation ── */
.mobile-menu-enter {
    animation: menuSlideDown 0.3s ease-out;
}
@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Background Image ── */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,42,66,0.88) 0%, rgba(11,60,93,0.78) 40%, rgba(7,42,66,0.88) 100%);
}

/* ── Glass Cards ── */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    transition: all 0.3s;
}
.glass-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-2px);
}
.glass-card-light {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
}

/* ── Image Overlays ── */
.img-overlay-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.img-overlay-card img {
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.img-overlay-card:hover img {
    transform: scale(1.08);
}
.img-overlay-card .overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,42,66,0.85) 0%, rgba(7,42,66,0.3) 50%, transparent 100%);
}
.img-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

/* ── Modern Service Cards with Images ── */
.service-img-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 420px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-img-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.service-img-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.service-img-card:hover img {
    transform: scale(1.05);
}
.service-img-card .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,42,66,0.92) 0%, rgba(7,42,66,0.5) 50%, rgba(7,42,66,0.3) 100%);
}
.service-img-card .service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
}

/* ── Testimonial Carousel ── */
.testimonial-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-slide {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    min-width: 320px;
}
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 calc(100% - 32px);
        min-width: 280px;
    }
}

/* ── Swiper Dots ── */
.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    width: 32px;
    border-radius: 5px;
    background: var(--gold);
}

/* ── Parallax-like floating elements ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes float-slower {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}
.float-animated {
    animation: float-slow 6s ease-in-out infinite;
}
.float-animated-slow {
    animation: float-slower 8s ease-in-out infinite;
}

/* ── Gradient Border Card ── */
.gradient-border {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Responsive helpers ── */
@media (max-width: 768px) {
    .call-float {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .scroll-top {
        bottom: 84px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}
