/* ---------- General ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0a0a0a;
    color: white;
    font-family: Arial, sans-serif;
}


/* ---------- Navigation ---------- */

#nav-bar {
    height: 65px;
    padding: 0 8%;
    background: #151515;

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

    border-bottom: 1px solid #292929;
}

#nav-logo {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;

    transition: color 0.2s ease;
}

.nav-item:hover {
    color: white;
}


/* ---------- Main Content ---------- */

#main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 30px;
}


/* ---------- About Me ---------- */

#about-me {
    display: flex;
    align-items: center;
    gap: 60px;

    background: #111;
    padding: 50px;
    flex-direction: row-reverse;
    border: 1px solid #252525;
    border-radius: 20px;
}


/* ---------- Photo ---------- */

.ayush-photo {
    width: 220px;
    height: 220px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #333;
}


/* ---------- Text ---------- */

#about-me-text {
    flex: 1;
}

h2 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 32px;
    color: white;
}

p {
    margin: 0;

    color: #aaa;
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- Projects ---------- */

#projects-section {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 30px 100px;
}

#projects-section h2 {
    margin-bottom: 30px;
}

#project-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid #252525;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: #555;
    transform: translateY(-3px);
}

.project-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #1a1a1a;
}

.project-card-name {
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    font-weight: bold;
}


/* ---------- Phone ---------- */

@media (max-width: 700px) {

    #nav-bar {
        padding: 0 20px;
    }

    .nav-content {
        gap: 15px;
    }

    #main-content {
        padding: 50px 20px;
    }

    #about-me {
        flex-direction: column;
        text-align: center;

        padding: 35px 25px;
        gap: 30px;
    }

    .ayush-photo {
        width: 160px;
        height: 160px;
    }

    h2 {
        font-size: 27px;
    }

    p {
        font-size: 16px;
    }
}