/**
 * Truck Ustaaz - Dynamic Hero Section
 * Exact match to screenshot design
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
.tu-hero {
    /* Layout */
    --tu-hero-height: 100vh;
    --tu-hero-padding: 60px;
    
    /* Colors - Exact from screenshot */
    --tu-bg-dark: #0a1628;
    --tu-bg-darker: #070d17;
    --tu-accent-cyan: #00d4ff;
    --tu-accent-blue: #4a9eff;
    --tu-accent-purple: #7c3aed;
    --tu-text-white: #ffffff;
    --tu-text-gray: rgba(255, 255, 255, 0.7);
    --tu-border-glow: rgba(0, 212, 255, 0.4);
    
    /* Vehicle */
    --tu-vehicle-width: 600px;
    --tu-vehicle-height: 500px;
    
    /* Driver */
    --tu-driver-size: 100px;
    --tu-driver-border: 3px;
    
    /* Animation */
    --tu-anim-speed: 1;
}

/* ========================================
   Base Hero Container
   ======================================== */
.tu-hero {
    position: relative;
    width: 100%;
    height: var(--tu-hero-height);
    min-height: 700px;
    background: linear-gradient(135deg, var(--tu-bg-dark) 0%, var(--tu-bg-darker) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Background Layer with Pakistan Map
   ======================================== */
.tu-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Pakistan Map Outline - Visible in screenshot */
.tu-hero__bg::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 5%;
    width: 60%;
    height: 90%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500'%3E%3Cpath d='M 280 50 Q 320 60 340 100 Q 360 140 350 180 Q 340 220 320 260 Q 300 300 280 340 Q 260 380 240 420 Q 220 460 180 450 Q 140 440 120 400 Q 100 360 110 320 Q 120 280 140 240 Q 160 200 180 160 Q 200 120 220 80 Q 240 40 280 50 Z' fill='none' stroke='%2300d4ff' stroke-width='1.5' opacity='0.25'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

/* Lightning Effect */
.tu-hero__lightning {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(74, 158, 255, 0.08) 0%, transparent 40%);
    z-index: 1;
}

/* Cyber Lines */
.tu-hero__cyber-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.tu-hero__cyber-lines::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--tu-accent-cyan) 50%, transparent 100%);
    opacity: 0.5;
}

.tu-hero__cyber-lines::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 10%;
    right: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--tu-accent-blue) 40%, transparent 100%);
    opacity: 0.3;
}

/* ========================================
   Main Container
   ======================================== */
.tu-hero__container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--tu-hero-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    height: 100%;
}

/* ========================================
   Content Area - LEFT SIDE
   ======================================== */
.tu-hero__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 40px;
}

/* Headlines */
.tu-hero__headlines {
    position: relative;
}

.tu-hero__headline {
    display: none;
}

.tu-hero__headline.is-active {
    display: block;
}

.tu-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--tu-text-white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tu-hero__highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--tu-accent-cyan) 0%, var(--tu-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Gradient Underline */
.tu-hero__highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--tu-accent-cyan) 0%, var(--tu-accent-purple) 100%);
    border-radius: 2px;
}

/* Navigation Dots */
.tu-hero__nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.tu-hero__nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tu-hero__nav-dot:hover,
.tu-hero__nav-dot.is-active {
    background: var(--tu-accent-cyan);
    border-color: var(--tu-accent-cyan);
    box-shadow: 0 0 15px var(--tu-border-glow);
}

/* Sub Promos */
.tu-hero__subpromos {
    margin-top: 10px;
}

.tu-hero__subpromo {
    display: none;
}

.tu-hero__subpromo.is-active {
    display: block;
}

