/* Additional CSS added to template post download */

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Responsive */
container {
    width: 100%;
    box-sizing: border-box;
}

/* Fix for Font Awesome icons - ensure content and font-family are set */
/* LinkedIn icon */
ul.icons li a.icon.brands.fa-linkedin:before,
a.icon.brands.fa-linkedin:before,
.icon.brands.fa-linkedin:before {
    content: "\f08c" !important;
    font-family: "Font Awesome 5 Brands" !important;
}

/* GitHub icon */
ul.icons li a.icon.brands.fa-github:before,
a.icon.brands.fa-github:before,
.icon.brands.fa-github:before {
    content: "\f09b" !important;
    font-family: "Font Awesome 5 Brands" !important;
}

/* Resume/File icon */
ul.icons li a.icon.far.fa-file:before,
a.icon.far.fa-file:before,
.icon.far.fa-file:before {
    content: "\f15b" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

/* Professional Title */
.professional-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Portfolio Page CSS */

.portfolio-worked-on {
    margin-top: 2rem;
}

.portfolio-worked-on .portfolio-subtitle {
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.game-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.game-types-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.game-types-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.game-types-list li i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Portfolio project card */
.portfolio-project {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.portfolio-project-images img {
    max-width: 100%;
    width: 280px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-project-desc {
    margin: 1rem 0 0 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.portfolio-project-desc p {
    margin: 0.75rem 0 0 0;
}

.portfolio-project-desc p:first-child {
    margin-top: 0;
}

.portfolio-project-desc a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.portfolio-project-desc a:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Level Design - three images horizontally with captions */
.level-design .level-design-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.level-design-grid figure {
    margin: 0;
    flex: 1 1 140px;
    max-width: 140px;
    text-align: center;
}

.level-design-grid figure a {
    display: block;
    text-decoration: none;
}

.level-design-grid figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.level-design-grid figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.level-design-desc {
    margin: 1.5rem 0 0 0;
    text-align: center;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Features Added Games: first 3 in one row, horizontally centered; 4th below centered */
.features-game .level-design-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.level-design-grid figure {
    margin: 0;
    flex: 1 1 140px;
    max-width: 140px;
    text-align: center;
}

.level-design-grid figure a {
    display: block;
    text-decoration: none;
}

.level-design-grid figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.level-design-grid figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.level-design-desc {
    margin: 1.5rem 0 0 0;
    text-align: center;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}
/* Game Mechanics: first 3 in one row, horizontally centered; 4th below centered */
.game-mechanics .level-design-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.game-mechanics .level-design-grid figure:nth-child(1),
.game-mechanics .level-design-grid figure:nth-child(2),
.game-mechanics .level-design-grid figure:nth-child(3) {
    transform: scale(0.8);
}

.game-mechanics .level-design-grid figure:nth-child(4) {
    transform: scale(1.8);
    flex-basis: 100%;
    margin-left: auto;
    margin-right: auto; margin-top: 8.5rem;
}

.row {
    margin: 8px -16px;
}

/* Add padding BETWEEN each column */

.row,
.row>.column {
    padding: 8px;
}

/* Creating two equal columns for current projects section  */

.currentColumn {
    float: left;
    width: 49%;
    margin-left: .5%;
    margin-right: .5%;
}

/* Creating three equal columns for Top projects section  */

.topColumn {
    float: left;
    width: 32%;
    margin-left: .5%;
    margin-right: .5%;
}

/* Create four equal columns that floats next to each other */

.otherColumn {
    float: left;
    width: 24%;
    margin-left: .5%;
    margin-right: .5%;
}

/* Clear floats after rows */

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* outline */

.outline {
    outline-style: auto;
    outline-width: 2px;
    outline-color: grey;
    padding: 10px;
}

.cardTitle {
    text-align: center;
}

.portfoliop {
    text-indent: 20px;
    margin-left: 7px;
}

.currentButtonCentered {
    margin-left: 28%;
}

.topButtonCentered {
    display: flex;
    justify-content: center;
}

.otherButtonCentered {
    display: flex;
    justify-content: center;
}

.cardImg {
    width: 95%;
    max-height: 95%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3px;
}

.introPic {
    width: 100%;
    max-width: 220px;
    max-height: 275px;
    border-radius: 8px;
    display: block;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.aboutMe-layout {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.aboutMe-image {
    flex: 0 0 30%;
    max-width: 260px;
    text-align: center;
}

.aboutMe {
    flex: 1;
    padding-left: 0;
}

.aboutMe-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aboutMe-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.aboutMe-title {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.aboutMe-title strong {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.aboutMe-summary {
    margin: 1.5rem 0;
    padding: 1rem 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    font-size: 0.95rem;
}

.aboutMe-info {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aboutMe-info h3,
.aboutMe-education h3,
.aboutMe-experience h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aboutMe-info h3 i,
.aboutMe-education h3 i,
.aboutMe-experience h3 i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.aboutMe-info p {
    margin: 0.75rem 0;
    padding-left: 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.aboutMe-info p i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    min-width: 18px;
    margin-top: 0.2rem;
}

.aboutMe-info p strong {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    min-width: 70px;
}

.aboutMe-info p a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.aboutMe-info p a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.aboutMe-education {
    margin: 2rem 0 0 0;
    padding-top: 1.5rem;
}

.aboutMe-education .education-item {
    margin: 1rem 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.aboutMe-education .education-degree strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.aboutMe-education .education-school em {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-size: 0.95rem;
}

.aboutMe-experience {
    margin: 2rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-list {
    margin: 0;
    padding-left: 1.25rem;
}

.experience-list > li {
    margin: 1.25rem 0;
}

.experience-role {
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.experience-role strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.experience-role a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.experience-role a:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

.experience-dates {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.aboutMe-experience ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.aboutMe-experience ul li {
    margin: 0.4rem 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

/* Skills Section */
.skills-container {
    margin-top: 2rem;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skills-list li {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skills-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.skills-list li i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    min-width: 20px;
}

.skills-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Professional Title Responsive */
@media screen and (max-width: 736px) {
    .professional-title {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .professional-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Intro Section Responsive */
@media screen and (max-width: 900px) {
    .aboutMe-layout {
        gap: 2rem;
    }
    .introPic {
        max-width: 200px;
        max-height: 250px;
    }
    .aboutMe-header h2 {
        font-size: 1.6rem;
    }
    .aboutMe-summary {
        font-size: 0.9rem;
    }
    .aboutMe-info p,
    .aboutMe-education p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 736px) {
    .aboutMe-layout {
        gap: 1.5rem;
    }
    .introPic {
        max-width: 180px;
        max-height: 220px;
    }
    .aboutMe-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    .aboutMe-header h2 {
        font-size: 1.5rem;
    }
    .aboutMe-title {
        font-size: 0.95rem;
    }
    .aboutMe-summary {
        margin: 1.25rem 0;
        padding: 0.875rem 0;
        font-size: 0.875rem;
    }
    .aboutMe-info,
    .aboutMe-education {
        margin: 1.5rem 0;
        padding: 1.25rem 0;
    }
    .aboutMe-info h3,
    .aboutMe-education h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }
    .aboutMe-info p {
        margin: 0.625rem 0;
        font-size: 0.875rem;
    }
    .aboutMe-education p {
        margin: 0.875rem 0;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .aboutMe-layout {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .aboutMe-image {
        flex: 0 0 auto;
        max-width: 220px;
        width: 100%;
    }
    .introPic {
        max-width: 100%;
        max-height: none;
        height: auto;
    }
    .aboutMe {
        width: 100%;
        text-align: left;
    }
    .aboutMe-header {
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    .aboutMe-header h2 {
        font-size: 1.4rem;
    }
    .aboutMe-title {
        font-size: 0.9rem;
    }
    .aboutMe-summary {
        text-align: justify;
        font-size: 0.85rem;
        line-height: 1.7;
        margin: 1rem 0;
        padding: 0.75rem 0;
    }
    .aboutMe-info,
    .aboutMe-education {
        margin: 1.25rem 0;
        padding: 1rem 0;
    }
    .aboutMe-info h3,
    .aboutMe-education h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    .aboutMe-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }
    .aboutMe-info p strong {
        min-width: auto;
    }
    .aboutMe-education p {
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }
    .aboutMe-education p strong {
        font-size: 0.95rem;
    }
    .aboutMe-education p em {
        font-size: 0.9rem;
    }
}

/* Skills Section Responsive */
@media screen and (max-width: 736px) {
    .skills-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skills-list li {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-list li {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .skills-list li i {
        font-size: 1rem;
    }
}

/* Portfolio Cards Responsive */
@media screen and (max-width: 1200px) {
    .topColumn {
        width: 31%;
    }
    .otherColumn {
        width: 32%;
    }
    .currentButtonCentered,
    .topButtonCentered,
    .otherButtonCentered {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 980px) {
    .topColumn {
        width: 48%;
    }
    .otherColumn {
        width: 48%;
    }
}

@media screen and (max-width: 900px) {
    .currentColumn,
    .topColumn,
    .otherColumn {
        width: 48%;
    }
    .currentButtonCentered,
    .topButtonCentered,
    .otherButtonCentered {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.5rem;
    }
    .portfoliop {
        text-indent: 10px;
        margin-left: 5px;
        font-size: 0.95rem;
    }
    .cardTitle {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 736px) {
    .currentColumn,
    .topColumn,
    .otherColumn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .row {
        margin: 8px 0;
    }
    .cardImg {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }
    .portfoliop {
        text-indent: 10px;
        margin-left: 0;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .cardTitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .outline {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .currentColumn,
    .topColumn,
    .otherColumn {
        width: 100%;
    }
    .rHeader {
        font-size: 80%;
    }
    .currentButtonCentered,
    .topButtonCentered,
    .otherButtonCentered {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.5rem;
    }
    .portfoliop {
        text-indent: 10px;
        margin-left: 0;
        font-size: 0.85rem;
    }
    .cardTitle {
        font-size: 0.95rem;
    }
    .button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Header Icons Responsive */
@media screen and (max-width: 736px) {
    ul.icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    ul.icons li {
        margin: 0.25rem;
    }
}

/* Make Navigation Always Visible on Mobile */
@media screen and (max-width: 736px) {
    #header {
        position: relative;
    }
    
    #header nav {
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(27, 31, 34, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 0;
        margin-top: 1rem;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        width: 100%;
    }
    
    #header nav ul {
        margin-bottom: 0;
    }
    
    /* Ensure header content doesn't overlap with sticky nav */
    #header .content {
        margin-bottom: 1rem;
    }
    
    /* Add spacing to main content to account for sticky nav */
    #main {
        padding-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #header nav {
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(27, 31, 34, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 0;
        margin-top: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    #header nav ul {
        width: 100%;
        border-radius: 4px;
    }
    
    /* Add some padding to body when nav is sticky to prevent content from hiding under it */
    body {
        padding-top: 0;
    }
}

/* Additional Mobile Optimizations */
@media screen and (max-width: 480px) {
    .row,
    .row > .column {
        padding: 4px;
    }
    .currentButtonCentered {
        margin-left: 0;
    }
    h2.major.rHeader {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    h1.major {
        font-size: 1.5rem;
    }
}

/* Tablet Landscape Optimization */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .topColumn {
        width: 31%;
    }
    .otherColumn {
        width: 31%;
    }
}

/* Article Section Responsive */
@media screen and (max-width: 736px) {
    #main article {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    h1.major,
    h2.major {
        width: 100%;
        font-size: 1.3rem;
    }
    
    /* Ensure close button is always visible on mobile */
    #main article .close {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 2000;
        background-color: rgba(27, 31, 34, 0.9);
        border-radius: 4px;
        width: 3rem;
        height: 3rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* When article is visible, ensure nav stays accessible */
    body.is-article-visible #header nav {
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 1500;
        transform: none;
        filter: none;
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    #main article {
        padding: 2.5rem 1rem 3.5rem 1rem;
    }
    h1.major {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
    h2.major.rHeader {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }
    p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Ensure close button is always visible on small mobile */
    #main article .close {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 2000;
        background-color: rgba(27, 31, 34, 0.95);
        border-radius: 4px;
        width: 2.75rem;
        height: 2.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* When article is visible, ensure nav stays accessible */
    body.is-article-visible #header nav {
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 1500;
        transform: none;
        filter: none;
        opacity: 1;
        background-color: rgba(27, 31, 34, 0.98);
    }
}

/* Large Desktop Optimization */
@media screen and (min-width: 1400px) {
    .topColumn,
    .otherColumn,
    .currentColumn {
        max-width: 400px;
    }
}

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
}