/* ========================================
   Portfolio Page Stylesheet
   ======================================== */

/* Import base styles */
@import url('./style.css');

/* Page Header */
.page-header {
    padding: 160px 60px 80px;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(0, 217, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(0, 168, 204, 0.08) 0%, transparent 40%),
        #0A0E17;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 204, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.page-header h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 60px;
    background: #0A0E17;
    min-height: 100vh;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.project-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e 0%, #161b27 100%);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.thumbnail-placeholder svg {
    width: 64px;
    height: 64px;
    color: rgba(0, 217, 255, 0.3);
    transition: var(--transition);
}

.project-card:hover .thumbnail-placeholder svg {
    color: rgba(0, 217, 255, 0.6);
    transform: scale(1.1);
}

.project-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    padding: 10px 0;
}

.btn-project:hover {
    gap: 12px;
    color: #fff;
}

.btn-project svg {
    transition: var(--transition);
}

.btn-project:hover svg {
    transform: translateX(4px);
}

/* Portfolio Grid Animation */
.portfolio-grid .project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-grid .project-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-grid .project-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-grid .project-card:nth-child(6) { animation-delay: 0.6s; }
.portfolio-grid .project-card:nth-child(7) { animation-delay: 0.7s; }
.portfolio-grid .project-card:nth-child(8) { animation-delay: 0.8s; }
.portfolio-grid .project-card:nth-child(9) { animation-delay: 0.9s; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        padding: 140px 40px 60px;
    }
    
    .portfolio-section {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 24px 50px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .portfolio-section {
        padding: 50px 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .project-thumbnail {
        height: 180px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

