:root {
    --primary: #0f172a;
    --secondary: #2563eb;
    --accent: #38bdf8;
    --text: #334155;
    --light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

@page {
    size: letter;
    margin: 0 !important;
}

body {
    background-color: #e2e8f0;
    color: var(--text);
    font-size: 10.5px;
    line-height: 1.35;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.resume {
    width: 8.5in;
    height: 11in;
    background: white;
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 28%;
    background-color: var(--primary);
    color: white;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin: 0 auto 5px;
    display: block;
    object-fit: cover;
    background: #1e293b;
}

.sidebar-h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3px;
    margin-bottom: 8px;
}

.side-content {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.side-content b {
    color: white;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tag {
    background: rgba(37, 99, 235, 0.15);
    color: #bfdbfe;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.62rem;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.edu-item {
    margin-bottom: 8px;
}

.edu-item b {
    font-size: 0.75rem;
    color: white;
    display: block;
}

.edu-item span {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Main Content */
.main {
    width: 72%;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

header h1 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
}

header .job-title {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 3px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

p,
li {
    text-align: justify;
}

p {
    margin-bottom: 6px;
}

.exp-item {
    margin-bottom: 10px;
}

.exp-head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}

.exp-company {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 1px;
}

.exp-date {
    color: var(--light);
    font-size: 0.72rem;
}

.exp-list {
    padding-left: 14px;
    margin-top: 2px;
}

.exp-list li {
    margin-bottom: 1px;
}

.grid-certs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 5px;
}

.cert-card {
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 2px solid var(--accent);
    font-size: 0.72rem;
}

.print-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    z-index: 100;
}
.web-btn {
    position: fixed;
    bottom: 20px;
    right: 210px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    z-index: 100;
}

@media print {
    .print-btn, .web-btn {
        display: none;
    }

    body {
        padding: 0;
        background: white;
    }

    .resume {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}
