/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.4;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Resume Container */
.resume {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

/* Header Section */
.name {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.address {
    text-align: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.address a {
    /* color: #333; */
    text-decoration: none;
}

.address a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.diamond {
    margin: 0 5px;
    color: #666;
}

/* Sections */
.section {
    margin-bottom: 20px;
}

.section-title {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin-bottom: 10px;
}

/* Experience/Education Items */
.item {
    margin-bottom: 15px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.item-title {
    font-weight: bold;
}

.item-date {
    font-style: italic;
}

.item-subtitle {
    display: flex;
    justify-content: space-between;
    font-style: italic;
    margin-bottom: 5px;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 20px;
}

ul li {
    position: relative;
    margin-bottom: 5px;
}

ul li:before {
    content: "·";
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* Skills Table */
.skills-table {
    width: 100%;
    border-collapse: collapse;
}

.skills-table td {
    padding: 3px 0;
    vertical-align: top;
}

.skills-table td:first-child {
    font-weight: bold;
    width: 25%;
    padding-right: 20px;
}

/* Projects */
.project {
    margin-bottom: 15px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.project-title {
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    /* color: #333; */
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.project-tech {
    font-style: italic;
    margin-bottom: 5px;
}

/* Download Button */
.download-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    background-color: #3ccdda;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .resume {
        padding: 20px;
    }

    .item-header,
    .item-subtitle,
    .project-header {
        flex-direction: column;
        gap: 5px;
    }

    .skills-table td:first-child {
        width: 30%;
    }

    .project-links {
        flex-wrap: wrap;
        gap: 5px;
    }
}
@media print {
    body {
        margin: 0;
        padding: 0;
        font-size: 12px;
        zoom: 90%; /* adjust to fit everything on one page */
    }

    * {
        page-break-inside: avoid;
        box-shadow: none !important;
    }

    html,
    body {
        width: 100%;
        height: 100%;
    }

    @page {
        size: A4;
        margin: 0.5cm;
    }

    .no-print {
        display: none !important;
    }
}
