/* Pak Auto Mart - Premium 3D CSS Theme */
/* Modern, Classy, Professional Auto Parts E-commerce Theme */

:root {
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    --glow-primary: 0 0 30px rgba(0, 212, 255, 0.3);
    --glow-secondary: 0 0 30px rgba(99, 102, 241, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-xl: 20px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}

/* ========== GLOBAL 3D EFFECTS ========== */

.card-3d {
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: var(--shadow-3d), var(--glow-primary);
}

.product-card-3d {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card-3d:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 212, 255, 0.25);
}

.product-card-3d:hover::before {
    transform: scaleX(1);
}

.category-card-3d {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.category-card-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.category-card-3d:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-3d);
}

.category-card-3d img {
    transition: transform 0.6s ease;
}

.category-card-3d:hover img {
    transform: scale(1.1);
}

/* ========== BUTTONS 3D ========== */

.btn-3d-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

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

.btn-3d-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

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

.btn-3d-secondary {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-3d-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ========== BANNER 3D ========== */

.banner-3d {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    transition: var(--transition-smooth);
}

.banner-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s;
}

.banner-3d:hover {
    transform: translateY(-5px);
}

.banner-3d:hover::before {
    opacity: 1;
}

.banner-3d img {
    transition: transform 0.6s ease;
}

.banner-3d:hover img {
    transform: scale(1.05);
}

/* ========== NAVIGATION 3D ========== */

.navbar-3d {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item-3d {
    position: relative;
    padding: 10px 20px;
    transition: var(--transition-smooth);
}

.nav-item-3d::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-item-3d:hover::after {
    width: 80%;
}

/* ========== ICONS 3D ========== */

.icon-3d {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.icon-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s;
}

.icon-3d:hover {
    transform: translateY(-5px) rotateY(10deg);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.icon-3d:hover::before {
    transform: scale(1);
}

.icon-3d-circle {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 3px solid transparent;
}

.icon-3d-circle:hover {
    border-color: #00d4ff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* ========== TEXT EFFECTS ========== */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.title-3d {
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.title-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ========== SECTION HEADERS ========== */

.section-header-3d {
    position: relative;
    padding: 40px 0;
    text-align: center;
}

.section-header-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.section-title-3d {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

.section-title-3d span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== FEATURE BOXES ========== */

.feature-box-3d {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-box-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-box-3d:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d);
}

.feature-box-3d:hover::before {
    transform: scaleX(1);
}

/* ========== BADGES 3D ========== */

.badge-3d {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateZ(20px);
}

.badge-3d-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* ========== FLOATING ANIMATIONS ========== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

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

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shine-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* ========== HOVER LIFT EFFECT ========== */

.hover-lift {
    transition: var(--transition-smooth);
}

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

/* ========== GLASS MORPHISM ========== */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== SLIDER 3D ========== */

.slider-3d .carousel-box {
    perspective: 1000px;
}

.slider-3d .carousel-box > div {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.slider-3d .carousel-box:hover > div {
    transform: rotateY(5deg);
}

/* ========== PRICE TAG 3D ========== */

.price-tag-3d {
    background: var(--dark-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.price-tag-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50px 50px 0 0;
}

/* ========== INPUT FIELDS 3D ========== */

.input-3d {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    font-size: 15px;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-3d:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* ========== SEARCH BAR 3D ========== */

.search-bar-3d {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.search-bar-3d:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.search-bar-3d input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px 20px;
    font-size: 16px;
}

.search-bar-3d input:focus {
    outline: none;
}

.search-bar-3d button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-bar-3d button:hover {
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* ========== LOADING SPINNER 3D ========== */

.spinner-3d {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RIBBON BADGE ========== */

.ribbon-3d {
    position: absolute;
    top: 20px;
    left: -30px;
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 40px;
    font-weight: 700;
    font-size: 12px;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

/* ========== SCROLLBAR 3D ========== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .card-3d:hover,
    .product-card-3d:hover,
    .category-card-3d:hover {
        transform: translateY(-5px);
    }
    
    .section-title-3d {
        font-size: 1.8rem;
    }
    
    .icon-3d {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ========== DARK MODE SUPPORT ========== */

@media (prefers-color-scheme: dark) {
    .card-3d,
    .feature-box-3d {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .section-title-3d {
        color: white;
    }
}
