/* Portfolio Page Styles - Hyphen Design Inspired */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Malgun Gothic", sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

.portfolio-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.portfolio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.header-nav a:hover,
.header-nav a.active {
    color: #1a1a1a;
}

/* Hero Section */
.portfolio-hero {
    padding: 180px 40px 100px;
    background: linear-gradient(135deg, #f5f5f7 0%, #fff 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.hero-description {
    font-size: 20px;
    color: #666;
    letter-spacing: -0.01em;
}

/* Filter Section */
.portfolio-filter {
    padding: 40px 40px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 81px;
    z-index: 100;
}

.filter-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 12px;
}

.filter-tab {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.filter-tab:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-tab.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.filter-info {
    font-size: 14px;
    color: #666;
}

.filter-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 60px 40px 120px;
    background: #fff;
}

.grid-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f7;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-detail {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid #fff;
    border-radius: 50px;
    letter-spacing: -0.01em;
}

.project-info {
    padding: 28px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.project-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* CTA Section */
.portfolio-cta {
    padding: 120px 40px;
    background: #111;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-family: inherit;
}

.cta-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: background 0.2s ease, transform 0.2s ease;
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: #e5e5e5;
    transform: none;
    box-shadow: none;
}

/* Footer */
.portfolio-footer {
    background: #f5f5f7;
    padding: 60px 40px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.footer-info p,
.footer-contact p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.footer-copyright {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
    color: #999;
    letter-spacing: -0.01em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .hero-title {
        font-size: 52px;
    }

    .cta-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 16px 24px;
    }

    .logo a {
        font-size: 20px;
    }

    .header-nav {
        gap: 24px;
    }

    .header-nav a {
        font-size: 14px;
    }

    .portfolio-hero {
        padding: 140px 24px 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .portfolio-filter {
        padding: 24px 24px 16px;
    }

    .filter-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .filter-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 8px;
    }

    .filter-tab {
        white-space: nowrap;
    }

    .grid-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px 80px;
    }

    .portfolio-grid {
        padding: 40px 24px 80px;
    }

    .project-image {
        height: 240px;
    }

    .portfolio-cta {
        padding: 60px 24px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
}

/* Hidden class for filtering */
.project-card.hidden {
    display: none;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.15s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.25s;
}

.project-card:nth-child(5) {
    animation-delay: 0.3s;
}

.mo-br {
    display: none;
}

@media (max-width: 768px) {
    .mo-br {
        display: block;
    }
}