/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --accent-color: #000000;
    --terminal-bg: #1a1a1a;
    --terminal-text: #00ff00;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    display: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    display: none;
}

@media (min-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 2px;
}

.logo-cursor {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition);
    font-family: 'Courier Prime', monospace;
    position: relative;
    padding: 5px 0;
}

.nav-item::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
}

.nav-item:hover::before {
    opacity: 1;
    left: -10px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 30px 50px;
    position: relative;
    background-color: var(--bg-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.terminal-window {
    background-color: var(--terminal-bg);
    border: 2px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    font-family: 'Courier Prime', monospace;
}

.terminal-header {
    background-color: #2a2a2a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
}

.terminal-title {
    color: var(--terminal-text);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.prompt {
    color: var(--terminal-text);
    font-size: 0.9rem;
}

.command {
    color: var(--terminal-text);
    font-size: 0.9rem;
}

.cursor-blink {
    color: var(--terminal-text);
    font-size: 0.9rem;
    animation: blink 1s infinite;
}

.terminal-output {
    color: var(--terminal-text);
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0;
    margin-top: 20px;
    white-space: pre-wrap;
    min-height: 50px;
    transition: opacity 0.3s ease;
    font-family: 'Courier Prime', monospace;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.title-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.title-char.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 3px;
    margin-top: 10px;
}

.hero-description {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
    font-weight: 300;
    max-width: 400px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-box {
    padding: 20px;
    border: 2px solid var(--border-color);
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 2px;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 3px;
    margin-bottom: 60px;
    text-align: center;
}

.title-bracket {
    color: var(--secondary-color);
}

/* Projects Section */
.projects {
    background-color: #f5f5f5;
}

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

.project-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: 0;
}

.project-card:hover::before {
    left: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--primary-color);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-number {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
}

.project-year {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Courier Prime', monospace;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--bg-color);
}

.project-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.project-card:hover .project-description {
    color: var(--bg-color);
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
    transition: var(--transition);
}

.project-card:hover .tech-tag {
    border-color: var(--bg-color);
    color: var(--bg-color);
}

.project-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    display: inline-block;
}

.project-card:hover .project-link {
    color: var(--bg-color);
}

/* Skills Section */
.skills {
    background-color: var(--bg-color);
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition);
}

.skill-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
}

.skill-percent {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-family: 'Courier Prime', monospace;
}

.skill-bar-container {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 1.5s ease;
}

/* Contact Section */
.contact {
    background-color: #f5f5f5;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 300;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: 0;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn span,
.contact-btn .btn-arrow {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.contact-btn:hover span,
.contact-btn:hover .btn-arrow {
    color: var(--bg-color);
}

.contact-btn:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 0 var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
}

.footer p {
    text-align: center;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 300;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .hero-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-item {
        font-size: 0.75rem;
    }

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

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.4rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
}
