/* Global Body Styles */
body {
    background-color: #000000;
    color: #e5e5e5;
    overflow-x: hidden;
    perspective: 1000px; /* Essential for 3D Tilt */
}

/* --- LOADER STYLES --- */
#loader {
    position: fixed;
    inset: 0;
    background-color: #000000; /* Solid Black */
    z-index: 99999; /* Super high priority to sit on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

/* The "MR" Text Styling */
.loader-text {
    font-size: 6rem; /* Bigger text */
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -2px;
    animation: glow-pulse 2s infinite alternate;
}

/* Glow Animation for MR */
@keyframes glow-pulse {
    0% {
        opacity: 0.4;
        text-shadow: 0 0 0px rgba(255, 255, 255, 0);
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        transform: scale(1.05);
    }
}

/* Helper to stop scrolling while loading */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.1s ease, box-shadow 0.4s ease, border-color 0.4s ease; /* Faster transform for Tilt */
    transform-style: preserve-3d;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); /* Purple hint on shadow */
}

/* Input Fields Glass Style */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* Grid Background */
.grid-bg {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Blob Animation */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.07) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: blob-bounce 10s infinite alternate;
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Profile Picture Floating Animation */
.profile-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Cursor Blinking for Typing Effect */
#typing-text {
    border-right-color: rgba(255,255,255,0.75);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(255,255,255,0.75); }
}

