/* ===================================
   Parkinfraction - Custom Styles
   =================================== */

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection color */
::selection {
    background-color: #dc2626;
    color: white;
}

/* ===================================
   Animations
   =================================== */

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(220, 38, 38, 0);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Gradient shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* ===================================
   Custom Components
   =================================== */

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #dc2626, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::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 ease;
}

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

/* ===================================
   Step connector line
   =================================== */

.step-line {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, transparent);
}

/* ===================================
   Mockup styles
   =================================== */

.mockup-phone {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mockup-phone-screen {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    overflow: hidden;
}

.mockup-browser {
    background: #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-browser-bar {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-browser-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

/* ===================================
   FAQ Accordion
   =================================== */

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-button:hover {
    color: #dc2626;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* ===================================
   Form styles
   =================================== */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* ===================================
   Responsive utilities
   =================================== */

/* Prevent horizontal overflow */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Fix for mobile overflow */
main, section, footer, nav {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    /* Typography */
    h1 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Sections padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Cards */
    .card-hover:hover {
        transform: none;
    }
    
    /* Stats in hero */
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    /* Phone mockup */
    .mockup-phone,
    [class*="rounded-[2.5rem]"] {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* FAQ button text */
    .faq-button span {
        font-size: 0.95rem;
    }
    
    /* Decorative elements - hide on mobile */
    .animate-float {
        display: none;
    }
    
    /* Fix overflow issues */
    .blur-3xl {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    /* Reduce padding */
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Grid adjustments */
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* ===================================
   Print styles
   =================================== */

@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
