
/* ===== FLASHING WORDS ANIMATION - 3 SECONDS VISIBLE, 2 SECONDS PAUSE ===== */
@keyframes flashWord1 {
    0%, 33.33% { opacity: 0; }
    0.5%, 33% { opacity: 1; transform: translateX(-50%) scale(1); }
    15% { opacity: 1; transform: translateX(-50%) scale(1.05); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes flashWord2 {
    33.33%, 66.66% { opacity: 0; }
    33.83%, 66.33% { opacity: 1; transform: translateX(-50%) scale(1); }
    48.33% { opacity: 1; transform: translateX(-50%) scale(1.05); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes flashWord3 {
    66.66%, 100% { opacity: 0; }
    67.16%, 99.66% { opacity: 1; transform: translateX(-50%) scale(1); }
    81.66% { opacity: 1; transform: translateX(-50%) scale(1.05); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.4); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

/* Typing animation keyframes */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.8); }
}

/* ===== PARTNERS LOGO SLIDER STYLES - ENLARGED ===== */
.partners-section {
    padding: 80px 0;
    background: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-section::before {
    left: 0;
    background: linear-gradient(90deg, var(--light-bg), transparent);
}

.partners-section::after {
    right: 0;
    background: linear-gradient(270deg, var(--light-bg), transparent);
}

.partners-header {
    text-align: center;
    margin-bottom: 50px;
}

.partners-header h2 {
    font-size: 2.2rem;
    color: var(--studio-dark);
    margin-bottom: 15px;
}

.partners-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.logo-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.logo-slider-track {
    display: flex;
    gap: 50px;
    animation: slideLeft 40s linear infinite;
    padding: 30px 0;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

.logo-slider-item {
    flex: 0 0 auto;
    width: 220px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 16px;
    padding: 25px 20px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.logo-slider-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.logo-slider-item img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.logo-slider-item:hover img {
    transform: scale(1.08);
}

/* Company name below logo */
.logo-company-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--studio-dark);
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--light-gray);
    width: 100%;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.logo-slider-item:hover .logo-company-name {
    color: var(--primary-green);
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 8 - 50px * 8)); }
}

/* For mobile */
@media (max-width: 768px) {
    .logo-slider-item {
        width: 180px;
        height: 140px;
        padding: 20px 15px 10px;
    }
    
    .logo-slider-item img {
        max-width: 130px;
        max-height: 60px;
        margin-bottom: 8px;
    }
    
    .logo-company-name {
        font-size: 0.9rem;
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .logo-slider-track {
        gap: 40px;
        animation: slideLeft 30s linear infinite;
    }
    
    @keyframes slideLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 8 - 40px * 8)); }
    }
    
    .partners-header h2 {
        font-size: 1.75rem;
    }
    
    .partners-section::before,
    .partners-section::after {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .logo-slider-item {
        width: 150px;
        height: 120px;
        padding: 15px 10px 8px;
    }
    
    .logo-slider-item img {
        max-width: 110px;
        max-height: 50px;
    }
    
    .logo-company-name {
        font-size: 0.8rem;
    }
    
    .logo-slider-track {
        gap: 30px;
        animation: slideLeft 25s linear infinite;
    }
    
    @keyframes slideLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 8 - 30px * 8)); }
    }
}