.tu-hero__subpromo-text {
    font-size: 1.1rem;
    color: var(--tu-text-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */
.tu-hero__buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.tu-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 180px;
}

/* Primary Button - Book Now */
.tu-hero__btn--primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.tu-hero__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

/* Secondary Button - Track Order */
.tu-hero__btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.tu-hero__btn--secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.tu-hero__btn--secondary:hover {
    border-color: var(--tu-accent-cyan);
    color: var(--tu-accent-cyan);
}

/* ========================================
   Vehicles - RIGHT SIDE
   ======================================== */
.tu-hero__vehicles {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tu-hero__vehicles-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tu-hero__vehicle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: var(--tu-vehicle-width);
    height: 100%;
    max-height: var(--tu-vehicle-height);
    opacity: 0;
    transition: all 0.8s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tu-hero__vehicle.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tu-hero__vehicle-img {
    width: 100%;
    height: 100%;
    max-width: var(--tu-vehicle-width);
    max-height: var(--tu-vehicle-height);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.tu-hero__vehicle-img.has-glow {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
}

/* ========================================
   Drivers - BOTTOM RIGHT
   ======================================== */
.tu-hero__drivers {
    position: absolute;
    bottom: 80px;
    right: 60px;
    z-index: 30;
    width: var(--tu-driver-size);
    height: var(--tu-driver-size);
}

.tu-hero__drivers--left {
    right: auto;
    left: 60px;
}

.tu-hero__drivers--bottom {
    right: 50%;
    transform: translateX(50%);
}

.tu-hero__drivers-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tu-hero__driver {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tu-hero__driver.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tu-hero__driver-image-wrapper {
    width: var(--tu-driver-size);
    height: var(--tu-driver-size);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--tu-accent-cyan);
    background: var(--tu-bg-dark);
    box-shadow: 0 0 20px var(--tu-border-glow), 0 0 40px rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}

.tu-hero__driver-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Driver Name/Role below image */
.tu-hero__driver-info {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tu-hero__driver-name {
    font-weight: 600;
    color: var(--tu-text-white);
    font-size: 0.9rem;
    display: block;
}

.tu-hero__driver-role {
    font-size: 0.75rem;
    color: var(--tu-accent-cyan);
    display: block;
    margin-top: 2px;
}

/* ========================================
   Scroll Indicator
   ======================================== */
.tu-hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tu-hero__scroll-indicator:hover {
    opacity: 1;
}

.tu-hero__scroll-text {
    font-size: 0.75rem;
    color: var(--tu-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.tu-hero__scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--tu-accent-cyan);
    border-bottom: 2px solid var(--tu-accent-cyan);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ========================================
   Border Frame
   ======================================== */
.tu-hero__frame {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    pointer-events: none;
    z-index: 15;
}

.tu-hero__frame::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50px;
    width: 100px;
    height: 1px;
    background: var(--tu-accent-cyan);
    box-shadow: 0 0 10px var(--tu-accent-cyan);
}

.tu-hero__frame::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 50px;
    width: 100px;
    height: 1px;
    background: var(--tu-accent-cyan);
    box-shadow: 0 0 10px var(--tu-accent-cyan);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .tu-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tu-hero__content {
        order: 1;
        align-items: center;
    }
    
    .tu-hero__nav {
        justify-content: center;
    }
    
    .tu-hero__buttons {
        justify-content: center;
    }
    
    .tu-hero__vehicles {
        order: 2;
        min-height: 300px;
    }
    
    .tu-hero__drivers {
        bottom: 100px;
        right: 30px;
    }
    
    .tu-hero__bg::before {
        width: 100%;
        opacity: 0.15;
    }
}

@media (max-width: 640px) {
    .tu-hero {
        --tu-hero-padding: 20px;
    }
    
    .tu-hero__title {
        font-size: 2rem;
    }
    
    .tu-hero__btn {
        padding: 14px 28px;
        min-width: auto;
        flex: 1;
    }
    
    .tu-hero__buttons {
        width: 100%;
    }
    
    .tu-hero__drivers {
        --tu-driver-size: 80px;
        right: 20px;
        bottom: 80px;
    }
    
    .tu-hero__driver-info {
        display: none;
    }
}
