/* Design Variables */
:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --primary-color: #007acc;
    --link-color: #005999;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #4fc3f7;
    --link-color: #81d4fa;
    --border-color: #333333;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Flexbox Header with Side-by-Side Photo Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-text {
    flex: 1;
}

header h1 {
    margin: 0 0 5px 0;
    font-size: 2.3rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
}

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

/* Profile Image Styles */
.image-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 25px 0;
}

/* Main Structural Layouts */
section {
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    font-size: 1.4rem;
}

.job, .edu-item {
    margin-bottom: 25px;
}

.job h3, .edu-item h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
}

.date {
    font-weight: normal;
    font-size: 0.95rem;
    opacity: 0.8;
}

.company, .school {
    margin: 5px 0;
    font-style: italic;
    font-weight: 500;
}

ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

ul li {
    margin-bottom: 6px;
}

/* Interactive Badges Grid */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list span {
    background: var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Theme Toggle Button */
.theme-container {
    text-align: right;
    max-width: 800px;
    margin: 0 auto 10px auto;
}

#theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

#theme-toggle:hover {
    opacity: 0.9;
}

/* Responsive design adjustments for mobile viewports */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .job h3, .edu-item h3 {
        flex-direction: column;
        gap: 5px;
    }
}