*, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background: #0a0a0f;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto !important;
        height: auto !important;
        min-height: 100vh;
    }
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(125deg, #0a0a0f 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #0a0a0f 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rise 10s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.particle:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 2s; }
.particle:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 1.5s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 75%; animation-duration: 8s; animation-delay: 0.8s; width: 4px; height: 4px; }
.particle:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 1.2s; }
.particle:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 3.5s; width: 6px; height: 6px; }
.particle:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 4s; }
.particle:nth-child(12) { left: 30%; animation-duration: 9s; animation-delay: 2.2s; width: 5px; height: 5px; }
.particle:nth-child(13) { left: 50%; animation-duration: 13s; animation-delay: 1.8s; }
.particle:nth-child(14) { left: 70%; animation-duration: 12s; animation-delay: 0.3s; width: 3px; height: 3px; }
.particle:nth-child(15) { left: 90%; animation-duration: 14s; animation-delay: 2.8s; }

@keyframes rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* Glowing Lines */
.glow-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #667eea, transparent);
    animation: glowMove 8s infinite;
    opacity: 0.3;
}

.glow-line:nth-child(1) { left: 20%; animation-delay: 0s; }
.glow-line:nth-child(2) { left: 40%; animation-delay: 2s; }
.glow-line:nth-child(3) { left: 60%; animation-delay: 4s; }
.glow-line:nth-child(4) { left: 80%; animation-delay: 6s; }

@keyframes glowMove {
    0%, 100% { top: -100px; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* Main Content */
.container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.5);
    animation: avatarPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    opacity: 0.7;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.glitch-text {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: 'W';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: #ff00ff;
    animation: glitch1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: #00ffff;
    animation: glitch2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

.subtitle {
    font-size: 18px;
    color: #888;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.typing-text {
    font-size: 16px;
    color: #667eea;
    height: 25px;
}

.typing-text span {
    border-right: 2px solid #667eea;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: #667eea; }
    50% { border-color: transparent; }
}

/* Social Links - Left Side */
.social-left {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

/* Social Links - Right Side */
.social-right {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

/* Social Link - Center */
.social-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.social-btn.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.4);
    color: #5865F2;
}

.social-btn.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
    color: #FF0000;
}

.social-btn.github:hover {
    border-color: #fff;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.social-btn.hosting:hover {
    border-color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.social-btn.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 10px 40px rgba(228, 64, 95, 0.4);
    color: #E4405F;
}

.social-btn i {
    font-size: 20px;
}

/* Music Widget */
.spotify-widget {
    margin-top: 50px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.spotify-card {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.spotify-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.spotify-card.not-playing {
    opacity: 0.7;
}

.spotify-album {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.spotify-info {
    flex: 1;
    overflow: hidden;
}

.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotify-status i {
    animation: spotifyPulse 1.5s ease-in-out infinite;
}

@keyframes spotifyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.spotify-song {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.spotify-artist {
    font-size: 14px;
    color: #667eea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-progress {
    margin-top: 12px;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.spotify-progress-bar {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    transition: width 1s linear;
}

/* Music Player - Minimal */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 5px 30px rgba(102, 126, 234, 0.3);
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.music-bars.paused span {
    animation: none !important;
    height: 6px !important;
}

.music-bars span {
    width: 4px;
    background: #667eea;
    border-radius: 2px;
    animation: musicBar 0.5s ease-in-out infinite;
}

.music-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.music-bars span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.music-bars span:nth-child(4) { height: 18px; animation-delay: 0.3s; }

@keyframes musicBar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #444;
    font-size: 12px;
    z-index: 100;
}

/* ========== LOGIN PAGE ========== */
.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease;
}

.login-box h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box p {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.login-box .input-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-box input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.login-box input::placeholder {
    color: #555;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-box .error-msg {
    color: #ff4757;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.login-box .error-msg.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== NOTIFICATIONS ========== */
.notifications-container {
    position: fixed;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 400px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideInNotification 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.notification.removing {
    animation: slideOutNotification 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInNotification {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutNotification {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 15px var(--shadow-color);
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-message {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Success - Green */
.notification.success {
    --accent-color: #4caf50;
    --shadow-color: rgba(76, 175, 80, 0.5);
    --bg-color: rgba(76, 175, 80, 0.2);
    --border-color: rgba(76, 175, 80, 0.8);
}

/* Error - Red */
.notification.error {
    --accent-color: #f44336;
    --shadow-color: rgba(244, 67, 54, 0.5);
    --bg-color: rgba(244, 67, 54, 0.5);
    --border-color: rgba(244, 67, 54, 0.8);
}

/* Warning - Orange */
.notification.warning {
    --accent-color: #ff9800;
    --shadow-color: rgba(255, 152, 0, 0.5);
    --bg-color: rgba(255, 152, 0, 0.2);
    --border-color: rgba(255, 152, 0, 0.8);
}

/* Info - Blue */
.notification.info {
    --accent-color: #2196f3;
    --shadow-color: rgba(33, 150, 243, 0.5);
    --bg-color: rgba(33, 150, 243, 0.2);
    --border-color: rgba(33, 150, 243, 0.8);
}

/* Responsive */
@media (max-width: 600px) {
    html {
        overflow: visible !important;
        height: auto !important;
    }
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
        position: relative;
    }
    .bg-animation, .particles, .glow-lines {
        position: fixed;
    }
    .glitch-text {
        font-size: 38px;
    }
    .avatar {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }
    .social-left, .social-right {
        display: none;
    }
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .login-box {
        margin: 20px;
        padding: 30px;
    }
    .container {
        padding-bottom: 100px;
    }
    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
        padding-bottom: 80px;
    }
}
