/* 
 * Simple and modular CSS for Sam Rodriguez's website
 * Following the principles of simplicity, modularity, and semantic structure
 */

/* ===== BASE STYLES ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

header h1 {
    text-align: center;
    margin-bottom: 1em;
}

main h2 {
    text-align: center;
    margin-bottom: 0.8em;
}

main section {
    text-align: center;
}

p {
    margin-bottom: 1em;
}

/* ===== LAYOUT COMPONENTS ===== */
header, main, footer {
    padding: 1em 0;
}

footer {
    margin-top: 2em;
    border-top: 1px solid #eee;
    padding-top: 1em;
    font-size: 0.9em;
    text-align: center;
}

/* ===== NAVIGATION ===== */
nav {
    text-align: center;
}

.nav-list {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #0066cc;
}

.nav-link:hover {
    text-decoration: underline;
}

/* ===== PROFILE IMAGE ===== */
.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 20px auto;
    border: 3px solid #eee;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 600px) {
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
} 