/* Component-Specific Styles */

/* ===== Introduction Section ===== */
#intro {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
}

/* ===== Projects Section ===== */
#projects {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) / 2);
    transition: transform var(--transition-fast),
                border-color var(--transition-fast),
                background-color var(--transition-fast);
}

.project-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    background-color: var(--hover-bg);
}

/* First row: title, type, link */
.project-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    justify-content: space-between;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

.project-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.project-type {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-regular);
    white-space: nowrap;
}

.project-links {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    border-radius: calc(var(--border-radius) / 2);
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent);
    background-color: var(--hover-bg);
    transform: scale(1.1);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

/* Second row: description */
.project-description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: var(--font-size-sm);
    padding-left: 0;
    padding-top: var(--spacing-xs);
}

/* ===== Contact/Footer Section ===== */
#contact {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.05);
    background-color: var(--hover-bg);
}

.social-links a:active {
    transform: translateY(-1px) scale(1.02);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* ===== Responsive Typography Adjustments ===== */
@media (max-width: 768px) {
    .project-header {
        flex-wrap: wrap;
    }
    
    .project-title {
        flex: 0 0 auto;
    }
    
    .project-type {
        flex: 0 0 auto;
    }
    
    .project-links {
        order: 3;
        margin-left: auto;
    }
    
    .social-links {
        gap: var(--spacing-sm);
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* ===== Print Styles ===== */
@media print {
    header,
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
