* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0d1321;
    color: #cdd6e0;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: 70px;
}

a { color: inherit; text-decoration: none; }

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #0d1321;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e6ecf1;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: #cdd6e0;
}

.nav-links a:hover {
    color: purple;
}

.nav-icons {
    display: flex;
    gap: 18px;
    font-size: 1.1rem;
}

.nav-icons a:hover {
    color: purple;
}

.intro {
    max-width: 600px;
    padding: 100px 40px 60px;
}

.intro h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e6ecf1;
}

.intro h1 .accent {
    color: purple;
}

.cursor {
    display: inline-block;
    width: 3px;
    background: purple;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.intro p {
    margin-top: 20px;
    color: #8b98a9;
    line-height: 1.6;
}

.hi-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid purple;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hi-btn:hover {
    background: purple;
    color: #0d1321;
}

.about {
    padding: 60px 40px;
    max-width: 900px;
}

.about h2 {
    font-size: 1.8rem;
    color: #e6ecf1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.about p {
    margin-top: 25px;
    line-height: 1.8;
    color: #cdd6e0;
}

.about strong {
    color: purple;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 60px;
    max-width: 320px;
}

.skills li {
    list-style: none;
    color: #cdd6e0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills li::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid purple;
}

.projects{
    padding: 60px 40px;
    max-width: 900px;
}

.projects h2 {
    font-size: 1.8rem;
    color: #e6ecf1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.projects h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}


.cards-grid {
    grid-template-columns: repeat(3, 1fr);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.card {
    background: #141b2d;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    flex: 1 1 280px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icons {
    display: flex;
    gap: 14px;
}

.card-icons a {
    color: purple;
    display: flex;
}

.card-icons span {
    color: purple;
    display: flex;
}

.card h3 {
    margin-top: 20px;
    color: #b8c0f5;
    font-size: 1.2rem;
}

.card p {
    margin-top: 12px;
    color: #8b98a9;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card .tags {
    margin-top: 24px;
    color: #6b7a94;
    font-size: 0.85rem;
}

footer{
    background: #0d1321;
    text-align: center;
    color: #6b7a94;
    margin-top: 50px
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0 15px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    body {
        padding-top: 100px;
    }

    .intro, .about, .projects {
        padding: 40px 20px;
    }

    .intro h1 {
        font-size: 2rem;
    }
}

a.card h3, a.card p, a.card .tags {
    text-decoration: none;
}
