/* 
* Jix Taxi - Premium Taxi Service
* Main Stylesheet - v2.0 (Design Overhaul)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Pacifico&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #F4B400;
    /* Richer Taxi Yellow */
    --brand-yellow: #F4B400;
    /* Consolidated Yellow */
    --primary-hover: #D99F00;

    /* Dark Theme Palette */
    --secondary-color: #ffffff;
    /* Text on dark backgrounds mainly white now */
    --text-color: #e0e0e0;
    /* Light Gray for body text */
    --light-bg: #121212;
    /* Main Background - Almost Black */
    --surface-color: #1E1E1E;
    /* Cards / Sections - Dark Gray */
    --white: #ffffff;

    /* UI Variables */
    --border-radius: 16px;
    --btn-radius: 50px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Stronger shadow for dark mode */
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Basic Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    /* Dark BG */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 180, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--light-bg);
    /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    /* Ensure title is white */
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #b0b0b0;
    /* Light gray */
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.header {
    background-color: rgba(17, 17, 17, 0.85);
    /* Dark Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* Below mobile menu (2000) */
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(17, 17, 17, 0.98);
    /* Solid Dark on Scroll */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.6rem;
    /* Reduced from 2rem */
    color: var(--brand-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 6px;
}

.logo-underline {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
}

/* Curved underline effect */
.logo-underline::after {
    content: '';
    display: block;
    width: 130%;
    height: 8px;
    border-top: 2px solid var(--brand-yellow);
    /* Thinner line */
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: -15%;
    transform: rotate(-2deg);
}

.logo-number {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    /* Reduced from 1.15rem */
    font-weight: 800;
    color: var(--brand-yellow);
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    /* White links on dark header */
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Creative underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2001;
    /* Above menu (2000) to ensure clickability */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--white);
    /* White bars */
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    /* Enhanced gradient overlay */
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.6) 100%), url('../img/taxi-bg.jpg');
    background-color: var(--light-bg);
    /* Fixed from secondary-color (white) */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--white);
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--header-height);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* Trust Points */
.trust-points {
    background-color: var(--light-bg);
    /* Match body */
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.trust-item {
    background: var(--surface-color);
    /* Distinct Card BG */
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    position: relative;
    overflow: hidden;
}

.trust-item:hover {
    background: #252525;
    /* Slightly lighter on hover */
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.trust-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--primary-color);
    margin-left: auto;
    margin-right: auto;
}

.trust-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    /* White title */
}

/* Services Page & Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 700;
}

.service-card p {
    color: #b0b0b0;
    /* Softer gray text */
}

/* About Page */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 320px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.about-img {
    flex: 1;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

/* Contact Page */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method .btn {
    width: 100%;
    max-width: 350px;
    font-size: 1.1rem;
    padding: 16px;
}

/* Footer */
.footer {
    background-color: var(--light-bg);
    /* Match sections background (#121212) */
    color: #ffffff;
    /* White Text */
    padding: 80px 0 40px;
    text-align: center;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer p {
    color: #ffffff;
    /* White text */
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(17, 17, 17, 0.98);
        width: 70%;
        max-width: 300px;
        height: 100vh;
        padding: 100px 30px 30px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border: none;
        /* Remove border */
        overflow-y: auto;
        text-align: left;
        z-index: 2000;
        /* Above header (1000) */
        /* Shadow on the right */
    }

    /* Backdrop for the menu */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
        display: none;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
        display: block;
        width: 100vw;
        /* Attempt to cover screen */
        left: 300px;
        /* Offset by menu width */
        transform: translateX(-300px);
        /* Reset position for full cover */
    }

    /* Better Backdrop Implementation requires JS usually, but we'll use a pseudo on body or huge shadow */
    .nav-menu.active {
        left: 0;
        /* box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6); CSS Hack removed in favor of JS detection or visual only */
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5), 0 0 0 1000px rgba(0, 0, 0, 0.6);
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--white);
        display: flex;
        align-items: center;
        padding: 12px 20px;
        border-radius: 12px;
        transition: all 0.2s;
        gap: 15px;
    }

    .nav-icon {
        font-size: 1.4rem;
    }

    /* Active State Pill */
    .nav-link.active,
    .nav-link:hover {
        background-color: rgba(244, 180, 0, 0.15);
        /* Low opacity yellow */
        color: var(--primary-color);
    }

    .nav-link::after {
        display: none;
        /* Remove underline effect on mobile */
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .section-padding {
        padding: 60px 0;
    }

    /* Fix contact buttons overflow on mobile */
    .contact-method .btn {
        font-size: 0.95rem !important;
        padding: 14px 20px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-info {
        padding: 0 10px;
    }

    .contact-wrapper {
        padding: 40px 20px !important;
    }

    /* Fix page title spacing on mobile */
    .hero {
        padding-top: 80px;
    }

    .section-title {
        margin-top: 20px;
    }
}