/* ReactBits-inspired modern styling + 2025 Enhancements */

/* Enhanced Hero Section */
.hero-avatar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

.avatar-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-switcher {
    transition: opacity 0.3s ease;
    display: inline-block;
    min-height: 1.5em;
}

.hero-tech-stack {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tech-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced text effects */
.scramble-char {
    display: inline-block;
    color: rgba(102, 126, 234, 0.9);
    font-weight: bold;
}

/* Enhanced CTA button with icon */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-right: 24px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
    transform: translateX(4px);
}

/* Enhanced project cards */
.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    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%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.project-link {
    margin-top: 1.5rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.project-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.project-btn:hover::after {
    width: 100%;
}

.project-btn:hover i {
    transform: translateX(5px);
}

.project-btn i {
    transition: transform 0.3s ease;
}

/* Enhanced contact icons */
.contact-icon {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover .icon-background {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}

/* Magnetic button effect - additional styling */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Tilt effect */
.tilt-effect {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform;
}

/* Particles canvas styling */
.particles-canvas {
    z-index: 0;
}

/* 3D effect for card content */
.tilt-effect .project-title,
.tilt-effect .project-icon,
.tilt-effect p,
.tilt-effect .project-link {
    transform: translateZ(20px);
}

/* Mouse cursor effect for interactive elements */
.magnetic-btn, .tilt-effect, .project-btn {
    cursor: pointer;
}

/* Enhanced section titles with gradients */
.section-title.scramble-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

/* Skill tags with more interactive hover */
.skill-tag:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) rotate(3deg);
}

/* Stats with more depth and 3D */
.stat-item {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-item:hover .stat-number {
    transform: translateZ(20px);
}

.stat-number {
    transition: transform 0.3s ease;
}

/* Education items with 3D effect */
.education-item {
    transform-style: preserve-3d;
}

.education-item:hover .education-title {
    transform: translateZ(10px);
}

.education-title {
    transition: transform 0.3s ease;
}

/* Enhanced ripple effect for buttons */
@keyframes enhancedRipple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Skills section improvements */
.skills {
    position: relative;
    overflow: hidden;
}

.skills-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    animation: skillsBackgroundMove 20s linear infinite;
}

@keyframes skillsBackgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.skill-category:hover::before {
    opacity: 1;
}

/* Enhanced focus effects for accessibility and visual appeal */
a:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* 2025 Enhanced Skill Tags */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enhanced-skill-tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.enhanced-skill-tag::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;
}

.enhanced-skill-tag:hover::before {
    left: 100%;
}

.floating-tech-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-badge {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-badge:nth-child(1) { top: 20%; left: 10%; animation-duration: 7s; }
.floating-badge:nth-child(2) { top: 50%; left: 85%; animation-duration: 8s; }
.floating-badge:nth-child(3) { top: 70%; left: 15%; animation-duration: 6s; }
.floating-badge:nth-child(4) { top: 30%; left: 70%; animation-duration: 9s; }
.floating-badge:nth-child(5) { top: 80%; left: 60%; animation-duration: 7s; }
.floating-badge:nth-child(6) { top: 15%; left: 50%; animation-duration: 8s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Dark theme support for enhanced features */
[data-theme="dark"] .enhanced-skill-tag {
    border-color: var(--accent-color, #667eea) !important;
    color: var(--text-color, #ffffff);
}

[data-theme="dark"] .floating-badge {
    opacity: 0.15;
}

[data-theme="dark"] .skill-tag {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .education-title {
    color: #ffffff;
}

[data-theme="dark"] .avatar-status {
    border-color: var(--card-bg);
}

[data-theme="dark"] .tech-item {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Additional Mobile Responsiveness for 2025 features */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .education-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .education-period {
        align-self: flex-start;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .hero-tech-stack {
        justify-content: center;
        max-width: 280px;
        margin: 2rem auto;
    }
    
    .floating-badge {
        font-size: 1.5rem;
    }
}

/* Enhanced Projects Section (2025) */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.status-badge.planning {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.project-tag {
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 500;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
    background: rgba(102, 126, 234, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

.project-stats .stat i {
    color: #667eea;
    font-size: 0.9rem;
}

.project-link {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.project-btn.primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.project-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.project-btn.secondary {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.project-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    border-color: #667eea;
}

/* Dark theme for projects */
[data-theme="dark"] .filter-btn {
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
}

[data-theme="dark"] .project-tag {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #8fa7ff;
}

[data-theme="dark"] .project-stats .stat {
    background: rgba(102, 126, 234, 0.1);
    color: #cccccc;
}

[data-theme="dark"] .project-btn.secondary {
    border-color: rgba(102, 126, 234, 0.5);
    color: #8fa7ff;
}

/* Project filtering animation */
.project-card.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Mobile responsiveness for projects */
@media (max-width: 768px) {
    .projects-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .project-link {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .project-btn.primary {
        width: 100%;
    }
    
    .project-btn.secondary {
        align-self: center;
    }
    
    .project-stats {
        justify-content: center;
    }
}
