/* Modern Animations and Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #FEA000, #FFB122, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2a2a2a 70%, #1a1a1a 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(254, 160, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 177, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(254, 160, 0, 0.2);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-element {
    animation: float 8s ease-in-out infinite;
}

.floating-element-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

.glow-effect {
    box-shadow: 0 0 30px rgba(254, 160, 0, 0.4),
                0 0 60px rgba(254, 160, 0, 0.2),
                0 0 90px rgba(254, 160, 0, 0.1);
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.portfolio-masonry {
    columns: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .portfolio-masonry {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .portfolio-masonry {
        columns: 3;
    }
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 160, 0, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.ripple-effect:hover::before {
    left: 100%;
}

.feature-icon {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.course-card-image {
    position: relative;
    overflow: hidden;
}

.course-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(254, 160, 0, 0.1), rgba(255, 177, 34, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-card-image::after {
    opacity: 1;
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    90%, 100% { content: ''; }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FEA000, #FFB122);
    z-index: 9999;
    transition: width 0.1s ease;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FEA000, #FFB122);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFB122, #FEA000);
}

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

/* Download Section Styles */
.download-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(254, 160, 0, 0.15);
}

.download-card .download-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(254, 160, 0, 0.9), rgba(255, 177, 34, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card:hover .download-overlay {
    opacity: 1;
}

.file-size-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Back to top button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop:hover {
    box-shadow: 0 8px 25px rgba(254, 160, 0, 0.4);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 100vh;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-8xl {
        font-size: 3.5rem;
    }
    
    .portfolio-masonry {
        columns: 1;
    }
    
    .card-hover:hover {
        transform: translateY(-8px) scale(1.02);
    }
}