@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    background-color: #121214;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 20px 0 20px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 25pt auto 0 auto;
}

.hero-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 24px;
    width: 100%;
    max-width: 800px;
    min-width: 200px;
    aspect-ratio: 4 / 1;
    box-sizing: border-box;
    padding: 24px 20px;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
}

.profile-pic-container {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic,
.profile-pic-hover {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.profile-pic {
    border: 1px solid #fff;
}

.profile-pic-hover {
    border: 1px solid rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 2;
    clip-path: circle(0px at 50% 50%);
    transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
    --clip-x: 50%;
    --clip-y: 50%;
}

.profile-pic-container:hover .profile-pic-hover {
    clip-path: circle(100% at 50% 50%);
}

.emoji-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.emoji-item {
    display: inline-flex;
    align-items: center;
    min-width: 18px;
    min-height: 18px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    max-width: 100%;
    padding: 0.18rem 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(44, 42, 61, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.emoji-item:hover {
    transform: translateY(-2px);
    background: rgba(44, 42, 61, 0.18);
    box-shadow: 0 0 1px 1px #ffffff6c, 0 0 1px 1px #a4a3bd38;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
}

.my-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
    letter-spacing: 1px;
}

.short-bio {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    color: #d5d8e2;
    line-height: 1.5;
}

.divider {
    max-width: 700px;
    min-width: 300px;
    width: 70%;
    height: 1pt;
    justify-self: center;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
}

.about-section {
    max-width: 800px;
    width: 100%;
    padding: 1.5em;
    justify-self: center;
    box-sizing: border-box;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

@media (max-width: 600px) {
    .header-row {
        margin-bottom: 0.01em;
    }
}

.section-title,
.sect-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    line-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.section-title {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .section-title {
        margin: 0;
        font-size: 1.3rem;
    }
}

.sect-title {
    margin-bottom: 50pt;
    justify-self: center;
}

/* Switch styling */
.switch {
    position: relative;
    align-self: flex-start;
    display: inline-block;
    width: 72px;
    height: 36px;
    padding-bottom: 10pt;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-labels {
    background: #292931;
    border-radius: 25px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    position: relative;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}
.circle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    top: 6px;
    left: 10px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.switch input:checked + .switch-labels .circle {
    transform: translateX(28px);
}

/* Mobile: horizontal switch (left/right, smaller with same ratio) */
@media (max-width: 600px) {
    .switch {
        width: 30px;
        height: 24px;
        padding-bottom: 0;
        padding-right: 8px; /* Added right padding */
        position: relative;
        top: -20px; /* Move switch up */
    }
    .switch-labels {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0 6px;
        font-size: 10px;
    }
    .circle {
        width: 14px;
        height: 14px;
        left: 4px;
        top: 4px;
        transition: transform 0.3s ease;
    }
    .switch input:checked + .switch-labels .circle {
        transform: translateX(16px);
    }
}


.coming-soon-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #121214;
    color: #fff;
    text-align: center;
    width: 100vw;
    padding: 0 20px;
}

.coming-soon-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    color: #fff;
}

.coming-soon-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #d5d8e2;
    margin-bottom: 8px;
    line-height: 1.5;
}

.coming-soon-footer {
    font-size: 1rem;
    color: #a4a3bd;
    margin-top: 24px;
    opacity: 0.7;
}

.go-back-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
    cursor: pointer;
}

.go-back-link:hover {
    text-shadow:
        0 0 3px #fff,
        0 0 6px #fff,
        0 0 9px #fff;
    color: #fff;
}
@media (max-width: 600px) {
    .coming-soon-title {
        font-size: 2rem;
    }
    .coming-soon-subtitle {
        font-size: 1rem;
    }
}


.about-content {
    max-width: 800px;
    align-self: center;
    justify-self: center;
    border-radius: 4px;
}

.skills-section-skills {
    margin: 0 auto;
    max-width: 700px;
    padding: 40px 24px;
    border-radius: 24px;
    background: transparent;
    position: relative;
}

.skills-title-skills {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.slider-container-skills {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 12px;
    background: transparent;
}

.slider-track-skills {
    display: flex;
    width: max-content;
    animation: scroll-skills 14s linear infinite;
}

.slide-skills {
    display: flex;
    align-items: center;
    min-width: 72px;
    padding: 2px 12px;
    margin: 0 4px;
    border-radius: 8px;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    border: 1px solid #fff;
    transition: transform 0.2s;
    white-space: nowrap;
}

.slide-skills .icon-skills::after {
    content: " |";
    color: #fff;
    opacity: 0.7;
    margin: 0 6px 0 0;
    font-size: 1em;
}

.slide-skills:hover {
    transform: scale(0.95);
    background: rgba(44, 42, 61, 0.18);
}

.icon-skills {
    font-size: 1.1em;
    margin-right: 0;
    margin-left: 0;
}

.about-box {
    max-width: 725px;
    justify-self: center;
    background: rgba(255, 255, 255, 0.034);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0 12pt 12pt 12pt;
    color: #d5d8e2;
    font-size: 1rem;
    margin-top: 12pt;
}

/* Feather fade effect */
.slider-container-skills::before,
.slider-container-skills::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.slider-container-skills::before {
    left: 0;
    background: linear-gradient(to right, #121214 85%, transparent);
}

.slider-container-skills::after {
    right: 0;
    background: linear-gradient(to left, #121214 85%, transparent);
}

@keyframes scroll-skills {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Disable feather fade on mobile */
@media (max-width: 600px) {
    .slider-container-skills::before,
    .slider-container-skills::after {
        display: none;
    }
}

.job-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 30pt;
    gap: 1rem;
    align-items: center;
    justify-self: center;
    align-self: center;
}

.job-card {
    display: flex;
    background: rgba(255, 255, 255, 0.034);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid #fff;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.job-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 1px solid #fff;
    border-radius: 6px;
    margin: 16px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.content {
    flex: 1;
    color: #fff;
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.location {
    margin: 4px 0;
    font-weight: 500;
}

.desc {
    margin-top: 8px;
    opacity: 0.9;
}

.footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 12px;
}

.grid-proyek {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.projbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    transform: scale(1) translateY(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
    border: 1.5px solid #fff;
}

.projbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    position: relative;
    border-radius: 10px;
    border: none;
}

/* Reveal hover image from bottom to top (mask effect) */
.projbox .hover-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mask reveal from bottom */
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.projbox:hover .hover-img {
    clip-path: inset(0 0 0 0);
}

.projbox .hover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    border-radius: 10px;
    border: none;
}

/* Wiggle animation */
@keyframes wiggleBox {
    0%, 100% { transform: scale(1.01) translateY(-2px) rotate(0); }
    20%  { transform: scale(1.02) translateY(-4px) rotate(-1.5deg); }
    40%  { transform: scale(1.03) translateY(-6px) rotate(1.5deg); }
    60%  { transform: scale(1.04) translateY(-8px) rotate(-1deg); }
    80%  { transform: scale(1.05) translateY(-10px) rotate(1deg); }
}

.projbox:hover {
    animation: wiggleBox 0.4s ease-in-out;
    transform: scale(1.05) translateY(-10px);
}

/* Grid box spans */
.box1 { grid-column: span 3; }
.box2 { grid-column: span 3; }
.box3 { grid-column: span 2; }
.box4 { grid-column: span 2; }
.box5 { grid-column: span 2; }
.box6 { grid-column: span 3; }
.box7 { grid-column: span 3; }

/* Flicker effect */
.projbox::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
}

.projbox:hover::before {
    animation: flickerFlash 0.3s ease forwards;
}

@keyframes flickerFlash {
    0%   { opacity: 0; }
    10%  { opacity: 0.1; }
    30%  { opacity: 0.08; }
    60%  { opacity: 0.04; }
    100% { opacity: 0; }
}

/* Responsive styles */
@media (max-width: 600px) {
    .grid-proyek {
        max-width: 100vw;
        gap: 8px;
    }
    .projbox {
        height: 120px;
    }
    .projbox img,
    .projbox .hover-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        border: none;
    }
    /* Mask reveal for mobile */
    .projbox .hover-img {
        clip-path: inset(100% 0 0 0);
    }
    .projbox:hover .hover-img {
        clip-path: inset(0 0 0 0);
    }
}
@media (max-width: 600px) {
    .skills-section-skills {
        padding: 10px 2px;
    }
    .slide-skills {
        min-width: 54px;
        font-size: 0.7rem;
        padding: 4px 4px;
    }
    .slider-container-skills::before,
    .slider-container-skills::after {
        width: 2100px;
    }
    .job-container {
        max-width: 600px;
        align-items: center;
    }
@media (max-width: 600px) {
    .job-card {
        flex-direction: row; /* tetap horizontal */
        align-items: flex-start;
        max-width: 110%;
        max-height: 108px;
        width: 100%;
        text-align: left;
        height: auto;
        font-size: 65%;
    }

    .job-card img {
        width: 80px;
        height: 80px;
        margin: 12px;
    }

    .content {
        padding: 12px;
        justify-content: center;
        align-items: flex-start;
    }

    .content h2,
    .location,
    .desc {
        margin: 0;
        text-align: left;
        width: 100%;
    }
    .location {
        font-size: 0.55rem;
    }
    .content h2 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    .footer {
        margin: 0;
        font-size: 0.45rem;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }
    .desc {
        font-size: 0.5rem;
        opacity: 0.8;
    }
}
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        aspect-ratio: unset;
        max-width: 100%;
        justify-items: center;
        align-items: center;
        padding: 16px 4px;
        gap: 16px;
    }
    .profile-pic-container {
        margin-bottom: 12px;
        margin-right: 0;
    }
    .profile-info {
        align-items: center;
        padding: 0 4px;
        text-align: center;
    }
    .emoji-flex {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .about-section,
    .about-box,
    .about-content,
    .skills-section-skills,
    .content,
    .slider-container-skills,
    .job-card,
    .profile-info {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .about-section,
    .about-box,
    .about-content {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

.about-box {
    justify-self: center;
    align-self: center;
}

.sect-title {
    justify-self: center;
    align-self: center;
}

.section-title {
    margin-left: 10px;
}

.switch {
    margin-right: 10px;
}

@media (max-width: 600px) {
  .profile-pic-container {
    width: 126px;   /* 180px - 30% = 126px */
    height: 126px;
  }
}

@media (max-width: 600px) {
  .emoji-item {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
  }
}
/* === SOCIAL FOOTER BASE === */
.social-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 48px auto 16px auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  color: #d5d8e2;
}

/* === INDIVIDUAL BOXES === */
.social-box {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* === HEADERS === */
.social-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* === LINKS LIST === */
.social-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-box li {
  margin-bottom: 6px;
}

.social-box li:last-child {
  margin-bottom: 0;
}

/* === SOCIAL LINKS === */
.social-box a {
  color: #a4a3bd;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-box a:hover {
  color: #ffffff;
  animation: wiggleLink 0.3s ease-in-out;
}

/* === EMAIL CONTACT === */
.contact {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

.contact a {
  color: #d5d8e2;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact a:hover {
  color: #ffffff;
  animation: wiggleLink 0.3s ease-in-out;
}

/* === WIGGLE ANIMATION === */
@keyframes wiggleLink {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(3deg); }
  40% { transform: rotate(-3deg); }
  60% { transform: rotate(2deg); }
  80% { transform: rotate(-2deg); }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 600px) {
  .social-footer {
    padding: 12px;
    gap: 16px;
  }

  .social-box {
    width: 100%;
    max-height: 200px;
    min-width: 110;
    font-size: 60%;
  }
  
  .social-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .contact {
    margin-top: 12px;
  }
}

* {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* Internet Explorer/Edge */
}
