:root {
    --bg: #030303;
    --text: #ffffff;
    --nav-border: rgba(0, 0, 0, 0.08);
    --nav-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    --nav-pill: #ffffff;
    --nav-link: #4b5563;
    --nav-link-hover: #111827;
    --nav-link-active: #111827;
    --cta: #111827;
    --cta-hover: #1f2937;
    --radius-pill: 9999px;
    --max-width: 1100px;
    --hero-max: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
}

/* NAV */
.nav-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 32px 24px 16px;
    transition: background-color 300ms ease;
    background: transparent;
}
.nav-wrapper.black-bg { background: #000; }

.nav-pill {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    background: var(--nav-pill);
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--nav-shadow);
    position: relative;
}

.nav-inner {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-links a {
    font-size: 14px;
    color: var(--nav-link);
    text-decoration: none;
    transition: color 180ms ease;
    font-weight: 400;
}
.nav-links a:hover { color: var(--nav-link-hover); }
.nav-links a.active {
    color: var(--nav-link-active);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.cta {
    display: none;
    padding: 10px 18px;
    background: var(--cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 180ms ease;
}
.cta:hover { background: var(--cta-hover); }

.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #111827;
    transition: background-color 180ms ease;
}
.hamburger:hover { background: rgba(0,0,0,0.06); }

.hamburger .icon {
    width: 22px;
    height: 22px;
    display: block;
    position: relative;
}
.hamburger .icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 220ms ease, top 220ms ease, opacity 160ms ease;
}
.hamburger .icon span:nth-child(1) { top: 6px; }
.hamburger .icon span:nth-child(2) { top: 10px; }
.hamburger .icon span:nth-child(3) { top: 14px; }

.hamburger.is-open .icon span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.is-open .icon span:nth-child(2) { opacity: 0; }
.hamburger.is-open .icon span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.08);
    max-height: 0;
    opacity: 0;
    transition: max-height 260ms ease, opacity 220ms ease;
}
.mobile-menu.open {
    max-height: 420px;
    opacity: 1;
}
.mobile-menu-inner {
    padding: 18px 24px 22px;
    display: grid;
    gap: 10px;
}
.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    text-decoration: none;
    color: var(--nav-link);
    transition: color 180ms ease;
    font-weight: 400;
}
.mobile-menu a:hover { color: var(--nav-link-hover); }
.mobile-menu a.active {
    color: var(--nav-link-active);
    font-weight: 600;
}
.mobile-cta {
    margin-top: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--cta);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 180ms ease;
}
.mobile-cta:hover { background: var(--cta-hover); }

@media (min-width: 640px) {
    .cta { display: inline-flex; }
}
@media (min-width: 1024px) {
    .nav-links { display: inline-flex; }
    .hamburger { display: none; }
    .mobile-menu { display: none; }
}

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.hero-spacer { height: 110px; }
.hero-wrap { width: 100%; max-width: var(--hero-max); text-align: center; }

.fade-up { animation: fadeUp 600ms ease forwards; opacity: 0; transform: translateY(20px); }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

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

.gif-wrap { margin-bottom: 48px; animation: popIn 600ms ease forwards; opacity: 0; transform: scale(0.95); animation-delay: 200ms; }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

.hero-gif { width: 100%; max-width: 720px; height: auto; margin: 0 auto; border-radius: 12px; display: block; }

.hero h1 { margin: 0 0 16px; font-size: 3.5rem; font-weight: 700; letter-spacing: 0.02em; }
.subtitle { margin: 0 0 32px; font-size: 1.5rem; font-weight: 400; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-bottom: 48px; }
.meta-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; transition: color 180ms ease; }
.meta-link:hover { color: #d1d5db; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.icon-16 { width: 16px; height: 16px; display: inline-block; }

.hero-desc { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; opacity: 0.95; }

/* SKILLS */
.skills {
    padding: 80px 24px;
    background: #f9fafb;
    color: #111827;
}

.skills__wrap { max-width: 1100px; margin: 0 auto; }

.skills__header { text-align: center; margin-bottom: 64px; }
.skills__title { margin: 0 0 16px; font-size: 2.5rem; font-weight: 600; letter-spacing: 0.01em; }
.skills__subtitle { margin: 0 auto; max-width: 720px; color: #4b5563; line-height: 1.7; font-size: 1rem; }

.skills__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .skills__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.skill-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 213, 219, 1);
    border-radius: 16px;
    padding: 32px;
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.skill-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.skill-card__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 600ms ease;
}

