body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f4ef;
    color: #364152;
}

/* Header */

header {
    background: #ffffff;
    color: #1f2937;
    text-align: center;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1e3a5f;
}

header h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 3px;
    background: #2f4f7a;
    margin: 16px auto 0;
    border-radius: 2px;
}

header p {
    margin-top: 0.8rem;
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Navigation */

nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #8ea8c3;
    padding: 0.9rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

nav button {
    background: none;
    border: none;
    color: #e5edf5;
    padding: 11px 22px;
    cursor: pointer;
    font-size: 15px;
    margin: 4px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

nav button:hover,
nav button.active {
    background: rgba(255,255,255,0.85);
    color: #2f4156;
}

/* Main Layout */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

section {
    display: none;
    padding: 1rem 0;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography  */

h2 {
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 12px;
    margin-top: 0;
    color: #1e3a5f;
    font-size: 1.7rem;
    font-weight: 700;
}

h3 {
    color: #111827;
    font-weight: 650;
}

p {
    line-height: 1.7;
    color: #374151;
}

ul {
    line-height: 1.8;
}

/* Home/Profile */

.profile-layout {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.profile-layout img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(47,65,86,0.15);
}

/* Buttons */

.button-link {
    display: inline-block;
    background: #1e3a5f;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.button-link:hover {
    background: #142842;
    transform: translateY(-2px);
}

/* Info Boxes */

.skills-box,
.course-card {
    background: #f1f7fc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.4rem;
    margin-top: 1.7rem;
}

/* Projects */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 2.2rem;
}

.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #bfd7ea;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.13);
}

.project-card h3 {
    margin-top: 0;
}

.project-card a {
    color: #1e3a5f;
    font-weight: 700;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

/* Contact */

.contact-links a {
    display: block;
    margin: 16px 0;
    color: #1e3a5f;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Placeholder Text */

.placeholder {
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

/* Mobile */

@media (max-width: 700px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1.4rem;
    }

    .profile-layout {
        text-align: center;
        justify-content: center;
    }

    .profile-layout img {
        width: 165px;
        height: 165px;
    }

    nav button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

.hero-banner {
    background-image: linear-gradient(rgba(47, 65, 86, 0.45), rgba(47, 65, 86, 0.45)), url("images/horseshoe.png");
    width: 100%;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
}

.hero-content {
    max-width: 620px;
    color: white;
}

.hero-content h2 {
    border-bottom: none;
    color: white;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hero-content p {
    color: white;
    font-size: 1.15rem;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.25rem;
}

.hero-buttons {
    margin-top: 1.5rem;
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #2f4156;
    margin-left: 10px;
}
