/* ===== HK Build — Student Portfolio Stylesheet ===== */

:root {
    --pf-bg: #0a0a0a;
    --pf-bg-2: #141414;
    --pf-card: #1a1a1a;
    --pf-grad: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #f59e0b 100%);
    --pf-grad-btn: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --pf-red: #ef4444;
    --pf-orange: #f97316;
    --pf-amber: #f59e0b;
    --pf-mono: 'JetBrains Mono', monospace;
}

body { font-family: 'Outfit', sans-serif; background: var(--pf-bg); margin: 0; color: #fff; overflow-x: hidden; }
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(239, 68, 68, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, .08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(249, 115, 22, .06) 0%, transparent 50%);
}

/* ===== Nav ===== */
.pf-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
    background: rgba(10, 10, 10, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 0 40px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(239, 68, 68, .12);
}
.pf-nav-links { display: flex; align-items: center; gap: 28px; }
.pf-nav-links a { color: rgba(255, 255, 255, .6); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.pf-nav-links a:hover { color: #fff; }
.pf-nav-cta {
    background: var(--pf-grad-btn); color: #fff !important; padding: 8px 22px; border-radius: 50px;
    font-weight: 600; font-size: 13px; box-shadow: 0 4px 16px rgba(239, 68, 68, .3); transition: all .25s;
}
.pf-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239, 68, 68, .5); }

.pf-menu-btn { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; background: none; border: none; flex-direction: column; justify-content: space-between; }
.pf-menu-btn span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.pf-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.pf-menu-btn.active span:nth-child(2) { opacity: 0; }
.pf-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.pf-mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .98);
    backdrop-filter: blur(20px); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    opacity: 0; visibility: hidden; pointer-events: none; transition: all .35s ease;
}
.pf-mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.pf-mobile-menu a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 1.4rem; font-weight: 500; padding: 12px 24px; transition: all .3s; }
.pf-mobile-menu a:hover { color: var(--pf-red); }
.pf-back-link { font-size: 1rem !important; color: rgba(255, 255, 255, .4) !important; margin-top: 24px; }

@media (max-width: 768px) {
    .pf-nav { padding: 0 20px; height: 60px; }
    .pf-nav-links { display: none; }
    .pf-menu-btn { display: flex; }
}

/* ===== Hero ===== */
.pf-hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 40px 80px; position: relative; z-index: 1; }
.pf-hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Terminal */
.pf-terminal {
    background: #111; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    font-family: var(--pf-mono); font-size: 13px; line-height: 1.7;
}
.pf-terminal-bar {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: #161b22; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.pf-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.pf-dot-red { background: #ff5f56; } .pf-dot-yellow { background: #ffbd2e; } .pf-dot-green { background: #27c93f; }
.pf-terminal-title { margin-left: 8px; color: rgba(255, 255, 255, .4); font-size: 12px; }
.pf-terminal-body { padding: 20px; color: rgba(255, 255, 255, .8); }
.pf-prompt { color: var(--pf-red); font-weight: 600; }
.pf-cmd { color: var(--pf-amber); }
.pf-output { color: rgba(255, 255, 255, .7); margin: 4px 0 8px; }
.pf-json { font-size: 12px; line-height: 1.6; }
.pf-key { color: var(--pf-orange); }
.pf-str { color: #fcd34d; }
.pf-cursor { animation: pf-blink 1s step-end infinite; color: var(--pf-red); }
@keyframes pf-blink { 50% { opacity: 0; } }

/* Hero Info */
.pf-hero-info h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0 0 8px; line-height: 1.1; }
.pf-grad { background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pf-hero-role { font-size: 1.2rem; color: var(--pf-amber); font-weight: 500; margin: 0 0 20px; font-family: var(--pf-mono); }
.pf-hero-bio { color: rgba(255, 255, 255, .65); font-size: 1.05rem; line-height: 1.7; margin: 0 0 28px; }
.pf-hero-bio strong { color: #fff; }
.pf-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.pf-btn-primary {
    background: var(--pf-grad-btn); color: #fff; padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .3s; box-shadow: 0 8px 24px rgba(239, 68, 68, .3);
}
.pf-btn-primary::after { content: '→'; transition: transform .3s; }
.pf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(239, 68, 68, .5); }
.pf-btn-primary:hover::after { transform: translateX(4px); }
.pf-btn-secondary {
    background: rgba(255, 255, 255, .05); color: #fff; padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .15);
    transition: all .25s; backdrop-filter: blur(10px);
}
.pf-btn-secondary:hover { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .08); }
.pf-hero-social { display: flex; gap: 12px; }
.pf-hero-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .5); text-decoration: none; transition: all .3s; font-size: 16px;
}
.pf-hero-social a:hover { color: #fff; border-color: rgba(239, 68, 68, .4); transform: translateY(-3px); background: rgba(239, 68, 68, .1); }

@media (max-width: 900px) {
    .pf-hero { padding: 100px 20px 60px; }
    .pf-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .pf-hero-cta { flex-direction: column; }
    .pf-btn-primary, .pf-btn-secondary { width: 100%; justify-content: center; }
}

/* ===== Sections ===== */
.pf-section { padding: 100px 40px; position: relative; z-index: 1; }
.pf-section-inner { max-width: 1100px; margin: 0 auto; }
.pf-section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; text-align: center; margin: 0 0 12px; }
.pf-section-sub { color: rgba(255, 255, 255, .55); font-size: 1.05rem; text-align: center; max-width: 600px; margin: 0 auto 56px; line-height: 1.6; }

