@charset "UTF-8";

:root {
    font-family: 'Sour Gummy';
    --nav-height: clamp(60px, 8vw, 100px);
    --logo-font-size: clamp(1rem, 2.5vw, 30px);
    --header-title-font-size: clamp(3rem, 7vw, 4.75rem);
    --header-subtitle-font-size: clamp(1rem, 2.5vw, 1.75rem);
    --hover-button: plum;
    --light-overlay: rgba(255, 255, 255, 0.05);
    --light-border: rgba(255, 255, 255, 0.2);
    --dark-overlay: rgba(5, 16, 21, 0.08);
    --dark-border: rgba(5, 16, 21, 0.2);
    --highlight-color:rgba(255, 182, 56, 1);
    --gallery-columns: 4;
}
html {
    scroll-behavior: smooth !important;
}
head {
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
}

h1, .h1 {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.81rem);
}

h2, .h2 {
    font-size: clamp(2rem, 1.5rem + 1.8vw, 3.05rem);
}

h3, .h3 {
    font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.44rem);
}

h4, .h4 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
}

h5, .h5 {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.56rem);
}

h6, .h6 {
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.25rem);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
}

.sour-gummy-font {
    font-family: "Sour Gummy", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

#navbar {
    background-image: url('../img/bg.jpg');
    background-color: #041134;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    height: var(--nav-height);
    width: 100%;
    display: block;
    transition: top 0.2s;
    z-index: 100;
}
body.home #navbar {
    top: calc(-1 * var(--nav-height));
    position: fixed;
}

#navbar .overlay {
    background-color: rgba(4, 17, 52, 0.85);
    height: var(--nav-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .navbar-brand {
    float: left;
    display: block;
    color: white;
    text-align: center;
    align-content: center;
    padding: 0 20px;
    text-decoration: none;
    font-size: var(--logo-font-size);
}

.navbar .navbar-links {
    float: right;
    padding-right: 20px;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    align-content: center;
    padding: 13px;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 25px);
    border-radius: 999px;
}
/* #navbar a:hover {
    background-color: var(--hover-button);
    color: black;
} */

.navbar .icon {
    align-items: center;
    align-content: center;
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: left;
    background-image: url('../img/bg.jpg');
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: fit-content;
    z-index: 150;
}
.mobile-menu a.mobile-brand {
    font-weight: bold;
    font-size: calc(var(--logo-font-size) * 1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mobile-menu .overlay {
    background-color: rgba(4, 17, 52, 0.95);
    height: var(--nav-height);
    width: 100%;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: fit-content;
    flex-direction: column;
    align-items: left;
    display: flex;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: var(--logo-font-size);
    padding: clamp(6px, 1.5vw, 10px) clamp(18px, 3vw, 20px);
    width: 100%;
    border-radius: 8px;
}
.mobile-menu a:hover {
    background-color: var(--hover-button);
    color: black;
}

@media screen and (max-width: 800px) {
    .navbar-links a {
        display: none;
    }
    .navbar a.icon {
        float: right;
        display: flex;
        margin-left: auto;
        height: var(--nav-height);
        padding: 0 15px;
    }
}

.header {
    background-image: url('../img/bg.jpg');
    background-color: #041134;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.header .overlay {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    background-color: rgba(4, 17, 52, 0.85);
}
.header-content {
    color:white;
    text-align: center;
    width: 100%;
    height: 100vh;
    align-content: center;
    justify-content: center;
}
.header-content .header-title {
    anchor-name: --name-home;
    font-size: var(--header-title-font-size);
    line-height: 2.75rem;
    position: relative;
    display: inline-block;
}
.header-content .header-tag {
    font-size: calc(1rem + 1.5vw);
    transform: rotate(-15deg);
    position: absolute;
    position-anchor: --name-home;
    right: anchor(center);
    margin: 0 calc(2.75rem + 9.5vw) 0 0;
}
.header-content .header-subtitle {
    font-size: var(--header-subtitle-font-size);
    overflow-wrap: break-word;
}

.header .header-scroll {
    font-size: var(--header-subtitle-font-size);
    color: white;
    opacity: 50%;
    line-height: 0;
    justify-self: center;
    position: absolute;
    bottom: 0.5em;;
}
.header-collage {
    position: relative;
    background-image: none;
    overflow: hidden;
    width: 100%;
}
.header-collage .img-row {
    display: flex;
    flex-wrap: wrap;
    max-width: none;
    margin: 0;
}
.header-collage .img-column {
    flex: 24%;
    max-width: 25%;
}
.header-collage .img-column img {
  margin-top: 4px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 900px) {
  .header-collage .img-column {
    flex: 49%;
    max-width: 50%;
  }
}

@media screen and (max-width: 560px) {
  .header-collage .img-column {
    flex: 100%;
    max-width: 100%;
  }
}
.header-collage .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(4, 17, 52, 0.45);
}
.dark-section {
    padding: 2.5rem 0;
    background-color: #041134;
    align-content: center;
    
}
.dark-section .section-heading {
    font-family: "Kanit";
    color: white;
    text-align: center;
    margin: 0 0 1.5rem 0;
}
.light-section {
    padding: 2.5rem 0;
    background-color: white;
    
}
.light-section .section-heading {
    font-family: "Kanit";
    color: #041134;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

/* html {
    scroll-padding-top: clamp(30px, 8vw, 80px);
} */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
    padding: 10px;
    margin-right: 50px;
    justify-content: center;
}

@media screen and (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 560px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
}

.portfolio-item {
    width: 100%;
    display: flex;
    justify-content: center;
}
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 80%;
    max-width: 500px;
}
#myImg:hover {
    transform: scale(1.05);
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

