* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

.resume-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* SIDEBAR */
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px 25px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.location {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 500;
}

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 700;
}

.social-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-sidebar a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.social-links-sidebar a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cert-list {
    list-style: none;
}

.cert-list li {
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.cert-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a5f3fc;
    font-weight: bold;
}

.edu-item {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.edu-item strong {
    display: block;
    margin-bottom: 4px;
}

.edu-item small {
    opacity: 0.85;
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.intro-card {
    background: white;
    border-radius: 12px;
    padding: 30px 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.intro-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.intro-card h2 {
    color: #667eea;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    font-weight: 700;
}

.intro-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-section h2 {
    color: #667eea;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.experience-card,
.project-card {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.experience-card:hover,
.project-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 15px;
}

.card-header h3 {
    font-size: 17px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 4px;
}

.role {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

.date-badge {
    background: #f0f4ff;
    color: #667eea;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
    color: #2c3e50;
    padding-left: 20px;
    position: relative;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.experience-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #764ba2;
    font-weight: bold;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.project-title-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-header h3 {
    font-size: 17px;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6ffef;
    color: #0b8f48;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-badge.in-progress {
    background: #e7f1ff;
    color: #3166d6;
}

.project-badge.in-progress::before {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59,130,246,0.8);
}

.project-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16,185,129,0.8);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

.project-card p {
    font-size: 14px;
    line-height: 1.65;
    color: #2c3e50;
    margin-bottom: 14px;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-block;
}

.project-link:hover {
    color: #764ba2;
    transform: translateX(4px);
}

.project-link-secondary {
    background: #eef6ff;
    color: #2a4a9f;
    border-radius: 6px;
    padding: 6px 10px;
    margin-left: 0.75em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}

.project-link-secondary:hover {
    background: #dce9ff;
    color: #1a3b8a;
    transform: translateX(0);
}

.project-actions {
    margin-top: 0.65em;
    display: flex;
    align-items: center;
    gap: 0.85em;
}

.project-features-link {
    text-decoration: none;
    color: inherit;
}

.project-features-link:hover .project-features li {
    color: #0b8f48;
}

.project-features {
    list-style: disc;
    margin: 0.6em 0;
    padding-left: 1.3em;
    color: #2c3e50;
}

.project-features li {
    margin: 0.4em 0;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        position: static;
        padding: 30px 25px;
    }

    .sidebar-header h1 {
        font-size: 28px;
    }

    .main-content {
        gap: 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
    }

    .date-badge {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .sidebar {
        padding: 25px 20px;
    }

    .sidebar-header h1 {
        font-size: 24px;
    }

    .intro-card,
    .experience-card,
    .project-card {
        padding: 20px 22px;
    }

    .content-section h2 {
        font-size: 13px;
    }

    .card-header h3 {
        font-size: 15px;
    }

    .experience-list li,
    .project-card p {
        font-size: 13px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }

    .sidebar {
        background: white;
        color: #2c3e50;
        box-shadow: none;
        padding: 0 0 20px 0;
        position: static;
        border-bottom: 1px solid #e5e7eb;
    }

    .sidebar-section h3,
    .social-links-sidebar,
    .skills-list,
    .cert-list,
    .edu-item {
        color: #2c3e50;
    }

    .social-links-sidebar a,
    .skill-tag {
        border-color: #d1d5db;
        background: white;
        color: #2c3e50;
    }

    .intro-card,
    .experience-card,
    .project-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        page-break-inside: avoid;
    }

    .intro-card:hover,
    .experience-card:hover,
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
}