/* ===== Skills ===== */
.pf-skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf-skill-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .01) 100%);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 24px 20px;
    transition: all .35s; backdrop-filter: blur(10px);
}
.pf-skill-card:hover { border-color: rgba(239, 68, 68, .35); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(239, 68, 68, .12); }
.pf-skill-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(239, 68, 68, .12);
    display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--pf-red); margin-bottom: 14px;
}
.pf-skill-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.pf-skill-card p { color: rgba(255, 255, 255, .5); font-size: .82rem; margin: 0 0 14px; line-height: 1.4; }
.pf-skill-bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.pf-skill-fill { height: 100%; background: var(--pf-grad); border-radius: 4px; transition: width 1s ease; }

@media (max-width: 1024px) { .pf-skills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .pf-skills-grid { grid-template-columns: repeat(2, 1fr); } .pf-section { padding: 70px 20px; } }
@media (max-width: 480px) { .pf-skills-grid { grid-template-columns: 1fr; } }

/* ===== Projects ===== */
.pf-projects-section { background: rgba(20, 20, 20, .3); }
.pf-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-project-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .01) 100%);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 28px 24px;
    transition: all .4s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.pf-project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pf-grad); opacity: 0; transition: opacity .35s; }
.pf-project-card:hover { border-color: rgba(239, 68, 68, .35); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(239, 68, 68, .15); }
.pf-project-card:hover::before { opacity: 1; }
.pf-project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pf-project-folder { font-size: 28px; color: var(--pf-red); }
.pf-project-links { display: flex; gap: 12px; }
.pf-project-links a { color: rgba(255, 255, 255, .4); font-size: 18px; text-decoration: none; transition: all .25s; }
.pf-project-links a:hover { color: var(--pf-amber); transform: translateY(-2px); }
.pf-project-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 10px; }
.pf-project-card p { color: rgba(255, 255, 255, .6); font-size: .9rem; line-height: 1.6; margin: 0 0 20px; flex: 1; }
.pf-project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-project-tags span {
    font-size: 11px; font-family: var(--pf-mono); color: var(--pf-amber);
    background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .2);
    padding: 4px 10px; border-radius: 50px;
}

@media (max-width: 1024px) { .pf-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pf-projects-grid { grid-template-columns: 1fr; } }

