@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Be+Vietnam+Pro:wght@500;600;700;800&display=swap');

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg-dark: #0a0f0c;
    --accent: #16a34a;
    --accent-dim: #15803d;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
    --text-body: #d1d5db;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2L4 20L9.5 15.5L13 22L16 20.5L12.5 14L20 14L4 2Z' fill='%2316a34a' stroke='%23052e13' stroke-width='1'/%3E%3C/svg%3E")
            4 2,
        auto;
}

a,
button {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%2316a34a' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%2316a34a'/%3E%3C/svg%3E")
            12 12,
        pointer;
}

.accent-text {
    color: var(--accent);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
}

.nowrap-phrase {
    white-space: nowrap;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

section {
    padding: 100px 20px;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -15;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -15;
    pointer-events: none;
}

.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -14;
    overflow: hidden;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    border-radius: 2px;
    opacity: 0;
    transform-origin: left center;
    animation: shootingStarMove ease-in forwards;
}

@keyframes shootingStarMove {
    0% {
        opacity: 0;
        transform: rotate(var(--angle, 130deg)) translateX(0) scaleX(0.4);
    }
    12% {
        opacity: 1;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 130deg)) translateX(420px) scaleX(1);
    }
}

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent), #4ade80);
    box-shadow:
        0 0 10px var(--accent),
        0 0 20px rgba(22, 163, 74, 0.3);
    z-index: 10000;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

.site-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease;
}

.site-nav.nav-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(10, 15, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.nav-indicator {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    left: 10px;
    width: 40px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.28), rgba(21, 128, 61, 0.16));
    border: 1px solid rgba(22, 163, 74, 0.4);
    border-radius: 50px;
    transition:
        left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 20px rgba(22, 163, 74, 0.15),
        inset 0 0 8px rgba(22, 163, 74, 0.1);
    z-index: 0;
    pointer-events: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 50px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.nav-link .nav-icon {
    font-size: 0.75rem;
    display: none;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.nav-link.active {
    color: #fff;
}

@media (max-width: 1060px) {
    .site-nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateX(0) translateY(100px);
        width: 100%;
        border-radius: 0;
    }

    .site-nav.nav-visible {
        transform: translateX(0) translateY(0);
    }

    .nav-pill {
        border-radius: 20px 20px 0 0;
        padding: 8px 4px 12px;
        gap: 0;
        justify-content: space-around;
        background: rgba(8, 12, 10, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: none;
        overflow-x: auto;
    }

    .nav-indicator {
        height: calc(100% - 20px);
        top: 8px;
        border-radius: 14px;
    }

    .nav-link {
        flex-direction: column;
        padding: 6px 8px;
        gap: 3px;
        font-size: 0;
    }

    .nav-link .nav-icon {
        display: block;
        font-size: 1rem;
    }

    .nav-link .nav-label {
        font-size: 0.55rem;
        opacity: 0.7;
    }

    .nav-link.active .nav-label {
        opacity: 1;
    }
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9991;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: rgba(10, 15, 12, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: #fff;
    background: rgba(22, 163, 74, 0.25);
    box-shadow:
        0 0 15px rgba(22, 163, 74, 0.2),
        inset 0 0 8px rgba(22, 163, 74, 0.15);
}

@media (max-width: 480px) {
    .lang-toggle {
        top: 12px;
        right: 12px;
    }
}

.hero {
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5vh 20px 0;
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: floatIcon 5s infinite ease-in-out;
}

.page-loaded .icon-top-left {
    animation:
        slideInTL 1.2s ease-out forwards,
        floatIcon 5s infinite ease-in-out 1.2s;
}
.page-loaded .icon-top-right {
    animation:
        slideInTR 1.2s ease-out forwards,
        floatIcon 5s infinite ease-in-out 1.2s;
}
.page-loaded .icon-bottom-left {
    animation:
        slideInBL 1.2s ease-out forwards,
        floatIcon 5s infinite ease-in-out 1.2s;
}
.page-loaded .icon-bottom-right {
    animation:
        slideInBR 1.2s ease-out forwards,
        floatIcon 5s infinite ease-in-out 1.2s;
}

.icon-top-left {
    top: 18%;
    left: 8%;
    color: var(--accent);
}
.icon-top-right {
    top: 18%;
    right: 8%;
    color: rgba(255, 255, 255, 0.55);
}
.icon-bottom-left {
    bottom: 18%;
    left: 8%;
    color: rgba(255, 255, 255, 0.55);
}
.icon-bottom-right {
    bottom: 18%;
    right: 8%;
    color: var(--accent);
}

@keyframes slideInTL {
    0% {
        top: -20%;
        left: -20%;
        opacity: 0;
    }
    100% {
        top: 18%;
        left: 8%;
        opacity: 1;
    }
}
@keyframes slideInTR {
    0% {
        top: -20%;
        right: -20%;
        opacity: 0;
    }
    100% {
        top: 18%;
        right: 8%;
        opacity: 1;
    }
}
@keyframes slideInBL {
    0% {
        bottom: -20%;
        left: -20%;
        opacity: 0;
    }
    100% {
        bottom: 18%;
        left: 8%;
        opacity: 1;
    }
}
@keyframes slideInBR {
    0% {
        bottom: -20%;
        right: -20%;
        opacity: 0;
    }
    100% {
        bottom: 18%;
        right: 8%;
        opacity: 1;
    }
}

@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-16px) rotate(4deg);
    }
}

