/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.2) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

.container {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 119, 198, 0.3);
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

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

/* Logo styling */
.container img {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    animation: verticalRotate 8s linear infinite;
    transform-style: preserve-3d;
}

.container img:hover {
    transform: scale(1.05) rotateY(0deg);
    animation-play-state: paused;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #a8e6cf);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

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

.noblame-text {
    font-size: 1.4rem;
    margin: 1.5rem 0;
    color: #e8f4fd;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(26, 26, 46, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.noblame-text-lg {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    color: #ffd93d;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(26, 26, 46, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 217, 61, 0.3);
}

/* Box styling */
.noblame-box {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.noblame-box::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;
}

.noblame-box:hover::before {
    left: 100%;
}

.noblame-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Link styling */
a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #45b7d1;
    background: rgba(78, 205, 196, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .noblame-text {
        font-size: 1.2rem;
    }
    
    .noblame-text-lg {
        font-size: 1.4rem;
    }
    
    .container img {
        width: 150px;
    }
}

/* Special effects for error pages */
.error-page .container {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

.error-page h1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff8a80);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation for images */
.container img {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

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