@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================
   CSS VARIABLES
===================================================== */
:root {
    --primary:        #1a2c4e;
    --primary-mid:    #243d6b;
    --accent:         #3b7dd8;
    --accent-hover:   #2563c0;
    --gold:           #e8a838;
    --sidebar-bg:     #1a2c4e;
    --sidebar-border: rgba(255,255,255,0.08);
    --body-bg:        #f0f4fa;
    --card-bg:        #ffffff;
    --border:         #e2e8f0;
    --text-dark:      #1e293b;
    --text-mid:       #475569;
    --text-light:     #94a3b8;
    --sidebar-text:   #cbd5e1;
    --sidebar-head:   #ffffff;
    --success:        #16a34a;
    --error:          #dc2626;
    --radius:         12px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:      0 6px 18px rgba(0,0,0,0.10);
    --shadow-lg:      0 16px 40px rgba(0,0,0,0.14);
    --transition:     0.22s ease;
}

/* =====================================================
   BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--body-bg);
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 16px;
}

p { margin: 0; font-size: 14px; line-height: 1.6; }

a { color: inherit; text-decoration: none; }

/* =====================================================
   MAIN LAYOUT
===================================================== */
.resume-container {
    display: flex;
    flex-direction: row;
    max-width: 1140px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* =====================================================
   NAVIGATION
===================================================== */
.nav-tabs {
    position: absolute;
    top: 18px;
    right: 22px;
    display: flex;
    gap: 8px;
    z-index: 200;
    padding: 6px 8px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.nav-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(59,125,216,0.22);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-tabs a:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 8px 18px rgba(59,125,216,0.30);
}

.nav-tabs a.active-tab {
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(26,44,78,0.30);
}

.download-icon { font-size: 16px; margin-right: 5px; }

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
    width: 32%;
    min-width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Sidebar Header --- */
.sidebar-header {
    background: linear-gradient(160deg, #1a2c4e 0%, #1f3663 100%);
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-border);
}

.profile-picture {
    margin-bottom: 16px;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: transform var(--transition), box-shadow var(--transition);
}

.profile-picture img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.sidebar-header h1 {
    font-size: 19px;
    font-weight: 700;
    color: var(--sidebar-head);
    margin: 0 0 6px;
    line-height: 1.2;
}

.sidebar-header .header-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: 0.4px;
}

.sidebar-header .header-roles {
    font-size: 12px;
    color: rgba(203,213,225,0.75);
    line-height: 1.5;
}

/* --- Sidebar Sections --- */
.sidebar-section {
    padding: 18px 22px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-section h2 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px;
}

/* --- Contact Items --- */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 13px;
    color: var(--sidebar-text);
}

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

.contact-item i {
    width: 18px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 13px;
}

.contact-item a {
    color: #90c2f5;
    font-weight: 500;
    transition: color var(--transition);
}

.contact-item a:hover { color: #fff; }

/* --- Skill Tags --- */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag {
    display: inline-block;
    background: rgba(59,125,216,0.18);
    color: #a8c8f0;
    border: 1px solid rgba(59,125,216,0.28);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.interest-tag {
    display: inline-block;
    background: rgba(232,168,56,0.14);
    color: #f0c874;
    border: 1px solid rgba(232,168,56,0.25);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Education Items --- */
.edu-item {
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 2px solid rgba(59,125,216,0.4);
}

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

.edu-item h3 {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 3px;
    line-height: 1.4;
}

.edu-item p {
    font-size: 11px;
    color: rgba(203,213,225,0.65);
}

/* =====================================================
   MAIN CONTENT
===================================================== */
.main-content {
    flex: 1;
    padding: 80px 32px 40px;
    background: var(--body-bg);
    min-width: 0;
    overflow-x: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.content-fade {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
}

.content-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* =====================================================
   SECTION HEADERS
===================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-header i {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.section-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* =====================================================
   TIMELINE
===================================================== */
.timeline-section { position: relative; }

.timeline-list {
    position: relative;
    padding-left: 28px;
}

/* vertical line */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* dot on timeline line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--body-bg);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: #b8d0f0;
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 4px;
    min-width: 0;
}

.timeline-role {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    min-width: 0;
    flex: 1 1 auto;
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59,125,216,0.10);
    border-radius: 6px;
    padding: 3px 9px;
    white-space: nowrap;
}

.timeline-company {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.timeline-company i {
    font-size: 11px;
    margin-right: 4px;
    color: var(--text-light);
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* =====================================================
   STATS ROW
===================================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-mid);
    font-weight: 500;
    line-height: 1.3;
}

/* =====================================================
   RESUME ACTION
===================================================== */
.resume-action {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.resume-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(59,125,216,0.30);
}

.resume-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,125,216,0.40);
}

.resume-btn i { margin-right: 8px; }

/* =====================================================
   PROJECTS
===================================================== */
.projects-section {}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* --- Project Card --- */
.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* --- Hero Image with Overlay --- */
.project-hero-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.project-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.project-hero-wrap:hover .project-hero-img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10,18,36,0.88) 0%,
        rgba(10,18,36,0.45) 40%,
        rgba(10,18,36,0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 26px;
    pointer-events: none;
}

