/* Enhanced Futuristic Portfolio Styles */

* {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

/* Particle Background */
#particles-js {
    background: transparent;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #00f5ff, #bf00ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Glowing Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.5);
}

.glow-pink {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

/* Typing Animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor {
    animation: blink 1s infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Button Animations */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Skill Badge Animations */
.skill-badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-badge:hover {
    transform: translateY(-5px) rotate(5deg);
}

/* Form Enhancements */
input:focus, textarea:focus {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00f5ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f5ff, #bf00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #bf00ff, #ff1493);
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for Profile Image */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.8), 0 0 60px rgba(191, 0, 255, 0.3);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Polishing tweaks */
.fa-solid, .fa-regular, .fa-brands {
    font-size: 0.95rem;
    vertical-align: middle;
}

.skill-badge, .inline-flex.items-center {
    gap: 0.5rem;
}

.skill-badge i, .inline-flex.items-center i {
    font-size: 0.9rem;
}

.dashboard-card .fa-trash {
    font-size: 1rem;
}

.bg-black\/30 {
    background-color: rgba(0,0,0,0.3);
}

.bg-black\/40 {
    background-color: rgba(0,0,0,0.4);
}

/* Slightly reduce spacing in admin sidebar nav items */
.nav-item i {
    width: 20px;
    text-align: center;
}

/* Profile Section Improvements */
#profile img {
    transition: all 0.3s ease;
}

#profile img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(191, 0, 255, 0.4);
}

/* Resume Button Enhancements */
.resume-btn {
    position: relative;
    overflow: hidden;
}

.resume-btn::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;
}

.resume-btn:hover::before {
    left: 100%;
}

/* Better spacing for profile content */
.profile-content {
    line-height: 1.7;
}

.profile-content h3 {
    line-height: 1.3;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    #profile .grid {
        gap: 2rem;
    }
    
    #profile img {
        max-width: 280px;
        margin: 0 auto 1.5rem auto;
    }
    
    #profile .text-3xl {
        font-size: 1.75rem;
    }
    
    /* Mobile Profile Layout Improvements */
    #profile .block.md\\:hidden {
        padding: 0 1rem;
    }
    
    #profile .block.md\\:hidden img {
        max-width: 250px;
        margin-bottom: 2rem;
    }
    
    #profile .block.md\\:hidden h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    #profile .block.md\\:hidden p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    #profile .block.md\\:hidden .resume-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Better spacing for mobile content */
    #profile .block.md\\:hidden .profile-content {
        padding: 0 0.5rem;
    }
}

/* SweetAlert2 Custom Styling for Contact Form */
.swal2-popup-dark {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
    border: 2px solid #00f5ff !important;
    border-radius: 15px !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3) !important;
}

.swal2-popup-dark .swal2-title {
    color: #00f5ff !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
}

.swal2-popup-dark .swal2-content {
    color: #e5e7eb !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-popup-dark .swal2-confirm {
    background: linear-gradient(45deg, #00f5ff, #bf00ff) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease !important;
}

.swal2-popup-dark .swal2-confirm:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.4) !important;
}

.swal2-popup-dark .swal2-success {
    border-color: #00f5ff !important;
}

.swal2-popup-dark .swal2-success .swal2-success-ring {
    border-color: #00f5ff !important;
}

.swal2-popup-dark .swal2-success [class^=swal2-success-line] {
    background-color: #00f5ff !important;
}

.swal2-popup-dark .swal2-error {
    border-color: #ef4444 !important;
}

.swal2-popup-dark .swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}

/* Toast notification styling */
.swal2-toast.swal2-popup-dark {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid #00f5ff !important;
    backdrop-filter: blur(10px) !important;
}

.swal2-toast.swal2-popup-dark .swal2-title {
    color: #00f5ff !important;
    font-size: 16px !important;
}

.swal2-toast.swal2-popup-dark .swal2-content {
    color: #e5e7eb !important;
    font-size: 14px !important;
}

/* Progress bar styling */
.swal2-popup-dark .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #00f5ff, #bf00ff) !important;
}