@media screen and (max-width: 900px) {
    .modal-content { max-width: calc(100% - 30vw); }
}
@media screen and (max-width: 560px) {
    .modal-content { max-width: calc(100% - 20vw); }
}
.modal-content, #video01 {
  margin: auto;
  display: none;
  width: auto;
  max-width: 92vw;
  max-height: 80vh;
}
#video01 { max-height: 80vh; }
#pdf01 { 
    display: none;
    margin: auto;
    width: 85vw;
    height: 85vh;
    max-width: 1000px;
    border: none; 
}

.lightbox-web img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.slideshow-main {
    position: relative;
    width: 100%;
    max-width: 35rem;
    margin: 1rem auto 1rem auto;
    overflow: hidden;
}
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.35);
    font-size: 1.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    transition: background 0.2s;
}
.slide-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.slide-arrow.hidden { display: none; }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slideshow-main-img {
    width: 100%;
    display: block;
    cursor: pointer;
}
.slideshow-thumbs {
    display: flex;
    overflow-x: auto;
    max-width: 35rem;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}
.slideshow-thumb {
    max-width: 90px;
    max-height: 65px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.55;
    flex-shrink: 0;
    transition: opacity 0.2s, outline 0.2s;
}
.slideshow-thumb:hover { opacity: 0.85; }
.slideshow-thumb.active {
    opacity: 1;
    outline: 2px solid var(--hover-button);
    outline-offset: 2px;
}

.modal-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 1rem;
    opacity: 0.7;
    z-index: 201;
}
.modal-arrow:hover { opacity: 1; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    background-color: #041134;
    /* background-image: url(../img/bg.jpg); */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    display: flex;
    justify-content: center;
}
.page-header .overlay {
    background-color: rgba(4, 17, 52, 0.85);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    padding: calc(var(--nav-height) + 3rem) 0 3rem 0; 
}

.page-header h1 {
    color: white;
    margin: 0;
}
.page-header p {
    color: white;
    opacity: 0.85;
    max-width: 700px;
    margin: 0.5rem auto 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background-color: var(--hover-button);
    color: #041134;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background-color: white;
    color: #041134;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    background-color: var(--light-overlay);
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
    width: 100%;
    max-width: 300px;
    margin: 0.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: left;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
a.card:hover {
    transform: translateY(-4px);
    border-color: var(--hover-button);
}
.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    /* aspect-ratio: 4 / 3; */
    object-fit: cover;
}
.card video {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    /* aspect-ratio: 4 / 3; */
    object-fit: cover;
}
.card h3, .card h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    align-self: self-start;
}
.card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    align-self: self-start;
}
.card .tag-list {
    /* margin-top: 0.75rem; */
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-self: self-start;
    padding-top: 0.75rem;
}
.tag {
    font-size: 0.75rem;
    background-color: var(--hover-button);
    color: #041134;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: bold;
}