.project-number {
    font-size: 42px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    position: absolute;
    top: 16px;
    right: 22px;
    line-height: 1;
    letter-spacing: -2px;
    font-style: italic;
}

.project-hero-overlay h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.30);
}

.project-hero-overlay .project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: fit-content;
}

.project-tag i { font-size: 10px; }

/* --- Thumbnail Strip --- */
.project-thumb-strip {
    display: flex;
    gap: 4px;
    padding: 4px 4px 0;
    background: var(--card-bg);
}

.project-thumb {
    flex: 1;
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.project-thumb:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.project-thumb:hover::after {
    border-color: var(--accent);
}

/* --- Project Body --- */
.project-body {
    padding: 18px 24px 22px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   CONTACT
===================================================== */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 24px;
}

.contact-intro h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.contact-intro p {
    font-size: 14px;
    color: var(--text-mid);
}

.contact-container {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    padding: 30px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,125,216,0.12);
    background: #fff;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--accent);
    color: white;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(59,125,216,0.28);
    margin-top: 4px;
}

.contact-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59,125,216,0.36);
}

.contact-form button i { margin-right: 8px; }

.contact-container.success {
    background: #f0fdf4;
    border-color: #86efac;
}

.message-box {
    margin-top: 14px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    display: none;
    text-align: center;
    border-radius: 8px;
}

.message-box.success {
    color: var(--success);
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.message-box.error {
    color: var(--error);
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

/* --- AI Write Panel --- */
.message-field-wrapper {
    position: relative;
}

.message-field-wrapper textarea {
    padding-bottom: 44px;
}

.ai-write-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 3px 10px rgba(99,102,241,0.30);
    z-index: 2;
}

.ai-write-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(99,102,241,0.40);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ai-write-btn i { font-size: 11px; }

.ai-panel {
    background: #fafaff;
    border: 1.5px solid #e0e0f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: 0 4px 16px rgba(99,102,241,0.10);
    animation: aiSlideIn 0.25s ease;
}

@keyframes aiSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.ai-panel-header i { margin-right: 6px; font-size: 12px; }

.ai-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.ai-panel-close:hover { opacity: 1; }

.ai-panel-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-panel-body .form-group { gap: 5px; }

.ai-panel-body label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
}

.ai-panel-body input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
    box-sizing: border-box;
    transition: border-color var(--transition);
}

.ai-panel-body input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}

.ai-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-chip {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
}

.ai-chip:hover {
    border-color: #a5b4fc;
    color: #6366f1;
}

.ai-chip.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #6366f1;
    font-weight: 600;
}

.ai-generate-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(99,102,241,0.30);
    transition: transform var(--transition), box-shadow var(--transition);
}

.ai-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.40);
}

.ai-generate-btn i { font-size: 12px; }

/* =====================================================
   LIGHTBOX
===================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.lightbox.active {
    background: rgba(0,0,0,0.90);
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.50);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 5001;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 5001;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =====================================================
   DOWNLOAD MODAL
===================================================== */
.download-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,18,36,0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 24px;
}

.download-modal.active {
    opacity: 1;
    pointer-events: all;
}

.download-modal-card {
    background: var(--card-bg);
    border-radius: 18px;
    width: 92%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.download-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background var(--transition);
}

.download-modal-close:hover { background: rgba(0,0,0,0.55); }

/* --- Preview Area --- */
.download-preview-wrap {
    position: relative;
    height: 320px;
    background: #e8ecf2;
    overflow: hidden;
}

.download-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    filter: grayscale(0.4) brightness(0.92);
    transform: scale(1);
    transform-origin: top center;
}

.download-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,44,78,0.06) 0%,
        rgba(26,44,78,0.04) 60%,
        rgba(26,44,78,0.25) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px 16px;
    pointer-events: none;
}

.download-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220,38,38,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(220,38,38,0.30);
}

.download-preview-badge i { font-size: 12px; }

/* --- Modal Body --- */
.download-modal-body {
    padding: 22px 26px 26px;
    text-align: center;
}

.download-modal-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-meta i { font-size: 11px; }

.download-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirm-btn,
.cancel-btn {
    padding: 11px 24px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.confirm-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(59,125,216,0.35);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.confirm-btn:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(59,125,216,0.45);
}

.confirm-btn i { font-size: 13px; }

.cancel-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-mid);
}

.cancel-btn:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

/* =====================================================
   RESPONSIVE — TABLET
===================================================== */
@media (max-width: 1024px) {
    .resume-container { flex-direction: column; }

    .sidebar { width: 100%; }

    .sidebar-header { padding: 24px 20px 20px; }

    .profile-picture img {
        width: 96px;
        height: 96px;
    }

    .main-content { padding: 20px; }

    .nav-tabs {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 0;
        border-radius: 0;
        border-top: 1px solid var(--border);
        padding: 10px;
    }

    .stats-row { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */
@media (max-width: 640px) {
    body { padding: 0; }

    .resume-container {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .download-text { display: none; }
    .download-icon { margin-right: 0; }

    .stats-row { grid-template-columns: 1fr 1fr; }

    .stat-card:last-child { grid-column: 1 / -1; }

    .section-header h1 { font-size: 19px; }

    .timeline-list { padding-left: 20px; }

    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
