pixelportfolio-pro / style.css
nimi32's picture
Create a random personal portfolio website using HTML and CSS.
f1d4acb verified
Raw History Blame Contribute Delete
1.51 kB
/* Custom styles that complement Tailwind */
body {
scroll-behavior: smooth;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #6366f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #4f46e5;
}
/* Animation for sections */
section {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.visible {
opacity: 1;
transform: translateY(0);
}
/* Custom button animation */
.btn-hover-effect {
position: relative;
overflow: hidden;
}
.btn-hover-effect::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transition: left 0.3s ease;
}
.btn-hover-effect:hover::after {
left: 100%;
}
/* Project card hover effect */
.project-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
transform: translateY(-5px);
}
/* Skill icon animation */
.skill-icon {
transition: transform 0.3s ease;
}
.skill-card:hover .skill-icon {
transform: scale(1.1);
}
/* Input focus effect */
input:focus, textarea:focus {
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.hero-text {
text-align: center;
}
.hero-image {
margin-top: 2rem;
}
}