html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;

    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

:root {
    --bg-color: #080808;
    --text-main: #FFFFFF;
    --text-sub: #8892b0;
    --accent-color: #FF6B6B;
    --border-color: rgba(255, 107, 107, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
a,
button,
input,
textarea {
    /* cursor: none !important; */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Pretendard', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    user-select: none;
    -webkit-user-select: none;
}


::selection {
    background: var(--accent-color);
    color: #000;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(80px);
    will-change: transform;
}


.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-glow,
.cursor-dot {
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

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

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

.reveal-text,
.reveal-card,
.reveal-img,
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s var(--ease-smooth);
}

.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    z-index: 1;
}

.hero-label {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

.keyword {
    color: #000;
    background-color: var(--accent-color);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-sub);
    animation: bounce 2s infinite;
}

.tech-marquee {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    overflow: hidden;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 20px 0;
    margin: 50px 0;
    transform: rotate(-2deg) scale(1.1);
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    user-select: none;
    -webkit-user-select: none;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-infinite 30s linear infinite;
    will-change: transform;
}

.marquee-content {
    white-space: nowrap;
    padding-right: 10px;
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.section-profile {
    padding: 150px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-frame {
    position: relative;
    width: 90%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-smooth);
}

.profile-frame:hover .profile-img {
    transform: scale(1.05);
}

.data-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--accent-color);
    font-family: monospace;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-name {
    width: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 1.5s var(--ease-out-back);
}

.section-timeline {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #222;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transition: background 0.3s;
}

.timeline-item:hover::before {
    background: var(--accent-color);
}

.time-date {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.time-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.time-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.section-skills {
    padding: 100px 10%;
    z-index: 1;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: #111;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #222;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out-back);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: #333;
}

.info-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.section-gallery {
    padding: 100px 10%;
    text-align: center;
    z-index: 1;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-item.dark-mode img {
    filter: grayscale(100%) brightness(60%);
}

.gallery-item.dark-mode:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}

.section-archive {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}

.archive-container {
    width: 100%;
}

.archive-banner {
    display: block;
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px 50px;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.5s var(--ease-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.archive-banner:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.15);
}

.archive-bg-grid {
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background-image:
        /* linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), */
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        /* linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); */
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.6s ease;
}

.archive-banner:hover .archive-bg-grid {
    background-image:
        /* linear-gradient(rgba(255, 107, 107, 0.15) 1px, transparent 1px), */
        linear-gradient(rgba(255, 107, 107, 0.3) 1px, transparent 1px),
        /* linear-gradient(90deg, rgba(255, 107, 107, 0.15) 1px, transparent 1px); */
        linear-gradient(90deg, rgba(255, 107, 107, 0.3) 1px, transparent 1px);
}

.archive-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.archive-text-box {
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.archive-prompt {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-sub);
}

.prompt-path {
    color: var(--text-main);
    font-weight: 600;
}

.prompt-arrow {
    color: var(--accent-color);
    font-weight: 800;
    margin-left: 4px;
}

.archive-inner-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    transition: text-shadow 0.3s ease;
}

.archive-banner:hover .archive-inner-title {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.cursor-blink {
    display: inline-block;
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.archive-inner-sub {
    font-size: 0.95rem;
    color: var(--text-sub);
    letter-spacing: 0px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-sub);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.archive-banner:hover .btn-text {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(0);
}

.action-icon {
    width: 60px;
    height: 60px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-main);
    flex-shrink: 0;
}

.action-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.4s ease;
}

.archive-banner:hover .action-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.archive-banner:hover .action-icon svg {
    transform: translateX(-3px) translateY(2px);
}

@media (max-width: 768px) {
    .archive-banner {
        padding: 30px 25px;
    }

    .archive-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-inner-title {
        font-size: 1.3rem;
        word-break: break-all;
    }

    .archive-prompt,
    .archive-inner-sub {
        font-size: 0.8rem;
    }

    .archive-action {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 15px;
    }

    .action-btn {
        width: auto;
        justify-content: flex-end;
    }

    .btn-text {
        opacity: 1;
        transform: none;
        color: var(--text-main);
    }
}


.section-sns {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}

.top-sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.bottom-sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sns-card {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.sns-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 107, 107, 0.05);
    transform: translateY(-5px);
    /* box-shadow: 0 5px 20px rgba(0, 255, 194, 0.15); */
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.15);
}

.sns-icon-box {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    border: 1px solid #444;
    transition: 0.3s;
    flex-shrink: 0;
}

.sns-card:hover .sns-icon-box {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.sns-icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1);
    transition: 0.3s;
}

.sns-card:hover .sns-icon-box img {
    filter: invert(0);
}

.sns-text-box {
    display: flex;
    flex-direction: column;
}

.sns-name {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.sns-status {
    font-size: 0.8rem;
    color: var(--text-sub);
    letter-spacing: 1px;
}

.sns-card:hover .sns-name {
    color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 80px 20px;
    color: #444;
    font-size: 0.9rem;
    z-index: 1;
    position: relative;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@media (max-width: 768px) {

    nav {
        padding: 20px 20px;
        /* 좌우 패딩을 40px -> 20px로 축소 */
    }

    .logo {
        font-size: 1.1rem;
    }

    .section-profile {
        grid-template-columns: 1fr;
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .cursor-glow,
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }

    .sns-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-marquee {
        width: 100%;
        overflow: hidden;
        margin: 50px 0;
    }

    .marquee-track {
        width: fit-content;
        animation-duration: 25s;
    }


}

a:focus-visible,
button:focus-visible {
    outline: 2px dashed var(--accent-color);
    outline-offset: 6px;
    border-radius: 4px;
}


.lang-toggle-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    padding: 8px 16px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 1px;
}

.lang-toggle-btn:hover {
    cursor: pointer;
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}