/* 
  =============================================================
  Zohaib Tours - Modern UI Design System
  =============================================================
*/

/* --- CSS Variables & Tokens --- */
:root {
    /* Colors */
    --accent: #E63946;
    /* Vibrant Japanese Red */
    --accent-hover: #D62828;
    --dark: #1D3557;
    --dark-alt: #112240;
    --text-main: #333333;
    --text-muted: #666666;
    --light: #F8F9FA;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
}

/* --- Base Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #FF9F1C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white {
    color: var(--white) !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light);
}

.mt-5 {
    margin-top: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--dark);
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.btn-nav {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar.scrolled .btn-nav {
    border-color: var(--accent);
    color: var(--accent);
}

.navbar.scrolled .btn-nav:hover {
    background-color: var(--accent);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--dark);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight zoom for load animation */
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    color: var(--white);
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #E0E0E0;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--white);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--dark-alt);
    color: var(--white);
    padding: 2rem 0;
}

.trust-text {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.trust-logo i {
    color: var(--accent);
    font-size: 1.3rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Tours Grid & Cards --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.tour-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.tour-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tour-card:hover .tour-img {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-badge.new {
    background-color: #2a9d8f;
}

.tour-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-top-left-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
}

.tour-content {
    padding: 1.8rem;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tour-meta i {
    color: var(--accent);
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.tour-title a:hover {
    color: var(--accent);
}

.tour-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.tour-rating {
    color: #FFB703;
    font-size: 0.9rem;
}

.tour-rating span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

/* --- Destinations Section --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.dest-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.dest-card:hover img {
    transform: scale(1.1);
}

.dest-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.dest-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    color: var(--white);
}

.dest-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
}

.dest-content p {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--white);
}

/* --- Why Us Section --- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-list li:hover .feature-icon {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.why-image-wrapper {
    position: relative;
    border-radius: 20px;
}

.why-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.image-glass-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
}

/* --- Inner Pages --- */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    animation: fadeInDown 1s ease-out forwards;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.page-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.credentials-box {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.credentials-box h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.credentials-box li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credentials-box i {
    color: #2a9d8f;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-alt);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-image-wrapper {
        margin-top: 3rem;
        padding-bottom: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, this would be a togglable menu */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .trust-logos {
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}