* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0f0f0f;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Thin racing-style background lines */
body::before,
body::after {
    content: "";
    position: fixed;
    height: 6px;
    width: 900px;
    background: #ff7a00;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: 40px;
    left: -420px;
    transform: rotate(38deg);
}

body::after {
    bottom: 160px;
    right: -300px;
    transform: rotate(-22deg);
}

.container{
    width:min(1000px,90%);
    margin:0 auto;
    padding:170px 0 100px;
}

.project-container {
    width: min(1300px, 90%);
    margin: 0 auto;
    padding: 170px 0 100px;
}

h1 {
    font-size: clamp(48px, 8vw, 90px);
    margin: 0 0 20px;
    line-height: 1;
}

p {
    font-size: 20px;
    line-height: 1.6;
    color: #dddddd;
}

h2 {
    margin-top: 70px;
    font-size: 34px;
}

ul {
    padding-left: 22px;
    font-size: 20px;
    line-height: 1.8;
}

a {
    color: #ff7a00;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Optional project-card style for later */
.project {
    background: #181818;
    border: 1px solid #333;
    border-left: 5px solid #ff7a00;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

html{
    scroll-behavior:smooth;
}

/* ---------- NAVBAR ---------- */

nav{
    position:fixed;

    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 60px;

    background:rgba(15,15,15,.85);

    backdrop-filter:blur(12px);

    z-index:1000;
}

.logo{
    color:#ff7a00;
    font-size:28px;
    font-weight:bold;
}

.nav-links{
    display:flex;
    gap:35px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.25s;
}

.nav-links a:hover{
    color:#ff7a00;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #1b1b1b;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid #333;

    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border: 1px solid #ff7a00;
}

.project-card h3 {
    color: #ff7a00;
    margin-bottom: 15px;
}

.project-card span {
    display: inline-block;
    margin-top: 20px;
    color: #ff7a00;
    font-weight: bold;
}

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

    nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 18px;
    }
}

.logo a {
    color: #ff7a00;
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

.all-projects {
    margin-top: 40px;
}

.skill-group {
    margin-top: 30px;
}

.skill-group h3 {
    color: #ff7a00;
    margin-bottom: 15px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 10px 16px;
    color: #f5f5f5;
    font-weight: bold;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    margin-top: 80px;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-text {
    flex: 0.8;
}

.project-image {
    flex: 1.2;
}

.project-image img {
    width: 100%;
    display: block;

    border: 1px solid #333;
    border-radius: 12px;
}

@media (max-width: 800px) {
    .project-row,
    .project-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .project-text,
    .project-image {
        width: 100%;
    }
}
