:root {
    --primary: #0071e3;
    /* Apple Blue */
    --bg-white: #f5f5f7;
    /* Apple Off-white */
    --card-bg: #ffffff;
    --text-heading: #1d1d1f;
    --text-body: #424245;
    --text-dim: #86868b;
    --border: #d2d2d7;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: normal;
    overflow-x: hidden;
}

/* Header */
header {
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.status-badge {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #28a745;
    /* Success Green */
    border-radius: 50%;
    position: relative;
    animation: pulse-dot 1.5s infinite;
}

.status-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    background: white;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item .count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    display: block;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Values Section */
.values {
    background: #fbfbfd;
    padding: 60px 20px;
    border-bottom: 1px solid var(--border);
}

.value-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.value-item {
    flex: 1;
    text-align: center;
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .value-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Projects */
.projects {
    max-width: 1024px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-heading);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    background: #e8e8ed;
    color: #424245;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-grid.filtering {
    opacity: 0;
    transform: translateY(10px);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 380px;
    background: #fbfbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.5s ease;
}

.wonjo-bg {
    background-image: url('wonjo.png');
    background-size: cover;
    background-position: center top;
}

.quest-bg {
    background-image: url('quest.png');
    background-size: cover;
    background-position: center top;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-card:hover .overlay {
    opacity: 1;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.tech-stack {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tech-stack span {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Contact Section */
.contact {
    padding: 120px 20px;
    background: white;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.contact-container p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-bottom-color: var(--primary);
    opacity: 0.8;
}

/* Philosophy Section */
.philosophy {
    padding: 100px 20px;
    background: #000;
    color: #fff;
    text-align: center;
}

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

.philosophy-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
}

.philosophy h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.philosophy-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 10px;
}

.philosophy-tags {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.philosophy-tags span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    padding: 100px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

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