/* Custom styles for EMMETT Laboratories - Modern Tech Design */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern glassmorphism and backdrop effects */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(16px);
}

/* Animated gradient backgrounds */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background: linear-gradient(-45deg, #F9C821, #e0b41d, #F9C821, #ffd700);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Floating animation for background shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Enhanced pulse animation */
@keyframes modernPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Glow effects */
.glow-accent {
    box-shadow: 0 0 20px rgba(249, 200, 33, 0.3);
}

.glow-accent-strong {
    box-shadow: 0 0 40px rgba(249, 200, 33, 0.5);
}

/* Enhanced hover effects */
.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 200, 33, 0.1), transparent);
    transition: left 0.6s;
}

.tech-card:hover::before {
    left: 100%;
}

/* Text gradient animations */
@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, #ffffff 25%, #F9C821 50%, #ffffff 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

/* Enhanced button effects */
.btn-modern {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-modern:hover::after {
    transform: translateX(100%);
}

/* Custom focus states with modern flair */
input:focus, textarea:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 200, 33, 0.3);
}

/* Navigation enhancement */
#main-nav {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#main-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

#main-nav:hover {
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(249, 200, 33, 0.1);
}

/* Advanced loading animations */
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Section animations */
section {
    animation: slideInUp 0.8s ease-out;
}

section:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out;
}

section:nth-child(even) {
    animation: slideInRight 0.8s ease-out;
}

/* Enhanced card interactions */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(249, 200, 33, 0.1);
}

/* Particle effect background */
.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(249, 200, 33, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(249, 200, 33, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(249, 200, 33, 0.08) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Custom scrollbar with tech styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1119;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #F9C821, #e0b41d);
    border-radius: 10px;
    border: 1px solid rgba(249, 200, 33, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #e0b41d, #F9C821);
    box-shadow: 0 0 10px rgba(249, 200, 33, 0.5);
}

/* Form field enhancements */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 3px rgba(249, 200, 33, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .interactive-card:hover {
        transform: translateY(-8px);
    }
    
    #main-nav {
        backdrop-filter: blur(12px);
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}