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,240 @@
/* Custom animations and keyframes */
/* Fade in animation */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Slide up animation */
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Bounce in animation */
@keyframes bounceIn {
0% {
opacity: 0;
transform: scale(0.3);
}
50% {
opacity: 1;
transform: scale(1.05);
}
70% {
transform: scale(0.9);
}
100% {
opacity: 1;
transform: scale(1);
}
}
/* Pulse animation */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Shimmer effect for loading states */
@keyframes shimmer {
0% {
background-position: -200px 0;
}
100% {
background-position: calc(200px + 100%) 0;
}
}
/* Floating animation */
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
/* Gradient animation */
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Typing animation */
@keyframes typing {
from {
width: 0;
}
to {
width: 100%;
}
}
/* Blink animation for cursor */
@keyframes blink {
0%, 50% {
opacity: 1;
}
51%, 100% {
opacity: 0;
}
}
/* Utility classes for animations */
.animate-fade-in {
animation: fadeIn 0.6s ease-out;
}
.animate-slide-up {
animation: slideUp 0.8s ease-out;
}
.animate-bounce-in {
animation: bounceIn 1s ease-out;
}
.animate-pulse {
animation: pulse 2s infinite;
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
.animate-gradient {
background-size: 200% 200%;
animation: gradientShift 3s ease infinite;
}
.animate-shimmer {
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
background-size: 200px 100%;
animation: shimmer 1.5s infinite;
}
/* Staggered animations for lists */
.stagger-animation > * {
opacity: 0;
animation: slideUp 0.6s ease-out forwards;
}
.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }
/* Hover animations */
.hover-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.hover-scale {
transition: transform 0.3s ease;
}
.hover-scale:hover {
transform: scale(1.05);
}
.hover-glow {
transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}
/* Loading spinner */
.spinner {
width: 40px;
height: 40px;
border: 4px solid rgba(0, 0, 0, 0.1);
border-left-color: #4facfe;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Text reveal animation */
.text-reveal {
overflow: hidden;
position: relative;
}
.text-reveal::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--bg-primary);
animation: textReveal 1.5s ease-out forwards;
}
@keyframes textReveal {
0% {
transform: translateX(0);
}
100% {
transform: translateX(100%);
}
}
/* Parallax effect */
.parallax {
transform: translateZ(0);
will-change: transform;
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}

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;
}
}