/* CARRYVALA Premium Main Page Styles */

/* --- Variables & Core --- */
:root {
    /* "make this same manner collers use" - Updating to Standard Red #CD201F */
    /* Reference image shows vibrant, standard red/dark red */
    --premium-gradient: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
    /* Strong Red Gradient */
    --primary: #D32F2F;
    /* Standard Strong Red */
    --primary-hover: #B71C1C;
    --dark: #000000;
    --gray: #222222;
    --light-gray: #FAFAFA;
    --white: #FFFFFF;

    --premium-glass: rgba(255, 255, 255, 0.9);
    --premium-glass-border: rgba(0, 0, 0, 0.1);
    --premium-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);

    --blob-1: rgba(200, 200, 200, 0.05);
    --blob-2: rgba(220, 220, 220, 0.1);
    --blob-3: rgba(180, 180, 180, 0.05);
}

/* Force Menu Visibility Fix */
header .nav-links {
    display: flex;
    /* Ensure flex on desktop */
}

@media (max-width: 768px) {
    header .nav-links {
        display: flex;
        /* Keep flex for mobile drawer */
        /* layout handled by style.css media query */
    }

    .menu-toggle {
        display: block !important;
        /* Force toggle visibility */
        color: #000 !important;
    }
}

/* Ensure body allows absolute positioning of bg */
body {
    position: relative;
    overflow-x: hidden;
}

/* --- Dynamic Background --- */
.premium-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #FAFAFA;
    /* Fallback light bg */
    pointer-events: none;
}

.premium-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-3);
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

/* --- Typography & Text Effects --- */
.gradient-text {
    /* User requested "TEXT BLACK", so we override the gradient to be black or just highlight */
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    color: #000000;
    display: inline-block;
}