.sub-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    min-height: 1.2em;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 15px 0 40px;
    line-height: 1.2;
    min-height: 1.2em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.type-cursor {
    display: inline-block;
    width: 3px;
    height: 0.95em;
    margin-left: 4px;
    background: currentColor;
    vertical-align: -0.1em;
    animation: blinkCursor 0.9s step-end infinite;
}

#nameCursor {
    visibility: hidden;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1.3rem;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, 10px);
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hero-buttons .btn-resume {
    opacity: 0;
}

.btn-resume {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #fff;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(22, 163, 74, 0.2),
        inset 0 0 10px rgba(22, 163, 74, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-15deg);
    animation: glowLine 3.5s infinite linear;
}

.btn-resume:hover {
    box-shadow:
        0 0 30px rgba(22, 163, 74, 0.5),
        inset 0 0 15px rgba(22, 163, 74, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(22, 163, 74, 0.12);
}

@keyframes glowLine {
    0% {
        left: -100%;
    }
    20% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    .main-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }
    .sub-title {
        font-size: 0.85rem;
        letter-spacing: 2.5px;
    }
    .floating-icon {
        display: none;
    }
    .section-title {
        font-size: 1.9rem;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 60px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(14deg) translateY(40px) scale(0.94);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 30%, var(--accent), transparent 70%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    animation: rotateBorder 4s linear infinite;
}

.scroll-reveal.expanded {
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    opacity: 1;
}

.glass-card h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.glass-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 85ch;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 34px 22px;
    }
    .glass-card h2 {
        font-size: 1.6rem;
    }
    .glass-card p {
        font-size: 1rem;
    }
}

.projects-section {
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent));
    box-shadow: 0 0 15px var(--accent);
    transition: height 0.4s ease-out;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    background: var(--accent);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--accent),
        0 0 40px rgba(22, 163, 74, 0.5);
    z-index: 3;
}