.skill-card:hover .skill-card__icon-wrap {
    transform: rotate(360deg) scale(1.08);
}

.skill-card__icon { width: 22px; height: 22px; color: #374151; }
.skill-card__title { margin: 0; font-size: 1.25rem; font-weight: 600; }

.skill-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(209, 213, 219, 1);
    background: rgba(255, 255, 255, 0.5);
    color: #374151;
    font-size: 0.875rem;
    transition: transform 160ms ease;
    cursor: default;
}

.skill-tag:hover { transform: translateY(-2px) scale(1.08); }

.skill-card--character {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.skill-character {
    width: 192px;
    height: 192px;
    object-fit: contain;
    transform: scale(1);
    transition: transform 220ms ease;
}

.skill-card--character:hover .skill-character {
    transform: scale(1.08) rotate(-2deg);
}

.section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; color: #fff; }
.section h2 { margin: 0 0 12px; font-size: 28px; }
.section p { margin: 0; opacity: 0.9; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible.delay-1 { transition-delay: 100ms; }
.reveal.is-visible.delay-2 { transition-delay: 200ms; }
.reveal.is-visible.delay-3 { transition-delay: 300ms; }
.reveal.is-visible.delay-4 { transition-delay: 400ms; }
.reveal.is-visible.delay-5 { transition-delay: 500ms; }
.reveal.is-visible.delay-6 { transition-delay: 600ms; }


/* EXPERIENCE */
.exp {
    padding: 80px 24px;
    background: #DDE5E9;
    color: #111827;
}

.exp__wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.exp__block {
    margin-top: 80px;
}

.exp__about {
    text-align: center;
    margin-bottom: 80px;
}

.exp__big-icon {
    width: 168px;
    height: 168px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    transform: scale(1);
    transition: transform 220ms ease;
}

.exp__big-icon:hover {
    transform: rotate(-6deg) scale(1.05);
}

.exp__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transform: scale(1);
    transition: transform 220ms ease;
}

.exp__icon:hover {
    transform: rotate(-6deg) scale(1.05);
}

.exp__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.exp__h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.exp__h2--left {
    text-align: left;
}

.exp__about-text {
    margin: 0 auto;
    max-width: 920px;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    display: grid;
    gap: 32px;
}

.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 32px;
    border-left: 2px solid #6b7280;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #374151;
}

.exp-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 213, 219, 1);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transform: scale(1);
    transition: transform 200ms ease, box-shadow 220ms ease;
}

.exp-card:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.exp-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.exp-card__main {
    min-width: 0;
    flex: 1;
}

.exp-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 600;
    word-break: break-word;
}

.exp-company {
    margin: 0 0 16px;
    font-weight: 500;
    color: #2563eb;
    word-break: break-word;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.exp-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.exp-meta__text {
    word-break: break-word;
}

.exp-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transform: rotate(0deg);
    transition: transform 240ms ease;
    filter: brightness(0);
    opacity: 0.9;
}

.exp-card.is-open .exp-arrow {
    transform: rotate(180deg);
}

.exp-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 320ms ease, opacity 260ms ease;
}

.exp-card.is-open .exp-details {
    max-height: 900px;
    opacity: 1;
}

