/**
 * Dhanlaxmi TVS - Animation Styles
 * Author: Your Company
 * Version: 1.0
 */

:root {
    --primary-color: #0033A0;
    --secondary-color: #DC143C;
    --primary-gradient: linear-gradient(135deg, #0033A0, #1155CC);
    --secondary-gradient: linear-gradient(135deg, #DC143C, #FF4259);
    --transition: all 0.3s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ========== Glass Effect Header ========== */
.glass-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.glass-header.scrolled {
    background: rgba(0, 51, 160, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation Animated Underline */
.main-nav a {
    position: relative;
    padding: 8px 4px;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a span {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Animation */
.mobile-menu-btn {
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.main-nav.active {
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== Hero Slider Animations ========== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Text Reveal Animation */
.text-reveal {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    animation: revealText 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

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

/* Typing Text Animation */
.typing-container {
    min-height: 30px;
    margin: 15px 0;
}

/* Button Animations */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: pulseEffect 2s infinite;
}

@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }
    70% {
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.glow-btn {
    position: relative;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    animation: glowEffect 2s infinite alternate;
}

@keyframes glowEffect {
    0% {
        box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
    }
}

.hover-float {
    transition: transform 0.3s var(--bounce);
}

.hover-float:hover {
    transform: translateY(-6px);
}

/* Wave Divider */
.wave-divider {
    position: relative;
    height: 120px;
    overflow: hidden;
    margin-top: -120px;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ========== Stats Counter Animation ========== */
.stats-counter {
    padding: 80px 0;
    background: #f9f9f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #555;
}

/* ========== 3D Tilt Card Effect ========== */
.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
    height: 450px;
}

.bike-info, .flip-content {
    backface-visibility: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.flip-content {
    transform: rotateY(180deg);
    background: var(--primary-gradient);
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
}

.flip-content h4 {
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.flip-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.flip-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.flip-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.tilt-card:hover .bike-info {
    transform: rotateY(-180deg);
    opacity: 0;
}

.tilt-card:hover .flip-content {
    transform: rotateY(0);
    opacity: 1;
}

.tilt-card:hover {
    transform: perspective(1000px) scale(1.05);
}

/* ========== Parallax Effect ========== */
.parallax-section {
    background-image: url('../images/parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 160, 0.8);
}

.parallax-cta {
    background-image: url('../images/cta-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Service Card Animation */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

/* ========== Testimonial Swiper ========== */
.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.customer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.customer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* ========== Social Icons Animation ========== */
.bounce-hover {
    transition: transform 0.3s var(--bounce);
}

.bounce-hover:hover {
    transform: scale(1.2);
}

/* Pulse Animation for WhatsApp Float */
.pulse-animation {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: bounce 2s infinite;
}

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

/* Media Queries for Animations */
@media (max-width: 991.98px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tilt-card {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 80vh;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
} 