/* Color palette */
:root {
    /* Primary accent color */
    --accent-color: #ff6b6bff;
    --bg-accent-color: #ff6b6b18;
    
    /* Text colors */
    --text-primary: #333;
    --text-secondary: #555;
    --text-light: #999;
    --text-lighter: #ccc;
    
    /* Heading colors */
    --heading: #2d3748;

    /* Code colors */
    --code-bg-color: #dedede;
    --code-color: #d63384;
}

/* Page setup */
@page {
    margin: 0.1cm 0.4cm;
    size: A4;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.45;
    text-align: justify;
    color: var(--text-primary);
    position: relative;
    margin: 0;
    padding: 0;
}

@media screen {
    body {
        margin: 1cm auto;
        padding: 0 1cm;
        max-width: 21cm;
    }
}

/* My photo :) */
.photo-container {
    float: right;
    margin-right: 0.5cm;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    text-align: center;
}

/* Name */
.name, .easter-egg-message {
    font-size: 26pt;
    font-weight: 700;
    text-align: left;
    color: var(--accent-color);
    margin: 0 0 0.1em 0;
    letter-spacing: -0.5px;
}

.easter-egg-message {
    display: none;
}

.photo-container:hover ~ .easter-egg-message {
    display: block;
}

.photo-container:hover ~ .name {
    display: none;
}

/* Contact info container */
.contact-info {
    color: var(--text-lighter);
    margin: 0;
}

.contact-info a {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.contact-info a:first-child {
    margin-left: 0;
}

.contact-info a:last-child {
    margin-right: 0;
}

/* Introduction paragraph */
.intro {
    font-size: 9.5pt;
    color: var(--text-secondary);
    margin: 0;
}

/* Colum layout for cards container */
.cards-container {
    column-count: 2;
    column-gap: 0.4cm;
}

@media screen {
    .cards-container {
        column-count: 1; /* Use one column on HTML */
        column-gap: 0;
    }
}

/* Section headers (Experience, Education, etc.) */
h2 {
    font-size: 14pt;
    font-weight: 700;
    text-align: left;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.25em;
    margin-top: 0;
    margin-bottom: 0.7em;
}

/* Card container */
.card {
    background: 
        linear-gradient(to right, var(--bg-accent-color) 0px, transparent 100%);
    border: none;
    padding: 0.9em 1.2em;
    border-radius: 8px;
    margin-bottom: 0.7em;
    break-inside: avoid; /* Prevent cards from breaking across columns */
}

/* Card title */
h3 {
    font-size: 12pt;
    font-weight: 700;
    text-align: left;
    color: var(--heading);
    margin: 0 0 0.1em 0;
    line-height: 1.3;
}

/* Card header and date container */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3em;
}

/* Card sub-title (e.g. university) */
.card-subtitle {
    font-weight: 600;
    font-size: 10pt;
    text-align: left;
    color: var(--accent-color);
    margin: 0;
}

/* Date range */
.date {
    color: var(--text-light);
    text-align: right;
    margin: 0;
}

/* Card description */
.card p {
    color: var(--text-secondary);
    margin: 0 0 0.6em 0;
}

/* Skills/Tech list */
.card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.1em;
    position: relative;
    padding-left: 1.2em;
}

.card ul li:before {
    content: "★";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 8pt;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Code snippets */
code {
    background-color: var(--code-bg-color);
    color: var(--code-color);
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-family: 'Courier New';
    font-size: 0.95em;
}