/* ===== Color Variables ===== */
:root {
  --soft-blue: hsl(252deg 66% 62%);
  --soft-orange: hsl(28deg 89% 67%);
  --very-soft-red: hsl(0deg 79% 79%);
  --soft-red: hsl(7deg 77% 66%);
  --moderate-cyan: hsl(172deg 46% 57%);
  --very-dark-magenta: hsl(314deg 46% 23%);
  --very-dark-gray: hsl(0deg 0% 1%);
  --dark-grayish-orange: hsl(30deg 5% 45%);
  --very-pale-orange: hsl(28deg 100% 97%);
  --white: hsl(0deg 0% 100%);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500; /* default font weight is 400 */
    font-size: 1.25rem; /* browser dependent most browsers use 1rem = 16px */
    background-color: var(--very-pale-orange);
    color: var(--very-dark-gray);
    padding: 1.8rem 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
}

li h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

li p {
    color: #f5f5f5;
    margin-top: 0.1rem;
    max-width: 15rem;
}

/* ===== Layout Containers ===== */
.container {
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 70rem;
}

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

/* ===== Hero Section ===== */
.hero {
    margin: 4.5rem auto 5rem;
    text-align: center;
}

.hero p {
    margin: auto;
    max-width: 55ch;
    font-weight: 400;
}

/* ===== Buttons ===== */
.view-resume {
    background-color: var(--very-dark-gray);
    color: var(--very-pale-orange);
    border-radius: 2rem;
    padding: 0.875rem 2.8125rem;
    font-size: 1rem;
}

/* ===== Profile Section ===== */
.profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.profile > div {
    margin-left: 6rem;
    margin-top: 1rem;
    max-width: 30rem;
}

.profile p {
    margin-top: 2rem;
    font-weight: 400;
}

/* ===== Work Section ===== */
.work {
    margin: 0 auto;
}

.work-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.work-card {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.work-title {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    margin: 1rem;
}

/* ===== Skills Section ===== */
#main ul {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    height: 23rem;
    color: white;
    margin-bottom: 8rem;
}

#main li {
    position: relative;
    padding: 0 1.2rem 1.2rem 1.2rem;
    border-radius: 0.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    font-size: 1.5rem;
    font-weight: 700;
    background-repeat: no-repeat;
    background-position: top 1.5rem right 1.5rem;
    min-height: 0;
}

/* Skill item backgrounds and positions */
#main li:first-child {
    background-color: var(--soft-blue);
    background-image: url("./skill-icons/web-development.svg");
    grid-row: span 2;
    grid-column: span 2;
}

#main li:nth-child(2) {
    background-color: var(--soft-orange);
    background-image: url('./skill-icons/git.svg');
}

#main li:nth-child(3) {
    background-color: var(--very-soft-red);
    background-image: url('./skill-icons/mysql.svg');
}

#main li:nth-child(4) {
    background-color: var(--moderate-cyan);
    background-image: url('./skill-icons/data-analytics.svg');
    grid-column: span 2;
}

#main li:nth-child(5) {
    background-color: var(--soft-red);
    background-image: url('./skill-icons/devops.svg');
    grid-column: span 2;
}

#main li:last-child {
    background-color: var(--very-dark-magenta);
    background-image: url('./skill-icons/latex.svg');
    grid-column: span 2;
}

/* ===== Footer ===== */
.footer {
    background: var(--very-pale-orange);
    color: var(--very-dark-gray);
    border-top: 1px solid #ececec;
    padding: 2rem 0 1.2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 70rem;
    margin: 0 auto;
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a img {
    filter: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.18s, box-shadow 0.18s;
}

.footer-social a:hover img {
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.footer-contact a {
    color: var(--very-dark-gray);
    text-decoration: none;
    font-size: 1.08rem;
    border-bottom: 1px dotted #bbb;
    transition: border-color 0.18s;
}

.footer-contact a:hover {
    border-bottom: 1px solid var(--soft-blue);
}

.footer-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.97rem;
    opacity: 0.7;
    gap: 0.2rem;
}
