add challenge 11(portifolio)

This commit is contained in:
vista-man
2025-06-19 01:03:59 +02:00
parent 8faefd26ae
commit 5245c6f9b1
27 changed files with 1937 additions and 0 deletions

View File

@@ -0,0 +1,306 @@
/* Custom CSS for enhanced styling with dark/light theme support */
/* Custom properties for theme colors */
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
--success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
/* Light theme colors */
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-card: #ffffff;
--text-primary: #1e293b;
--text-secondary: #64748b;
--border-color: #e2e8f0;
--shadow-color: rgba(0, 0, 0, 0.1);
--shadow-hover: rgba(0, 0, 0, 0.15);
/* Animation variables */
--transition-fast: 0.2s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;
}
/* Dark theme colors */
.dark {
--bg-primary: #0f172a;
--bg-secondary: #1e293b;
--bg-card: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--border-color: #475569;
--shadow-color: rgba(0, 0, 0, 0.3);
--shadow-hover: rgba(0, 0, 0, 0.4);
}
/* Global styles */
* {
box-sizing: border-box;
}
body {
background: var(--bg-primary);
color: var(--text-primary);
transition: background-color var(--transition-normal), color var(--transition-normal);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
}
/* Enhanced header with gradient and animation */
header {
background: var(--primary-gradient) !important;
position: relative;
overflow: hidden;
}
header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
animation: float 20s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}
/* Enhanced project cards */
.project-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 16px;
box-shadow: 0 4px 6px var(--shadow-color);
transition: all var(--transition-normal);
position: relative;
overflow: hidden;
}
.project-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--accent-gradient);
transform: scaleX(0);
transition: transform var(--transition-normal);
}
.project-card:hover::before {
transform: scaleX(1);
}
.project-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 25px var(--shadow-hover);
border-color: transparent;
}
/* Enhanced images */
.project-image {
border-radius: 12px;
transition: transform var(--transition-normal);
position: relative;
overflow: hidden;
}
.project-card:hover .project-image {
transform: scale(1.05);
}
.project-image::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
transform: translateX(-100%);
transition: transform var(--transition-slow);
}
.project-card:hover .project-image::after {
transform: translateX(100%);
}
/* Enhanced tags */
.tag {
background: var(--accent-gradient);
color: white;
font-weight: 500;
border-radius: 20px;
padding: 4px 12px;
font-size: 0.75rem;
transition: all var(--transition-fast);
position: relative;
overflow: hidden;
}
.tag::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
transition: left var(--transition-slow);
}
.tag:hover::before {
left: 100%;
}
.tag:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Enhanced buttons */
.btn-primary {
background: var(--primary-gradient);
color: white;
border: none;
border-radius: 12px;
padding: 12px 24px;
font-weight: 600;
transition: all var(--transition-normal);
position: relative;
overflow: hidden;
}
.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left var(--transition-slow);
}
.btn-primary:hover::before {
left: 100%;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Enhanced modal */
.modal-overlay {
backdrop-filter: blur(8px);
background: rgba(0, 0, 0, 0.6);
}
.modal-content {
background: var(--bg-card);
border-radius: 20px;
border: 1px solid var(--border-color);
box-shadow: 0 25px 50px var(--shadow-hover);
}
/* Enhanced theme toggle */
.theme-toggle {
background: var(--bg-card);
border: 2px solid var(--border-color);
border-radius: 50%;
box-shadow: 0 4px 12px var(--shadow-color);
transition: all var(--transition-normal);
}
.theme-toggle:hover {
transform: scale(1.1) rotate(180deg);
box-shadow: 0 8px 20px var(--shadow-hover);
}
/* Loading animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid var(--border-color);
border-radius: 50%;
border-top-color: var(--primary-gradient);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Enhanced typography */
h1, h2, h3 {
background: var(--primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
header h1 {
color: #f0f6ff;
background: none;
-webkit-background-clip: initial;
-webkit-text-fill-color: initial;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
background: var(--accent-gradient);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-gradient);
}
/* Responsive enhancements */
@media (max-width: 768px) {
.project-card:hover {
transform: translateY(-4px) scale(1.01);
}
.theme-toggle:hover {
transform: scale(1.05) rotate(90deg);
}
}
/* Focus states for accessibility */
button:focus,
a:focus {
outline: 2px solid var(--accent-gradient);
outline-offset: 2px;
}
/* Print styles */
@media print {
.theme-toggle,
.modal-overlay {
display: none !important;
}
.project-card {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ccc;
}
}