/* Project Sections */
.project-section {
    margin-bottom: 4rem;
}

.project-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-section:not(:last-child) {
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 3rem;
}

/* Project Items - New Two-Line Layout */
.project-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-bottom-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-year {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Project Links */
.project-link {
    color: var(--secondary-text) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text-color) !important;
}

.project-link::after {
    content: "↗";
    font-size: 0.7em;
    margin-left: 4px;
    vertical-align: super;
    opacity: 0.7;
}

.project-link:hover::after {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.project-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-text);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

.project-links a:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Tech Icons */
.project-tech {
    display: flex;
    gap: 0.5rem;
}

.tech-icon {
    width: 20px;
    height: 20px;
    transition: 0.3s ease;
}

.tech-icon:hover {
    opacity: 1;
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Reduced from 1rem */
    margin-top: 0; /* Reduced from 2.5rem */
    padding: 0.5rem 1rem; /* Reduced from 0.8rem 1.5rem */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px; /* Reduced from 8px */
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem; /* Reduced from 0.95rem */
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.project-button:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Reduced shadow */
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.project-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-button:hover::before {
    opacity: 1;
}

.project-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3); /* Reduced shadow */
}

/* Legacy project styles (for projects not using new format) */
.project-info a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.7rem;
}

.project-info a:hover {
    color: var(--text-color);
}

.tech-stack {
    color: #666;
    margin-left: 4px;
    font-size: 0.9em;
}

/* Hide old tech-stack when using new format */
.project-info .tech-stack {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-stack {
        display: block;
        margin-top: 8px;
    }
    
    .project-top-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-bottom-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}