/* ======================== */
/* Base Styles              */
/* ======================== */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Roboto, sans-serif;
    margin: 0;
    
    /* CHANGED: Reduced Left/Right padding to 8px (was 32px all around). 
       Kept 32px on Top/Bottom for vertical breathing room. */
    padding: 32px 8px; 
    
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
    
    /* ADDED: Ensures content doesn't trigger horizontal scrollbars */
    overflow-x: hidden; 
}

/* ======================== */
/* Resume Container         */
/* ======================== */
.resume-container {
    /* CHANGED: Switched to 100% to fill the screen width */
    width: 100%; 
    max-width: 100%; 
    
    margin: 0 auto;
    
    /* CHANGED: Removed the extra 16px side padding here since body handles the edge gap */
    padding: 0; 
    
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ======================== */
/* Header                   */
/* ======================== */
.site-header {
    background: var(--content-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    justify-content: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--bubble-shadow), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    /* CHANGED: Allowed header content to stretch wider */
    max-width: 100%; 
}

.header-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.header-text h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    color: var(--text-color);
}

.contact-line, .email-link {
    display: block;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.email-link {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--hover-color);
}

/* ======================== */
/* Sections                 */
/* ======================== */
section {
    background: var(--content-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 24px;
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
}

section + section {
    border-top: 1px solid var(--border-color);
}

section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* ======================== */
/* Skills and Languages     */
/* ======================== */
.skills-list, .languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-list span, .languages-list span {
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
}

/* ======================== */
/* Jobs and Education       */
/* ======================== */
.job, .education-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.job:last-child, .education-item:last-child {
    border-bottom: none;
}

.job-left, .edu-left {
    flex: 1 1 70%;
}

.job-dates, .education-dates {
    flex: 1 1 30%;
    text-align: right;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* ======================== */
/* Lists                    */
/* ======================== */
ul {
    padding-left: 20px;
    margin: 8px 0 0 0;
}

li {
    margin-bottom: 6px;
}

/* ======================== */
/* Download Button          */
/* ======================== */
.download-wrapper {
  text-align: center;
  margin: 20px 0;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background-color: #333;
}

/* ======================== */
/* Footer                   */
/* ======================== */
.site-footer {
    text-align: center;
    padding: 16px 0;
    color: var(--secondary-text);
    border-top: 1px solid var(--border-color);
}

/* ======================== */
/* Media Queries            */
/* ======================== */
@media (max-width: 768px) {
    /* ADDED: Tighter body padding on mobile for max screen usage */
    body {
        padding: 16px 4px; 
    }

    .job-left, .edu-left, .job-dates, .education-dates {
        flex: 1 1 100%;
        text-align: left;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }
}
