/* Subpages Specific Styles */

.subpage {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 0 3rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #8b949e;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Navigation Active State */
.nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.nav-logo a {
    text-decoration: none;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(145deg, #161b22 0%, #0d1117 100%);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 166, 255, 0.3);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0;
}

.project-tag {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.project-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #58a6ff;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.project-link:hover {
    background: #58a6ff;
    color: #0d1117;
    transform: translateY(-1px);
}

.project-link.secondary {
    color: #8b949e;
    border-color: #30363d;
}

.project-link.secondary:hover {
    background: #30363d;
    color: #e6edf3;
    border-color: #8b949e;
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    line-height: 1.7;
}

.about-text h2 {
    color: #e6edf3;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text h3 {
    color: #58a6ff;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.about-text p {
    color: #8b949e;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(88, 166, 255, 0.05);
}

.contact-link:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.contact-link span {
    font-size: 1.2rem;
}

/* Responsive Design for Subpages */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        text-align: center;
    }
}
