/* General Styles */
body {
    font-family: ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    margin: 0;
    padding: 0;
    background: linear-gradient(0deg, #94bbff, #fff);
    background-color: #f4f4f4;
    /* color: #333; */
}

h2 {
    font-size: 1.5em;
    /* color: #333; */
}
h1 {
    font-size: 2em;
    /* color: #333; */
}
p {
    line-height: 1.6;
}

/* Navbar */
html {
    scroll-behavior: smooth;
}
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.navbar {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(45, 45, 45, 0.8); /* Semi-transparent background */
    padding: 0 2rem;
    color: white;
    backdrop-filter: blur(5px); /* Adjust the blur value as needed */
    -webkit-backdrop-filter: blur(5px); /* Safari */
}

.th {
    font-size: 20px;
    margin-left: 6rem;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    align-items: center;
    display: flex;
    list-style: none;
    padding: 0 6em;
    box-shadow: none !important;
}

.nav-links.show {
    opacity: 1;
    pointer-events: auto;
}

.menu-button {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links li {
    margin-left: 3em;
    /* padding: 2em 1em; */
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

.nav-links li a:hover {
    color: #94bbff;
}

/* About Section */
.typing {
    font-size: 3em;
    /* color: #333; */
    font-weight: 600;
}
#typed-text {
    background-image: linear-gradient(45deg, #518ef7, rgb(181, 111, 246));
    background-clip: text;
    color: transparent;
    /* color: #333; */
    margin: 0;
}

.cursor {
    margin-left: 0;
    color: #333;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


.logo {
    height: 40px;
    width: 70px;
    position: relative;
    object-fit: contain;
}

.padding {
    padding: 2rem;
}
code, pre {
    
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
.code {
    width: 45%;
    margin-right: auto;
}
.round {
    border-radius: 8px;
}
 
.about-section {
    margin: 0 3em;
    align-items: center;
    justify-content: space-between;
    display: flex;
    padding: 2rem;
    
}

.profile {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 20px 0;
}

.social-buttons {
    margin-top: 2em;
}

.social-btn {
    display: inline-block;
    border: 0 solid black;
    cursor: pointer;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    margin: 10px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    height: 60px;
}

.social-btn:hover {
    background-color: #555;
}
.wave-container {
    
    line-height: 0;
}


/* Skills Section */
.skills-section {
    
    text-align: center;
    padding: 2rem;
    background-color: #fff;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    font-weight: bold;
    display: block;
}
.skill>div {
    width: 50%;
    margin: 0 auto;
}

.skill-bar {
    background-color: #ddd;
    border-radius: 25px;
    width: 100%;
    height: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}


.skill-level {
    background-color: #4CAF50;
    height: 100%;
    border-radius: 10px;
}
.skill-fill {
    background-color: #4CAF50;
    height: 100%;
    width: 0;
    border-radius: 25px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 2s ease;
}

/* Projects Section */
.projects-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    border-radius: 0.75em;
    margin: 4em;
    text-align: center;
    padding: 2rem;
}
.box-shadow {
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}
.prj-collum {
    flex: 1;
    margin: 10px;
    padding: 20px;
    background-color: hsl(0, 0%, calc(100% * (1.15 - var(--dark-mode))));
    border-radius: 10px;
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    transition-duration: 0.5s;
}

.prj-collum:hover {
    transform: translateY(2px);
    transition-duration: 0.3s;
}

.project {
    margin-bottom: 20px;
}

.project img {
    height: 20px;
    object-fit: cover;
}

.project h3 {
    margin: 10px 0;
}

.project p {
    line-height: 1.6;
}

.project a {
    display: inline-block;
    background-color: #42a9f7;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.project a:hover {
    background-color: #dadada;
}


/* Contact Section */
.contact-section {
    padding: 2rem;
    background-color: hsl(0, 0%, calc(100% * (1.1 - var(--dark-mode))));
    text-align: center;
}

.color-mode {
    aspect-ratio: 1;
    filter: invert(var(--dark-mode));
    inline-size: 25rem;
    max-inline-size: 50vw;
    transform: rotate(calc(var(--dark-mode) * 180deg));
    transition: all .6s ease;
  }

body {
    --dark-mode: 0;
    background-color: hsl(0, 0%, calc(100% * (1.1 - var(--dark-mode))));
    color: calc(100% * var(--dark-mode));
    /* display: grid; */
    min-block-size: 100vh;
    place-content: center;
    transition: all .6s ease;
}
@media screen and (max-width: 1000px) {
    .menu-button {
        display: block;
        margin: 8px 0;
    }

    .nav-links {
        opacity: 0;
        border-radius: 0.75em;
        margin: 0;
        align-items: flex-start;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0; 
        background-color: rgba(45, 45, 45, 0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 0.5rem 2rem;
        transition: all 0.3s ease-in-out;
        pointer-events: none;
    }
    .th {
        margin-left: 0;
    }
    .nav-links li {
        margin: 1em 0;
    }
    .about-section {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    .profile {
        width: 95%;
        margin: 0 2em;
        text-align: center;
    }

    .code {
        width: 80%;
        margin: 0 auto;
    }
    pre {
        display: block;
        margin: 0 auto; 
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .social-buttons {
        margin-top: 1em;
    }
    .skills-section {
        padding: 1rem;
    }
    .skill>div {
        width: 100%;
    }
    .projects-section {
        padding: 1rem;
        margin: 2em;
    }
    .contact-section {
        padding: 1rem;
    }
}
@media screen and (max-width: 600px) {
    .prj-collum {
        flex: auto;
        width: 100%;
    }
    .typing {
        font-size: 2em;
    }

}

.hidden {
    display: none;
}
/* =========================
   FIX Má»œ + FIX THá»ªA KHOáº¢NG
   ========================= */

/* Táº¯t blur iOS gĂ¢y má» */
.navbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Body khĂ´ng dĂ¹ng place-content */
body {
  place-content: unset !important;
}

/* áº¨n wave gĂ¢y thá»«a khoáº£ng */
.wave-container {
  display: none !important;
}

/* ===== FIX SWITCH TEXT CENTER + BOLD ===== */
.switch button {
  flex: 1;
  display: flex;
  align-items: center;     /* cÄƒn giá»¯a dá»c */
  justify-content: center; /* cÄƒn giá»¯a ngang */

  font-size: 16px;
  font-weight: 700;        /* Äáº¬M */
  letter-spacing: 0.3px;

  border: none;
  background: transparent;
  color: #666;
  padding: 12px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}

.switch button.active {
  background: #4f7cff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,124,255,.4);
}
/* ===== iOS STYLE SWITCH ===== */
.ios-switch {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.ios-switch-track {
  position: relative;
  width: 320px;
  height: 48px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 4px;
}

.ios-switch-track button {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #aaa;
  z-index: 2;
  cursor: pointer;
}

.ios-switch-track button.active {
  color: #fff;
}

.ios-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg,#4f7cff,#3b5bff);
  box-shadow: 0 6px 18px rgba(79,124,255,.6);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.ios-switch-track.esign .ios-switch-thumb {
  transform: translateX(100%);
}

.hidden {
  display: none !important;
}
/* ===== BOUNCE ANIMATION ===== */
@keyframes ios-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.96); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ios-switch-thumb.bounce {
  animation: ios-bounce 0.35s ease;
}
/* ===== BADGE ===== */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge.new {
  background: #4f7cff;
  color: #fff;
}

.badge.hot {
  background: linear-gradient(135deg,#ff4d4f,#ff8f1f);
  color: #fff;
  box-shadow: 0 0 8px rgba(255,77,79,.6);
}
/* ===== KSign / ESign CLEAN UI ===== */

.app-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px auto;
  max-width: 720px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.app {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.app-info {
  text-align: center;
}

.app-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.app-desc {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.download-btn {
  background: #007aff;
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn svg {
  fill: #fff;
}
/* ===== iOS STYLE LIST ===== */

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px auto;
  max-width: 720px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.app-text {
  flex: 1;
  text-align: center;
}

.app-title {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.app-sub {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.app-action {
  font-size: 14px;
  font-weight: 600;
  color: #007aff;
}
/* =========================
   iOS ROUND STYLE FIX
   ========================= */

/* SWITCH KSign / ESign */
.ios-switch {
  max-width: 360px;
  margin: 18px auto;
}

.ios-switch-track {
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ios-switch button {
  border-radius: 999px;
  padding: 10px 0;
  font-weight: 600;
}

/* ACTIVE TAB */
.ios-switch button.active {
  background: linear-gradient(135deg,#4f7cff,#3b5bff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79,124,255,.45);
}

/* =========================
   APP CARD (KSign / ESign)
   ========================= */

.app-row {
  border-radius: 20px;
  margin: 14px 16px;
  padding: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* ICON */
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* TEXT */
.app-title {
  font-size: 17px;
  font-weight: 700;
}

.app-sub {
  font-size: 14px;
  opacity: .75;
}

/* INSTALL BUTTON */
.app-action {
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  background: #f2f2f7;
  color: #007aff;
}
/* =========================
   iOS ROUND STYLE FIX
   ========================= */

/* SWITCH KSign / ESign */
.ios-switch {
  max-width: 360px;
  margin: 18px auto;
}

.ios-switch-track {
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ios-switch button {
  border-radius: 999px;
  padding: 10px 0;
  font-weight: 600;
}

/* ACTIVE TAB */
.ios-switch button.active {
  background: linear-gradient(135deg,#4f7cff,#3b5bff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79,124,255,.45);
}

/* =========================
   APP CARD (KSign / ESign)
   ========================= */

.app-row {
  border-radius: 20px;
  margin: 14px 16px;
  padding: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* ICON */
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* TEXT */
.app-title {
  font-size: 17px;
  font-weight: 700;
}

.app-sub {
  font-size: 14px;
  opacity: .75;
}

/* INSTALL BUTTON */
.app-action {
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  background: #f2f2f7;
  color: #007aff;
}
.app-section .esign-section {
    margin: auto;
    width: 50%;
    text-align: center;
    overflow-x: auto;
    justify-content: center;
}
.app-group {
    width: 30em;
}
.app img {
    height: 4em;
    border-radius: 16px;
}

.app {
    margin: 1rem;
    display: flex;

}
.line {
    position: relative;
    margin-top: 3em;
}
.line::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.install-btn {
    
    padding: 8px 26px;
    font-size: 13px;
    border-radius: 999px;
    border: 0;
    color: white;
    cursor: pointer;
    background-color: #007aff; /* iOS blue */
    transition-duration: 0.3s;
    font-weight: 800;
    right: 0;
}

.install-btn:hover {
    background-color: #005bb5; /* iOS dark blue */
}

.app-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1em;
    border-radius: .5rem;
    transition-duration: 0.3s;
}

.app-container:hover {
    background-color: #cecece6b;
    cursor: pointer;
}

.app-container h1 {
    padding-top: 4px;
    /* color: oklch(27.8078% .029596 256.847952); */
    font-size: 18px;
    margin: 0;
    text-align: left;
    font-weight: 400;
}
/* .app-container i::before {
    content: "ï„¶";
    font-family: iconfont !important;
    font-style: normal;
    font-weight: 400 !important;
    vertical-align: top;
    line-height: 1;
} */

.app-container p {
    /* color: oklch(27.8078% .029596 256.847952); */
    font-size: 14px;
    margin: 0;
    text-align: left;
    font-weight: 300;
}

.enter {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 1001;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 1s ease;

}

@media screen and (max-width: 1000px) {
    .app-container {
        padding-right: 2em;  
    }
    .app-section .esign-section {
        width: 100%;
        
    }
    
    
}

@media screen and (max-width: 600px) {

    .app-container {
        position: relative;
    }
    .app-container::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 6em;
        width: 75%;
        border-bottom: 1px solid #ddd;
    }
    
    .app-container:last-child::after {
        border-bottom: none; 
    }
    
    .app img {
        height: 4em;
        border-radius: 16px;
    }
    
    .install-btn {
        padding: 8px 26px;
        font-size: 13px;
    }
    
    .app-container h1 {
        font-size: 16px;
    }

    .app-container:hover {
        background-color: #cecece6b;
        cursor: pointer;
    }

    
    
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap; 
}

.scroll-item {
    flex: 0 0 auto;
    padding: 10px;
    margin: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    width: 200px; 
}
/* ===== FIX SWITCH Má»œ + DISABLE ===== */
.ios-switch {
  opacity: 1 !important;
}

.ios-switch-track {
  opacity: 1 !important;
  background: rgba(255,255,255,0.9);
}

.ios-switch button {
  pointer-events: auto !important;
  opacity: 1 !important;
  color: #333;
  font-weight: 600;
}

/* ACTIVE STATE */
.ios-switch button.active {
  background: linear-gradient(135deg, #4f7cff, #3b5bff);
  color: #fff;
  box-shadow: 0 0 14px rgba(79,124,255,.5);
}
/* ===== Visitor Countries UI ===== */
.visitor-card {
  margin: 50px auto;
  max-width: 720px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 20px;
}

.visitor-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.visitor-table-wrap {
  overflow-x: auto;
}

.visitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.visitor-table thead {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.visitor-table th,
.visitor-table td {
  padding: 10px 12px;
  text-align: left;
}

.visitor-table th:first-child,
.visitor-table td:first-child {
  text-align: center;
  width: 40px;
}

.visitor-table tbody tr {
  transition: all 0.2s ease;
}

.visitor-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.04);
}

.visitor-table tbody tr:hover {
  background: rgba(79,172,254,0.15);
  transform: scale(1.01);
}

.visitor-table img {
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .visitor-title {
    font-size: 18px;
  }
  .visitor-table {
    font-size: 14px;
  }
}
