/* ========================================
   Portfolio Page - Minimalist Styling
   Pure Black & White Design
   ======================================== */

* {
    outline: none !important;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Page Hero Section */
.page-hero {
    background: #ffffff;
    padding: 140px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-hero-description {
    font-size: 1.125rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Portfolio Grid */
.portfolio-section {
    padding: 80px 0;
    background: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #000000;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #000000;
}

/* Browser Frame */
.portfolio-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* Browser Window Header */
.portfolio-image .browser-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #e8e8e8;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 10;
}

/* macOS Window Buttons */
.portfolio-image .browser-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.portfolio-image .browser-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.portfolio-image .browser-btn.close {
    background: #ff5f56;
    border: 0.5px solid #e0443e;
}

.portfolio-image .browser-btn.minimize {
    background: #ffbd2e;
    border: 0.5px solid #dea123;
}

.portfolio-image .browser-btn.maximize {
    background: #27c93f;
    border: 0.5px solid #1aab2a;
}

.portfolio-item:hover .browser-btn.close {
    background: #ff6b63;
}

.portfolio-item:hover .browser-btn.minimize {
    background: #ffc742;
}

.portfolio-item:hover .browser-btn.maximize {
    background: #32d74b;
}

/* URL Address Bar */
.portfolio-image .url-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 22px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.portfolio-image .url-bar i {
    font-size: 10px;
    color: #999999;
}

.portfolio-image .url-bar span {
    font-size: 11.5px;
    color: #666666;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
}

.portfolio-image::before {
    display: none;
}

.portfolio-image::after {
    display: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

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

.portfolio-url {
    font-size: 1.2rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    padding-top: 36px;
    background: #ffffff;
    transition: all 0.5s ease;
    transform: scale(1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05) translateY(-8px);
}

/* Live Badge */
.portfolio-item::after {
    content: 'LIVE';
    position: absolute;
    top: 50px;
    right: 14px;
    background: #000000;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 4;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Content */
.portfolio-content {
    padding: 2rem;
    background: #fafafa;
    position: relative;
}

.portfolio-item:hover .portfolio-content {
    background: #ffffff;
}

.portfolio-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #000000;
    background: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.portfolio-item:hover .portfolio-category {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.portfolio-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    min-height: 48px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.portfolio-tag {
    padding: 0.5rem 0.875rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-tag {
    background: #f5f5f5;
    border-color: #cccccc;
    color: #000000;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    width: 100%;
    justify-content: center;
}

.portfolio-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(4px);
}

/* Stats Section */
.portfolio-stats {
    padding: 60px 0;
    background: #f5f5f5;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666666;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .section-title,
    .cta-title {
        font-size: 1.75rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-section,
    .portfolio-stats,
    .cta-section {
        padding: 60px 0;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 1.75rem;
    }
    
    .section-title,
    .cta-title {
        font-size: 1.5rem;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
