/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.heading {
    font-family: 'Poppins', sans-serif;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom utility classes */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

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

/* Credit card styles */
.credit-card-wrapper {
    perspective: 1000px;
}

.credit-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
}

.credit-card:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.credit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.2) 10%,
        rgba(255,255,255,0) 100%
    );
    border-radius: inherit;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.credit-card:hover::after {
    opacity: 0.8;
}

/* Form input styles */
input {
    transition: all 0.3s ease;
}

input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Button styles */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.98);
}

.btn-gradient {
    background-size: 200% auto;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background-position: right center;
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top: 3px solid #3B82F6;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Toast notification */
.toast {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Card number masking */
.serial-input {
    letter-spacing: 2px;
}

.serial-input::placeholder {
    letter-spacing: normal;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Copy success animation */
@keyframes copy-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.copy-success {
    animation: copy-success 0.3s ease-in-out;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .credit-card {
        font-size: 0.9em;
    }
    
    .btn-gradient {
        padding: 0.75rem 1rem;
    }
}

/* Dark mode enhancements */
.dark .credit-card {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.5),
        0 2px 4px -1px rgba(0, 0, 0, 0.4);
}

.dark input::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
