body {
    margin: 0;
    padding: 0;
    background-color: #252328;
    min-height: 100vh;
    font-family: 'Martian Mono', monospace;
    color: white;
    position: relative;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.card-container {
    background-color: #252328;
    border-radius: 60px;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.card-container::before,
.card-container::after,
.card-container .line {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.card-container .line:nth-child(n) {
    width: 1px;
    height: var(--line-length, 100px);
    transform: rotate(var(--rotation, 0deg));
    top: var(--top, 0);
    left: var(--left, 0);
}

.card-container .line:nth-child(1) { --rotation: 11deg; --top: -2%; --left: 0%; --line-length: 650px; }
.card-container .line:nth-child(2) { --rotation: 70deg; --top: 26.5%; --left: 0%; --line-length: 120px; }
.card-container .line:nth-child(3) { --rotation: 160deg; --top: 17%; --left: 0%; --line-length: 300px; }
.card-container .line:nth-child(4) { --rotation: 80deg; --top: 50%; --left: 0%; --line-length: 140px; }
.card-container .line:nth-child(5) { --rotation: 80deg; --top: 85%; --left: 0%; --line-length: 140px; }
.card-container .line:nth-child(6) { --rotation: 11deg; --top: 65.5%; --left: 0%; --line-length: 500px; }
.card-container .line:nth-child(7) { --rotation: 150deg; --top: 84.3%; --left: 0%; --line-length: 160px; }
.card-container .line:nth-child(8) { --rotation: 60deg; --top: 4%; --left: 100%; --line-length: 320px; }
.card-container .line:nth-child(9) { --rotation: 70deg; --top: 65%; --left: 100%; --line-length: 120px; }
.card-container .line:nth-child(10) { --rotation: 130deg; --top: 80%; --left: 100%; --line-length: 300px; }
.card-container .line:nth-child(11) { --rotation: 110deg; --top: -10%; --left: 50%; --line-length: 200px; }
.card-container .line:nth-child(12) { --rotation: 40deg; --top: 90%; --left: 70%; --line-length: 120px; }

.card {
    background-color: rgb(40, 39, 47);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    width: 800px;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
    margin: 0 auto;
}

.header {
    margin-bottom: 50px;
    text-align: left;
}

h1 {
    font-size: 3em;
    margin: 0;
    margin-bottom: 10px;
    background: linear-gradient(to right, #8c51d6, #DE8B5D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2em;
    letter-spacing: 2px;
    margin: 15px 0;
    color: #a0a0a0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0a0a0;
    font-size: 0.9em;
}

.contact-item i {
    color: #8c51d6;
    width: 20px;
}

.section {
    margin: 40px 0;
    padding: 0;
}

.section-title {
    font-size: 1.8em;
    color: #8c51d6;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-item, .education-item {
    margin-bottom: 35px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.company, .university {
    font-size: 1.3em;
    color: #ffffff;
}

.position, .degree {
    color: #8c51d6;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-location {
    text-align: right;
    color: #a0a0a0;
    font-size: 0.9em;
}

.description {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 0.95em;
}

.description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.description li {
    margin-bottom: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-category {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-title {
    color: #8c51d6;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.skill-list {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.95em;
}

.back-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: linear-gradient(to right, #8c51d6, #DE8B5D);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 81, 214, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        min-height: auto;
        height: auto;
    }
    
    .card-container {
        padding: 15px;
        border-radius: 30px;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .card {
        padding: 30px;
        max-width: 90%;
        width: 100%;
        border-radius: 20px;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
        letter-spacing: 1.5px;
        margin: 10px 0;
    }

    .contact-info {
        gap: 10px;
        margin: 15px 0;
    }

    .contact-item {
        font-size: 0.8em;
        gap: 8px;
    }

    .section {
        margin: 25px 0;
    }

    .section-title {
        font-size: 1.4em;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .item-header {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .date-location {
        text-align: left;
        margin-top: 5px;
        font-size: 0.8em;
    }

    .company, .university, .institution {
        font-size: 1.1em;
    }

    .description {
        font-size: 0.85em;
        line-height: 1.6;
    }

    .description ul {
        padding-left: 15px;
        margin: 8px 0;
    }

    .description li {
        margin-bottom: 8px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .skill-category {
        padding: 15px;
    }
    
    .skill-title {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .skill-list {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .position, .degree {
        font-size: 0.8em;
    }
    
    .back-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 10px;
    }
    
    .card-container {
        padding: 10px;
        border-radius: 25px;
    }
    
    .card {
        padding: 20px;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .section-title {
        font-size: 1.2em;
    }
    
    .description {
        font-size: 0.8em;
    }
    
    .position-group {
        margin-left: 12px;
        padding-left: 12px;
    }
    
    .company, .university, .institution {
        font-size: 1em;
    }
}

.institution {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 20px;
}

.position-group {
    margin-left: 20px;
    border-left: 2px solid rgba(140, 81, 214, 0.3);
    padding-left: 20px;
}

.sub-position {
    margin-bottom: 25px;
}

.sub-position:last-child {
    margin-bottom: 0;
}

.contact-item a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #8c51d6;
}