/* --- Global Variables --- */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
}

/* --- Base Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    /* Enables smooth scrolling when clicking nav links */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding-bottom: 3rem;
}

nav {
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.15);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 2rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero .greeting {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--white);
}

/* --- Main Content --- */
main {
    max-width: 900px;
    margin: -2rem auto 0; /* Pulls content up slightly over the header */
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* --- Experience & Education --- */
.job, .degree {
    margin-bottom: 2rem;
}

.job:last-child, .degree:last-child {
    margin-bottom: 0;
}

.job h3, .degree h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.job h4, .degree h4 {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-style: italic;
    font-size: 1rem;
}

.job ul {
    margin-left: 1.5rem;
}

.job ul li {
    margin-bottom: 0.5rem;
}

/* --- Skills --- */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.skill-list li {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: var(--white);
    margin-top: 3rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .nav-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
}