.timeline-item {
    padding: 70px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.left {
    left: 0;
    padding-right: 70px;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    text-align: left;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-content:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.timeline-content p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.project-tag {
    display: inline-block;
    background: rgba(22, 163, 74, 0.15);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(22, 163, 74, 0.3);
    margin-bottom: 18px;
    width: max-content;
    max-width: 100%;
}

.timeline-number {
    position: absolute;
    top: -14px;
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(22, 163, 74, 0.5);
    line-height: 1;
    opacity: 0.7;
    z-index: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.timeline-item.left .timeline-number {
    right: 16px;
}
.timeline-item.right .timeline-number {
    left: 16px;
}

.timeline-dot {
    position: absolute;
    top: 50px;
    width: 18px;
    height: 18px;
    background: transparent;
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot.active {
    box-shadow: 0 0 18px var(--accent);
    border-color: #fff;
    background: rgba(22, 163, 74, 0.2);
}

.timeline-item.left .timeline-dot {
    right: -9px;
}
.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-date {
    position: absolute;
    top: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Be Vietnam Pro', sans-serif;
    letter-spacing: 0.5px;
    width: 220px;
}

.timeline-item.left .timeline-date {
    left: calc(100% + 40px);
    text-align: left;
}
.timeline-item.right .timeline-date {
    right: calc(100% + 40px);
    text-align: right;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
        margin-bottom: 20px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 11px;
        right: auto;
    }
    .timeline-number {
        font-size: 3.2rem;
        opacity: 0.4;
        top: 0;
        right: 10px !important;
        left: auto !important;
    }

    .timeline-date {
        position: relative;
        inset: auto !important;
        text-align: left !important;
        margin-bottom: 10px;
        display: block;
        width: auto;
        font-size: 1.1rem;
        top: auto;
    }

    .timeline-content {
        padding: 26px 20px;
        min-height: auto;
    }
    .timeline-content h3 {
        font-size: 1.3rem;
    }
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(22, 163, 74, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.experience-card:hover::before {
    opacity: 1;
}
.experience-card > * {
    position: relative;
    z-index: 1;
}

.experience-card:hover {
    transform: translateY(-5px) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
}

.experience-date {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.experience-card .project-tag {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.experience-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-align: left;
    text-wrap: balance;
    text-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.experience-card p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-body);
}

.project-links-wrapper {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 25px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

.project-btn:hover {
    box-shadow:
        0 0 30px rgba(22, 163, 74, 0.5),
        inset 0 0 15px rgba(22, 163, 74, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(22, 163, 74, 0.1);
    color: #fff;
}

.project-btn i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project-btn:hover i {
    transform: rotate(-15deg) scale(1.2);
}

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .card-meta {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
    }
}

.skills-section {
    text-align: center;
}

.skill-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-body);
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    border-radius: 50px;
}

.filter-btn:hover {
    border-color: rgba(22, 163, 74, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.2);
}

.filter-btn.active {
    border-color: var(--accent);
    color: #fff;
    box-shadow:
        0 0 25px rgba(22, 163, 74, 0.3),
        inset 0 0 10px rgba(22, 163, 74, 0.15);
}

.filter-btn.active::before {
    opacity: 1;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    width: auto;
    height: 130px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--accent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px) scale(1.04) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(22, 163, 74, 0.15);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.skill-card .skill-icon {
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    object-fit: contain;
}

.skill-card:hover i,
.skill-card:hover .skill-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.skill-card span {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.8;
    transition: all 0.3s;
    z-index: 2;
    position: relative;
    text-align: center;
}

.skill-card:hover span {
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.skill-card.filter-hide {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none;
}
.skill-card.d-none {
    display: none !important;
}

.soft-skills {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.soft-skill-chip {
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.soft-skills-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 60px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .skill-card {
        height: 115px;
        padding: 12px;
    }
    .skill-card i {
        font-size: 1.9rem;
    }
    .skill-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.education-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.education-card i {
    font-size: 2.6rem;
    color: var(--accent);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 12px rgba(22, 163, 74, 0.4));
}

.education-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.education-card .edu-degree {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}
.education-card .edu-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.education-card p {
    color: var(--text-body);
    font-size: 1rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    max-width: 760px;
    margin: 0 auto;
}

.achievement-card--solo {
    max-width: 700px;
    margin: 0 auto;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    text-align: left;
    opacity: 0;
    transform: scale(0.94);
}

.achievement-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(22, 163, 74, 0.4);
}

.achv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.achievement-icon {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(22, 163, 74, 0.35));
}

.achievement-card .achv-date {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.achievement-card h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
}

.achievement-card a.achv-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.achievement-card a.achv-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

.contact-section {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.contact-note {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-body);
    line-height: 1.6;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    padding: 28px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    gap: 12px;
    text-align: center;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 40%, var(--accent), transparent 60%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: rotateBorder 3.5s linear infinite;
    transition: opacity 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(22, 163, 74, 0.3);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-icon {
    font-size: 1.8rem;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.6s ease;
}

.profile-card:hover .profile-icon {
    transform: scale(1.15) rotateY(360deg);
    transition: transform 1s ease;
}

.profile-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    word-break: break-word;
}

.profile-card:hover .profile-info p {
    color: var(--accent);
    opacity: 1;
}

@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .profile-card {
        padding: 22px 12px;
    }
}

@media (max-width: 480px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-links li a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px;
    position: relative;
}

.footer-nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: var(--accent);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.4);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    font-size: 0.85rem;
    position: relative;
}

.back-to-top {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4);
    border-color: transparent;
}
.back-to-top.bounce {
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    .back-to-top {
        position: static;
        margin-top: 20px;
    }
}

.resume-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resume-modal.show {
    display: flex;
    opacity: 1;
}

.resume-modal-content {
    position: relative;
    width: 90%;
    max-width: 950px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(20, 25, 22, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-modal.show .resume-modal-content {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    color: var(--accent);
}

.resume-iframe-container {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.resume-download {
    margin-top: 16px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.resume-download:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .resume-modal-content {
        padding: 24px 16px;
    }
}
