:root { --primary-color: #ff6b81; --primary-dark: #e84393; --secondary-color: #a4b0be; --light-color: #f5f6fa; --dark-color: #2f3542; --text-color: #57606f; --white: #ffffff; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .portfolio-app { max-width: 1200px; margin: 0 auto; padding: 20px; color: var(--dark-color); } .app-header { text-align: center; margin-bottom: 30px; } .app-title { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 10px; font-weight: 600; } .app-subtitle { font-size: 1rem; color: var(--text-color); margin-bottom: 30px; } .search-container { display: flex; justify-content: center; margin-bottom: 30px; } .search-box { display: flex; width: 100%; max-width: 600px; box-shadow: var(--shadow); border-radius: 30px; overflow: hidden; } #search-input { flex: 1; padding: 15px 20px; border: none; font-size: 1rem; outline: none; } .search-btn { background-color: var(--primary-color); color: white; border: none; padding: 0 25px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: var(--transition); } .search-btn:hover { background-color: var(--primary-dark); } .search-btn svg { margin-right: 5px; } .view-controls { display: flex; justify-content: flex-end; margin-bottom: 20px; gap: 10px; } .view-btn { background: var(--light-color); border: none; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); } .view-btn:hover { background: var(--secondary-color); color: white; } .view-btn.active { background: var(--primary-color); color: white; } .filters { margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; } .filter-tags { display: flex; gap: 10px; padding: 5px 0; } .filter-tag { background: var(--light-color); border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; white-space: nowrap; transition: var(--transition); } .filter-tag:hover { background: var(--secondary-color); color: white; } .filter-tag.active { background: var(--primary-color); color: white; } .content-container { min-height: 500px; } /* Grid View Styles */ .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; } .project-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); aspect-ratio: 3/4; } .project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } .project-image { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .project-card:hover .project-image { transform: scale(1.05); } .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); padding: 20px; color: white; opacity: 0; transition: var(--transition); } .project-card:hover .card-overlay { opacity: 1; } .card-title { font-size: 1.1rem; margin-bottom: 5px; font-weight: 500; } .card-author { font-size: 0.9rem; opacity: 0.8; } /* List View Styles */ .portfolio-list { display: none; } .list-item { display: flex; margin-bottom: 20px; background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); } .list-item:hover { transform: translateX(5px); } .list-image { width: 150px; height: 150px; object-fit: cover; } .list-content { padding: 20px; flex: 1; } .list-title { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 10px; } .list-author { color: var(--text-color); margin-bottom: 10px; font-size: 0.9rem; } .list-description { color: var(--text-color); font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; } .list-tags { display: flex; gap: 8px; flex-wrap: wrap; } .list-tag { background: var(--light-color); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; color: var(--text-color); } /* Lightbox Styles */ .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; align-items: center; justify-content: center; z-index: 1000; } .lightbox-content { position: relative; max-width: 90%; max-height: 90%; } .lightbox-image { max-width: 100%; max-height: 80vh; border-radius: 8px; } .lightbox-close { position: absolute; top: 20px; right: 20px; background: var(--primary-color); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .lightbox-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.7); color: white; padding: 20px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } /* Loading Animation */ .loading { text-align: center; padding: 30px; display: none; } .spinner { width: 40px; height: 40px; margin: 0 auto 15px; border: 4px solid rgba(255, 107, 129, 0.3); border-radius: 50%; border-top-color: var(--primary-color); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Responsive Design */ @media (max-width: 768px) { .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; } .list-item { flex-direction: column; } .list-image { width: 100%; height: 200px; } }