/* ===== Global Styles ===== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Century Gothic, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}

/* ===== Header ===== */

header {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.4rem;
}

header p {
    margin: 5px 0 20px;
    font-size: 1.4rem;
    opacity: 0.9;
}

/* ===== Navigation ===== */

nav {
    background: #7c094c;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    padding: 8px 14px;
    display: inline-block;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 1.1rem;
}

nav a:hover {
    background-color: #5a0738;
    text-decoration: none;
}

/* ===== Sections ===== */

section {
    max-width: 950px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-top: 0;
    margin-bottom: 20px;   
}

section h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

/* ===== Lists ===== */

ul {
    margin-top: 10px;
    padding-left: 25px;
}

li {
    margin-bottom: 5px;
}

/* ===== About Section ===== */

img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 20px auto;
    object-fit: cover;
    display: block;
}

.about {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.about img {
    margin: 0;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    max-width: none;
}

/* ===== Job Section ===== */

.job {
    margin-bottom: 50px;
}

.job:last-child {
    margin-bottom: 0;
}

.company {
    margin: 0;
    font-weight: 600;
    color: #444;
}

.dates {
    margin-top: 2px;
    margin-bottom: 15px;
    color: #777;
    font-style: italic;
}

/* ===== Education ===== */

.education-item {
    margin-bottom: 25px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-school {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.education-degree {
    margin: 0;
    color: #555;
}

.education-dates {
    color: #777;
    font-style: italic;
}

/* ===== Projects Grid ===== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 10px 0;
    color: #7c094c;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #333;
}

.project-card a {
    display: inline-block;
    padding: 8px 14px;
    background: #7c094c;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.project-card a:hover {
    background: #5a0738;
}

/* ===== Footer ===== */

footer {
    text-align: center;
    padding: 25px;
    color: #555;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {

    .about {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    section {
        margin: 20px;
        padding: 25px;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.1rem;
    }
}