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

:root {
    --bg: #050505;
    --card: #0f0f12;
    --accent: #ffcc00;
    --accent-strong: #ff0048;
    --text: #f8f8ff;
    --muted: #b5b5c3;
    --border: rgba(255, 255, 255, 0.08);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(255, 0, 72, 0.15), transparent 50%),
        radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.18), transparent 35%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    width: 100px;
    display: block;
}
.fa-html5 {
    color: orange;
}
.fa-css {
    color: cyan;
}
.fa-js {
    color: yellow;
}
.fa-python {
    color: #306998;
}

a {
    color: inherit;
}

/* NAVIGATION -------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.75);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--text);
}

/* LAYOUT SECTIONS --------------------------------------------- */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.section h2 {
    font-size: clamp(1.75rem, 2vw, 2.1rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* HERO -------------------------------------------------------- */
.hero {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(120deg, rgba(255, 0, 72, 0.15), rgba(5, 5, 5, 0.9) 50%);
    box-shadow: 0 40px 90px rgba(255, 0, 72, 0.2);
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#pfp {
    width: clamp(160px, 18vw, 220px);
    border-radius: 40%;
    border: 4px solid var(--accent);
    box-shadow: 0 30px 60px rgba(255, 0, 72, 0.35);
}

.intro {
    flex: 1;
    min-width: 260px;
}

.intro h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.intro p {
    color: var(--muted);
    max-width: 520px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent);
    color: #111;
    border: none;
    cursor: pointer;
    margin-right: 0.75rem;
    margin-top: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.35);
}

.btn.outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* PROJECTS ---------------------------------------------------- */
.projects-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 204, 0, 0.4);
}

.project-card img {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card p {
    color: var(--muted);
}

.project-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.project-card a:hover {
    color: yellow;
}

/* SKILLS ------------------------------------------------------ */
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skills-list li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    background-color: black;
}

.skills-list li:hover {
    border-color: rgba(255, 204, 0, 0.4);
}

/* CONTACT ----------------------------------------------------- */
.contact-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid rgba(255, 204, 0, 0.7);
}

/* FOOTER ------------------------------------------------------ */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.65);
}

.site-footer .container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    color: var(--muted);
}

.site-footer a {
    text-decoration: none;
}

/* RESPONSIVE -------------------------------------------------- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero {
        padding: 2rem;
    }

    .section {
        padding: 2rem;
    }
}