:root {
    --bg1: #1a0d20;
    --bg2: #2a1631;
    --text: #f5f5f5;
    --muted: #bfb6c7;
    --accent: #f0cd4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, var(--bg2), var(--bg1));
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(900px, 90%);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.logo {
    font-weight: 700;
}

.nav-links a {
    margin-left: 15px;
    color: var(--text);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

#hero span {
    color: var(--accent);
}

#hero p {
    max-width: 600px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 1.2rem;
}

/* BUTTON */
.button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: #111;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
}

/* SECTIONS */
section {
    padding: 120px 10%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 40px;
}

/* PROJECTS */
.projects {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project h2 {
    font-size: 2rem;
}

.project h3 {
    color: var(--accent);
    margin: 10px 0 20px;
}

.project p {
    color: var(--muted);
}

/* FEATURED */
.featured {
    border: 1px solid rgba(240, 205, 77, 0.3);
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

/* IMAGES */
.image-grid {
    display: grid;
    gap: 10px;
}

.image-grid img {
    width: 100%;
    border-radius: 12px;
    transition: 0.3s;
}

.image-grid img:hover {
    transform: scale(1.03);
}

/* CONTACT */
#contact {
    text-align: center;
}

#contact h2 {
    margin-bottom: 15px;
}

#contact p {
    margin-bottom: 18px;
}

#contact .button {
    margin-top: 12px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .project {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }
}