/* Add font import at the top of CSS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Add this at the top of your CSS file */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Match your existing background */
    z-index: 1; /* Place it behind other content */
    top: 0;
    left: 0;
}

/* Splash screen styles */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.splash-logo {
    position: fixed;
    top: 0;
    left: 25%;
    transform: none;
}

.logo {
    position: relative;
    overflow: visible;
    background-color: #ff0000;
    width: 200px;
    height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform-origin: top;
    animation: boxGrowFromTop 1s ease-out forwards;
    min-height: 200px; /* Add a minimum height to ensure space for text */
}

.logo span {
    position: relative;
    margin-top: 100px;
    color: white;
    font-size: 50px;
    font-weight: 800;
    text-transform: lowercase;
    animation: textChange 4s linear infinite;
    animation-delay: 1s; /* Start after fall animation */
}

.changing-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: textFall 0.8s ease-out forwards;
    animation-delay: 1s;
    display: flex;
    text-align: center;
    width: auto;
    padding: 0 10px;
}

.truck-text {
    position: absolute;
    white-space: nowrap;
    font-size: 60px;
    left: 100vw;
    bottom: 20px;
    display: none;
    letter-spacing: 0px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

/* Add a metallic effect to both texts */
.changing-text, .truck-text {
    background: linear-gradient(180deg, #fff 0%, #d4d4d4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1;
    height: auto;
    letter-spacing: 0px;
}

.truck-text.slide-in {
    animation: truckJoin 2s forwards;
}

/* Update animations */
@keyframes fallDown {
    from {
        top: -200vh;
    }
    to {
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@keyframes truckJoin {
    0% {
        left: 100vw;
        bottom: 10px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: calc(25% + 160px);
        bottom: 5px;
        opacity: 1;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200vw);
    }
}

/* Update shadow pulse animation
@keyframes shadowPulse {
    0% {
        box-shadow: 0 20px 0 0 rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0px 30px 0 rgba(255, 255, 255, 0.3);
    }
} */

/* Hide splash screen */
.splash.hide {
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Main content styles */
.content {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: opacity 0.8s ease;
    min-height: 100vh;
    padding-top: 0; /* Remove top padding to accommodate navbar */
    position: relative;
}

.content.show {
    opacity: 1;
}

/* Add combined movement animation */
.splash-logo.move-left {
    animation: moveLeft 2s forwards;
}

/* Container for the entire ektruck */
.ektruck-container {
    position: fixed; /* Change to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 201;
}

.ektruck-container.exit {
    animation: moveLeft 2s ease-in-out forwards;
}

/* Update tire positions */
.tire {
    position: absolute;
    width: 80px; /* Increased from 50px */
    height: 80px; /* Increased from 50px */
    border-radius: 50%;
    display: none;
    bottom: -90px; /* Adjusted for larger size */
}

.front-tire {
    background-color: #ff0000;
    left: calc(25% + 70px);
    bottom: -90px;
}

.rear-tire-1 {
    background-color: #ffa500;
    left: calc(25% + 270px);
    bottom: -90px;
}

.rear-tire-2 {
    background-color: #00ff00;
    left: calc(25% + 360px);
    bottom: -90px;
}

/* Update tire animations for larger size */
@keyframes tireSlideUp {
    0% {
        transform: translateY(170px) rotate(0deg); /* Adjusted for larger size */
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 1;
    }
}

.tire.slide-up {
    display: block;
    animation: tireSlideUp 1s ease-out forwards;
}

/* Update the exit animation */
@keyframes exitLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200vw);
    }
}

.ektruck-container.exit {
    animation: exitLeft 2s ease-in-out forwards;
}

/* Add tire animations */
@keyframes frontTireSlide {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rearTiresAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Update tire rotation animation */
@keyframes tireRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

.tire.rotating {
    animation: tireRotate 2s linear infinite;
}

/* Add these classes for movement */
.tire.move-left {
    animation: tireRotateAndMove 2s linear forwards;
}

/* Add styles for stacking text */
.stacking-container {
    position: fixed;
    top: 50%;
    left: 100px; /* Back to original left position */
    transform: translateY(-50%);
    text-align: left;
    display: none;
    z-index: 201;
}

.stacking-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 120px; /* Increased from 72px */
    color: white;
    opacity: 0;
    position: absolute;
    left: 0;
    transform: translateX(0);
    white-space: nowrap;
}

/* Position updates for text lines */
.stacking-text:nth-child(1) { 
    top: -250px;
    left: 0;
} /* #doers */

.stacking-text:nth-child(2) { 
    top: -130px;
    left: 0;
}  /* #movers */

.stacking-text:nth-child(3) { 
    top: -5px;
    left: 0;
}   /* #innovators */

/* Update the IN LOGISTICS text style */
.stacking-text:nth-child(4) { 
    top: 280px;
    width: 100vw;
    left: -60%;
    transform: translateX(0);
    text-align: center;
    font-family: 'Inter', sans-serif; /* Changed from Bebas Neue to Inter */
    font-weight: 700; /* Bold weight */
    font-size: 35px;
    letter-spacing: 5px;
    color: #ffffff !important;
    text-shadow: none;
}

.hashtag {
    color: #ff0000;
    font-weight: 700;
}

/* Update the text animation keyframes without glow */
@keyframes slideInAndGlow {
    0% {
        transform: translateX(-200%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.stacking-text.animate {
    animation: slideInAndGlow 1s forwards;
    animation-iteration-count: 1;
}

/* Add styles for the final content */
.final-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 201;
}

.final-logo {
    transform: scale(0.8);
    opacity: 0;
}

.future-text {
    color: white;
    font-size: 42px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
}

/* Update exit animation for stacking text */
@keyframes stackingTextSplitExit {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
        filter: brightness(1.5) blur(2px);
        text-shadow: 0 0 20px rgba(255,255,255,0.8);
    }
    100% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
        filter: brightness(2) blur(5px);
    }
}

/* Add letter splitting effect */
.stacking-text.exit {
    animation: stackingTextSplitExit 1s ease-in forwards;
    animation-iteration-count: 1; /* Ensure it only runs once */
}

.stacking-text.exit span {
    display: inline-block;
    animation: letterSplit 0.8s ease-in forwards;
}

@keyframes letterSplit {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--split-direction));
        opacity: 0;
        text-shadow: 0 0 20px rgba(255,255,255,0.8);
    }
}

