@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    /* Fonts */
    --FF-PRIMARY: 'Lato', sans-serif;
    --FF-SECONDARY: 'Open Sans', sans-serif;
    --FF-SIZE: 20px;
    --FF-SSIZE: 14px;

    /* Color */
    --ACCENTCOLOR: #e9b949;
    --SELECTED-BGCOLOR: #FFF8C9;
    --DEFAULT-BGCOLOR: #FFFEFA;
    --TXT-COLOR: #07090D;
}

header {
    width: calc(100% - 48px);
    display: flex;
    justify-content: space-around;
    /* margin: 24px; */
    padding: 16px;
    position: sticky;
}

body {
    font-family: var(--FF-PRIMARY);
    background-color: var(--DEFAULT-BGCOLOR);
}

.logo {
    font-family: var(--FF-PRIMARY);
    width: 200px;
    height: 32px;
    cursor: pointer;
    letter-spacing: 2px;

}

span {
    color: #e9b949;
}

.nav ul {
    font-family: var(--FF-SECONDARY);
    display: flex;
}

.nav ul li {
    list-style: none;
}

.nav ul li a {
    font-weight: 400px;
    text-decoration: none;
    margin: 24px;
}

.nav ul li a {
    color: var(--TXT-COLOR);
    text-decoration: none;
    position: relative;
    padding: 20px;
    font-weight: 700;
}
    
.about-me {
    background-color: var(--SELECTED-BGCOLOR);
    padding: 60px 16px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    padding: 0 24px;
}

.subtext {
    flex: 1;
    max-width: 640px;
}

.about-me h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.roles {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
}

.about-description {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 24px;
}

.about-me button {
    margin-top: 12px;
    padding: 10px 20px;
    width: auto;
    height: auto;
    border-radius: 6px;
    background-color: var(--ACCENTCOLOR);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.about-me button:hover {
    background-color: #d9a73f;
}

blockquote {
    font-style: italic;
    color: #333;
    margin-top: 16px;
}

.social-media {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
}

.social-media ion-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-media ion-icon:hover {
    transform: scale(1.2);
}

.image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.19);
}

.skills-section {
    background-color: var(--DEFAULT-BGCOLOR);
    padding: 60px 16px;
    display: flex;
    justify-content: center;
}

.skills-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--TXT-COLOR);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px; /* vertical gap: 40px, horizontal: 32px */
    justify-items: center;
    align-items: stretch;
    padding: 0 12px;
}

.skill-card {
    background-color: var(--SELECTED-BGCOLOR);
    border-radius: 12px;
    padding: 20px;
    width: 10rem;
    height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-6px);
}

.skill-card img {
    width: 6rem;
    height: 6rem;
    margin-bottom: 12px;
    object-fit: contain;
}

.skill-card p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 24px;
  }
  
  .project-card {
    background-color: var(--SELECTED-BGCOLOR);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }
  
  .project-card h3 {
    margin-bottom: 12px;
    color: var(--TXT-COLOR);
  }
  
  .project-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .project-buttons {
    display: flex;
    gap: 12px;
  }
  
  .btn {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .btn-demo {
    background-color: var(--ACCENTCOLOR);
    color: white;
  }
  
  .btn-demo:hover {
    background-color: #c6952f;
  }
  
  .btn-source {
    background-color: #eee;
    color: var(--TXT-COLOR);
    border: 1px solid #ccc;
  }
  
  .btn-source:hover {
    background-color: #ddd;
  }
    
  /* Skill card selected state */
  .skill-card.selected {
    box-shadow: 0 0 10px var(--ACCENTCOLOR);
    border: 2px solid var(--ACCENTCOLOR);
  }
  

  .project-card {
    background-color: var(--SELECTED-BGCOLOR);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 320px;
    height: 26rem;
    margin: auto;
  }
  
  .project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
  }
  
  .project-card h3 {
    margin-bottom: 12px;
    color: var(--TXT-COLOR);
  }
  
  .project-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .project-buttons {
    display: flex;
    gap: 12px;
  }
  
  .btn {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
  }
  
  .btn-demo {
    background-color: var(--ACCENTCOLOR);
    color: white;
  }
  
  .btn-demo:hover {
    background-color: #c6952f;
  }
  
  .btn-source {
    background-color: #eee;
    color: var(--TXT-COLOR);
    border: 1px solid #ccc;
  }
  
  .btn-source:hover {
    background-color: #ddd;
  } 

  .project-tools {
    margin: 8px 0;
  }
  
  .project-tool {
    display: inline-block;
    background-color: var(--ACCENTCOLOR);
    color: white;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 12px;
    margin-right: 6px;
    user-select: none;
  }  
  .contactMe-section {
    background-color: var(--SELECTED-BGCOLOR);
    padding: 48px 20px;
    text-align: center;
  }
  
  .contact-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-info p {
    font-family: var(--FF-SECONDARY);
    font-size: 18px;
    margin: 12px 0;
    color: var(--TXT-COLOR);
  }
  
  .contact-info a {
    color: var(--ACCENTCOLOR);
    text-decoration: none;
    font-weight: 600;
  }
  
  .contact-links {
    margin-top: 24px;
  }
  
  .contact-links a {
    padding: 0 12px;
    font-size: 32px;
    color: var(--TXT-COLOR);
    transition: color 0.3s ease;
  }
  
  .contact-links a:hover {
    color: var(--ACCENTCOLOR);
  }
  
.footer {
    background-color: var(--SELECTED-BGCOLOR);
    text-align: center;
    padding: 24px 16px;
    margin-top: 80px;
    font-family: var(--FF-SECONDARY);
    font-size: 14px;
    color: var(--TXT-COLOR);
    border-top: 1px solid #ddd;
}

.footer span {
    font-weight: bold;
    color: var(--ACCENTCOLOR);
}


/* Responsive Layout */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        text-align: center;
    }

    .subtext {
        max-width: 100%;
    }

    .image img {
        max-width: 240px;
    }
}