/* 
   Theme: DevHub (Code.html Match)
   Author: Antigravity
*/

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Black+Han+Sans&family=Noto+Sans+KR:wght@400;700;900&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

/* Custom Fonts - Moved to top for better loading */
@font-face {
    font-family: 'DNFBitBitv2';
    font-style: normal;
    font-weight: 400;
    src: url('https://cdn.df.nexon.com/img/common/font/DNFBitBitv2.otf') format('opentype');
}

:root {
    /* Code.html Palette */
    --bg-page: #0a0a0a;
    --bg-card: #151515;

    /* Neons */
    --neo-primary: #CCFF00;
    /* Lime Green */
    --neo-secondary: #FF00FF;
    /* Magenta */
    --neo-accent: #00FFFF;
    /* Cyan */

    /* Basics */
    --text-white: #FFFFFF;
    --text-black: #000000;
    --border-black: #000000;

    /* Layout */
    --border-width: 4px;
    /* Thicker borders as per code.html */
    --container-width: 1400px;
    --header-height: 80px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-white);
    font-family: 'DNFBitBitv2', 'Noto Sans KR', sans-serif;
    /* Archivo is key */
    line-height: 1.5;
    overflow-x: hidden;
    word-break: keep-all;
    min-height: 100vh;

    /* Dot Pattern from code.html */
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 14px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--neo-primary);
    border: 3px solid black;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neo-secondary);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DNFBitBitv2', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    /* Black weight */
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
    /* Tight tracking */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    /* px-6 equivalent */
}

/* Header (Sticky Lime) */
.site-header {
    height: var(--header-height);
    background: var(--neo-primary);
    border-bottom: var(--border-width) solid var(--border-black);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo Area */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 4px 4px 0px 0px white;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: black;
    letter-spacing: -0.05em;
    font-style: italic;
}

.logo-highlight {
    background: black;
    color: white;
    padding: 0 4px;
}

/* Nav */
.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    color: black;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: black;
    color: white;
    border-color: black;
}

/* Buttons */
.neo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: black;
    padding: 10px 24px;
    border: var(--border-width) solid black;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px 0px black;
    transition: all 0.1s;
    cursor: pointer;
    font-family: 'DNFBitBitv2', sans-serif;
}

.neo-button:hover {
    background: var(--neo-secondary);
    color: white;
    box-shadow: none;
    transform: translate(4px, 4px);
}

.neo-button.primary {
    background: var(--neo-primary);
}

.neo-button.secondary {
    background: var(--neo-secondary);
    color: white;
}

.neo-button.accent {
    background: var(--neo-accent);
}

/* Marquee Strip */
.marquee-strip {
    width: 100%;
    background: black;
    border-bottom: var(--border-width) solid black;
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 48px;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    font-style: italic;
    color: var(--neo-primary);
    animation: scroll 20s linear infinite;
}

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

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

/* Hero Section (Project Core style) */
.hero {
    padding-top: 48px;
    margin-bottom: 48px;
}

.hero-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-title {
    font-size: 4rem;
    /* 6xl/7xl equivalent */
    line-height: 1;
}

.hero-highlight {
    color: var(--neo-primary);
    font-style: italic;
}

.hero-desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neo-accent);
    letter-spacing: 0.1em;
    margin-top: 16px;
}

.hero-badge {
    padding: 12px 24px;
    background: var(--neo-secondary);
    color: white;
    border: var(--border-width) solid black;
    font-weight: 900;
    box-shadow: 8px 8px 0px 0px black;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

/* Cards (DevHub Style) */
.card {
    background: var(--bg-card);
    border: 5px solid black;
    /* Default shadow green */
    box-shadow: 8px 8px 0px 0px var(--neo-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s;
}

.category-program .card {
    box-shadow: 8px 8px 0px 0px var(--neo-accent);
}

.category-game .card {
    box-shadow: 8px 8px 0px 0px var(--neo-primary);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0px 0px black;
    /* neo-hover */
}

.card-image {
    position: relative;
    height: 256px;
    /* h-64 */
    width: 100%;
    border-bottom: 4px solid black;
    background: black;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s;
}

.card:hover .card-image img {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: var(--neo-primary);
    border: 4px solid black;
    font-size: 0.875rem;
    font-weight: 900;
    color: black;
    box-shadow: 4px 4px 0px 0px black;
}

.card-content {
    padding: 32px;
    /* p-8 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 2.25rem;
    /* text-4xl */
    color: white;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.card:hover .card-title {
    color: var(--neo-primary);
}

.category-program .card:hover .card-title {
    color: var(--neo-accent);
}

.card-desc {
    color: #9ca3af;
    /* text-gray-400 */
    font-weight: 300;
    font-size: 1.125rem;
    margin-bottom: 32px;
    flex-grow: 1;
    line-height: 1.4;
}

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

.btn-repo {
    background: var(--neo-primary);
}

.category-program .btn-repo {
    background: var(--neo-accent);
}

/* Footer */
.site-footer {
    background: black;
    border-top: 8px solid var(--neo-primary);
    padding: 64px 0 32px 0;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
}

.footer-desc {
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.875rem;
    max-width: 300px;
    text-transform: uppercase;
}

.footer-col h4 {
    color: var(--neo-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 4px solid var(--neo-primary);
    padding-bottom: 8px;
    margin-bottom: 24px;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li a {
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.footer-col li a:hover {
    color: var(--neo-primary);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 4px solid #18181b;
    /* zinc-900 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.copyright {
    color: #52525b;
    /* gray-600 */
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Input Styles for Admin */
.neo-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 4px solid black;
    color: white;
    font-weight: 700;
    outline: none;
    box-shadow: 4px 4px 0px 0px rgba(255, 255, 255, 0.1);
}

.neo-input:focus {
    border-color: var(--neo-accent);
    box-shadow: 4px 4px 0px 0px var(--neo-accent);
}

/* Project Content Images (Responsive) */
.project-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border: 4px solid black;
    box-shadow: 8px 8px 0px 0px var(--neo-secondary);
}

/* Project Content Paragraphs */
.project-content p {
    margin-bottom: 1.5rem;
}

/* Project Content Lists */
.project-content ul,
.project-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.project-content li {
    margin-bottom: 0.5rem;
}



/* Project Content Headers */
.project-content h2 {
    font-family: 'DNFBitBitv2', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    color: var(--neo-primary);
}

.project-content h3 {
    font-family: 'DNFBitBitv2', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}