/* Entry animation for final content */
@keyframes finalLogoEntry {
    0% {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes futureTextEntry {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.final-content.show {
    visibility: visible;
    opacity: 1;
}

.final-logo.animate {
    animation: finalLogoEntry 1.2s ease-out forwards;
}

.future-text.animate {
    animation: futureTextEntry 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Box growing animation */
@keyframes boxGrowFromTop {
    0% {
        height: 0;
        transform: translateY(0);
    }
    100% {
        height: 60vh; /* Increased height for better text fit */
        min-height: 300px; /* Ensure minimum height on smaller screens */
    }
}

/* Text falling animation */
@keyframes textFall {
    0% {
        transform: translate(-50%, -200px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%);
        opacity: 1;
    }
}

.logistics-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 35px;
    letter-spacing: 5px;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.3); */
    position: relative;
    padding-top: 0px;
    left: 25%;
    transform: none;
    width: 100%;
    text-align: center;
    /* font-family: 'Bebas Neue', sans-serif; */
}

/* Add specific animation for logistics text */
@keyframes logisticsSlideIn {
    0% {
        left: -100%;
        opacity: 0;
    }
    100% {
        left: 50%;
        transform: translateX(-55%);
        opacity: 1;
    }
}

/* Remove the glow animation */
.stacking-text:nth-child(4).animate {
    animation: logisticsSlideIn 1s ease-out forwards;
}

/* Update the background styles */
.background {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: #1a1a1a;
}

/* Update z-index of other elements to be above background */
.splash {
    z-index: 200;
    background-color: transparent; /* Changed from semi-transparent */
}

@keyframes logisticsGlow {
    0% {
        text-shadow: 0 0 15px #00ff99, 0 0 25px #00ff99;
    }
    50% {
        text-shadow: 0 0 25px #00ff99, 0 0 35px #00ff99;
    }
    100% {
        text-shadow: 0 0 15px #00ff99, 0 0 25px #00ff99;
    }
}


/* Container for truck and registered symbol */
.truck-container {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.truck-container.slide-in {
    animation: truckJoin 2s forwards;
}

/* Simplify the animation for cleaner appearance */
@keyframes registerSymbolAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.registered-symbol.show {
    animation: registerSymbolAppear 0.3s ease-out forwards;
}

/* Create a slide-in animation for the registered symbol */
@keyframes registerSymbolSlideIn {
    0% {
        transform: translateX(5px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Update the registered symbol styles */
.registered-symbol {
    position: absolute;
    font-weight: normal;
    z-index: 999;
    pointer-events: none;
    top: 0;
    right: -15px;
    font-size: 12px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    opacity: 0; /* Start invisible */
}

.registered-symbol.slide-in {
    animation: registerSymbolSlideIn 0.5s ease-out forwards;
}

/* Update tagline styles with animation */
.ektruck-tagline {
    position: fixed;
    bottom: 10%;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    letter-spacing: 4px;
    white-space: nowrap;
    opacity: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 202;
    
}

.ektruck-tagline.show {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Add new exit animation for tagline */
.ektruck-tagline.exit {
    animation: taglineExit 1.5s ease-in-out forwards;
}

@keyframes taglineExit {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
        filter: brightness(1.5) blur(2px);
        letter-spacing: 10px;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
        filter: brightness(2) blur(5px);
        letter-spacing: 20px;
    }
}

/* Add this new section for the "In Tech Logistics" text highlight effect */
.logistics-text {
    position: relative;
    overflow: hidden;
}

.logistics-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    animation: techLogisticsShine 3s infinite;
}

.logistics-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ffffff, #00ff99, #33ccff);
    animation: techLogisticsUnderline 3s ease-in-out infinite;
}

@keyframes techLogisticsShine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

@keyframes techLogisticsUnderline {
    0%, 10% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    90%, 100% {
        width: 0;
        left: 100%;
    }
}

/* Add a subtle text shadow effect */
.logistics-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: text-shadow 0.3s ease;
}

/* Add a subtle pulse effect to the text */
@keyframes techLogisticsPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.stacking-text.logistics-text.animate {
    animation: logisticsSlideIn 1s ease-out forwards, techLogisticsPulse 3s ease-in-out infinite;
}

/* Add a subtle glow effect when the text is visible */
.stacking-text.logistics-text.animate {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Hero Section Styles - Begin */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    z-index: 5;
}

/* Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
    opacity: 0.3;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.4; }
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.3;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    stroke: #ff3333;
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCircuit 8s linear infinite;
}

.path-1 { animation-delay: 0s; }
.path-2 { animation-delay: 1s; }
.path-3 { animation-delay: 2s; }
.path-4 { animation-delay: 3s; }
.path-5 { animation-delay: 4s; }

@keyframes drawCircuit {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.circuit-node {
    fill: #ff3333;
    opacity: 0;
    animation: nodeFlash 8s ease-in-out infinite;
}

.node-1 { animation-delay: 1s; }
.node-2 { animation-delay: 2s; }
.node-3 { animation-delay: 3s; }
.node-4 { animation-delay: 4s; }
.node-5 { animation-delay: 5s; }

@keyframes nodeFlash {
    0%, 100% { opacity: 0; r: 3; }
    3%, 7% { opacity: 1; r: 5; }
    10% { opacity: 0.5; r: 3; }
    13% { opacity: 0; r: 3; }
}

.data-pulse {
    fill: #ff3333;
    opacity: 0;
    animation: dataPulse 8s linear infinite;
}

.pulse-1 { animation-delay: 0.5s; }
.pulse-2 { animation-delay: 1.5s; }
.pulse-3 { animation-delay: 2.5s; }
.pulse-4 { animation-delay: 3.5s; }
.pulse-5 { animation-delay: 4.5s; }

@keyframes dataPulse {
    0% { 
        opacity: 0; 
        transform: translateX(0); 
    }
    3% { 
        opacity: 1; 
    }
    40% { 
        opacity: 1; 
        transform: translateX(1000px); 
    }
    43% { 
        opacity: 0; 
        transform: translateX(1000px);
    }
    100% { 
        opacity: 0; 
        transform: translateX(1000px);
    }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.2;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.8), rgba(153, 0, 0, 0.4));
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.6), rgba(153, 0, 0, 0.2));
    animation-delay: -5s;
}

.shape-3 {
    top: 60%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.7), rgba(153, 0, 0, 0.3));
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.05);
    }
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    top: 20%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, #ff3333, transparent 70%);
    animation: glowPulse 15s ease-in-out infinite alternate;
}

.glow-2 {
    bottom: 10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, #ff3333, transparent 70%);
    animation: glowPulse 15s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0% {
        opacity: 0.1;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

/* Content Styles */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 40px 0;
    z-index: 10;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these visible state classes to control animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    flex: 1;
    max-width: 600px;
    animation: fadeInRight 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    position: relative;
    z-index: 1;
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.hero-visual.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.4), transparent 70%);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.badge-icon {
    color: #ff3333;
    margin-right: 8px;
    font-size: 14px;
    animation: badgeIconPulse 2s infinite;
}

@keyframes badgeIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-badge span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

.text-reveal {
    display: block;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    display: block;
    font-size: 3.2rem;
    background: linear-gradient(90deg, #ff3333, #ff0000, #cc0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 5s linear infinite;
    text-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Hero Click to Explore Styles */
.hero-click-instruction {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 100;
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 15px rgba(255, 0, 0, 0.2);
    animation: pulseInstruction 2s infinite;
    transition: opacity 0.5s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-click-instruction.hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulseInstruction {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 0.9; }
}

.hero-interactive-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    position: relative;
    --x: 50%;
    --y: 50%;
}

.hero-interactive-area::after {
    content: 'click here to explore';
    position: absolute;
    padding: 5px 12px;
    background: transparent;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
    left: var(--x);
    top: var(--y);
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.9), 0 0 10px rgba(255, 51, 51, 0.7);
}

.hero-interactive-area:hover::after {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 10px));
}

