/* Custom Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fadeInUp { 
    animation: fadeInUp 1s ease-out; 
}

.animate-bounce { 
    animation: bounce 2s infinite; 
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF6B00, #007BFF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF5722, #0056B3);
}

/* Dropdown Hover Effects */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Hover Effects */
.btn-gradient {
    background: linear-gradient(135deg, #FF6B00, #007BFF);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FF6B00, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading-dots::after {
    content: '';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.show {
    max-height: 400px;
}

/* Navigation Active State */
.nav-active {
    color: #FF6B00;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #FF6B00, #007BFF);
    border-radius: 1px;
}

/* Hero Section Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

.particle:nth-child(2) {
    background: rgba(0, 123, 255, 0.3);
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    background: rgba(255, 107, 0, 0.2);
    animation-delay: -4s;
    animation-duration: 10s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Project Card Animations */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
    .animate-fadeInUp {
        animation-delay: 0.2s;
    }
    
    .hero-particles {
        display: none;
    }
}

/* Focus States for Accessibility */
a:focus, button:focus {
    outline: 2px solid #FF6B00;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .fixed, footer, nav {
        display: none !important;
    }
    
    main {
        padding-top: 0 !important;
    }
}