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

:root {
    /* Light theme colors */
    --bg-gradient: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --resume-bg: #fff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --accent-color: #00bcd4;
    --secondary-accent: #ba68c8;
    --border-color: #e0e0e0;
    --card-bg: #f8f9fa;
    --hover-bg: #f1f3f4;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --resume-bg: #2d3748;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --accent-color: #63b3ed;
    --secondary-accent: #b794f6;
    --border-color: #4a5568;
    --card-bg: #4a5568;
    --hover-bg: #718096;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.resume {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--resume-bg);
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 30px;
    border: 3px solid #333;
}

.name-title h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--accent-color), #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.3s ease;
}

.name-title p {
    font-size: 1.2em;
    color: var(--text-secondary);
}

.contact-info {
    margin-left: auto;
    text-align: right;
}

.contact-info p {
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4dd0e1;
    text-decoration: underline;
}

section {
    margin-bottom: 30px;
}

.portfolio-highlight {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px var(--shadow);
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-button {
    align-self: flex-start;
    background: linear-gradient(120deg, var(--accent-color), var(--secondary-accent));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

h2 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 5px;
    font-weight: bold;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.summary p {
    text-align: justify;
    font-size: 1.1em;
}

.project {
    margin-bottom: 25px;
}

.project h3 {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-tech {
    font-style: italic;
    color: var(--secondary-accent);
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project p {
    text-align: justify;
}

.education-item h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.education-item p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-grid li {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.skills-grid li:hover {
    background-color: var(--accent-color);
    color: white;
}

.languages-certifications p {
    margin-bottom: 10px;
}

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

.certifications li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.certifications li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.theme-toggle:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(360deg);
}

.coursework p {
    text-align: justify;
}

.interests p {
    text-align: justify;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .contact-info {
        margin-left: 0;
        text-align: center;
    }

    .theme-toggle {
        display: block;
        margin: 10px auto;
    }

    .skills-grid {
        gap: 6px 8px;
    }

    .skills-grid li {
        padding: 3px 6px;
        font-size: 0.8em;
    }

    .portfolio-button {
        align-self: stretch;
        text-align: center;
    }
}
