* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    font-size: 20px;
}

body {
    background: radial-gradient(circle at 20% 30%, #4b0f78, transparent 40%),
                radial-gradient(circle at 80% 70%, #5e0faa, transparent 40%),
                radial-gradient(circle at 50% 50%, #3a0b60, transparent 60%),
                #06020e;
    background-size: 200% 200%;
    animation: meshMove 15s ease infinite;
    color: #e5e5ff;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 80px;

    background: rgba(20,10,35,0.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav h1 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
    transition: all 0.3 ease;
    cursor: default;
    animation: floatTitle 4s ease-in-out infinite;
}

nav h1:hover {
    text-shadow: 0 0 12px #c084fc, 0 0 20px #7c3aed, 0 0 30px #a855f7;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 128px;
    height: 128px;
    object-fit: contain;

    filter: drop-shadow(0 0 6px #7c3aed)
            drop-shadow(0 0 12px #a855f7);

    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px #7c3aed)
        drop-shadow(0 0 24px #a855f7);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.title-main {
    background: linear-gradient(90deg, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-sub {
    font-size: 1rem;
    color: #d8b4fe;
    margin-left: 10px;
    opacity: 0.8;
}

nav a {
    color: #c084fc;
    margin-left: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #c084fc;
    transition: width 0.3s ease;
}

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

nav a:hover {
    color: white;
}

/* Layout */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 60px;
    gap: 30px;
    width: 100%;
}

/* Acrylic card */
.card {
    background: rgba(20, 10, 35, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    padding: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(120, 60, 200, 0.4);
    margin: 20px auto;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 35px rgba(180, 90, 240, 0.6);
}

.card h2 {
    font-size: 2.2rem;
}

.card h3 {
    font-size: 1.6rem;
}

.card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Button */
button {
    transition: all 0.3s ease;
    margin-top: 15px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background-color: #5e0faa;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    box-shadow: 0 0 20px #7c3aed, 0 0 35px #a855f7;
    transform: scale(1.05);
    background: #7c3aed;
}

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

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

@keyframes floatTitle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}