/* Add this to override any other CSS that might be affecting the logos */
.logo-slider-item img,
.partners-section img {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ===== BREADCRUMB STYLES FOR HOMEPAGE ===== */
.breadcrumb {
    padding: var(--spacing-md) 0;
    background: var(--light-bg) !important;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    z-index: 5;
    margin-bottom: 0 !important;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.breadcrumb-content a {
    color: var(--studio-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-content a:hover {
    color: var(--primary-green);
}

/* ===== HERO SECTION - CLEAR IMAGES, NO CONTAINER ===== */
.hero {
    margin-top: 0 !important;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Content Container - NO CONTAINER BOX */
.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    margin: 0 auto;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* ===== FLASHING WORDS CONTAINER ===== */
.flashing-words-container {
    position: relative;
    height: 3.5rem;
    width: 100%;
    margin-bottom: 18px;
    display: block;
    overflow: visible;
}

.flashing-words {
    position: relative;
    height: 3.5rem;
    width: 100%;
    overflow: visible;
}

.flashing-word {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2em;
    font-family: 'Poppins', 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* First word: Transform Your Fleet - 9 second cycle (3s visible + 6s hidden) */
.flashing-word:nth-child(1) {
    animation: flashWord1 9s infinite;
}

/* Second word: Track Your Fleet - 9 second cycle */
.flashing-word:nth-child(2) {
    animation: flashWord2 9s infinite;
}

/* Third word: Monitor Your Fleet - 9 second cycle */
.flashing-word:nth-child(3) {
    animation: flashWord3 9s infinite;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    flex-wrap: nowrap;
}

.badge-text {
    color: var(--studio-glow);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 10px var(--primary-green);
}

/* ===== HERO TITLE ===== */
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

/* "With Real-Time Intelligence" below flashing words - STATIC TEXT - WHITE */
.static-subtitle {
    display: block;
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7) !important;
    animation: pulseGlow 2s ease-in-out infinite !important;
}

/* Remove the gradient animation from highlight class */
.hero-title .highlight {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    animation: none !important;
}

/* Flashy Typing Animation Container - box fits text length */
.typing-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Typing animation text - WHITE; width fits current text, not full line */
.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    animation: blink-cursor 0.75s step-end infinite;
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Improved Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    color: var(--white);
    position: relative;
}

.feature-chip:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.feature-chip i {
    color: var(--primary-green);
    font-size: 1rem;
}

/* Improved Hero Actions */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 180px;
    padding: 14px 30px;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    box-shadow: 0 8px 25px rgba(0, 212, 106, 0.3);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 106, 0.4);
}

.hero-actions .btn-outline {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.hero-actions .btn-outline:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--studio-glow);
    transform: translateY(-3px);
}

/* REMOVE THE TRUSTED COMPANIES SECTION */
.hero-trusted {
    display: none;
}

/* Improved Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 3;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: var(--primary-green);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 106, 0.5);
}

.slide-indicator:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.5);
}

/* Improved Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--studio-glow);
    transform: translateY(-2px) translateX(-50%);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Fix hero size for mobile */
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    /* Hero Title for Mobile */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .flashing-words-container {
        height: 2.25rem;
        margin-bottom: 12px;
        overflow: visible;
    }

    .flashing-words {
        height: 2.25rem;
    }

    .flashing-word {
        font-size: 1.75rem !important;
        line-height: 1.2em;
        white-space: nowrap;
    }
    
    .static-subtitle {
        font-size: 1.25rem;
        color: #ffffff !important;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7) !important;
    }
    
    /* Mobile animation adjustments - 9 second cycle; keep translateX(-50%) for centering */
    @keyframes flashWord1Mobile {
        0%, 33.33% { opacity: 0; }
        0.5%, 33% { opacity: 1; transform: translateX(-50%) scale(1); }
        16.5% { opacity: 1; transform: translateX(-50%) scale(1.03); text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    }
    
    @keyframes flashWord2Mobile {
        33.33%, 66.66% { opacity: 0; }
        33.83%, 66.33% { opacity: 1; transform: translateX(-50%) scale(1); }
        50% { opacity: 1; transform: translateX(-50%) scale(1.03); text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    }
    
    @keyframes flashWord3Mobile {
        66.66%, 100% { opacity: 0; }
        67.16%, 99.66% { opacity: 1; transform: translateX(-50%) scale(1); }
        83.33% { opacity: 1; transform: translateX(-50%) scale(1.03); text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
    }
    
    .flashing-word:nth-child(1) {
        animation: flashWord1Mobile 9s infinite;
    }
    
    .flashing-word:nth-child(2) {
        animation: flashWord2Mobile 9s infinite;
    }
    
    .flashing-word:nth-child(3) {
        animation: flashWord3Mobile 9s infinite;
    }
    
    /* Fix typing animation for mobile */
    .typing-text {
        font-size: 1rem;
        white-space: normal;
        animation: none;
        border-right: none;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff !important;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    
    /* Hero Features for Mobile */
    .hero-features {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .feature-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    /* Hero Actions for Mobile */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .flashing-words-container {
        height: 2rem;
        margin-bottom: 10px;
    }

    .flashing-words {
        height: 2rem;
    }

    .flashing-word {
        font-size: 1.5rem !important;
    }
    
    .static-subtitle {
        font-size: 1.1rem;
        color: #ffffff !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7) !important;
    }
    
    .typing-text {
        font-size: 0.9rem;
        padding: 8px 12px;
        color: #ffffff !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    @keyframes flashWord1Small {
        0%, 33.33% { opacity: 0; }
        0.5%, 33% { opacity: 1; transform: translateX(-50%) scale(1); }
        16.5% { opacity: 1; transform: translateX(-50%) scale(1.02); text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    }
    
    @keyframes flashWord2Small {
        33.33%, 66.66% { opacity: 0; }
        33.83%, 66.33% { opacity: 1; transform: translateX(-50%) scale(1); }
        50% { opacity: 1; transform: translateX(-50%) scale(1.02); text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    }
    
    @keyframes flashWord3Small {
        66.66%, 100% { opacity: 0; }
        67.16%, 99.66% { opacity: 1; transform: translateX(-50%) scale(1); }
        83.33% { opacity: 1; transform: translateX(-50%) scale(1.02); text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    }
    
    .flashing-word:nth-child(1) {
        animation: flashWord1Small 9s infinite;
    }
    
    .flashing-word:nth-child(2) {
        animation: flashWord2Small 9s infinite;
    }
    
    .flashing-word:nth-child(3) {
        animation: flashWord3Small 9s infinite;
    }
}

@media (max-width: 360px) {
    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.3rem !important;
    }

    .flashing-words-container {
        height: 1.7rem;
        margin-bottom: 8px;
    }

    .flashing-words {
        height: 1.7rem;
    }

    .flashing-word {
        font-size: 1.3rem !important;
    }
    
    .static-subtitle {
        font-size: 1rem;
        color: #ffffff !important;
    }
    
    .typing-text {
        font-size: 0.8rem;
        color: #ffffff !important;
    }
}

/* ===== MOBILE NAV BUTTONS ===== */
.nav-mobile .mobile-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 4px 16px;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-mobile .mobile-btn.primary {
    background: linear-gradient(135deg, #00d46a, #00b85a);
    color: #ffffff;
    border: none;
}

.nav-mobile .mobile-btn.primary:hover {
    background: linear-gradient(135deg, #00b85a, #009e4c);
    transform: translateY(-1px);
}

.nav-mobile .mobile-btn.outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-mobile .mobile-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Remove default nav-mobile li styling from button rows */
.nav-mobile > ul > li:has(a.mobile-btn) {
    margin-bottom: 0;
}

.nav-mobile > ul > li:has(a.mobile-btn) + li:has(a.mobile-btn) {
    margin-top: 6px;
}
