/* Modern Styles for PitSync */

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .feature-card,
    .carousel-item img,
    .store-badge img,
    .btn,
    .nav-link {
        transition: none !important;
        animation: none !important;
    }
    .hero-image:hover { transform: none !important; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: #FFFFFF;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(48, 179, 174, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 209, 197, 0.03) 0%, transparent 50%);
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(48, 179, 174, 0.1) 15%, 
        rgba(48, 179, 174, 0.1) 85%, 
        transparent 100%
    );
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-right {
    flex: 1;
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -0.5rem;
    left: 0;
    border-radius: 2px;
}

.hero-subtext {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 58ch;
}

.hero-image {
    border-radius: 24px;
    box-shadow: 
        0 4px 6px rgba(48, 179, 174, 0.05),
        0 10px 15px rgba(48, 179, 174, 0.1);
    transform: perspective(1000px) rotateY(-5deg) translateZ(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(48, 179, 174, 0.1), rgba(79, 209, 197, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px) translateZ(0);
    box-shadow: 
        0 6px 8px rgba(48, 179, 174, 0.08),
        0 15px 20px rgba(48, 179, 174, 0.15);
}

.hero-image:hover::before {
    opacity: 1;
}

/* Navbar Styles */
.navbar {
    background: var(--navbar-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Make CTA link behave like a normal text link (no button styling) */
.nav-link.cta-link {
    background: transparent;
    color: var(--text-dark);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
}

.nav-link.cta-link:hover {
    background: transparent;
    color: var(--primary-dark);
    transform: none;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--background-light);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-row {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badges {
        justify-content: center;
    }
    
    .hero-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.store-badge {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-badge img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.1);
}

.store-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.store-badge:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.store-badge:hover img {
    transform: translateY(-3px);
    filter: grayscale(0);
}

    .hero-image {
        transform: none;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }
}

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

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 179, 174, 0.2);
}

/* Testimonials Section */
.custom-gradient-background {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Features Carousel */
.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-card .fas.fa-star {
    color: #FFD700;
    margin: 0 2px;
}

/* Scroll Animations */
.animate__animated {
    --animate-duration: 1s;
}

.animate__fadeIn {
    --animate-delay: 0.5s;
}

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

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
