/* Portfolio Page Styles - Based on Figma Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Text Selection Styles */
::selection {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    color: #212121;
    background-color: #f9faf7;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Projects Section */
.projects-section {
    background-color: #f9faf7;
    padding: 36px 10px 72px;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.projects-container {
    max-width: 1069px;
    width: 100%;
    margin: 0 auto;
    height: fit-content;
    padding-top: 0px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 48px;
    margin-bottom: 24px;
    gap: 17px;
    height: fit-content;
    padding-top: 0px;
}

.projects-header-left {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    flex: 1;
}

h2,
.projects-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: normal;
    letter-spacing: -0.36px;
    color: #212121;
    width: 100%;
}

.projects-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #606060;
    width: 100%;
}

.view-all-button {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    color: #212121;
    background: transparent;
    border: 1px solid #c4c4c4;
    border-radius: 33px;
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.mobile-view-all {
    display: none;
}

.view-all-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #c4c4c4;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 25px;
    align-items: flex-start;
}

#portfolioGrid {
    column-gap: 36px;
}

.portfolio-card {
    width: 100%;
    max-width: 516px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: none;
}

.portfolio-card:hover {
    transform: none;
}

.card-image {
    width: 100%;
    aspect-ratio: 516 / 344;
    border: 1px solid #DEDEDE;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.portfolio-card:hover .card-img {
    filter: brightness(1.1);
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.card-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: #212121;
    width: 100%;
}

.card-description {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #606060;
    width: 100%;
}

/* Experience Section */
.experience-section {
    background-color: #f9faf7;
    padding: 29px 10px 51px;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

.experience-container {
    max-width: 1069px;
    width: 100%;
    margin: 0 auto;
    height: fit-content;
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-top: 32px;
    margin-bottom: 24px;
}


.experience-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #606060;
    width: 100%;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 16.8px;
}

.exp-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: none;
    border-bottom: 0.6px solid #c4c4c4;
    border-left: none;
    border-right: none;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.exp-tile:hover {
    opacity: 0.8;
}

.exp-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.exp-logo {
    width: 120px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}

/* Polygram logo - 20% smaller image while keeping container at 120px × 32px */
.exp-logo[src*="polygram-logo"] {
    width: 120px;
    height: 32px;
    transform: scale(0.8);
    transform-origin: left center;
    object-position: left center;
}


.exp-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-left: 24px;
    border-left: 0.6px solid #c4c4c4;
}

.exp-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: #212121;
    width: 100%;
    white-space: pre-wrap;
}

.exp-body {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: #606060;
    width: 100%;
    white-space: pre-wrap;
}

.exp-meta {
    width: 125px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.exp-year {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: #212121;
}

.exp-location {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: #606060;
    text-align: right;
    white-space: pre-wrap;
    min-width: 100%;
}

/* Footer */
.footer {
    background-color: #101010;
    position: relative;
    padding: 0;
}

.footer-transition {
    width: 100%;
    height: 43px;
    background-color: #f9faf7;
    border-radius: 16px 16px 0 0;
    transform: scaleY(-1);
    margin-bottom: 0;
}

.footer-content {
    max-width: 214.5px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 59px;
    align-items: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.footer-name {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.18px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    white-space: pre-wrap;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.social-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.social-link:hover {
    background: rgba(249, 250, 247, 0.2);
    width: 32px;
    height: 32px;
}

.social-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.x-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.x-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.footer-copyright {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.14px;
    color: #606060;
    width: 100%;
    text-align: center;
    white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-container,
    .experience-container {
        max-width: 90%;
    }
}

@media (min-width: 1441px) {
    .projects-section {
        padding-top: 43px;
        margin-top: -43px;
    }
    
    .experience-section {
        padding-top: 43px;
        margin-top: -43px;
    }
}

@media (min-width: 2561px) {
    .projects-section {
        margin-top: -43px;
        padding-top: 43px;
        position: relative;
        z-index: 0;
    }
    
    .experience-section {
        margin-top: -43px;
        padding-top: 43px;
        position: relative;
        z-index: 0;
    }
}

@media (max-width: 768px) {
    .desktop-view-all {
        display: none;
    }
    
    .mobile-view-all {
        display: block;
        width: 100%;
        padding: 12px 24px;
        margin-top: 24px;
        border-radius: 33px;
        text-align: center;
    }
    
    h2,
    .projects-title,
    .experience-title {
        font-size: 24px;
        letter-spacing: -0.24px;
    }
    
    /* Projects Section */
    .projects-section {
        padding: 24px 16px 72px;
    }
    
    .projects-container {
        max-width: 100%;
        padding-top: 0px;
        height: fit-content;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    #portfolioGrid {
        gap: 36px;
    }
    
    .portfolio-card {
        max-width: 100%;
    }
    
    .exp-tile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .exp-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }
    
    .exp-details {
        padding-left: 0;
        border-left: none;
        width: 100%;
    }
    
    .exp-meta {
        width: 100%;
        align-items: flex-start;
        margin-top: 12px;
        padding-left: 0;
        gap: 8px;
    }
    
    .exp-year {
        font-size: 14px;
    }
    
    .exp-location {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .view-all-button {
        align-self: flex-start;
    }
    
    .exp-tile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .exp-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }
    
    .exp-logo {
        margin-bottom: 0;
    }
    
    .exp-details {
        padding-left: 0;
        border-left: none;
        width: 100%;
        margin-bottom: 0;
    }
    
    .exp-meta {
        width: 100%;
        align-items: flex-start;
        margin-top: 12px;
        padding-left: 0;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .experience-title {
        font-size: 24px;
        letter-spacing: -0.24px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 14px;
    }
}


