:root {
    --bg-color: #121212;
    --fg-color: #e0e0e0;
    --accent-color: #64d2ff;
    --card-bg: #1e1e1e;
    --section-border: #333;
    --shadow: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--fg-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow);
}

.header-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 40px;
}

.header-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 20px;
    border: 3px solid var(--accent-color);
}

.header-text {
  flex: 1;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.2em;
}

h2 {
    border-bottom: 2px solid var(--section-border);
    margin-top: 2em;
    padding-bottom: 0.3em;
    font-size: 1.5em;
    color: var(--accent-color);
}

h3, h4 {
    margin-top: 1em;
    color: var(--fg-color);
}

p, li {
    margin: 0.4em 0;
    color: #ccc;
}

ul {
  margin-left: 1.5em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section {
  	flex: 1;
    margin-bottom: 30px;
}

.company, .project, .position {
    margin-bottom: 20px;
}

.skillsGroups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skillsGroup {
    flex: 1 1 45%;
    background: #222;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--shadow);
}

body.fade-start {
    opacity: 0;
}

body.fade-end {
    opacity: 1;
    transition: opacity 0.8s ease-in;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skillsGroups {
        flex-direction: column;
    }

    .skillsGroup {
        flex: 1 1 100%;
    }
}

@media print {
    button {
        display: none;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .container {
        box-shadow: none !important;
        background: white !important;
    }
}