/* ---------------- Base page layout ---------------- */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, main, footer {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

/* ---------------- Header ---------------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav i {
    font-size: 1.3rem;
}

/* ---------------- Main / Sections ---------------- */
main, section {
    display: flex;
    flex-direction: column;
}

main {
    gap: 4rem;
}

section {
    gap: 1rem;
}

/* ---------------- Intro ---------------- */
.intro-header {
    padding-top: 0.25rem;
}

.intro-description {
    max-width: 700px;
}

/* ---------------- Contact links ---------------- */
.links-container {
    display: flex;
    max-width: 500px;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.link-arrow {
    color: var(--color-link);
    transform: rotate(-45deg);
}

/* ---------------- Color picker section ---------------- */
.color-div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ---------------- Skills table ---------------- */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* ---------------- Project cards grid ---------------- */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ---------------- Inner wrapper: tech‑stack + image ---------------- */
.project-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

/* Left side: text + buttons */
.project-left {
    flex: 2;
    min-width: 200px;
}

/* Right side: image */
.project-right {
    flex: 1;
    max-width: 300px;
}

/* ---------------- Tech stack styling ---------------- */
.tech-stack {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.tech-stack div {
    padding: 0.2rem 0.6rem;
    background: #f3f3f3;
    border-radius: var(--border-radius-small);
}

.tech-stack p {
    font-size: 0.8rem;
    margin: 0;
}

/* ---------------- Project link (GitHub icon) ---------------- */
.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
}

/* ---------------- Image container styling ---------------- */
.project-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 650px) {
    .project-content {
        flex-direction: column;
    }
}

/* ---------------- Footer ---------------- */
footer {
    text-align: center;
    padding: 2rem 0 1rem;
}
