/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F9FAFB;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-position: outside;
    padding-left: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-weight: 700;
    font-size: 20px;
    color: #111827;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #4B5563;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-link:hover {
    color: #111827;
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 12px;
    border: 0;
    background-color: #111827;
    color: #F9FAFB;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: #1F2937;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #111827;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.section-white {
    background-color: #FFF;
}

.section-inner {
    max-width: 1100px;
    width: 100%;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 4px 20px;
    border-radius: 12px;
    background-color: #E5E7EB;
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
}

/* ===== HERO ===== */
.hero-content {
    display: flex;
    gap: 48px;
    align-items: center;
    padding-top: 60px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.hero-title {
    font-weight: 700;
    font-size: 52px;
    line-height: 1.15;
    color: #111827;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #4B5563;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #4B5563;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #4B5563;
}

.social-icons a,
.social-icons svg {
    color: #4B5563;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
}

.social-icons a:hover,
.social-icons svg:hover {
    color: #111827;
    transform: translateY(-2px);
}

.hero-photo {
    flex-shrink: 0;
}

/* ===== ABOUT ===== */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.about-text h3 {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.3;
    color: #111827;
}

.about-text p {
    font-size: 16px;
    line-height: 1.75;
    color: #4B5563;
}

.about-photo {
    flex-shrink: 0;
}

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

.skill-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.skill-group-title {
    font-weight: 600;
    font-size: 14px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    transition: transform 0.2s;
}

.skill-item:hover {
    transform: translateY(-4px);
}

.skill-item img {
    width: 64px;
    height: 64px;
}

.skill-item span {
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
}

/* ===== EXPERIENCE ===== */
.card {
    background-color: #FFF;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    /* border: 1px solid #E5E7EB; */
    transition: box-shadow 0.3s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-card {
    padding: 28px 32px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.exp-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-title {
    font-weight: 700;
    font-size: 20px;
    color: #111827;
}

.exp-company {
    font-weight: 500;
    font-size: 15px;
    color: #4B5563;
}

.exp-date {
    font-weight: 600;
    font-size: 15px;
    color: #6B7280;
    white-space: nowrap;
}

.exp-details ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exp-details li {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== WORK / PROJECTS ===== */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    display: flex;
    overflow: hidden;
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-img {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    min-height: 200px;
}

.project-img.loaded {
    animation: none;
    background: none;
    min-height: 0;
}

.project-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s, opacity 0.4s ease;
    opacity: 0;
}

.project-img.loaded img {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

.project-info {
    display: flex;
    flex-direction: column;
    padding: 36px;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.project-info h3 {
    font-weight: 700;
    font-size: 22px;
    color: #111827;
}

.project-info p {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
}

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

.tag {
    padding: 4px 12px;
    border-radius: 12px;
    background-color: #E5E7EB;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #111827;
    color: #F9FAFB;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-github:hover {
    background-color: #1F2937;
    color: #FFF;
    transform: translateY(-1px);
}

.btn-figma {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F24E1E;
    color: #FFFFFF;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-figma:hover {
    background-color: #D94616;
    color: #FFF;
    transform: translateY(-1px);
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FF0000;
    color: #FFFFFF;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-youtube:hover {
    background-color: #CC0000;
    color: #FFF;
    transform: translateY(-1px);
}

/* ===== CONTACT ===== */
.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 28px;
    color: #111827;
    transition: color 0.2s;
    word-break: break-all;
}

.contact-item img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.contact-socials {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.contact-socials svg {
    color: #4B5563;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
}

.contact-socials svg:hover {
    color: #111827;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #111827;
    color: #9CA3AF;
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
}

/* ===== PHOTO CONTAINER (kept from original) ===== */
.photo-container {
    --w: 280px;
    --h: 320px;
    width: var(--w);
    height: var(--h);
    position: relative;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-crop {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.photo-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.photo-wrapper::before,
.photo-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}

.photo-wrapper::before {
    background: #FFF;
}

.photo-wrapper::after {
    background: #E5E7EB;
    z-index: 0;
}

.offset-br {
    --dx: 1;
    --dy: 1;
}

.offset-tr {
    --dx: 1;
    --dy: -1;
}

.offset-tl {
    --dx: -1;
    --dy: -1;
}

.offset-bl {
    --dx: -1;
    --dy: 1;
}

.photo-wrapper::before {
    transform: translate(calc(var(--dx) * var(--offset-small)),
            calc(var(--dy) * var(--offset-small)));
}

.photo-wrapper::after {
    transform: translate(calc(var(--dx) * var(--offset)),
            calc(var(--dy) * var(--offset)));
}

.size-sm {
    --w: 220px;
    --h: 260px;
    --offset: 24px;
    --offset-small: 6px;
}

.size-md {
    --w: 280px;
    --h: 320px;
    --offset: 32px;
    --offset-small: 8px;
}

.size-lg {
    --w: 360px;
    --h: 420px;
    --offset: 40px;
    --offset-small: 12px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE: TABLET (<=768px) ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #FFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
    }

    .nav-overlay.open {
        display: block;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-meta {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-photo {
        display: flex;
        justify-content: center;
    }

    .size-md {
        --w: 200px;
        --h: 240px;
        --offset: 24px;
        --offset-small: 6px;
    }

    .size-lg {
        --w: 260px;
        --h: 300px;
        --offset: 28px;
        --offset-small: 8px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-photo {
        display: flex;
        justify-content: center;
    }

    .about-text h3 {
        font-size: 22px;
    }

    .skills-container {
        gap: 32px;
    }

    .skills-grid {
        gap: 24px;
    }

    .skill-item img {
        width: 48px;
        height: 48px;
    }

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

    .project-card,
    .project-card.reverse {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        flex: none;
        max-height: 240px;
    }

    .project-info {
        padding: 24px;
    }

    .contact-item {
        font-size: 18px;
    }

    .contact-item img {
        width: 24px;
        height: 24px;
    }

    .section {
        padding: 48px 16px;
    }
}

/* ===== RESPONSIVE: SMALL MOBILE (<=480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .size-md {
        --w: 160px;
        --h: 200px;
        --offset: 18px;
        --offset-small: 5px;
    }

    .size-lg {
        --w: 200px;
        --h: 240px;
        --offset: 22px;
        --offset-small: 6px;
    }

    .contact-item {
        font-size: 15px;
    }

    .section {
        padding: 36px 12px;
    }

    .exp-card {
        padding: 20px;
    }

    .project-info {
        padding: 20px;
    }
}