.arts-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.arts-card {
    background-color: var(--light-overlay);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    overflow: hidden;
    color: white;
    width: 100%;
    max-width: 320px;
    margin: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: left;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.arts-card:hover {
    transform: translateY(-4px);
}
.arts-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}
.arts-card-body {
    padding: 0rem 1.5rem 1.5rem;
}
.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
    justify-content: center;
}
.folder-card {
    flex: 0 0 380px;
    width: 320px;
    display: flex;
    flex-direction: column;
    background-color: var(--light-overlay);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}
.folder-card:hover {
    transform: translateY(-3px);
}
.folder-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.folder-card-img {
    width: auto;
    height: 80px;
    max-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
}
.folder-card-top h4 {
    margin: 0;
    font-size: 1.15rem;
}
.folder-card-subtitle {
    margin: 0;
    padding: 0 1.25rem 1rem;
    font-size: 0.8rem;
    opacity: 0.75;
}

.img-row {
    columns: var(--gallery-columns);
    column-gap: 8px;
    margin: 0 auto;
}
.img-row > * {
    break-inside: avoid;
    margin: 0 0 8px 0;
    width: 100%;
    display: block;
}

@media screen and (max-width: 900px) {
  .img-row { columns: 2; }
}
@media screen and (max-width: 560px) {
  .img-row { columns: 1; }
}

/* Timeline list, used for Experience / Skills entries */
.timeline-item {
    color: #041134;
    border-left: 3px solid var(--hover-button);
    padding: 0 0 2rem 1.5rem;
    margin-left: 0.5rem;
    position: relative;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--hover-button);
}
.timeline-item .timeline-meta {
    opacity: 0.7;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.timeline-item ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.2rem;
}

/* Simple responsive column layouts */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
}
.two-col > * {
    flex: 1 1 320px;
}
@media screen and (max-width: 900px) {
    .two-col { justify-content: center; align-items: center; text-align: center;}
}
@media screen and (max-width: 560px) {
    .two-col { justify-content: center; align-items: center; text-align: center;}
}

/* Skills grid (simple chip layout) */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.skills-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 160px));
    gap: 0.6rem;
    max-width: 420px;
    margin: 0 auto;
    justify-content: center;
}
.skill-chip-dark {
    background-color: var(--dark-overlay);
    border: 1px solid var(--dark-border);
    color: #041134;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.skill-chip-light {
    background-color: var(--light-overlay);
    border: 1px solid var(--light-border);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.skill-chip-light:last-child:nth-child(odd) {
    grid-column: 1/-1;
    width: calc(50% - 0.3rem);
    margin: 0 auto;
}

/* Embedded resume viewer */
.resume-embed {
    width: 100%;
    height: 85vh;
    border: none;
    border-radius: 8px;
    background: white;
}

/* Site footer */
.site-footer {
    background-color: #030b22;
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    font-size: 0.9rem;
    position: relative;
    width: 100%;
    display: flex;
}
.site-footer a {
    color: white;
}
.footer-icons {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: 1.3rem;
}
.footer-icons a {
    color: white;
    text-decoration: none;
}
.footer-icons a:hover {
    color: var(--hover-button);
}

/* Hub landing page: portfolio picker cards */
.portfolio-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0 4rem 0;
    justify-self: center;
}

@media screen and (max-width: 900px) {
    .portfolio-picker { grid-template-columns: 1fr; }
}

.picker-card {
    flex: 1 1 280px;
    max-width: 320px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s, background-color 0.25s;
}
.picker-card:hover {
    transform: translateY(-6px);
    border-color: var(--hover-button);
    background-color: rgba(255,255,255,0.09);
}
.picker-card .picker-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.picker-card h2 {
    margin: 0 0 0.5rem 0;
}
.picker-card p {
    color: rgba(255,255,255,0.75);
}

/* placeholder images */
.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.06) 10px,
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.02) 20px
    );
    border: 1px dashed rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.back-to-hub {
    position: sticky;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    margin-bottom: 20 rem;
}

.back-to-hub:hover {
    color: white;
    background: rgba(0, 0, 0, 0.55);
}

.navbar a.active, .mobile-menu a.active {
    background-color: var(--hover-button);
    color: black;
}
