/* VIJETA POWER TECH - PREMIUM ENHANCEMENTS 2026
   Advanced Animations, Background Effects, and Industrial Design Elements
   ============================================================================ */

/* ========== ANIMATION KEYFRAMES ========== */
@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(244, 123, 32, 0.4), 0 8px 20px rgba(16, 42, 67, 0.08);
    }
    50% {
        box-shadow: 0 0 30px rgba(244, 123, 32, 0.6), 0 12px 30px rgba(16, 42, 67, 0.12);
    }
}

@keyframes floatSub {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes slideUpContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes industrialPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes floatingParticles {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(100px);
    }
}

/* ========== BACKGROUND ANIMATION SYSTEM ========== */
.vpt-animated-bg {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.vpt-animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(244, 123, 32, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 42, 67, 0.04) 0%, transparent 50%);
    animation: industrialPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.vpt-animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(244, 123, 32, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: industrialPulse 6s ease-in-out infinite 1s;
    pointer-events: none;
}

/* ========== PREMIUM SECTION BACKGROUNDS ========== */
.vpt-section {
    position: relative;
}

.vpt-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(244, 123, 32, 0.4) 50%, 
        transparent 100%);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* ========== ENHANCED HERO CAROUSEL ========== */
.vpt-hero-slider {
    position: relative;
}

.vpt-hero-slide {
    animation: slideUpContent 1s ease-out forwards;
}

