* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-accent: #2c3e50;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Brand colors */
    --blue-primary: #3498db;
    --blue-dark: #2c3e50;
    --blue-darker: #34495e;
    --green-primary: #27ae60;
    --green-light: #d4edda;
    --gray-light: #f8f9fa;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-accent: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-accent: #58a6ff;
    --border-color: #30363d;
    --shadow: rgba(0, 0, 0, 0.5);
    --blue-primary: #58a6ff;
    --green-primary: #3fb950;
    --green-light: #0d4720;
    --gray-light: #21262d;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-accent);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--blue-primary);
    color: white;
    border-color: var(--blue-primary);
}

.theme-toggle::before {
    content: "🌞";
    font-size: 16px;
}

[data-theme="dark"] .theme-toggle::before {
    content: "🌙";
}

header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-darker) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

header a {
    color: var(--blue-primary);
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: white;
}

header .subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: white;
}

header .experience {
    font-size: 1.1rem;
    opacity: 0.8;
    color: white;
}

nav {
    background: var(--blue-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    padding: 2rem 0;
}

section {
    background: var(--bg-secondary);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-accent);
}

.company {
    color: var(--blue-primary);
    font-weight: 500;
}

.duration {
    color: var(--text-secondary);
    font-style: italic;
}

.job-description {
    margin-top: 0.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    background: var(--gray-light);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--blue-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.project {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: 6px;
    border-left: 4px solid var(--green-primary);
    transition: background-color 0.3s ease;
}

.project h3 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.project p {
    color: var(--text-primary);
}

.certifications-list {
    list-style: none;
}

.certifications-list li {
    background: var(--green-light);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--green-primary);
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-item h3 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
}

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

footer {
    background: var(--blue-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }
}


/* Job description bullet styles */
.job-description ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.job-description li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.5;
}

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

/* Add extra space above the About Me section */
section:first-child {
    margin-top: 0.75rem;
}
