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

body {
    font-family: "Poppins", sans-serif;
    background-color: #f4f7f9;
    color: #5c5c6b;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;

    transition: background-color 0.5s ease, color 0.5s ease;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1400px;
    margin: auto;

    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden
}

.info-panel {
    position: relative;
    background-color: #f1f7f9;
    border-right: 1px solid #e8eaf6;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-panel .name {
    transition: transform 0.2s ease;
}
.info-panel .name:hover {
    transform: translateY(-5px);
}

.info-panel .currently {
    transition: transform 0.2s ease;
}
.info-panel .currently:hover {
    transform: translateY(-5px);
}

.info-panel .about {
    transition: transform 0.2s ease;
}
.info-panel .about:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.8s ease, color 0.8s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.name {
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.currently {
    text-align: center;
    font-weight: 400;
    font-size: 1rem;
    color: #108959;
    margin: 0.25rem 0 1.5rem;
}

.about {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: center;
}

.social-links {
    text-align: center;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    color: #818ba4;
    text-decoration: none;
    font-weight: 600;
    will-change: transform;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #108959;
    transform: scale(1.03);
}

.hobbies {
    margin-top: 20px;
    text-align: center;
}

.hobbies h1 {
    font-weight: 800;
    text-decoration: underline;
}


.projects-area {
    padding: 2rem;
    overflow-y: auto;
    max-height: 650px;
}

.projects-area h2 {
    font-weight: 600;
    font-size: 2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 2rem;
}

.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    max-height: 150px;
    background: #e5f8e5;
    border: 1px solid #e8eaf6;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;

    will-change: box-shadow, transform;
    transition: box-shadow 0.4s ease, transform 0.4s ease, background-color 0.8s ease, color 0.8s ease;
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    color: #595959;
    font-weight: 600;
}

.project-card p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.view-project {
    display: inline-block;
    color: #989898;
    will-change: color;
    transform: translateZ(0);
    transition: color 0.5s ease;
    font-weight: 800;
}

.project-card:hover .view-project {
    color: #47ba47;
}



/* Darkmode Logic */

.portfolio-grid, .info-panel, .name, .currently, .projects-area h2, .project-card h3, .info-panel h1 {
    transition: background-color 0.8s ease, color 0.8s ease;

}

.darkmode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scale: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease;
}

.darkmode:hover {
    transform: scale(1.03);
}
.darkmode.hidden {
    opacity: 0;
    pointer-events: none;
}
.darkmode-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    z-index: 10;
}

body.dark {
    background-color: #232323;
    color: #e0e0f0;
}

body.dark .info-panel h1 {
    color: white;
}

body.dark .portfolio-grid {
    background-color: #2c2c2c;
}

body.dark .info-panel {
    background-color: #171717;
}

body.dark .project-card {
    background-color: #39393e;
}

body.dark .project-card h3 {
    color: white;
}

body.dark .projects-area h2 {
    color: white;
}


@media (max-width: 990px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .info-panel {
        border-right: none;
        border-bottom: 1px solid #e8eaf6;
    }
    body {
        padding: 1rem;
    }
}

@media (max-width: 770px) {
    .projects-list {
        grid-template-columns: 1fr;
    }
}
