* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #0f0f14;
    color: #eaeaf0;
}


.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #6a5cff, #00d4ff);
    color: white;
    animation: fadeDown 1s ease;
}

.header h1 {
    font-size: 2.5rem;
}


.navbar {
    display: flex;
    justify-content: center;
    gap: 25px;
    background: #15151d;
    padding: 15px;
}

.navbar a {
    color: #eaeaf0;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #6a5cff;
    transition: width 0.3s;
}

.navbar a:hover {
    color: #6a5cff;
}

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


.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.post {
    background: #1a1a25;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.post:nth-child(2) {
    animation-delay: 0.2s;
}

.post img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s;
}

.post:hover img {
    transform: scale(1.05);
}

.post h2 {
    margin: 12px 0;
}

.post button {
    margin-top: 10px;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    background: #6a5cff;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106,92,255,0.4);
}


.sidebar {
    background: #1a1a25;
    border-radius: 12px;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 6px 0;
    color: #bdbdd6;
}


.footer {
    text-align: center;
    padding: 20px;
    background: #15151d;
    margin-top: 30px;
}


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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }
}
