/* Custom CSS Styles for DreamAI Gear */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #007AFF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0051D5;
}

/* Animation delays */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

/* Gradient text animation */
.bg-300 {
    background-size: 300%;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

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

.loading {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Glitch effect for headings */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #007AFF, -0.03em -0.04em 0 #FFFFFF,
            0.025em 0.04em 0 #8E8E93;
    }
    15% {
        text-shadow: 0.05em 0 0 #007AFF, -0.03em -0.04em 0 #FFFFFF,
            0.025em 0.04em 0 #8E8E93;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #007AFF, 0.025em 0.035em 0 #FFFFFF,
            -0.05em -0.05em 0 #8E8E93;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #007AFF, 0.025em 0.035em 0 #FFFFFF,
            -0.05em -0.05em 0 #8E8E93;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #007AFF, 0.03em 0 0 #FFFFFF,
            0 -0.04em 0 #8E8E93;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #007AFF, 0.03em 0 0 #FFFFFF,
            0 -0.04em 0 #8E8E93;
    }
    100% {
        text-shadow: -0.05em 0 0 #007AFF, -0.025em -0.04em 0 #FFFFFF,
            -0.04em -0.025em 0 #8E8E93;
    }
}

.glitch:hover {
    animation: glitch 0.5s infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.3);
}

/* Gradient border animation */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    position: relative;
    background: linear-gradient(90deg, #000000, #007AFF, #FFFFFF);
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Mobile menu animation */
.menu-open {
    transform: translateX(0) !important;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select,
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}