/* ===== About ===== */
.pf-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pf-about-text p { color: rgba(255, 255, 255, .65); font-size: 1.05rem; line-height: 1.7; margin: 0 0 20px; }
.pf-about-text strong { color: #fff; }
.pf-about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.pf-stat {
    background: rgba(239, 68, 68, .06); border: 1px solid rgba(239, 68, 68, .2);
    border-radius: 14px; padding: 20px; text-align: center; transition: all .3s;
}
.pf-stat:hover { border-color: rgba(239, 68, 68, .4); transform: translateY(-3px); }
.pf-stat-num { display: block; font-size: 2rem; font-weight: 700; background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pf-stat-label { display: block; color: rgba(255, 255, 255, .5); font-size: .85rem; margin-top: 4px; }

.pf-about-card {
    background: #111; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.pf-about-card-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #161b22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pf-about-md { padding: 20px; font-family: var(--pf-mono); font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .7); margin: 0; white-space: pre-wrap; }
.pf-md-h { color: var(--pf-red); font-weight: 600; }

@media (max-width: 900px) { .pf-about-grid { grid-template-columns: 1fr; } .pf-about-stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .pf-about-stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Contact ===== */
.pf-contact-section { background: rgba(20, 20, 20, .3); }
.pf-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf-contact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .01) 100%);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 28px 20px;
    text-align: center; text-decoration: none; transition: all .35s; backdrop-filter: blur(10px);
}
.pf-contact-card:hover { border-color: rgba(239, 68, 68, .35); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(239, 68, 68, .12); }
.pf-contact-icon {
    width: 52px; height: 52px; border-radius: 14px; background: rgba(239, 68, 68, .12);
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--pf-red); margin: 0 auto 14px;
}
.pf-contact-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.pf-contact-card p { color: rgba(255, 255, 255, .5); font-size: .85rem; margin: 0; font-family: var(--pf-mono); }

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

/* ===== Footer ===== */
.pf-footer { background: #000; border-top: 1px solid rgba(255, 255, 255, .06); padding: 40px 20px; text-align: center; }
.pf-footer-inner { max-width: 600px; margin: 0 auto; }
.pf-footer p { color: rgba(255, 255, 255, .4); font-size: 13px; margin: 8px 0; }
.pf-footer a { color: var(--pf-red); text-decoration: none; }
.pf-footer a:hover { text-decoration: underline; }
.pf-footer-copy { color: rgba(255, 255, 255, .25) !important; font-size: 12px !important; }

/* ===== Animations ===== */
.pf-skill-card, .pf-project-card, .pf-contact-card, .pf-stat {
    opacity: 0; transform: translateY(30px);
    animation: pf-fade-up .6s ease forwards;
}
.pf-skill-card:nth-child(1) { animation-delay: .05s; }
.pf-skill-card:nth-child(2) { animation-delay: .1s; }
.pf-skill-card:nth-child(3) { animation-delay: .15s; }
.pf-skill-card:nth-child(4) { animation-delay: .2s; }
.pf-skill-card:nth-child(5) { animation-delay: .25s; }
.pf-skill-card:nth-child(6) { animation-delay: .3s; }
.pf-skill-card:nth-child(7) { animation-delay: .35s; }
.pf-skill-card:nth-child(8) { animation-delay: .4s; }
.pf-project-card:nth-child(1) { animation-delay: .05s; }
.pf-project-card:nth-child(2) { animation-delay: .1s; }
.pf-project-card:nth-child(3) { animation-delay: .15s; }
.pf-project-card:nth-child(4) { animation-delay: .2s; }
.pf-project-card:nth-child(5) { animation-delay: .25s; }
.pf-project-card:nth-child(6) { animation-delay: .3s; }
@keyframes pf-fade-up { to { opacity: 1; transform: translateY(0); } }

/* Reveal on scroll */
.pf-reveal { opacity: 0; transform: translateY(40px); transition: all .6s ease; }
.pf-reveal.visible { opacity: 1; transform: translateY(0); }
