body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    overflow-x: hidden;
}

/* animated background */
.bg {
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #38bdf8 2px, transparent 3px);
    background-size: 60px 60px;
    animation: move 25s linear infinite;
    opacity: 0.12;
    z-index: 0;
}

@keyframes move {
    from { transform: translate(0,0); }
    to { transform: translate(-200px,-200px); }
}

/* header */
header {
    text-align: center;
    padding: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #38bdf8;
    text-shadow: 0 0 12px #38bdf8;
    position: relative;
    z-index: 2;
}

/* subtitle */
.subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: -10px;
    position: relative;
    z-index: 2;
}

/* container grid */
.container {
    width: 85%;
    margin: auto;
    padding: 30px 0;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

    position: relative;
    z-index: 2;
}

/* project card */
.card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56,189,248,0.2);
    padding: 20px;
    border-radius: 15px;

    transition: 0.4s;
    animation: fadeUp 0.8s ease;
}

/* fade animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* hover effect */
.card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 0 25px rgba(56,189,248,0.5);
    border-color: #38bdf8;
}

/* highlight card */
.highlight {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

/* headings */
h2 {
    color: #38bdf8;
    margin-bottom: 10px;
}

/* text */
p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* github link button */
a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

/* hover button */
a:hover {
    background: white;
    transform: scale(1.1);
}

/* footer */
footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}