.exp-details__inner {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.exp-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.exp-li {
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.exp-bullet {
    margin-top: 8px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Education grid */
.edu-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .edu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.edu-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(209, 213, 219, 1);
    border-radius: 16px;
    padding: 24px;
    transform: scale(1);
    transition: transform 200ms ease, box-shadow 220ms ease;
}

.edu-card:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.edu-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.edu-inst {
    margin: 0 0 12px;
    font-weight: 500;
    color: #2563eb;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #6b7280;
    font-size: 0.875rem;
}


/* PROJECTS */
.projects {
    padding: 80px 24px;
    background: #ffffff;
    overflow: hidden;
    color: #111827;
}

.projects__wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.projects__grid {
    display: grid;
    gap: 64px;
    align-items: center;
    grid-template-columns: 1fr;
}

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

.projects__viewport {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.projects__rail {
    display: grid;
    gap: 24px;
    will-change: transform;
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    cursor: pointer;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card__tagRow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.project-pill {
    padding: 4px 12px;
    background: #2563eb;
    color: #fff;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.project-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f9fafb;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-tag {
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.project-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.project-arrow {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-arrow svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* Right side */
.projects__right {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .projects__right {
        padding-left: 32px;
    }
}

.projects__title {
    margin: 0 0 24px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.projects__subtitle {
    margin: 0 0 32px;
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.7;
}

.projects__ctaRow {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.projects__icon {
    height: 96px;
    width: auto;
    object-fit: contain;
    transition: transform 220ms ease;
}

.projects__icon:hover {
    transform: rotate(-4deg) scale(1.03);
}

.projects__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 160ms ease, background-color 160ms ease;
}

.projects__btn:hover {
    background: #111827;
    transform: scale(1.05);
}

.projects__btn:active {
    transform: scale(0.97);
}

.projects__btnIcon svg {
    width: 20px;
    height: 20px;
    display: block;
}



/* CONTACT */
.contact {
    padding: 80px 24px;
    background: #f9fafb;
    color: #111827;
}

.contact__wrap {
    max-width: 900px;
    margin: 0 auto;
}

.contact__header {
    text-align: center;
    margin-bottom: 48px;
}

.contact__title {
    margin: 0 0 16px;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.contact__subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: #4b5563;
    line-height: 1.7;
}

.contact__card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 213, 219, 1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
}

@media (max-width: 767px) {
    .contact__card {
        padding: 28px;
    }
    .contact__iconWrap {
        display: none;
    }
}

.contact__iconWrap {
    flex-shrink: 0;
}

.contact__icon {
    width: 192px;
    height: 192px;
    object-fit: contain;
    display: block;
}

.contact__content {
    flex: 1;
}

.contact__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(209, 213, 219, 1);
    text-decoration: none;
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 220ms ease;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: #f9fafb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 220ms ease, background-color 200ms ease;
    flex-shrink: 0;
}

.contact-item__icon svg {
    width: 24px;
    height: 24px;
    color: #374151;
    transition: color 200ms ease;
}

.contact-item:hover .contact-item__icon {
    transform: rotate(-6deg) scale(1.05);
    background: #eff6ff;
}

.contact-item:hover .contact-item__icon svg {
    color: #2563eb;
}

.contact-item__title {
    margin: 0 0 6px;
    font-weight: 600;
    color: #111827;
}

.contact-item__desc {
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.contact__footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
}


/* FOOTER */
.footer {
    background: #111827;
    color: #ffffff;
    padding: 80px 24px 48px;
}

.footer__wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}

.footer__headline {
    margin: 0 0 16px;
    font-size: 2rem;
    font-weight: 600;
}

.footer__btn {
    padding: 12px 24px;
    background: #ffffff;
    color: #111827;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 160ms ease, transform 160ms ease;
}

.footer__btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #111827;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 160ms ease, transform 160ms ease;
}

.footer__social:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.footer__gifWrap {
    text-align: center;
    margin: 48px 0;
}

.footer__gif {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    max-height: clamp(80px, 15vw, 200px);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer__bottom a {
    color: #9ca3af;
    text-decoration: underline;
    transition: color 160ms ease;
}

.footer__bottom a:hover {
    color: #ffffff;
}

@media (max-width: 1023px) {
    .nav-pill {
        border-radius: 25px;
    }
}
