* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s;
}

body {
    background: linear-gradient(135deg, #6f86d6, #48c6ef);
    font-family: 'Poppins', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding-top: 100px;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #ecf0f1;
}

h1 {
    font-size: 3rem;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    z-index: 10;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
    z-index: 10;
    position: relative;
}

.toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
}

.toggle-container input {
    display: none;
}

.toggle-container label {
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    transition: background 0.3s;
}

.toggle-container label::after {
    content: '';
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-container input:checked + label {
    background: #66bb6a;
}

.toggle-container input:checked + label::after {
    transform: translateX(25px);
}

.toggle-container span {
    margin-left: 10px;
    font-size: 1rem;
    user-select: none;
    color: white;
}

.link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    position: relative;
}

.link-box {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.link-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: skewY(-10deg);
    transition: top 0.5s ease;
}

.link-card:hover::before {
    top: -50%;
}

.link-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
}

.link-card a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .link-card a {
        font-size: 1rem;
    }
    .link-box {
        margin-top: 20px;
        flex-direction: column;
        gap: 20px;
    }
    .link-card {
        padding: 15px 20px;
    }
    body {
        padding-top: 80px;
    }
}
