@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 100px;
}

.header img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    border: 3px solid rgb(55, 55, 55);
}

.header div h1 {
    color: white;
    width: 500px;
    font-size: 50px;
    text-align: left;
}

.header div h3 {
    margin-top: 5px;
    color: grey;
    text-align: left;
    font-size: 18px;
}

.icon-link {
    display: inline-block;
    padding: 3px 7px;
    margin: 3px;
    margin-top: 10px;
    border: 1px solid darkgray;
    border-radius: 5px;
    color: darkgrey;
    text-decoration: none;
    text-transform: capitalize;
    transition: 0.3s;
    font-size: 15px;
}

.icon-link:hover {
    background-color: rgb(24, 24, 24);
}

.section-header {
    display: block;
    max-width: 700px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    padding-bottom: 8px;
    font-size: 80%;
    border-bottom: 0.5px solid rgb(55, 55, 55);
}

.content {
    max-width: 700px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    color: grey;
    font-size: small;
    line-height: 25px;
}

.module {
    max-width: 700px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding: 20px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.module img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

.module-info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.module .group {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module .title {
    font-size: 14px;
    font-weight: 400;
    color: grey;
    margin: 3px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.module .time {
    font-size: 13px;
    color: grey;
    margin: 0;
    white-space: nowrap;
}

.arrow {
    font-size: 20px;
    color: grey;
    transition: transform 0.2s ease;
}

.arrow.open {
    transform: rotate(90deg);
}

.description {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-left: 65px;
    color: grey;
    font-size: 14px;
    line-height: 1.6;
    transition: opacity 0.2s ease, max-height 0.2s ease, margin-top 0.2s ease;
}

.description.open {
    opacity: 1;
    max-height: 500px;
    margin-top: 15px;
}

/* Skills Section */
.skills-grid {
    max-width: 700px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-card {
    background-color: rgb(18, 18, 18);
    border-radius: 12px;
    padding: 25px;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.skill-card-header i {
    color: grey;
    font-size: 16px;
}

.skill-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: rgb(30, 30, 30);
    color: rgb(200, 200, 200);
    border: 1px solid rgb(50, 50, 50);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 300;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.skill-tag:hover {
    background-color: rgb(40, 40, 40);
    border-color: rgb(80, 80, 80);
}

/* Contact Section */
.contact-grid {
    max-width: 700px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 60px;
}

.contact-card {
    background-color: rgb(18, 18, 18);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.contact-card:hover {
    background-color: rgb(30, 30, 30);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.contact-card-header i {
    color: grey;
    font-size: 15px;
}

.contact-card-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.contact-value {
    font-size: 12px;
    color: grey;
    word-break: break-all;
}

/* Mobile responsiveness - when screen width is 768px or less */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }
    
    .header div h1 {
        width: 100%;
        text-align: center;
    }
    
    .header div h3 {
        text-align: center;
    }

    .skills-grid {
        margin-left: 5%;
        width: 90%;
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}