body {
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-container {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.logo {
    font-size: 6rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    animation: fadeIn 2s ease-in-out forwards;
}

.tagline {
    position: absolute;
    bottom: -2rem;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    opacity: 0;
    animation: slideUp 1.5s ease-in-out 0.8s forwards;
}

.enter-portfolio {
    position: absolute;
    bottom: 2rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 2s forwards;
}

.enter-portfolio:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Background particles */
.particle {
    position: fixed;
    border-radius: 50%;
    z-index: 998;
    pointer-events: none;
}

/* Generate multiple particles with animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Creating particles */
.particle:nth-child(1) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: float 8s infinite;
}

.particle:nth-child(2) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 60%;
    left: 75%;
    animation: float 10s infinite;
}

.particle:nth-child(3) {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 40%;
    left: 25%;
    animation: float 7s infinite;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 30%;
    left: 85%;
    animation: float 9s infinite;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 70%;
    left: 40%;
    animation: float 11s infinite;
    animation-delay: 3s;
}

/* R Logo in the center */
.r-logo {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7), rgba(139, 92, 246, 0.7));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    animation: pulse 3s infinite alternate;
}

.r-letter {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.8);
        transform: scale(1.05);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        font-size: 4rem;
    }
    .tagline {
        font-size: 1rem;
        bottom: -1.5rem;
    }
    .r-logo {
        width: 120px;
        height: 120px;
    }
    .r-letter {
        font-size: 4rem;
    }
}