/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
    overflow: hidden;
}

/* Theme Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --accent-color: #007bff;
}

.dark-mode {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --accent-color: #00aaff;
}

/* Animated Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fad0c4, #ffdde1);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Effect */
.container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15); /* Transparent White */
    backdrop-filter: blur(10px); /* Frosted Glass Effect */
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Styling */
h1 {
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-in-out;
}

h1 span {
    font-weight: 300;
    color: var(--accent-color);
}

p {
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* Button */
#theme-toggle {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease, background 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: #0056b3;
}

/* Social Icons */
.socials ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
}

.socials li {
    list-style: none;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.8s;
}

.socials a {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
}


/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s ease, color 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Typing Cursor Animation */
.cursor {
    font-weight: bold;
    color: var(--accent-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Smooth Scroll Animation */
.scroll-effect {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-effect.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Wave Background Animation */
@keyframes wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #ffdde1, #fc6076);
    background-size: 400% 400%;
    animation: wave 20s ease infinite;
}