.vpt-hero-slide.is-active {
    animation: heroZoom 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.vpt-hero-slide::after {
    animation: industrialPulse 3s ease-in-out infinite;
}

.vpt-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(244, 123, 32, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Hero content entrance animation */
.vpt-hero-intro {
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

.vpt-intro-copy .vpt-kicker {
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

.vpt-intro-copy h1 {
    animation: fadeUp 0.8s ease-out 0.5s backwards;
}

.vpt-intro-copy p {
    animation: fadeUp 0.8s ease-out 0.6s backwards;
}

.vpt-hero-actions {
    animation: fadeUp 0.8s ease-out 0.7s backwards;
}

.vpt-stat {
    animation: fadeUp 0.8s ease-out backwards;
}

.vpt-stat:nth-child(1) {
    animation-delay: 0.8s;
}

.vpt-stat:nth-child(2) {
    animation-delay: 0.9s;
}

.vpt-stat:nth-child(3) {
    animation-delay: 1s;
}

.vpt-stat:nth-child(4) {
    animation-delay: 1.1s;
}

/* ========== ENHANCED CARDS ========== */
.vpt-card {
    position: relative;
    animation: fadeUp 0.6s ease-out backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vpt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vpt-orange), transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.vpt-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.vpt-card:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Stagger card animations */
.vpt-cards .vpt-card:nth-child(1) {
    animation-delay: 0.2s;
}

.vpt-cards .vpt-card:nth-child(2) {
    animation-delay: 0.3s;
}

.vpt-cards .vpt-card:nth-child(3) {
    animation-delay: 0.4s;
}

.vpt-cards .vpt-card:nth-child(4) {
    animation-delay: 0.5s;
}

.vpt-cards .vpt-card:nth-child(5) {
    animation-delay: 0.6s;
}

.vpt-cards .vpt-card:nth-child(6) {
    animation-delay: 0.7s;
}

/* ========== ENHANCED VEHICLE/AI ASSISTANT ========== */
.vpt-vehicle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.vpt-chat {
    display: none !important;
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: min(380px, calc(100vw - 30px));
    max-height: 500px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFC 100%);
    border: 1px solid #E8EFF7;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.2);
    flex-direction: column;
    animation: slideUpContent 0.4s ease-out;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.vpt-chat[style*="display: flex"] {
    display: flex !important;
    animation: slideUpContent 0.4s ease-out;
}

.vpt-chat-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #52677A;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpt-chat-close:hover {
    color: #F47B20;
    transform: rotate(90deg);
}

.vpt-chat h3 {
    margin: 20px 20px 8px;
    color: #102A43;
    font-size: 18px;
    font-weight: 700;
}

.vpt-chat p {
    margin: 0 20px 16px;
    color: #52677A;
    font-size: 14px;
    line-height: 1.5;
}

.vpt-chat-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
}

.vpt-chat-actions button {
    padding: 12px 16px;
    border: 1px solid #D4DFE8;
    border-radius: 8px;
    background: #FFFFFF;
    color: #102A43;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.vpt-chat-actions button:hover {
    background: #F47B20;
    color: #FFFFFF;
    border-color: #F47B20;
    transform: translateX(4px);
}

/* ========== VEHICLE TRUCK BUTTON ========== */
[data-vpt-chat] {
    position: relative;
    width: 80px;
    height: 80px;
    border: none;
    background: linear-gradient(135deg, #F47B20 0%, #F5A540 100%);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(244, 123, 32, 0.3);
    animation: floatSub 3s ease-in-out infinite;
}

[data-vpt-chat]:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 36px rgba(244, 123, 32, 0.5);
}

.vpt-truck {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.vpt-truck::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.vpt-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.vpt-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.vpt-reveal--up {
    animation: fadeUp 0.8s ease-out forwards;
}

.vpt-reveal--left {
    animation: slideUpContent 0.8s ease-out forwards;
    transform: translateX(-40px);
}

.vpt-reveal--right {
    animation: slideUpContent 0.8s ease-out forwards;
    transform: translateX(40px);
}

/* ========== INDUSTRIAL ELEMENTS ========== */
.vpt-industrial-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(244, 123, 32, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 123, 32, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
    animation: industrialPulse 8s ease-in-out infinite;
}

/* ========== CTA SECTIONS ========== */
.vpt-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #102A43 0%, #163A5F 50%, #1a4a7a 100%);
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

.vpt-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 123, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.vpt-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 123, 32, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.vpt-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.vpt-cta h2 {
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 44px);
    margin: 12px 0 0;
}

.vpt-cta .vpt-kicker {
    justify-content: center;
    color: #FFB176;
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 1024px) {
    .vpt-hero-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vpt-stat-grid {
        grid-template-columns: 1fr;
    }
    
    .vpt-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .vpt-menu {
        display: none;
    }
    
    .vpt-menu.is-open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background: #FFFFFF;
        box-shadow: 0 8px 24px rgba(16, 42, 67, 0.12);
        z-index: 99;
        border-radius: 0 0 12px 12px;
    }
    
    .vpt-menu-toggle {
        display: flex;
    }
    
    .vpt-hero-controls {
        right: 20px;
    }
    
    .vpt-chat {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 110px;
    }
    
    .vpt-vehicle {
        right: 20px;
        bottom: 20px;
    }
    
    [data-vpt-chat] {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .vpt-hero-intro {
        padding: 50px 0 40px;
    }
    
    .vpt-hero-intro-grid {
        gap: 30px;
    }
    
    .vpt-intro-copy h1 {
        font-size: 32px;
    }
    
    .vpt-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .vpt-hero-actions .vpt-button {
        width: 100%;
        justify-content: center;
    }
    
    .vpt-stat {
        padding: 20px 16px;
    }
    
    .vpt-cards {
        gap: 16px;
        grid-template-columns: 1fr;
    }
    
    .vpt-vehicle {
        right: 15px;
        bottom: 15px;
    }
    
    [data-vpt-chat] {
        width: 65px;
        height: 65px;
        font-size: 12px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .vpt-vehicle,
    .vpt-hero-controls,
    .vpt-menu-toggle {
        display: none !important;
    }
}
/* Homepage industrial experience ------------------------------------------------ */
.vpt-hero-slider { min-height: min(760px, calc(100vh - 78px)); margin-top: 0; isolation: isolate; }
.vpt-hero-slide::after { background: linear-gradient(90deg, rgba(3,17,34,.9) 0%, rgba(5,26,50,.69) 45%, rgba(5,26,50,.19) 100%); }
.vpt-hero-overlay { position: relative; z-index: 2; min-height: min(760px, calc(100vh - 78px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; padding: 82px 0 110px; }
.vpt-eyebrow { margin: 0 0 18px; color: #ffc48f; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.vpt-hero-overlay h1 { margin: 0; color: #fff; max-width: 760px; font-size: clamp(45px, 7vw, 93px); line-height: .95; letter-spacing: -.065em; }
.vpt-hero-overlay h1 em { color: #f58228; font-style: normal; }
.vpt-hero-lead { max-width: 560px; margin: 25px 0 31px; color: #e2edf5; font-size: clamp(15px, 1.55vw, 20px); }
.vpt-hero-profile { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.vpt-hero-profile span { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 11px; transition: .25s ease; }
.vpt-hero-profile:hover span { background: #f47b20; border-color: #f47b20; transform: scale(1.08); }
.vpt-hero-actions { align-items: center; }
.vpt-hero-controls { z-index: 3; }
.vpt-industries { background: radial-gradient(circle at 7% 0%, #fff4e9, transparent 36%), #fff; }
.vpt-industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dce6ed; border-left: 1px solid #dce6ed; }
.vpt-industry-grid span { min-height: 118px; display: flex; align-items: end; padding: 20px; border-right: 1px solid #dce6ed; border-bottom: 1px solid #dce6ed; color: #173652; font-size: 17px; font-weight: 750; transition: .3s ease; }
.vpt-industry-grid span:hover { background: #102a43; color: #fff; box-shadow: inset 0 -4px #f47b20; }
.vpt-section--dark { background: #071b31; color: #fff; }
.vpt-section--dark .vpt-kicker { color: #ffae69; }
.vpt-section--dark .vpt-section-head h2 { color: #fff; }
.vpt-gallery-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 16px; }
.vpt-gallery-item { position: relative; height: 385px; margin: 0; overflow: hidden; background: #0f2a46; }
.vpt-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.vpt-gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(0,12,25,.88)); }
.vpt-gallery-item:hover img { transform: scale(1.075); }
.vpt-gallery-item figcaption { position: absolute; z-index: 1; left: 24px; bottom: 23px; color: #fff; font-size: 15px; font-weight: 700; }
.vpt-gallery-item figcaption span { display: block; margin-bottom: 9px; color: #ff9a4d; font-size: 11px; letter-spacing: .15em; }
.vpt-faq { background: #f4f8fb; }
.vpt-faq-layout { display: grid; grid-template-columns: .83fr 1.17fr; align-items: start; gap: clamp(45px, 9vw, 140px); }
.vpt-faq h2 { margin-top: 0; font-size: clamp(32px, 4vw, 55px); line-height: 1.05; }
.vpt-accordion details { border-bottom: 1px solid #ccd9e3; padding: 0; }
.vpt-accordion summary { position: relative; padding: 21px 32px 21px 0; color: #102a43; cursor: pointer; list-style: none; font-size: 17px; font-weight: 750; }
.vpt-accordion summary::-webkit-details-marker { display: none; }
.vpt-accordion summary::after { content: '+'; position: absolute; right: 0; color: #f47b20; font-size: 26px; font-weight: 400; line-height: .8; }
.vpt-accordion details[open] summary::after { content: '−'; }
.vpt-accordion p { margin: -3px 34px 20px 0; color: #52677a; }
@media (max-width: 760px) {
  .vpt-hero-overlay { min-height: 610px; padding: 80px 0 100px; }
  .vpt-hero-lead { font-size: 15px; }
  .vpt-industry-grid { grid-template-columns: repeat(2, 1fr); }
  .vpt-industry-grid span { min-height: 92px; font-size: 14px; }
  .vpt-gallery-grid, .vpt-faq-layout { grid-template-columns: 1fr; }
  .vpt-gallery-item { height: 270px; }
}

/* Final home-page layout: image-only hero and independently floating assistant. */
.vpt-header,
.vpt-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    border-bottom: 1px solid #e8eff7;
}

.vpt-hero-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 1635 / 962;
    margin: 0;
    isolation: isolate;
}

.vpt-hero-slide {
    background-size: contain;
    background-position: center;
    background-color: #071b31;
}

.vpt-hero-slide::before,
.vpt-hero-slide::after,
.vpt-hero-overlay,
.vpt-hero-controls,
.vpt-hero-dots {
    display: none;
}

@media (max-width: 768px) {
    .vpt-header,
    .vpt-header.is-sticky {
        position: sticky;
    }

    .vpt-hero-slider {
        aspect-ratio: 1635 / 962;
    }
}
