:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bg3: #1a1a2e;
    --accent: #4ecca3;
    --accent2: #e94560;
    --text: #e8e8f0;
    --text-dim: #7a7a8e;
    --glow: rgba(78, 204, 163, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── AMBIENT BACKGROUND ── */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ambient::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 204, 163, 0.08) 0%, transparent 70%);
    animation: drift1 14s ease-in-out infinite alternate;
}

.ambient::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.07) 0%, transparent 70%);
    animation: drift2 18s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to {
        transform: translate(80px, 120px) scale(1.15);
    }
}

@keyframes drift2 {
    to {
        transform: translate(-90px, -70px) scale(1.1);
    }
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(78, 204, 163, 0.08);
    transition: padding 0.3s;
}

nav.scrolled {
    padding: 12px 48px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #7fffd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 3px;
    margin-bottom: 36px;
    animation: pulse-ring 3s ease-in-out infinite;
}

.hero-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg2);
    background-image: url("profile.png");
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.4);
    }

    50% {
        box-shadow: 0 0 28px 8px rgba(78, 204, 163, 0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 span {
    color: var(--accent);
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 16px;
    opacity: 0;
    animation: fadeUp 0.8s 0.55s forwards;
}

.hero .roles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.75s forwards;
}

.role-tag {
    padding: 6px 18px;
    border: 1px solid rgba(78, 204, 163, 0.25);
    border-radius: 30px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(78, 204, 163, 0.06);
    transition: background 0.3s, border-color 0.3s;
}

.role-tag:hover {
    background: rgba(78, 204, 163, 0.15);
    border-color: var(--accent);
}

.hero .location {
    color: var(--text-dim);
    font-size: 0.82rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero .location span {
    color: var(--accent);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 1s 1.4s both;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ── SECTION COMMON ── */
section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s 0.1s;
}

.section-label.visible,
.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s;
}

.about-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.interest-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.1);
    border-radius: 14px;
    padding: 22px 18px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition-property: opacity, transform, border-color, box-shadow;
}

.interest-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.interest-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(78, 204, 163, 0.1);
    transform: translateY(-4px);
}

.interest-card .ic-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.interest-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.interest-card p {
    font-size: 0.74rem;
    color: var(--text-dim);
}

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

    .interests-grid {
        grid-template-columns: 1fr;
    }
}

/* ── EXPERIENCE ── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.exp-card {
    position: relative;
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(.22, .61, 0, 1);
}

.exp-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.exp-card:hover {
    border-color: rgba(78, 204, 163, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.exp-card::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 12px rgba(78, 204, 163, 0.4);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.exp-date {
    font-size: 0.72rem;
    color: var(--accent);
    background: rgba(78, 204, 163, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.exp-company {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 4px 0 12px;
}

.exp-duties {
    list-style: none;
}

.exp-duties li {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.exp-duties li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── SKILLS ── */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skill-category h3 {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(78, 204, 163, 0.15);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 9px 20px;
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.12);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.45s cubic-bezier(.22, .61, 0, 1);
}

.skill-tag.visible {
    opacity: 1;
    transform: scale(1);
}

.skill-tag:hover {
    border-color: var(--accent);
    background: rgba(78, 204, 163, 0.08);
    color: var(--accent);
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 16px rgba(78, 204, 163, 0.15);
}

/* ── PROJECTS ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.08);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(.22, .61, 0, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: rgba(78, 204, 163, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card .proj-date {
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.proj-tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(78, 204, 163, 0.08);
    color: var(--accent);
    border: 1px solid rgba(78, 204, 163, 0.15);
}

.proj-github {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.proj-github:hover {
    color: var(--accent);
}

/* ── EDUCATION ── */
.edu-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.08);
    border-radius: 18px;
    padding: 32px 28px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s;
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card:hover {
    border-color: rgba(78, 204, 163, 0.2);
}

.edu-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.edu-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-card .edu-degree {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.edu-card .edu-date {
    font-size: 0.72rem;
    color: var(--accent);
}

.edu-card .edu-detail {
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ── CERTIFICATIONS ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.cert-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.55s;
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cert-card:hover {
    border-color: rgba(78, 204, 163, 0.22);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.cert-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cert-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}

.cert-icon.green {
    background: rgba(78, 204, 163, 0.15);
}

.cert-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cert-card p {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ── RECOMMENDATION ── */
.rec-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.1);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s;
}

.rec-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.rec-card::before {
    content: '❝';
    position: absolute;
    top: 18px;
    left: 28px;
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.25;
    font-family: 'Playfair Display', serif;
}

.rec-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.rec-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #7fffd4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg);
}

.rec-author h4 {
    font-size: 0.88rem;
    font-weight: 600;
}

.rec-author p {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.rec-card blockquote {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
}

/* ── LANGUAGES ── */
.lang-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-card {
    background: var(--bg2);
    border: 1px solid rgba(78, 204, 163, 0.1);
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    min-width: 180px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.55s;
}

.lang-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(78, 204, 163, 0.12);
}

.lang-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.lang-card p {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.lang-flag {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px 40px;
    border-top: 1px solid rgba(78, 204, 163, 0.08);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

footer .social-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

footer .social-links a:hover {
    color: var(--accent);
}

footer p {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ── COUNTER ANIM (for stats) ── */
.stats-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── MOBILE ── */
@media(max-width:600px) {
    nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    section {
        padding: 70px 18px;
    }

    .edu-card {
        flex-direction: column;
    }

    .exp-header {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}