:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-dim: #555555;
    --border-primary: #222222;
    --border-secondary: #333333;
    --border-hover: #444444;
    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    
    --discord-online: #23a55a;
    --discord-idle: #f0b232;
    --discord-dnd: #f23f43;
    --discord-offline: #80848e;
    --spotify-green: #1db954;
    
    /* Cohesive gradient colors - based on a unified color scheme */
    --primary-blue: #667eea;
    --primary-purple: #764ba2;
    --primary-pink: #f093fb;
    --accent-cyan: #4facfe;
    --accent-teal: #00f2fe;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    
    /* Enhanced gradient colors - more harmonious */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-pink) 0%, #f5576c 50%, var(--accent-cyan) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 50%, var(--primary-blue) 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    --gradient-glow: linear-gradient(45deg, #ff6b6b, var(--accent-teal), var(--accent-cyan), var(--accent-green), #feca57, var(--primary-pink), #54a0ff);
    
    /* Refined neon colors - more consistent saturation and brightness */
    --neon-blue: #4facfe;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-orange: #f97316;
    --neon-cyan: #06b6d4;
    
    /* Semantic color system */
    --success: var(--neon-green);
    --warning: var(--neon-orange);
    --error: #ef4444;
    --info: var(--neon-blue);
    
    /* Consistent opacity values */
    --opacity-light: 0.1;
    --opacity-medium: 0.2;
    --opacity-heavy: 0.3;
    --opacity-full: 0.4;
    
    /* Performance control variables */
    --particle-opacity: 0.1;
    --floating-element-opacity: 0.05;
    --ambient-overlay-opacity: 0.2;
    --grid-opacity: 0.01;
    --noise-opacity: 0.008;
    --backdrop-blur: 25px;
    --shadow-intensity: 0.3;
    --animation-speed: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* Advanced Visual Effects */
.profile-card {
    background: rgba(21, 21, 21, 0.98);
    border: 1px solid rgba(34, 34, 34, 0.9);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    will-change: transform;
    height: auto;
    min-height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    opacity: 0.9;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245, 87, 108, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Widget Styling */
.widget {
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.9);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(25px);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 0 20px rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.widget:hover::before {
    transform: scaleX(1);
}

.widget:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(102, 126, 234, 0.08),
        0 0 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

/* Enhanced Skill Tags */
.skill-tag {
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Enhanced Project Cards */
.project-card {
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

/* Enhanced Social Links */
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Enhanced Timeline */
.timeline-item {
    position: relative;
    margin-bottom: 15px;
    padding-left: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.timeline-item:hover {
    transform: translateX(5px);
}

/* Enhanced Form Styling */
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 0 20px rgba(102, 126, 234, 0.2);
    background: rgba(17, 17, 17, 0.9);
    transform: translateY(-1px);
}

.submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.submit-btn::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 ease;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

/* Enhanced Stats */
.stats-widget .stat-item {
    text-align: center;
    padding: 12px 6px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-widget .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-widget .stat-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stats-widget .stat-item:hover::before {
    opacity: 1;
}

/* Enhanced Avatar */
.main-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(102, 126, 234, 0.2);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.2));
}

.avatar-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 200%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    animation: rotate 3s linear infinite, gradientShift 2s ease infinite;
    filter: blur(1px);
}

.profile-avatar:hover .avatar-border {
    opacity: 1;
    transform: rotate(180deg) scale(1.15);
    filter: blur(0px);
}

.profile-avatar:hover .main-avatar-img {
    border-color: transparent;
    box-shadow: 
        0 15px 50px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.3);
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}

/* Enhanced Display Name */
.display-name {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    letter-spacing: 2px;
}

.name-text {
    position: relative;
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.name-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    animation: gradientShift 3s ease infinite;
    filter: blur(0.5px);
}

.display-name:hover .name-text::after {
    width: 100%;
    filter: blur(0px);
}

/* Enhanced Status Info */
.status-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 12px;
    display: inline-flex;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.status-info:hover {
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.status-info:hover::before {
    left: 100%;
}

/* Professional Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(34, 34, 34, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Enhanced Cursor - Fixed Visibility */
.cursor {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 100001;
    mix-blend-mode: difference;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    visibility: visible !important;
}

.cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    visibility: visible !important;
}

.cursor.hover .cursor-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor.hover .cursor-ring {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: var(--neon-blue);
}

.cursor.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.cursor.clicking .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
}

/* Ensure cursor is always visible on main site */
.main-site .cursor {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide default cursor everywhere */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* Ensure cursor is visible on all interactive elements */
a, button, .social-link, .skill-tag, .project-card, .widget, .theme-toggle, .audio-control, .entry-text {
    cursor: none !important;
}

/* Fix for cursor disappearing on hover */
.cursor:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure cursor stays visible during transitions */
.cursor {
    transition: none !important;
}

.cursor-dot,
.cursor-ring {
    transition: all 0.1s ease !important;
}

/* Enhanced Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Compact Layout - No Scrolling */
.main-container {
    display: flex;
    min-height: auto;
    height: auto;
    position: relative;
    z-index: 1;
    gap: 15px;
    padding: 15px;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
}

.widgets-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
    flex-shrink: 0;
    height: fit-content;
}