/* --- Typing Animation Styles --- */
.typing-text {
    color: var(--primary);
    font-weight: inherit;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Glassmorphism Components --- and Overrides */

/* Hero Booking Card Override */
.courier-card {
    background: #FFFFFF !important;
    /* Solid White Card */
    border-radius: 32px;
    /* Smooth rounded corners */
    padding: 3rem 2rem !important;
    /* Spacious padding */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    /* Elevated soft shadow */
    border: none !important;
    text-align: center;
    /* Force center alignment */
    animation: fadeUp 0.8s ease-out forwards;
    transform: translateY(20px);
    opacity: 0;
    max-width: 480px;
    /* Constrain width for better look */
    margin: 0 auto;
    /* Center in column if needed */
}

.card-icon-wrapper {
    margin-bottom: 2rem;
}

.card-icon-wrapper i {
    font-size: 3.5rem;
    /* Large icon */
    color: var(--dark);
    /* Black icon as per design preference or use primary if needed, user said "Rocket" */
    /* If user wants the rocket to be colored, we can use primary, but let's stick to simple black/dark for now to match text, or maybe just primary? */
    /* Let's use black based on "TEXT BLACK" comment, but rocket usually looks good in brand color. Let's keep primary for now. */
    color: #000000;
}

.card-title-lg {
    font-size: 2.2rem;
    font-weight: 800;
    /* Extra bold */
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.card-desc {
    color: #444445;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.card-desc strong {
    color: #000000;
    font-weight: 700;
}

.btn-red-premium {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: #D32F2F;
    /* Strong Red */
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-red-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.5);
    background: #B71C1C;
    color: #FFFFFF;
}

.start-price {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.start-price i {
    font-size: 1.1rem;
    color: var(--primary);
    /* Keep the small rocket red */
}

/* Feature Circles */
.icon-circle {
    background: white !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
}

/* Process Cards General - Glass Effect for non-image cards */
.process-card {
    background: var(--premium-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

/* Specific Step Cards - Restore Images with Premium Overlay */
.step-hero-card,
.step-rider-card,
.step-deliver-card {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Add a dynamic gradient overlay on top of the images */
.step-hero-card::before,
.step-rider-card::before,
.step-deliver-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Updated Overlay to match strong red */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(211, 47, 47, 0.2) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Specific Step Cards */
.step-hero-card,
.step-rider-card,
.step-deliver-card {
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Clean shadow */
}

.process-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Problem Section - Dynamic Background */
.section-problem {
    position: relative;
    background: transparent !important;
    /* Let body blobs show or use custom */
    overflow: hidden;
}

/* Add a subtle pulse to the problem section */
.section-problem::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* Updated Pulse to new red */
    background: radial-gradient(circle at center, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Ensure content sits above the pulse */
.problem-container {
    position: relative;
    z-index: 1;
}

/* Video Styles */
.video-premium-wrapper {
    margin-top: 3rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-premium-wrapper:hover {
    transform: translateY(-5px);
    /* Updated Shadow */
    box-shadow: 0 25px 60px rgba(211, 47, 47, 0.15);
}

.intro-video {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-red,
.btn-primary {
    background: var(--premium-gradient) !important;
    /* Use Gradient again for premium feel */
    /* Updated Shadow */
    box-shadow: 0 8px 20px -4px rgba(211, 47, 47, 0.5);
    border-radius: 50px !important;
    color: #FFF !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    padding: 1.2rem !important;
}

.btn-red:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--premium-gradient) !important;
    filter: brightness(1.1);
    /* Updated Shadow */
    box-shadow: 0 12px 25px -5px rgba(211, 47, 47, 0.6);
}

/* Premium Section Divider */
.premium-divider {
    height: 1px;
    /* Updated Gradient */
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.5), transparent);
    width: 80%;
    margin: 4rem auto;
    position: relative;
    border: none;
}

.premium-divider::after {
    content: '♦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FAFAFA;
    /* Matches body/bg fallback */
    padding: 0 10px;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

/* Ensure divider looks good on dark/dynamic backgrounds */
.premium-bg-wrapper~.premium-divider::after {
    background: transparent;
    /* Or a glass background if needed */
    /* Updated Glow */
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.animate-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Specific Optimizations --- */
@media (max-width: 768px) {

    /* Adjust blobs to not overwhelm small screens */
    .premium-blob {
        filter: blur(60px);
        opacity: 0.5;
        /* Slightly more visible on mobile to distinct from white */
    }

    .blob-1 {
        width: 80vw;
        height: 80vw;
        top: -10%;
        left: -20%;
    }

    .blob-2 {
        width: 90vw;
        height: 90vw;
        bottom: -5%;
        right: -20%;
    }

    /* Hero Text */
    .hero-title-large {
        font-size: 2.8rem !important;
        text-align: center;
    }

    .hero-section {
        padding-top: 1rem !important;
    }

    /* Make Booking Card Pop on Mobile */
    .courier-card {
        margin-top: 1rem;
        border-radius: 20px;
        padding: 1.5rem !important;
    }

    /* Process Flow for Mobile */
    .process-grid {
        gap: 1.5rem !important;
    }

    .process-card {
        margin-bottom: 0.5rem;
    }
}

/* --- Premium Header Logo Text --- */
.logo-text-premium {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    /* Larger and bolder */
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-text-premium:hover {
    transform: scale(1.02);
}

/* "C" in Red */
.logo-c {
    color: var(--primary);
    font-weight: 900;
    font-size: 2.6rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* "ARRYVALA" in Black */
.logo-rest {
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

/* Card Text Styles - Force Black & Beautiful */
.step-hero-card .process-title,
.step-rider-card .process-title,
.step-deliver-card .process-title {
    color: #000000 !important;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-shadow: none !important;
}

.step-hero-card .process-text,
.step-rider-card .process-text,
.step-deliver-card .process-text {
    color: #333333 !important;
    font-weight: 500;
    font-size: 1.05rem;
    text-shadow: none !important;
    line-height: 1.5;
}

/* Icon Box Upgrade */
.step-hero-card .icon-box,
.step-rider-card .icon-box,
.step-deliver-card .icon-box {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-20px);
    /* Pop out effect */
}

@keyframes shineText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Subtle bloom on hover */
.logo-text-premium:hover .logo-rest {
    /* Updated Shadow */
    filter: drop-shadow(0px 0px 8px rgba(211, 47, 47, 0.5));
}

/* --- Logo Image Shine --- */
.logo img {
    /* Bloom effect - Updated Shadow */
    filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.2));
    transition: all 0.5s ease;
    border-radius: 50%;
    /* Ensuring it looks round if it is square-ish */
}

.logo:hover img {
    transform: rotate(5deg) scale(1.1);
    /* Updated Shadow */
    filter: drop-shadow(0 0 15px rgba(211, 47, 47, 0.6));
}

/* --- Attractive Navigation Links --- */
/* Remove old underline effect to replace with premium pill */
.nav-item::after {
    display: none !important;
}

.nav-item {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    /* Bolder for premium look */
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Glass Pill + Glow */
.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    /* Gray Tint instead of Light Primary (Pinkish) */
    /* Light Primary Tint */
    color: var(--primary);
    /* Use global primary #FF6B6B */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Active State (if needed, mimicking hover for now) */
.nav-item.active {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* --- Heavy Animation Classes --- */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Tilt Card Base */
.tilt-card {
    transition: transform 0.1s ease-out;
    /* Fast transition for mouse movement */
    will-change: transform;
    transform-style: preserve-3d;
}

/* Floating Animation */
.floating-animate {
    animation: floatVertical 6s ease-in-out infinite;
}

@keyframes floatVertical {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Enhanced 3D Glare for Tilt Cards (Optional) */
.tilt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.tilt-card:hover::after {
    opacity: 1;
}