/* Enhanced Navbar with Animation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    animation: slideInTop 0.6s ease-out;
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.logo {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.nav-links a {
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.profile-photo {
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    animation: fadeIn 1s ease-out, float 3s ease-in-out infinite;
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    animation: slideInLeft 0.8s ease-out 0.2s both;
    font-size: 3.5rem;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.social-links aanimation: bounce 1s ease-in-out 0.6s both;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    background: var(--white);
    color: var(--primary-color);
}

/* Section Animations */
.section {
    animation: fadeIn 0.8s ease-out;
}

.section h2 {
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.6s ease-out;
}

.section h2::before {
    content: '🚀';
    margin-right: 10px;
    animation: bounce 2s infinite;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

/* Enhanced Cards with Glassmorphism */
.project-card, .certification-card, .achievement-card, .skill-category {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover, .certification-card:hover, .achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Skill Categories with Icons */
.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

.skill-category ul li {
    padding: 0.6rem 0;
    position: relative;
    padding-left: 1.8rem;
    transition: var(--transition);
}

.skill-category ul li::before {
    content: '✨';
    position: absolute;
    left: 0;
    animation: pulse 2s infinite;
}

.skill-category ul li:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

/* Tech Badges Enhanced */
.tech-badge {
    background: var(--gradient-1);
    animation: fadeIn 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.tech-badge:hover {
    transform: translateY(-3px) scale(1.1);
}

/* About Image Animation */
.about-img {
    animation: float 4s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Current Focus List */
.interests h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.interests h3::before {
    content: '🎯';
    margin-right: 10px;
}

.interests ul li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: slideInLeft 0.5s ease-out backwards;
}

.interests ul li:nth-child(1) { animation-delay: 0.1s; border-left-color: #6366f1; }
.interests ul li:nth-child(2) { animation-delay: 0.2s; border-left-color: #8b5cf6; }
.interests ul li:nth-child(3) { animation-delay: 0.3s; border-left-color: #ec4899; }
.interests ul li:nth-child(4) { animation-delay: 0.4s; border-left-color: #10b981; }
.interests ul li:nth-child(5) { animation-delay: 0.5s; border-left-color: #f59e0b; }

.interests ul li:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

/* Button Enhancements */
button, .cta-button, .project-link, .certification-link, .contribution-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

button:hover::before, .cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Contact Section Enhanced */
.contact-info {
    animation: fadeIn 1s ease-out;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.contact-info i {
    animation: pulse 2s infinite;
}

.contact-info a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Footer */
footer {
    background: var(--gradient-1);
    animation: slideInTop 0.6s ease-out;
}

/* Fix social links clickability */
.hero-content {
    position: relative;
    z-index: 10;
}

.social-links {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.social-links a {
    position: relative;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
}
