/* style.css - Custom stylesheet for Soumya Phone Fixx */

/* Smooth transitions for theme switching */
body,
nav,
aside,
footer,
main,
section,
.glass-card,
.bg-white,
input,
select,
textarea,
button,
label {
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Animations */
@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes slide-in-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Utilities */
.animate-pulse-soft {
    animation: pulse-soft 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-slide-in {
    animation: slide-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

/* Glassmorphism Design */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 227, 229, 0.4);
}

.dark .glass-card {
    background: rgba(25, 28, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(69, 70, 77, 0.3);
}

/* Material Symbols Vert Alignment */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #76777d;
}

/* Active Navigation Element */
.nav-link-active {
    color: #0058be !important;
    font-weight: 700;
    border-bottom: 2px solid #0058be;
}

/* Image zoom transition */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover {
    transform: scale(1.06);
}

/* Interactive checkout card indicators */
.payment-radio:checked+label {
    border-color: #0058be;
    background-color: rgba(0, 88, 190, 0.05);
}

/* Quick utility for background gradients */
.tech-gradient {
    background: linear-gradient(135deg, #0b1c30 0%, #131b2e 100%);
}

/* Animated Header Logo Styles */
.logo-container {
    perspective: 500px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes wrench-work {

    0%,
    100% {
        transform: rotate(0deg) translateZ(0);
    }

    20% {
        transform: rotate(-18deg) scale(1.15) translateZ(12px);
    }

    40% {
        transform: rotate(12deg) scale(1.15) translateZ(15px);
    }

    60% {
        transform: rotate(-12deg) scale(1.15) translateZ(15px);
    }

    80% {
        transform: rotate(8deg) scale(1.1) translateZ(10px);
    }
}

.logo-container:hover .logo-icon {
    animation: wrench-work 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    color: #3b82f6 !important;
}

.dark .logo-container:hover .logo-icon {
    color: #22d3ee !important;
}

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

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.logo-container .logo-text {
    background: linear-gradient(120deg, #0058be 0%, #3b82f6 50%, #0058be 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.5s ease, transform 0.3s ease;
}

.dark .logo-container .logo-text {
    background: linear-gradient(120deg, #60a5fa 0%, #22d3ee 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-container:hover .logo-text {
    animation: logo-shine 1.8s linear infinite;
    transform: translateZ(8px);
}

/* 3D Tactile Card Effect */
.card-3d {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-8px) scale(1.025) rotateX(2.5deg) rotateY(-1.5deg);
    box-shadow: 0 20px 30px rgba(0, 88, 190, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dark .card-3d:hover {
    box-shadow: 0 20px 30px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}