/* Base Styles */
html {
    scroll-behavior: smooth;
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
}

/* Code Snippets */
.code-snippet {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 5;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.code-snippet:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Tech Icons */
.tech-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px);
}

.tech-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-icon:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

/* Glowing Elements */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: inherit;
    animation: glow 4s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .code-snippet {
        display: none;
    }
    
    .hero-content {
        padding-top: 100px;
    }
}