/* Widget hover effects */
.widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.widget:hover::after {
    opacity: 1;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.8);
    position: relative;
}

.widget-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.widget:hover .widget-header::after {
    width: 100%;
}

.widget-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.widget-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.widget:hover .widget-icon::before {
    opacity: 0.3;
}

.widget-icon i {
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.widget:hover .widget-icon i {
    color: var(--text-primary);
    transform: scale(1.2) rotateY(10deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--discord-offline);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.online { background: var(--discord-online); }
.status-indicator.idle { background: var(--discord-idle); }
.status-indicator.dnd { background: var(--discord-dnd); }
.status-indicator.offline { background: var(--discord-offline); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.discord-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.2));
}

.avatar:hover {
    border-color: var(--neon-blue);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    transform: scale(1.15) rotateY(5deg);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4));
}

.status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: var(--discord-offline);
}

.status-badge.online { background: var(--discord-online); }
.status-badge.idle { background: var(--discord-idle); }
.status-badge.dnd { background: var(--discord-dnd); }
.status-badge.offline { background: var(--discord-offline); }

.profile-info {
    flex: 1;
    min-width: 0;
}

.username {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.spotify-widget .widget-icon {
    color: var(--spotify-green);
}

.playback-status {
    display: flex;
    align-items: center;
}

.play-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--discord-offline);
    animation: pulse 2s ease-in-out infinite;
}

.play-indicator.playing {
    background: var(--spotify-green);
    animation: pulse 1s ease-in-out infinite;
}

.spotify-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-container {
    flex-shrink: 0;
}

.album-art {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--border-secondary);
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.2));
}

.album-art:hover {
    border-color: var(--neon-green);
    box-shadow: 
        0 8px 24px rgba(29, 185, 84, 0.3),
        0 0 0 1px rgba(29, 185, 84, 0.2);
    transform: scale(1.15) rotateY(5deg);
    filter: drop-shadow(0 0 20px rgba(29, 185, 84, 0.4));
}

.album-art.visible {
    display: block;
}

.album-container.hidden {
    display: none;
}

.progress-container {
    display: none;
}

.progress-container.visible {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: gradientShift 2s ease infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
    filter: blur(1px);
}

@keyframes shimmer {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.profile-section {
    flex: 1;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: fit-content;
}

/* Profile card styles consolidated above */

.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.main-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(102, 126, 234, 0.2);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.2));
}

.avatar-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 200% 200%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    animation: rotate 3s linear infinite, gradientShift 2s ease infinite;
    filter: blur(1px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-avatar:hover .avatar-border {
    opacity: 1;
    transform: rotate(180deg) scale(1.15);
    filter: blur(0px);
}

.profile-avatar:hover .main-avatar-img {
    border-color: transparent;
    box-shadow: 
        0 15px 50px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.3);
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}

.profile-details {
    flex: 1;
}

.display-name {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    letter-spacing: 2px;
}

.name-text {
    position: relative;
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.name-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    animation: gradientShift 3s ease infinite;
    filter: blur(0.5px);
}

.display-name:hover .name-text::after {
    width: 100%;
    filter: blur(0px);
}

.bio-section {
    margin-bottom: 8px;
}

.bio-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0;
    position: relative;
    line-height: 1.4;
}

.typing-text {
    display: inline;
    color: #667eea;
    font-weight: 500;
    text-shadow: none;
    white-space: nowrap;
    min-width: 200px; /* Minimum width to prevent extreme shrinking */
}

/* Container for typing text to prevent layout shifts */
.bio-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 1.5em; /* Ensure consistent height */
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--text-primary);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.status-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 12px;
    display: inline-flex;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.status-info:hover {
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.status-info:hover::before {
    left: 100%;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--discord-offline);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.online { background: var(--discord-online); }
.status-dot.idle { background: var(--discord-idle); }
.status-dot.dnd { background: var(--discord-dnd); }
.status-dot.offline { background: var(--discord-offline); }

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 12px 0;
}

.social-links {
    margin-bottom: 4px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.2);
}

.link-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(34, 34, 34, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.link-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .link-icon {
    background: transparent;
    border-color: transparent;
    color: var(--text-primary);
    transform: scale(1.1);
}

.social-link:hover .link-icon::before {
    opacity: 0.2;
}

.link-icon i {
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover .link-icon i {
    color: var(--text-primary);
    transform: scale(1.1);
}

.link-label {
    font-weight: 500;
    font-size: 12px;
    flex: 1;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

.footer {
    border-top: 1px solid var(--border-primary);
    padding-top: 4px;
    margin-top: 4px;
    margin-bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    padding: 4px 0;
    margin: 0;
}

.copyright,
.last-seen {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    margin: 0;
    padding: 0;
}

.copyright i,
.last-seen i {
    font-size: 10px;
    opacity: 0.7;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

.main-site * {
    cursor: none !important;
}

.entry-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.5) 0%, transparent 50%),
        linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
    overflow: hidden;
    animation: backgroundShift 15s ease-in-out infinite;
}

.entry-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(245, 87, 108, 0.12) 0%, transparent 50%);
    animation: ambientPulse 20s ease-in-out infinite;
}

