/**
 * Portfolio Page Styles
 * 포트폴리오 페이지 스타일
 */

:root {
    --pf-primary: #00D4AA;
    --pf-primary-dark: #00b894;
    --pf-gradient: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    --pf-text-dark: #191f28;
    --pf-text-gray: #6b7684;
    --pf-text-light: #8b95a1;
    --pf-bg-light: #f8fafb;
    --pf-bg-dark: #0a1628;
    --pf-border: #e5e8eb;
    --pf-white: #ffffff;
}

/* ========================================
   Hero Section
======================================== */
.pf-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    text-align: center;
}

.pf-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--pf-gradient);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--pf-text-dark);
    margin-bottom: 20px;
}

.hero-headline .text-gradient {
    background: var(--pf-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 18px;
    color: var(--pf-text-gray);
    line-height: 1.6;
}

/* ========================================
   Filter Section
======================================== */
.pf-filter {
    padding: 40px 0;
    background: white;
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--pf-border);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pf-bg-light);
    color: var(--pf-text-gray);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(0, 212, 170, 0.1);
    color: var(--pf-primary);
}

.filter-btn.active {
    background: var(--pf-gradient);
    color: white;
}

.filter-btn i {
    font-size: 14px;
}

/* ========================================
   Portfolio Grid
======================================== */
.pf-grid {
    padding: 60px 0;
    background: var(--pf-bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Portfolio Preview - Browser Mockup */
.portfolio-preview {
    height: 280px;
    padding: 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.portfolio-preview:has(.preview-browser) {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-browser {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
    flex: 1;
    font-size: 11px;
    color: #888;
    background: white;
    padding: 4px 12px;
    border-radius: 4px;
}

.browser-content {
    padding: 12px;
    height: calc(100% - 38px);
    background: #fafafa;
    overflow: hidden;
}

/* Mock Elements */
.mock-nav {
    height: 24px;
    background: white;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mock-nav.dark {
    background: #1a1a2e;
}

.mock-hero {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 12px;
}

.mock-hero.corp-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mock-hero.dark-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.mock-text-lg {
    height: 14px;
    width: 70%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    margin-bottom: 8px;
}

.mock-text-sm {
    height: 10px;
    width: 50%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    margin-bottom: 12px;
}

.mock-btn {
    height: 20px;
    width: 60px;
    background: var(--pf-gradient);
    border-radius: 4px;
}

.mock-btn.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.mock-cards {
    display: flex;
    gap: 8px;
}

.mock-card {
    flex: 1;
    height: 50px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mock-stats {
    display: flex;
    gap: 6px;
}

.mock-stat {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Category-specific Previews */
.portfolio-preview.corporate-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.portfolio-preview.corporate-2 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.portfolio-preview.ecommerce-1 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.portfolio-preview.ecommerce-2 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.portfolio-preview.medical-1 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.portfolio-preview.medical-2 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.portfolio-preview.education-1 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.portfolio-preview.education-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.portfolio-preview.food-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.portfolio-preview.food-2 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.portfolio-preview.startup-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.portfolio-preview.startup-2 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.portfolio-preview.landing-1 { background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%); }
.portfolio-preview.landing-2 { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }

/* Shop Mock */
.mock-nav.shop-nav {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.mock-banner.shop-banner {
    height: 60px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 6px;
    margin-bottom: 12px;
}

.mock-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mock-product {
    height: 45px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Medical Mock */
.mock-hero.medical-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mock-services {
    display: flex;
    gap: 6px;
}

.mock-service {
    flex: 1;
    height: 40px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

.mock-hero.skin-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    height: 80px;
}

.mock-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.mock-icons {
    display: flex;
    gap: 8px;
}

.mock-icon {
    flex: 1;
    height: 35px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Education Mock */
.mock-hero.edu-hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.mock-btns {
    display: flex;
    gap: 6px;
}

.mock-courses {
    display: flex;
    gap: 6px;
}

.mock-course {
    flex: 1;
    height: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mock-hero.code-hero {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    display: flex;
    justify-content: center;
}

.mock-code-blocks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-block {
    width: 80px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mock-block:nth-child(2) {
    width: 60px;
    margin-left: 20px;
}

/* Food Mock */
.mock-hero.food-hero {
    background: linear-gradient(135deg, #3c1053 0%, #ad5389 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.mock-food-img {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.mock-menu-grid {
    display: flex;
    gap: 6px;
}

.mock-menu {
    flex: 1;
    height: 40px;
    background: white;
    border-radius: 6px;
}

.mock-hero.cafe-hero {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.mock-text-center {
    width: 80px;
    height: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mock-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mock-photo {
    height: 35px;
    background: white;
    border-radius: 4px;
}

/* Startup Mock */
.mock-hero.startup-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mock-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.mock-cta-group {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.mock-hero.fintech-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    gap: 12px;
    align-items: center;
}

.mock-phone-mockup {
    width: 40px;
    height: 70px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mock-feature-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-feature {
    width: 60px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

/* Landing Mock */
.mock-hero.landing-hero {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    text-align: center;
    padding: 16px;
}

.mock-product-img {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.mock-countdown {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}

.mock-count {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.mock-btn.big {
    width: 100px;
    margin: 0 auto;
}

.mock-hero.event-hero {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
    text-align: center;
    padding: 12px;
}

.mock-event-badge {
    width: 60px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 0 auto 8px;
}

.mock-benefits {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
}

.mock-benefit {
    width: 40px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.mock-form {
    width: 80%;
    height: 20px;
    background: white;
    border-radius: 4px;
    margin: 0 auto;
}

/* Portfolio Info */
.portfolio-info {
    padding: 24px;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-primary);
    background: rgba(0, 212, 170, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pf-text-dark);
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--pf-text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    font-size: 12px;
    color: var(--pf-text-light);
    background: var(--pf-bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 170, 0.95);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.overlay-btn {
    padding: 14px 24px;
    background: white;
    color: var(--pf-text-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.overlay-btn.secondary {
    background: var(--pf-text-dark);
    color: white;
}

.portfolio-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--pf-text-dark);
    color: white;
}

.overlay-btn.secondary:hover {
    background: white;
    color: var(--pf-text-dark);
}

/* ========================================
   Portfolio Thumbnail Image
======================================== */
.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

/* ========================================
   Pagination
======================================== */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 20px 0;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    color: var(--pf-text-gray);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--pf-bg-light);
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}

.page-btn.active {
    background: var(--pf-gradient);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
    font-size: 14px;
}

.page-dots {
    color: var(--pf-text-light);
    padding: 0 4px;
}

/* ========================================
   Stats Section
======================================== */
.pf-stats {
    padding: 80px 0;
    background: var(--pf-bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-number span {
    color: var(--pf-primary);
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   CTA Section
======================================== */
.pf-cta {
    padding: 100px 0;
    background: white;
}

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

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--pf-text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 17px;
    color: var(--pf-text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--pf-gradient);
    color: white;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    background: var(--pf-bg-light);
    color: var(--pf-text-dark);
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: var(--pf-text-dark);
    color: white;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-headline {
        font-size: 42px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .pf-hero {
        padding: 120px 0 40px;
    }

    .hero-headline {
        font-size: 36px;
    }

    .pf-filter {
        top: 70px;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .portfolio-preview {
        height: 240px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 40px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 30px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .filter-btn i {
        display: none;
    }

    .portfolio-preview {
        height: 200px;
    }
}