#hero-screenshots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.hero-screenshot {
    position: absolute;
    width: 250px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.7) rotate(var(--exit-rotate, 0deg));
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    z-index: 6;
}

.hero-screenshot.visible {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.hero-screenshot.exit {
    opacity: 0;
    transform: scale(0.7) rotate(var(--exit-rotate, 0deg)) translateY(50px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-screenshot:hover img {
    transform: scale(1.05);
}

.highlight-text {
    color: #ff3333;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff3333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}

.highlight-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    color: #ff3333;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 0.3);
}

.feature-item span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: #ff3333;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.primary-button:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.button-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.primary-button:hover .button-glow {
    animation: buttonGlow 2s linear infinite;
    opacity: 0.6;
}

@keyframes buttonGlow {
    0% {
        left: -20px;
        top: -20px;
    }
    100% {
        left: calc(100% - 20px);
        top: calc(100% - 20px);
    }
}

.secondary-button {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 0, 0, 0.6);
}

.secondary-button:hover {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* SVG Truck Animation */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add Safari-specific keyframes */
@-webkit-keyframes fadeInRight {
    0% {
        opacity: 0;
        -webkit-transform: translateX(30px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

.truck-animation {
    width: 100%;
    position: relative;
    animation: truckFloat 6s ease-in-out infinite alternate;
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes truckFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.truck-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.truck-cab {
    animation: cabPulse 3s ease-in-out infinite alternate;
}

@keyframes cabPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
    }
}

.truck-trailer {
    animation: trailerGlow 4s ease-in-out infinite alternate;
}

@keyframes trailerGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
    }
}

.road-markings rect {
    animation: roadMove 3s linear infinite;
}

@keyframes roadMove {
    0% {
        transform: translateX(40px);
    }
    100% {
        transform: translateX(-40px);
    }
}

.wheel {
    transform-origin: center;
    animation: wheelRotate 3s linear infinite;
}

@keyframes wheelRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.windshield-reflection {
    animation: reflectionMove 4s linear infinite;
}

@keyframes reflectionMove {
    0% {
        transform: translateX(-10px);
        opacity: 0.2;
    }
    50% {
        transform: translateX(70px);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-10px);
        opacity: 0.2;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 0, 0, 0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff3333;
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

.scroll-indicator span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 30px 0;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .text-gradient {
        font-size: 2.8rem;
    }
    
    .text-reveal {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 15px;
    }
    
    .text-gradient {
        font-size: 2.5rem;
    }
    
    .text-reveal {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-screenshot {
        width: 200px;
        height: 150px;
    }
    
    .feature-item {
        padding: 10px 15px;
    }
    
    .feature-icon {
        height: 35px;
        width: 35px;
    }
    
    .cta-button {
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .text-gradient {
        font-size: 2.2rem;
    }
    
    .text-reveal {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .hero-screenshot {
        width: 180px;
        height: 130px;
    }
    
    .cta-button {
        padding: 10px 16px;
        margin: 5px;
    }
}
/* Hero Section Styles - End */



/* Scroll Animation Effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Text animation for paragraphs */
.text-reveal-scroll {
    position: relative;
    overflow: hidden;
}

.text-reveal-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0a0a0a 50%);
    animation: none;
    transform-origin: right;
}

.text-reveal-scroll.visible::after {
    animation: revealTextOnScroll 1.2s ease forwards;
}

@keyframes revealTextOnScroll {
    0% { 
        width: 100%; 
    }
    100% { 
        width: 0%; 
    }
}

/* Paragraph animation */
p.animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

p.animate-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon animation */
.icon-bounce {
    animation: none;
}

.icon-bounce.visible {
    animation: iconBounce 0.8s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

/* Number counter animation */
.counter-anim {
    opacity: 0.5;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.counter-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section title animation enhancement */
.section-title {
    position: relative;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3333, #ff0000);
    transition: width 1s ease-out;
} */

.section-title.visible::after {
    width: 80px;
}