.entry-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.entry-text {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: var(--gradient-glow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.entry-text::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    transition: all 0.5s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: gradientShift 3s ease infinite;
    filter: blur(1px);
}

.entry-text::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    animation: gradientShift 2s ease infinite;
    filter: blur(20px);
}

.entry-text:hover {
    opacity: 0.9;
    transform: scale(1.1);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.entry-text:hover::before {
    width: 100%;
    filter: blur(0px);
}

.entry-text:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 0.3;
}

.entry-text:active {
    transform: scale(0.95);
}

/* Enhanced Audio Control - Bottom Right Corner */
.audio-control {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    width: 56px;
    height: 56px;
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.9);
    border-radius: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
    cursor: pointer;
    z-index: 10000;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform: none !important;
}

.audio-control.visible {
    display: flex !important;
    animation: slideInUp 0.5s ease-out;
}

.audio-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-control::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: rgba(34, 34, 34, 0.95);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        0 0 20px rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

.audio-control:hover::before {
    opacity: 1;
}

.audio-control:hover::after {
    width: 100px;
    height: 100px;
}

.audio-control:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.audio-control.muted {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(239, 68, 68, 0.2);
}

.audio-control.muted .fas {
    color: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

.audio-control.muted:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        0 0 20px rgba(239, 68, 68, 0.2);
}

/* Audio control animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Audio control focus styles */
.audio-control:focus {
    outline: 2px solid rgba(102, 126, 234, 0.6);
    outline-offset: 2px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 0 4px rgba(102, 126, 234, 0.1);
}



