body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom, #f4f7fb, #75acff);
    color: #333;
}

body::before {
    content: "";
    display: block;
    height: calc(60px + env(safe-area-inset-top) + 10px);
}

.ios-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: calc(60px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: 20px;
    padding-right: 20px;
    z-index: 9999;
    box-sizing: border-box;
    isolation: isolate;
}

.menu-toggle {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3.5px;
    background: #fff;
    border-radius: 10px;
    transition: .25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
    margin: 30px auto 20px;
    display: block;
}

.khung-avt {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto 20px;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 143px;
    height: 143px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.verify {
    width: 31px;
    height: 31px;
    margin-left: 2px;
    vertical-align: -3px;
}

.iam {
    margin-bottom: 10px;
    text-align: center;
    color: #2b2b2b;
}

h1, h2 {
    margin: 0;
    text-align: center;
    color: #2b2b2b;
}

.headline {
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    margin: 10px 0 20px;
}

.gradient-text {
    background: linear-gradient(to right, #4a6cf7, #b983ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    -webkit-tap-highlight-color: transparent;
    border: none;
}

.social-box {
    padding: 9px;
    border-radius: 20px;
    border: 1.5px dashed rgba(0, 0, 0, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-box img {
    border-radius: 5px;
    width: 42px;
    height: 42px;
}

.title_app {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
}

.download-app {
    margin: auto;
    padding: 0 5px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .06);
    margin-top: 10px;
    animation: fadeInUp .8s ease-in-out;
}

.download-app .app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    border-bottom: none;
}

.download-app .app-item::after {
    content: "";
    position: absolute;
    left: calc(60px + 2rem);
    bottom: 0;
    right: 0;
    height: 0.6px;
    background: #fff;
}

.download-app .app-item:last-child::after {
    display: none;
}

.download-app .info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-app .info img {
    width:62px;
    height:62px;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
}

.download-app .text .title {
    font-size: 18px;
    font-weight: 700;
}

.description {
    font-style: italic;
}

.auto-time {
    font-style: italic;
}

.download-btn {
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    background: transparent;
    outline: none;
    color: #007bff;
    padding: 0;
    margin-left: 0;
    margin-right: 5px;
}

.loading-icon {
    margin-left: 2px;
    animation: spin 1s linear infinite;
    font-size: 25px;
    color: #3498db;
}

@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.link-box-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
}

.link-box {
    width: 270px;
    text-align: center;
    background: #fff;
    padding: 10px 30px;
    border-radius: 20px;
    border: 1.5px dashed rgba(0, 0, 0, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
}

.link-box h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.link-btn {
    -webkit-tap-highlight-color: transparent;
    border: none;
    display: inline-block;
    margin-bottom: 15px;
    border: 1.5px dashed rgba(0, 0, 0, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 20px;
    padding: 10px;
    width: 30px;
    border-radius: 13px;
    text-decoration: none;
}

.description {
    display: block;
    font-size: 15px;
    color: #555;
    margin-top: 4px;
}

.auto-time {
    font-size: 15px;
    color: #555;
    display: block;
    margin-top: 4px;
}

.cursor {
    display: inline-block;
    width: 2px;
    background: gray;
    animation: blink .7s infinite;
    margin-left: 2px;
}

.alert-box {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    overflow-y: auto;
}

.alert-content {
    background: #fff;
    border: 1.5px dashed rgba(0, 0, 0, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 380px;
    position: relative;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin: auto;
}

.alert-content h3 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.alert-content button {
    padding: 8px 12px;
    border: 1.5px dashed rgba(0, 0, 0, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 1px 3px rgba(0, 0, 0, 0.1);
    color: #000;
    font-weight: 400;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
}

@keyframes blink {
    0%, 100% { opacity: 1 }
    50% { opacity: 0 }
}

.wave-container svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -1px;
}

.skill {
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 40px 0 70px;
}

.skill-item {
    text-align: center;
}

.skill-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
    border: none;
}

.contact {
    font-weight: 600;
    text-align: center;
    background: #f1f3f5;
    padding: .5rem;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.link-btn,
.download-btn,
.alert-content button,
.social-box,
.menu-toggle,
.skill-img {
    transition:.15s ease;
}

.link-btn:active,
.download-btn:active,
.alert-content button:active,
.social-box:active,
.menu-toggle:active,
.skill-img:active {
    transform:scale(.95);
}

.snowflake {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(180, 220, 255, 0.8);
    font-family: Arial, sans-serif;
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

.snowflake:nth-of-type(3),
.snowflake:nth-of-type(7),
.snowflake:nth-of-type(10) {
    color: #cfe9ff;
    text-shadow: 0 0 6px #cfe9ff;
}

.snowflake:nth-of-type(5),
.snowflake:nth-of-type(11) {
    color: #a8d4ff;
    text-shadow: 0 0 8px #a8d4ff;
}

.snowflake:nth-of-type(2),
.snowflake:nth-of-type(8) {
    color: #e6f4ff;
    text-shadow: 0 0 5px #e6f4ff;
}

.snowflake:nth-of-type(0) { font-size: 10px; }
.snowflake:nth-of-type(1) { font-size: 14px; }
.snowflake:nth-of-type(2) { font-size: 18px; }
.snowflake:nth-of-type(3) { font-size: 12px; }
.snowflake:nth-of-type(4) { font-size: 20px; }
.snowflake:nth-of-type(5) { font-size: 22px; }
.snowflake:nth-of-type(6) { font-size: 16px; }
.snowflake:nth-of-type(7) { font-size: 24px; }
.snowflake:nth-of-type(8) { font-size: 13px; }
.snowflake:nth-of-type(9) { font-size: 19px; }
.snowflake:nth-of-type(10) { font-size: 17px; }
.snowflake:nth-of-type(11) { font-size: 25px; }

.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 6s, .5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 3s, 1.5s; }
.snowflake:nth-of-type(10) { left: 25%; animation-delay: 2s, 0s; }
.snowflake:nth-of-type(11) { left: 65%; animation-delay: 4s, 2.5s; }

@-webkit-keyframes snowflakes-fall {
    0% { top: -10% }
    100% { top: 100% }
}

@-webkit-keyframes snowflakes-shake {
    0%, 100% { -webkit-transform: translateX(0) }
    50% { -webkit-transform: translateX(80px) }
}

@keyframes snowflakes-fall {
    0% { top: -10% }
    100% { top: 100% }
}

@keyframes snowflakes-shake {
    0%, 100% { transform: translateX(0) }
    50% { transform: translateX(80px) }
}
