/* --- CSS Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111; /* Fallback color */
    color: #e0e0e0;
    min-height: 100vh; /* Ensure body takes at least the full screen height */
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll, but allow vertical */

    /* Use Flexbox to center the main card container */
    display: flex;
    align-items: center;     /* Horizontally centers content */
    justify-content: center; /* Vertically centers content */
    padding: 40px 20px;      /* Add some breathing room on all sides */
}

/* --- Blurred Background Layer --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data/background/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    z-index: -1;
    transform: scale(1.05);
}

/* --- Main Card Container --- */
.card-container {
    background-color: rgba(29, 29, 31, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    align-items: center;
    transition: padding 0.3s ease, gap 0.3s ease;
    /* We no longer need margin: auto; flexbox on the body handles centering */
}

/* --- Left Column: Profile Section --- */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    flex-shrink: 0;
}
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    transition: width 0.3s ease, height 0.3s ease;
}
.name {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}
.bio {
    font-style: italic;
    color: #b0b0b0;
    max-width: 250px;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* --- Social Icons Section --- */
.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.social-icons a {
    display: inline-flex;
    align-items: center;/* --- CSS Reset & Global Styles --- */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        background-color: #111; /* Fallback color */
        color: #e0e0e0;
        min-height: 100vh; /* Ensure body takes at least the full screen height */
        position: relative;
        overflow-x: hidden; /* Prevent horizontal scroll, but allow vertical */

        /* Use Flexbox to center the main card container */
        display: flex;
        align-items: center;     /* Horizontally centers content */
        justify-content: center; /* Vertically centers content */
        padding: 40px 20px;      /* Add some breathing room on all sides */
    }

    /* --- Blurred Background Layer --- */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data/background/background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(10px);
        z-index: -1;
        transform: scale(1.05);
    }

    /* --- Main Card Container --- */
    .card-container {
        background-color: rgba(29, 29, 31, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        padding: 50px;
        display: flex;
        gap: 40px;
        max-width: 1100px;
        width: 100%;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        align-items: center;
        transition: padding 0.3s ease, gap 0.3s ease;
        /* We no longer need margin: auto; flexbox on the body handles centering */
    }

    /* --- Left Column: Profile Section --- */
    .profile-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 300px;
        flex-shrink: 0;
    }
    .avatar {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 24px;
        transition: width 0.3s ease, height 0.3s ease;
    }
    .name {
        font-size: 28px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 12px;
    }
    .bio {
        font-style: italic;
        color: #b0b0b0;
        max-width: 250px;
        line-height: 1.5;
        margin-bottom: 40px;
    }

    /* --- Social Icons Section --- */
    .social-icons {
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }
    .social-icons img {
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
        width: auto;
        max-height: 100%;
    }
    .social-icons a:nth-child(1) img { height: 28px; }
    .social-icons a:nth-child(2) img { height: 28px; }
    .social-icons a:nth-child(3) img { height: 28px; }
    .social-icons a:nth-child(4) img { height: 28px; }
    .social-icons a:hover img {
        opacity: 1;
        transform: scale(1.15);
    }

    /* --- Right Column: Projects Section --- */
    .projects-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 40px;
        width: 100%;
    }

    .projects-section::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.2);
        transition: opacity 0.3s ease;
    }
    .projects-section h2 {
        font-size: 22px;
        font-weight: 500;
        color: #ffffff;
        margin-bottom: 25px;
    }
    .project-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .project-link {
        text-decoration: none;
        color: inherit;
        display: block;
        border-radius: 16px;
    }
    .project-card {
        display: flex;
        align-items: center;
        gap: 20px;
        background-color: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 20px;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
    }
    .project-link:hover .project-card {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    .project-icon {
        width: 64px;
        height: 64px;
        object-fit: cover;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .project-icon.placeholder-icon {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 14px;
        object-fit: contain;
    }
    .project-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .project-title {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
    }
    .project-description {
        font-size: 14px;
        color: #b0b0b0;
        line-height: 1.4;
    }

    /* --- Custom Scrollbar for the whole page --- */
    body::-webkit-scrollbar {
        width: 8px;
    }
    body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
    }
    body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }
    body::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    /* ======================================= */
    /* ---        MOBILE STYLES          --- */
    /* ======================================= */
    @media (max-width: 768px) {
        body {
            /* On mobile, we don't need to center, just let it flow from the top */
            display: block;
            padding: 20px 15px;
        }
        .card-container {
            flex-direction: column;
            padding: 30px 20px;
            gap: 30px;
            /* Add margin back for horizontal centering on mobile */
            margin: 0 auto;
        }
        .profile-section {
            width: 100%;
        }
        .avatar {
            width: 120px;
            height: 120px;
        }
        .projects-section {
            padding-left: 0;
        }
        .projects-section::before {
            display: none;
        }
        .projects-section h2 {
            text-align: center;
        }
    }
    justify-content: center;
    width: 32px;
    height: 32px;
}
.social-icons img {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: auto;
    max-height: 100%;
}
.social-icons a:nth-child(1) img { height: 28px; }
.social-icons a:nth-child(2) img { height: 28px; }
.social-icons a:nth-child(3) img { height: 28px; }
.social-icons a:nth-child(4) img { height: 28px; }
.social-icons a:hover img {
    opacity: 1;
    transform: scale(1.15);
}

/* --- Right Column: Projects Section --- */
.projects-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 40px;
    width: 100%;
}

.projects-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}
.projects-section h2 {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 25px;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 16px;
}
.project-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.project-link:hover .project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.project-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.project-icon.placeholder-icon {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 14px;
    object-fit: contain;
}
.project-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}
.project-description {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.4;
}

/* --- Custom Scrollbar for the whole page --- */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ======================================= */
/* ---        MOBILE STYLES          --- */
/* ======================================= */
@media (max-width: 768px) {
    body {
        /* On mobile, we don't need to center, just let it flow from the top */
        display: block;
        padding: 20px 15px;
    }
    .card-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        /* Add margin back for horizontal centering on mobile */
        margin: 0 auto;
    }
    .profile-section {
        width: 100%;
    }
    .avatar {
        width: 120px;
        height: 120px;
    }
    .projects-section {
        padding-left: 0;
    }
    .projects-section::before {
        display: none;
    }
    .projects-section h2 {
        text-align: center;
    }
}