/* Mobile audio control adjustments */
@media (max-width: 768px) {
    .audio-control {
        width: 52px !important;
        height: 52px !important;
        font-size: 16px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    .audio-control {
        width: 48px !important;
        height: 48px !important;
        font-size: 15px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: center;
    }
    
    .widgets-section {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
        gap: 15px;
    }
    
    .widget {
        flex: 1;
        animation: fadeInUp 1s ease-out;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .widgets-section {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .main-avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .display-name {
        font-size: 24px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .widget {
        padding: 12px;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    
    .profile-card {
        padding: 15px 10px;
    }
    
    .widget {
        padding: 12px;
    }
    
    .display-name {
        font-size: 20px;
    }
    
    .particles-container {
        display: none;
    }
    
    .entry-text {
        font-size: 1.2rem;
    }
    
    .audio-control {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

.main-site {
    animation: siteEnter 1s ease-out;
}

@keyframes siteEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.show::before {
    transform: scaleX(1);
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-color: var(--neon-blue);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(79, 172, 254, 0.05));
}

.notification.warning {
    border-color: var(--neon-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: iconPulse 2s ease-in-out infinite;
}

.notification.success .notification-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.notification.error .notification-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.notification.info .notification-icon {
    color: var(--neon-blue);
    background: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.notification.warning .notification-icon {
    color: var(--neon-orange);
    background: rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

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

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto !important;
}

.notification:hover .notification-close {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* Notification progress bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Notification entrance animations */
@keyframes notificationSlideIn {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
}

@keyframes notificationBounce {
    0% {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Notification hover effects */
.notification:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notification.success:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 30px rgba(34, 197, 94, 0.2);
}

.notification.error:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.2);
}

.notification.info:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(79, 172, 254, 0.3),
        0 0 30px rgba(79, 172, 254, 0.2);
}

.notification.warning:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(249, 115, 22, 0.3),
        0 0 30px rgba(249, 115, 22, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .notification-stack {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification.hide {
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

.notification-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 350px;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    pointer-events: auto !important;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.show::before {
    transform: scaleX(1);
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-color: var(--neon-blue);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(79, 172, 254, 0.05));
}

.notification.warning {
    border-color: var(--neon-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: iconPulse 2s ease-in-out infinite;
}

.notification.success .notification-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.notification.error .notification-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.notification.info .notification-icon {
    color: var(--neon-blue);
    background: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.notification.warning .notification-icon {
    color: var(--neon-orange);
    background: rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

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

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto !important;
}

.notification:hover .notification-close {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* Notification progress bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Notification entrance animations */
@keyframes notificationSlideIn {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
}

@keyframes notificationBounce {
    0% {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Notification hover effects */
.notification:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notification.success:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 30px rgba(34, 197, 94, 0.2);
}

.notification.error:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.2);
}

.notification.info:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(79, 172, 254, 0.3),
        0 0 30px rgba(79, 172, 254, 0.2);
}

.notification.warning:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(249, 115, 22, 0.3),
        0 0 30px rgba(249, 115, 22, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .notification-stack {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification.hide {
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

.notification-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 350px;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    pointer-events: auto !important;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.show::before {
    transform: scaleX(1);
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification.info {
    border-color: var(--neon-blue);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(79, 172, 254, 0.05));
}

.notification.warning {
    border-color: var(--neon-orange);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: iconPulse 2s ease-in-out infinite;
}

.notification.success .notification-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.notification.error .notification-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.notification.info .notification-icon {
    color: var(--neon-blue);
    background: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.notification.warning .notification-icon {
    color: var(--neon-orange);
    background: rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

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

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto !important;
}

.notification:hover .notification-close {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* Notification progress bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Notification entrance animations */
@keyframes notificationSlideIn {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
}

@keyframes notificationBounce {
    0% {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Notification hover effects */
.notification:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notification.success:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 30px rgba(34, 197, 94, 0.2);
}

.notification.error:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.2);
}

.notification.info:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(79, 172, 254, 0.3),
        0 0 30px rgba(79, 172, 254, 0.2);
}

.notification.warning:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(249, 115, 22, 0.3),
        0 0 30px rgba(249, 115, 22, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .notification-stack {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification.show {
        transform: translateY(0) scale(1);
    }
    
    .notification.hide {
        transform: translateY(-100px) scale(0.9);
    }
    
    .notification:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

.social-link.copying {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.05);
}

/* Compact Skills Section */
.skills-section {
    margin: 8px 0;
}

.skills-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-align: center;
    position: relative;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.skill-tag {
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Compact Projects Section */
.projects-section {
    margin: 30px 0;
}

.projects-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    position: relative;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.project-card {
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.project-title::before {
    content: '🚀';
    font-size: 14px;
}

.project-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 400;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tech-tag {
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Compact Timeline Section */
.timeline-section {
    margin: 15px 0;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.timeline-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.timeline-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.timeline-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Compact Contact Form */
.contact-section {
    margin: 15px 0;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 0 20px rgba(102, 126, 234, 0.2);
    background: rgba(17, 17, 17, 0.9);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.submit-btn::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 ease;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Stats Widget Compact */
.stats-widget .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.stats-widget .stat-item {
    text-align: center;
    padding: 8px 4px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-widget .stat-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stats-widget .stat-item:hover::before {
    opacity: 1;
}

.stats-widget .stat-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.stats-widget .stat-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Enhanced Project Cards */
.project-card {
    background: rgba(21, 21, 21, 0.95);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-title::before {
    content: '🚀';
    font-size: 14px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech-tag {
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Enhanced Skills Section */
.skills-section {
    margin: 30px 0;
}

.skills-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    position: relative;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 1px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

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

/* Enhanced Timeline */
.timeline-section {
    margin: 30px 0;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 1px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Enhanced Contact Form */
.contact-section {
    margin: 30px 0;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(17, 17, 17, 0.9);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.submit-btn {
    padding: 12px 24px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-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 ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .skills-grid {
        justify-content: flex-start;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .contact-form {
        gap: 12px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Enhanced hover effects */
.skill-tag:hover {
    animation: pulse 0.3s ease;
}

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

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.skill-tag:focus,
.project-card:focus,
.form-input:focus,
.submit-btn:focus,
.social-link:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cursor,
    .particles-container,
    .floating-element,
    .ambient-overlay {
        display: none !important;
    }
    
    .widget,
    .profile-card,
    .project-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(21, 21, 21, 0.9);
    border: 1px solid rgba(34, 34, 34, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(34, 34, 34, 0.9);
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.3);
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:active {
    transform: scale(0.95) rotate(180deg);
}

*::selection {
    background: #333333;
    color: #ffffff;
}

/* Reduced motion for users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle,
    .floating-element {
        animation: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    background-size: 400% 400%, 300% 300%, 350% 350%, 100% 100%;
    animation: subtleBackgroundShift 60s ease-in-out infinite;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Optimized particle effects - Reduced for better performance */
.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: var(--particle-opacity);
    animation: float linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.particle:nth-child(1) { 
    left: 10%; 
    animation-duration: 40s; 
    animation-delay: 0s; 
    background: var(--neon-blue);
}
.particle:nth-child(2) { 
    left: 30%; 
    animation-duration: 45s; 
    animation-delay: 10s; 
    background: var(--neon-pink);
}
.particle:nth-child(3) { 
    left: 50%; 
    animation-duration: 35s; 
    animation-delay: 20s; 
    background: var(--neon-purple);
}
.particle:nth-child(4) { 
    left: 70%; 
    animation-duration: 50s; 
    animation-delay: 5s; 
    background: var(--neon-green);
}
.particle:nth-child(5) { 
    left: 90%; 
    animation-duration: 42s; 
    animation-delay: 15s; 
    background: var(--neon-orange);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) translateX(10px) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) translateX(20px) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(30px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Optimized floating elements - Reduced for better performance */
.floating-element {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: var(--floating-element-opacity);
    animation: floatElement 40s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    filter: blur(0.5px);
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    border-radius: 50%;
    animation-delay: 0s;
    animation: floatElement 35s ease-in-out infinite, gradientShift 8s ease infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe);
    background-size: 200% 200%;
    border-radius: 8px;
    animation-delay: 10s;
    animation: floatElement 30s ease-in-out infinite, gradientShift 6s ease infinite;
    box-shadow: 0 0 15px rgba(245, 87, 108, 0.2);
}

.floating-element:nth-child(3) {
    top: 60%;
    left: 15%;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4facfe, #00f2fe, #667eea);
    background-size: 200% 200%;
    border-radius: 50%;
    animation-delay: 20s;
    animation: floatElement 38s ease-in-out infinite, gradientShift 10s ease infinite;
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.2);
}

.floating-element:nth-child(4) {
    top: 70%;
    right: 20%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a8edea, #fed6e3, #ffecd2);
    background-size: 200% 200%;
    border-radius: 12px;
    animation-delay: 15s;
    animation: floatElement 42s ease-in-out infinite, gradientShift 12s ease infinite;
    box-shadow: 0 0 25px rgba(168, 237, 234, 0.2);
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.9);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-40px) rotate(270deg) scale(1.05);
        opacity: 0.18;
    }
}

/* Enhanced ambient overlay - Reduced for better performance */
.ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 87, 108, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(168, 237, 234, 0.02) 0%, transparent 50%);
    z-index: 0;
    animation: ambientPulse 60s ease-in-out infinite;
    pointer-events: none;
    opacity: var(--ambient-overlay-opacity);
}

@keyframes ambientPulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.01) rotate(0.5deg); 
    }
}

/* Enhanced particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
    will-change: transform;
    transform: translateZ(0);
    box-shadow: 0 0 6px currentColor;
}

.particle:nth-child(1) { 
    left: 10%; 
    animation-duration: 25s; 
    animation-delay: 0s; 
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}
.particle:nth-child(2) { 
    left: 30%; 
    animation-duration: 30s; 
    animation-delay: 5s; 
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
}
.particle:nth-child(3) { 
    left: 50%; 
    animation-duration: 20s; 
    animation-delay: 10s; 
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}
.particle:nth-child(4) { 
    left: 70%; 
    animation-duration: 28s; 
    animation-delay: 2s; 
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}
.particle:nth-child(5) { 
    left: 90%; 
    animation-duration: 22s; 
    animation-delay: 8s; 
    background: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) translateX(10px) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) translateX(20px) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(30px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Add subtle grid pattern - Reduced for better performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none;
    animation: gridMove 120s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}

/* Animated background gradient */
@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    }
    25% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    }
    50% {
        background: 
            radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    }
    75% {
        background: 
            radial-gradient(circle at 60% 60%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    body,
    .entry-page {
        animation: none;
    }
    
    .floating-element,
    .particle {
        animation: none;
        opacity: 0.05;
    }
    
    .ambient-overlay {
        animation: none;
        opacity: 0.2;
    }
    
    body::before {
        animation: none;
    }
}

/* Subtle background shift animation */
@keyframes subtleBackgroundShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 0%, 0% 0%;
    }
    25% {
        background-position: 100% 50%, 0% 50%, 100% 100%, 0% 0%;
    }
    50% {
        background-position: 50% 100%, 50% 0%, 0% 50%, 0% 0%;
    }
    75% {
        background-position: 0% 50%, 100% 50%, 50% 100%, 0% 0%;
    }
}

/* Subtle grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    pointer-events: none;
    animation: subtleGridMove 60s linear infinite;
    opacity: 0.3;
}

@keyframes subtleGridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}

/* Subtle noise texture - Reduced for better performance */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: var(--noise-opacity);
    z-index: -1;
    pointer-events: none;
    animation: subtleNoiseShift 100s ease-in-out infinite;
}

@keyframes subtleNoiseShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.008;
    }
    50% {
        transform: translate(3px, 3px) scale(1.02);
        opacity: 0.01;
    }
}

/* Refined floating elements */
.floating-element {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    animation: subtleFloat 40s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    filter: blur(0.5px);
    border-radius: 50%;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    animation-delay: 0s;
    animation-duration: 35s;
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 12%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.25), rgba(79, 172, 254, 0.2));
    animation-delay: 10s;
    animation-duration: 30s;
}

.floating-element:nth-child(3) {
    top: 65%;
    left: 18%;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.15));
    animation-delay: 20s;
    animation-duration: 25s;
}

.floating-element:nth-child(4) {
    top: 75%;
    right: 25%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.2), rgba(254, 214, 227, 0.15));
    animation-delay: 15s;
    animation-duration: 32s;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-20px) rotate(45deg) scale(1.05);
        opacity: 0.12;
    }
    50% {
        transform: translateY(-15px) rotate(90deg) scale(0.95);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-25px) rotate(135deg) scale(1.02);
        opacity: 0.14;
    }
}

/* Refined particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.3;
    animation: subtleParticleFloat linear infinite;
    will-change: transform;
    transform: translateZ(0);
    box-shadow: 0 0 4px currentColor;
    filter: blur(0.3px);
}

.particle:nth-child(1) { 
    left: 12%; 
    animation-duration: 45s; 
    animation-delay: 0s; 
    background: rgba(102, 126, 234, 0.4);
}
.particle:nth-child(2) { 
    left: 35%; 
    animation-duration: 50s; 
    animation-delay: 12s; 
    background: rgba(245, 87, 108, 0.3);
}
.particle:nth-child(3) { 
    left: 55%; 
    animation-duration: 40s; 
    animation-delay: 24s; 
    background: rgba(168, 88, 247, 0.35);
}
.particle:nth-child(4) { 
    left: 75%; 
    animation-duration: 48s; 
    animation-delay: 6s; 
    background: rgba(16, 185, 129, 0.3);
}
.particle:nth-child(5) { 
    left: 88%; 
    animation-duration: 42s; 
    animation-delay: 18s; 
    background: rgba(249, 115, 22, 0.25);
}

@keyframes subtleParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
        transform: translateY(90vh) translateX(8px) rotate(36deg) scale(0.8);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) translateX(12px) rotate(324deg) scale(0.8);
    }
    100% {
        transform: translateY(-100vh) translateX(15px) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Performance Optimizations */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element,
    .particle,
    .ambient-overlay {
        animation: none !important;
        opacity: 0.05;
    }
    
    body::before,
    body::after {
        animation: none !important;
        opacity: 0.1;
    }
    
    .widget,
    .social-link,
    .skill-tag,
    .project-card {
        animation: none !important;
    }
}

/* Hardware acceleration for smooth animations */
.widget,
.profile-card,
.project-card,
.social-link,
.skill-tag,
.submit-btn,
.floating-element,
.particle {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize animations for better performance */
@keyframes subtleBackgroundShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 0%, 0% 0%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 100% 100%, 0% 0%;
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    50% {
        transform: translate3d(0, -20px, 0) rotate(90deg) scale(1.05);
        opacity: 0.12;
    }
}

@keyframes subtleParticleFloat {
    0% {
        transform: translate3d(0, 100vh, 0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
        transform: translate3d(8px, 90vh, 0) rotate(36deg) scale(0.8);
    }
    90% {
        opacity: 0.4;
        transform: translate3d(12px, 10vh, 0) rotate(324deg) scale(0.8);
    }
    100% {
        transform: translate3d(15px, -100vh, 0) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Optimize grid animation */
@keyframes subtleGridMove {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(80px, 80px, 0);
    }
}

/* Optimize noise animation */
@keyframes subtleNoiseShift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.015;
    }
    50% {
        transform: translate3d(5px, 5px, 0) scale(1.05);
        opacity: 0.02;
    }
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .floating-element {
        opacity: 0.05;
        animation-duration: 60s;
    }
    
    .particle {
        opacity: 0.2;
        animation-duration: 60s;
    }
    
    body {
        animation-duration: 45s;
    }
    
    body::before {
        animation-duration: 90s;
    }
    
    body::after {
        animation-duration: 75s;
    }
}

@media (max-width: 480px) {
    .floating-element {
        display: none;
    }
    
    .particle {
        opacity: 0.15;
        animation-duration: 80s;
    }
    
    body {
        animation-duration: 60s;
    }
}

/* Optimize for low-end devices */
@media (max-width: 320px) {
    .particle {
        display: none;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .floating-element {
        display: none;
    }
}

/* Reduce animation load when tab is not visible */
@media (prefers-reduced-motion: no-preference) {
    .floating-element,
    .particle,
    body::before,
    body::after {
        animation-play-state: running;
    }
}

/* Pause animations when tab is not visible */
@media (prefers-reduced-motion: no-preference) {
    .floating-element,
    .particle,
    body::before,
    body::after {
        animation-play-state: running;
    }
}

/* Optimize hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .widget:hover,
    .social-link:hover,
    .skill-tag:hover,
    .project-card:hover {
        transform: none;
        animation: none;
    }
    
    .widget:active,
    .social-link:active,
    .skill-tag:active,
    .project-card:active {
        transform: scale(0.98);
    }
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        width: 1px;
        height: 1px;
    }
    
    .floating-element {
        filter: blur(0.25px);
    }
}

/* Optimize for battery saving */
@media (prefers-reduced-motion: no-preference) and (max-width: 1024px) {
    .floating-element {
        animation-duration: 50s;
    }
    
    .particle {
        animation-duration: 60s;
    }
}

/* Enhanced grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    animation: gridMove 80s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Enhanced floating elements - bringing back the cubes */
.floating-element {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    animation: floatElement 25s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    filter: blur(0.5px);
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    border-radius: 12px;
    animation-delay: 0s;
    animation: floatElement 20s ease-in-out infinite, gradientShift 4s ease infinite;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe);
    background-size: 200% 200%;
    border-radius: 8px;
    animation-delay: 5s;
    animation: floatElement 18s ease-in-out infinite, gradientShift 3s ease infinite;
    box-shadow: 0 0 25px rgba(245, 87, 108, 0.3);
}

.floating-element:nth-child(3) {
    top: 60%;
    left: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe, #00f2fe, #667eea);
    background-size: 200% 200%;
    border-radius: 10px;
    animation-delay: 10s;
    animation: floatElement 22s ease-in-out infinite, gradientShift 5s ease infinite;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.floating-element:nth-child(4) {
    top: 70%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a8edea, #fed6e3, #ffecd2);
    background-size: 200% 200%;
    border-radius: 15px;
    animation-delay: 15s;
    animation: floatElement 24s ease-in-out infinite, gradientShift 6s ease infinite;
    box-shadow: 0 0 35px rgba(168, 237, 234, 0.3);
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.9);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-40px) rotate(270deg) scale(1.05);
        opacity: 0.18;
    }
}

