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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Project Card Hover Effect */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Skill Tags Animation */
.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.1);
    background-color: #4F46E5;
    color: white;
}

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Form Input Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Hero Section Gradient Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animate {
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
}

/* Social Icons Hover Effect */
.social-icon {
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

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

/* Active Navigation Link */
.nav-link.active {
    color: #4F46E5;
    font-weight: 600;
}

/* Typewriter effect */
.typing-cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.typing-text {
    animation: fadeIn 0.5s ease forwards;
}

.typing-text:nth-child(1) { animation-delay: 1s; }
.typing-text:nth-child(3) { animation-delay: 2s; }
.typing-text:nth-child(5) { animation-delay: 3s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech Studio Title Animation */
.font-game {
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    letter-spacing: 1px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .font-game {
        font-size: 1rem;
    }
}

/* Glowing effect on hover */
.font-game:hover {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8),
                 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Social Media Icons Hover Effect */
.footer-social-link {
    position: relative;
    padding-bottom: 2px;
}

.footer-social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease-in-out;
}

.footer-social-link:hover::after {
    width: 100%;
}
