/* ========================================
   AutoParts Custom Styles
   ======================================== */

* {
    scroll-behavior: smooth;
}

/* ========================================
   Global Styles
   ======================================== */

:root {
    --primary-color: #1e3a8a;
    --light-bg: #f1f5f9;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: all 0.3s ease;
}

/* ========================================
   Navigation Styles
   ======================================== */

nav {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

nav .relative.group .group-hover\:visible {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Hero Section Animations
   ======================================== */

.animate-pulse {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========================================
   Card Hover Effects
   ======================================== */

.group {
    transition: all 0.3s ease;
}

.group:hover {
    transform: translateY(-8px);
}

.group:hover .hover\:shadow-2xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Button Styles
   ======================================== */

button, a[class*="bg-gradient-to"],
.inline-block {
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.98);
}

/* ========================================
   Form Styles
   ======================================== */

input, textarea, select {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    border-color: var(--secondary-color);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-toggle {
    cursor: pointer;
    user-select: none;
}

.faq-toggle:hover {
    background-color: #f9fafb;
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

/* ========================================
   Gradient Text
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Border Styles
   ======================================== */

.border-gradient-to-r {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
}

/* ========================================
   Shadow Effects
   ======================================== */

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
    .hidden.md\:flex {
        display: none;
    }

    nav {
        padding: 12px 16px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* ========================================
   Link Effects
   ======================================== */

a:hover {
    color: var(--primary-color);
}

.text-orange-500:hover {
    color: var(--primary-color);
}

/* ========================================
   Special Effects
   ======================================== */

.filter {
    filter: blur(80px);
}

.mix-blend-multiply {
    mix-blend-mode: multiply;
}

/* ========================================
   Transition Classes
   ======================================== */

.transition {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* ========================================
   Opacity Effects
   ======================================== */

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

/* ========================================
   Text Effects
   ======================================== */

.text-transparent {
    color: transparent;
}

/* ========================================
   Container Styles
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Custom Gradient Backgrounds
   ======================================== */

.bg-gradient-blue-orange {
    background: #1e3a8a;
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    nav, footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   Dark Mode Support (if needed)
   ======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --light-bg: #1f2937;
    }

    body {
        background-color: #111827;
        color: #e5e7eb;
    }

    input, textarea, select {
        background-color: #1f2937;
        color: #e5e7eb;
    }
}

/* ========================================
   Loading Animation
   ======================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   Bounce Animation
   ======================================== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ========================================
   Fade In Animation
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   Slide In Animation
   ======================================== */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* ========================================
   Focus Visible for Keyboard Navigation
   ======================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ========================================
   Mobile Menu Animation
   ======================================== */

#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

#mobileMenu.hidden {
    display: none !important;
}

/* ========================================
   Footer Links Hover
   ======================================== */

footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ========================================
   Smooth Page Transitions
   ======================================== */

html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.5s ease-out;
}