/* Enhanced particles with better visibility */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.4;
    animation: float linear infinite;
    will-change: transform;
    transform: translateZ(0);
    box-shadow: 0 0 6px currentColor;
    filter: blur(0.3px);
}

.particle:nth-child(1) { 
    left: 10%; 
    animation-duration: 25s; 
    animation-delay: 0s; 
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}
.particle:nth-child(2) { 
    left: 30%; 
    animation-duration: 30s; 
    animation-delay: 5s; 
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
}
.particle:nth-child(3) { 
    left: 50%; 
    animation-duration: 20s; 
    animation-delay: 10s; 
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}
.particle:nth-child(4) { 
    left: 70%; 
    animation-duration: 28s; 
    animation-delay: 2s; 
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}
.particle:nth-child(5) { 
    left: 90%; 
    animation-duration: 22s; 
    animation-delay: 8s; 
    background: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) translateX(10px) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) translateX(20px) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(30px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Enhanced Notification Animations - Completely Redesigned */
.notification {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: right center;
    perspective: 1200px;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Initial state for new notifications */
.notification {
    transform: translateX(450px) scale(0.7) rotateY(-20deg);
    opacity: 0;
    filter: blur(3px) brightness(0.8);
}

/* Enhanced entrance animation with spring effect */
@keyframes notificationSlideInEnhanced {
    0% {
        transform: translateX(450px) scale(0.7) rotateY(-20deg);
        opacity: 0;
        filter: blur(3px) brightness(0.8);
    }
    20% {
        transform: translateX(-15px) scale(1.08) rotateY(8deg);
        opacity: 0.9;
        filter: blur(1px) brightness(1.1);
    }
    40% {
        transform: translateX(5px) scale(0.98) rotateY(-3deg);
        opacity: 1;
        filter: blur(0px) brightness(1.05);
    }
    60% {
        transform: translateX(-2px) scale(1.02) rotateY(1deg);
        opacity: 1;
        filter: blur(0px) brightness(1.02);
    }
    80% {
        transform: translateX(1px) scale(0.99) rotateY(-0.5deg);
        opacity: 1;
        filter: blur(0px) brightness(1.01);
    }
    100% {
        transform: translateX(0) scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

/* Enhanced exit animation with smooth fade */
@keyframes notificationSlideOutEnhanced {
    0% {
        transform: translateX(0) scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
    20% {
        transform: translateX(50px) scale(0.95) rotateY(-5deg);
        opacity: 0.9;
        filter: blur(1px) brightness(0.95);
    }
    50% {
        transform: translateX(200px) scale(0.85) rotateY(-12deg);
        opacity: 0.6;
        filter: blur(2px) brightness(0.8);
    }
    80% {
        transform: translateX(350px) scale(0.75) rotateY(-18deg);
        opacity: 0.3;
        filter: blur(3px) brightness(0.6);
    }
    100% {
        transform: translateX(450px) scale(0.7) rotateY(-20deg);
        opacity: 0;
        filter: blur(4px) brightness(0.4);
    }
}

/* Apply enhanced animations */
.notification.show {
    animation: notificationSlideInEnhanced 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notification.hide {
    animation: notificationSlideOutEnhanced 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Ultra-smooth stacking animation with staggered timing */
.notification-stack .notification {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced progress bar with smooth animation */
.notification-progress {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Enhanced hover effects with 3D transforms */
.notification:hover {
    transform: translateX(-8px) scale(1.03) rotateY(3deg) rotateX(1deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 40px rgba(255, 255, 255, 0.1);
    filter: blur(0px) brightness(1.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Type-specific hover effects */
.notification.success:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(34, 197, 94, 0.4),
        0 0 40px rgba(34, 197, 94, 0.3);
}

.notification.error:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(239, 68, 68, 0.4),
        0 0 40px rgba(239, 68, 68, 0.3);
}

.notification.info:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(79, 172, 254, 0.4),
        0 0 40px rgba(79, 172, 254, 0.3);
}

.notification.warning:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(249, 115, 22, 0.4),
        0 0 40px rgba(249, 115, 22, 0.3);
}

/* Enhanced close button animations */
.notification-close {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1) rotate(0deg);
}

.notification-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-close:active {
    transform: scale(0.9) rotate(180deg);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile optimized animations */
@media (max-width: 768px) {
    .notification {
        transform: translateY(100px) scale(0.8) rotateX(-15deg);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .notification.show {
        animation: notificationSlideInMobile 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    .notification.hide {
        animation: notificationSlideOutMobile 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .notification:hover {
        transform: translateY(-5px) scale(1.02) rotateX(2deg);
    }
}

/* Mobile-specific animations */
@keyframes notificationSlideInMobile {
    0% {
        transform: translateY(100px) scale(0.8) rotateX(-15deg);
        opacity: 0;
        filter: blur(3px) brightness(0.8);
    }
    50% {
        transform: translateY(-10px) scale(1.05) rotateX(5deg);
        opacity: 0.9;
        filter: blur(1px) brightness(1.1);
    }
    100% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

@keyframes notificationSlideOutMobile {
    0% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
    100% {
        transform: translateY(-100px) scale(0.8) rotateX(-15deg);
        opacity: 0;
        filter: blur(3px) brightness(0.6);
    }
}

/* Notification stack positioning with smooth transitions */
.notification-stack {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced notification content animations */
.notification-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification:hover .notification-content {
    transform: translateX(2px);
}

/* Icon animation on hover */
.notification-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Smooth fade-in for notification text */
.notification-title,
.notification-message {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification:hover .notification-title {
    transform: translateX(1px);
}

.notification:hover .notification-message {
    transform: translateX(1px);
    opacity: 1;
}

/* Enhanced Close Button - More Specific Rules */
.notification .notification-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 1 !important;
    transform: scale(1) rotate(0deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.notification:hover .notification-close {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.15) rotate(90deg) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: var(--text-primary) !important;
    transform: scale(1.2) rotate(90deg) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.notification .notification-close:active {
    transform: scale(0.9) rotate(180deg) !important;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Ensure notification stack allows pointer events */
.notification-stack {
    pointer-events: auto !important;
}

.notification-stack .notification {
    pointer-events: auto !important;
}

/* Ensure no other elements interfere with close button */
.notification * {
    pointer-events: auto !important;
}

.notification-close * {
    pointer-events: auto !important;
}

/* Custom Right-Click Context Menu - Enhanced */
.custom-context-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 0;
    min-width: 240px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 60px rgba(102, 126, 234, 0.1);
    z-index: 100000;
    display: none;
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
}

.custom-context-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-blue) 0%, 
        var(--neon-purple) 25%, 
        var(--neon-pink) 50%, 
        var(--neon-orange) 75%, 
        var(--neon-green) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 8px;
    border-radius: 12px;
}

.context-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.context-menu-item:hover::before {
    left: 100%;
}

.context-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--neon-blue);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

.context-menu-item:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--neon-purple);
    filter: drop-shadow(0 0 12px currentColor);
}

.context-menu-item span {
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 13px;
}

.context-menu-item:hover span {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: translateX(2px);
}

.context-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    margin: 8px 16px;
    border-radius: 1px;
}

/* Special styling for different menu items */
.context-menu-item[data-action="copy-url"] i {
    color: var(--neon-green);
}

.context-menu-item[data-action="view-source"] i {
    color: var(--neon-blue);
}

.context-menu-item[data-action="theme-toggle"] i {
    color: var(--neon-orange);
}

.context-menu-item[data-action="music-toggle"] i {
    color: var(--neon-pink);
}

.context-menu-item[data-action="love"] {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.context-menu-item[data-action="love"] i {
    color: #ef4444;
    animation: heartbeat 2s ease-in-out infinite;
}

.context-menu-item[data-action="love"]:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Enhanced heartbeat animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px #ef4444);
    }
    50% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 15px #ef4444);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .custom-context-menu {
        min-width: 220px;
        font-size: 13px;
        padding: 10px 0;
    }
    
    .context-menu-item {
        padding: 16px 18px;
        margin: 0 6px;
    }
    
    .context-menu-item i {
        font-size: 15px;
    }
    
    .context-menu-item span {
        font-size: 12px;
    }
}

/* Prevent text selection on context menu */
.custom-context-menu {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Enhanced focus states for accessibility */
.context-menu-item:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Smooth entrance animation */
@keyframes contextMenuSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes contextMenuSlideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}