/* Enhanced Homepage Visual Effects */

/* Loading Screen */
#loading-screen {
    font-family: 'Inter', sans-serif;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-logo {
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
    animation: loadingPulse 2s infinite ease-in-out;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes loadingProgress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Home section loaded state */
.home.loaded {
    animation: homeEntrance 1s ease-out;
}

@keyframes homeEntrance {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Advanced Particle System */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    animation: enhancedParticleFloat 12s infinite linear;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

@keyframes enhancedParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(20px) rotate(36deg) scale(1);
    }
    25% {
        transform: translateY(70vh) translateX(-10px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(40vh) translateX(30px) rotate(180deg) scale(0.8);
    }
    75% {
        transform: translateY(20vh) translateX(-20px) rotate(270deg) scale(1.1);
    }
    90% {
        opacity: 1;
        transform: translateY(5vh) translateX(10px) rotate(324deg) scale(0.5);
    }
    100% {
        transform: translateY(-10vh) translateX(0) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Enhanced Geometric Shapes */
.geometric-shapes .shape {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    animation: enhancedFloat 25s infinite ease-in-out;
}

@keyframes enhancedFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.1;
        border-color: rgba(255, 255, 255, 0.1);
    }
    25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.3;
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translateY(-60px) translateX(40px) rotate(180deg) scale(0.9);
        opacity: 0.15;
        border-color: rgba(255, 255, 255, 0.15);
    }
    75% { 
        transform: translateY(-30px) translateX(20px) rotate(270deg) scale(1.05);
        opacity: 0.25;
        border-color: rgba(255, 255, 255, 0.18);
    }
}

/* Enhanced Profile Glow Effect */
.profile-glow {
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.02) 60%,
        transparent 100%
    );
    animation: enhancedPulse 4s ease-in-out infinite;
}

@keyframes enhancedPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    75% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* Enhanced Ring Animation */
.profile-ring {
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    animation: enhancedRotate 15s linear infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@keyframes enhancedRotate {
    0% {
        transform: rotate(0deg);
        border-top-color: rgba(255, 255, 255, 0.4);
    }
    25% {
        border-top-color: rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: rotate(180deg);
        border-top-color: rgba(255, 255, 255, 0.4);
    }
    75% {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
    100% {
        transform: rotate(360deg);
        border-top-color: rgba(255, 255, 255, 0.4);
    }
}

/* Enhanced Glitch Effect */
.glitch-text {
    position: relative;
    animation: enhancedGlitch 6s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: 'Welcome to My Monochrome World.';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    animation: enhancedGlitch1 6s infinite;
    color: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

.glitch-text::after {
    animation: enhancedGlitch2 6s infinite;
    color: rgba(255, 255, 255, 0.6);
    z-index: -2;
}

@keyframes enhancedGlitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    80% { transform: translateX(2px); }
}

@keyframes enhancedGlitch1 {
    0%, 100% { 
        transform: translateX(0); 
        opacity: 0; 
    }
    20% { 
        transform: translateX(-3px) translateY(1px); 
        opacity: 0.8; 
    }
    40% { 
        transform: translateX(-3px) translateY(-1px); 
        opacity: 0.8; 
    }
    60% { 
        transform: translateX(3px) translateY(1px); 
        opacity: 0.8; 
    }
    80% { 
        transform: translateX(3px) translateY(-1px); 
        opacity: 0.8; 
    }
}

@keyframes enhancedGlitch2 {
    0%, 100% { 
        transform: translateX(0); 
        opacity: 0; 
    }
    20% { 
        transform: translateX(3px) translateY(-1px); 
        opacity: 0.6; 
    }
    40% { 
        transform: translateX(3px) translateY(1px); 
        opacity: 0.6; 
    }
    60% { 
        transform: translateX(-3px) translateY(-1px); 
        opacity: 0.6; 
    }
    80% { 
        transform: translateX(-3px) translateY(1px); 
        opacity: 0.6; 
    }
}

/* Enhanced Floating Elements */
.floating-elements .floating-item {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: enhancedFloatMove 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes enhancedFloatMove {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-150px) translateX(100px) rotate(90deg) scale(1.2);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-100px) translateX(200px) rotate(180deg) scale(0.8);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-200px) translateX(50px) rotate(270deg) scale(1.1);
        opacity: 0.5;
    }
}

/* Enhanced Scroll Indicator */
.home-scroll .scroll-indicator {
    animation: enhancedScrollBounce 2s infinite ease-in-out;
}

@keyframes enhancedScrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.scroll-arrow {
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: enhancedScrollLine 2s infinite ease-in-out;
}

@keyframes enhancedScrollLine {
    0%, 100% {
        height: 20px;
        opacity: 0.3;
    }
    50% {
        height: 30px;
        opacity: 0.8;
    }
}

/* Mobile Responsive Enhancements */
.home.mobile-optimized {
    background-attachment: fixed;
}

.home.mobile-optimized .geometric-shapes .shape {
    animation-duration: 35s;
}

.home.mobile-optimized .particles-container {
    opacity: 0.7;
}

/* Touch device optimizations */

/* High DPI displays */

/* Landscape orientation mobile fix */

/* Enhanced Background Gradient */
.home {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    animation: backgroundShift 15s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0);
    }
    25% {
        opacity: 0.5;
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        opacity: 0.4;
        transform: translateX(-10px) translateY(20px);
    }
    75% {
        opacity: 0.6;
        transform: translateX(15px) translateY(15px);
    }
}

/* Enhanced Social Icons */
.social-preview {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 2.2s forwards;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-icon::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;
}

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

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
}

.social-icon i {
    z-index: 1;
    position: relative;
}

/* Enhanced Stats Items */
.home-stats .stat-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-stats .stat-item::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.6s ease;
}

.home-stats .stat-item:hover::before {
    left: 100%;
}

.home-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberShine 3s infinite ease-in-out;
}

@keyframes numberShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Button Styles */
.home-actions .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.home-actions .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;
}

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

.home-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Mobile responsive adjustments for social icons */


