/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation Styles */
.main-nav {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
    outline: none;
}

/* Desktop Navigation - Always visible on desktop */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

/* Mobile Navigation Toggle */
.nav-mobile-toggle {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile-toggle {
        display: none;
    }
}

.nav-hamburger {
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.nav-hamburger::-webkit-details-marker {
    display: none;
}

.nav-hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Mobile menu - hidden by default, shown when details is open */
.nav-mobile-toggle .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    gap: 0;
}

.nav-mobile-toggle[open] .nav-links {
    display: flex;
}

.nav-mobile-toggle .nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.nav-mobile-toggle .nav-links li:last-child {
    border-bottom: none;
}

.nav-mobile-toggle .nav-links a {
    padding: 1rem 0;
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Adjust nth-child selector to account for nav element */
body > section:nth-child(even) {
    background: var(--bg-alt);
}

/* Alternative: target sections directly */
section:nth-of-type(even) {
    background: var(--bg-alt);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Introduction Section */
#introduction {
    text-align: center;
    padding: 5rem 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.intro-contact {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.intro-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.intro-contact a:hover {
    text-decoration: underline;
}

/* Professional Summary Section */
.summary-content {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.summary-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Content Lists */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.item-header {
    margin-bottom: 1rem;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.item-company {
    color: var(--primary-color);
    font-weight: 600;
}

.item-date {
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.item-description ul {
    list-style: none;
    padding-left: 0;
}

.item-description li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.item-description li:last-child {
    margin-bottom: 0;
}

.item-description li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.item-description strong {
    color: var(--text-color);
}

/* Core Competencies Section */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.competency-category {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.competency-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.competency-category p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    #introduction {
        padding: 3rem 0;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .summary-content,
    .content-item,
    .competency-category {
        padding: 1.5rem;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

    .intro-contact {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .summary-content,
    .content-item,
    .competency-category {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
}
