/* Custom CSS for RaveMate Landing Page */

/* Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.stagger-animate:nth-child(1) { transition-delay: 0.1s; }
.stagger-animate:nth-child(2) { transition-delay: 0.2s; }
.stagger-animate:nth-child(3) { transition-delay: 0.3s; }
.stagger-animate:nth-child(4) { transition-delay: 0.4s; }
.stagger-animate:nth-child(5) { transition-delay: 0.5s; }
.stagger-animate:nth-child(6) { transition-delay: 0.6s; }

/* Navigation Link Hover Effects */
.nav-link {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link-underline {
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(20, 84, 154, 0.3);
}

.nav-link:hover .nav-link-underline {
    box-shadow: 0 4px 8px rgba(20, 84, 154, 0.4);
}

/* Active state for current page */
.nav-link.active {
    color: #14549a;
    font-weight: 600;
}

.nav-link.active .nav-link-underline {
    width: 100% !important;
}

/* Ripple effect animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tilt-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced tilt effect with 3D rotation */
.tilt-card.tilt-active {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Form Success State */
.form-success {
    border: 2px solid #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
    transition: all 0.3s ease;
}

.form-success .form-input {
    border-color: #22c55e !important;
}

/* Car Animation Container */
.car-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Car Animation */
.car-animation {
    position: relative;
    transform-style: preserve-3d;
    animation: carFloat 3s ease-in-out infinite;
}

.car-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: carRotate 4s ease-in-out infinite;
}

/* Car floating animation */
@keyframes carFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(5deg);
    }
}

/* Car rotation animation */
@keyframes carRotate {
    0%, 100% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateY(5deg) rotateZ(2deg);
    }
    50% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    75% {
        transform: rotateY(-5deg) rotateZ(-2deg);
    }
}

/* Developer Figure */
.developer-figure {
    position: absolute;
    top: -20px;
    right: 50px;
    z-index: 10;
    animation: developerFloat 4s ease-in-out infinite;
}

.dev-avatar {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

@keyframes developerFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* Development Labels */
.dev-label {
    position: absolute;
    animation: labelFloat 3s ease-in-out infinite;
}

.backend-label {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.frontend-label {
    top: 60px;
    right: 20px;
    animation-delay: 1s;
}

.devops-label {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes labelFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

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

/* Parallax effect for car on scroll */
.car-parallax {
    transition: transform 0.1s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #14549a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3d7a;
}

/* Form animations */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 84, 154, 0.2);
}

/* Button hover effects */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Statistics counter animation */
.stat-number {
    display: inline-block;
    transition: none;
}

.stat-number.animate {
    transform: scale(1);
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Header scroll effect */
.header-scroll {
    transition: all 0.3s ease;
}

.header-scroll.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .car-container {
        height: 300px;
    }
    
    .car-svg {
        max-width: 300px;
    }
    
    .developer-figure {
        right: 20px;
        top: -10px;
    }
    
    .dev-label {
        font-size: 0.75rem;
    }
    
    .backend-label {
        top: 10px;
        left: 10px;
    }
    
    .frontend-label {
        top: 40px;
        right: 10px;
    }
    
    .devops-label {
        bottom: 20px;
    }
}

/* Loading animation for page elements */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.stagger-animate {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.stagger-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animate:nth-child(1) { transition-delay: 0s; }
.stagger-animate:nth-child(2) { transition-delay: 0s; }
.stagger-animate:nth-child(3) { transition-delay: 0s; }
.stagger-animate:nth-child(4) { transition-delay: 0s; }

/* Contact form success animation */
.form-success {
    animation: formSuccess 0.5s ease-out;
}

@keyframes formSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #14549a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #14549a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(20, 84, 154, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(20, 84, 154, 0.4);
}

/* Progress bar for scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #14549a, #3b82f6);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Muted primary background for cards */
.bg-primary-muted {
	background-color: rgba(20, 84, 154, 0.9);
}

/* Service card backgrounds with dark overlay */
.service-card-bg-1 {
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/cars/boris-m-_CiyeM2kvqs-unsplash.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.service-card-bg-2 {
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/cars/qtec-team-img.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Ensure icons inside service cards contrast with background */
.service-card {
	color: #ffffff;
}

.service-card svg *,
.service-card svg {
	fill: currentColor !important;
	stroke: currentColor !important;
}

/* Banner background image with slight dark overlay */
#banner {
	background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('../assets/cars/jack-white-pkvecakeQjo-unsplash.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Footer background image with slight dark overlay */
footer {
	background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../assets/cars/footer-bg-new2.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    height: 500px;
}

/* Footer responsive styling for screens below 992px */
@media (max-width: 991px) {
    footer {
        background: #000000 !important;
        background-image: none !important;
    }
}

/* Mobile responsive styling for header elements */
@media (max-width: 768px) {
    /* Hide "Let's Talk" button on mobile */
    .lets-talk-btn {
        display: none !important;
    }
    
    /* Make logo smaller on mobile */
    header nav a img {
        height: 2.5rem !important; /* 40px instead of 56px (h-14) */
    }
    
    /* Make contact button smaller and change text on mobile */
    .contact-btn {
        padding: 0.5rem 0.75rem !important; /* Smaller padding */
        font-size: 0.875rem !important; /* Smaller text */
    }
    
    .contact-btn span {
        display: none !important; /* Hide "Contact Us" text */
    }
    
    .contact-btn::before {
        content: "Contact" !important;
        display: inline !important;
    }
    
    .contact-btn svg {
        width: 1rem !important; /* Smaller arrow icon */
        height: 1rem !important;
    }
}

