codecanvas-creator / style.css
Technosahid's picture
make a better stylish for developer
83c2dd3 verified
Raw History Blame Contribute Delete
6.04 kB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #f8fafc;
}
/* Neon Glow Effect */
.neon-text {
text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1, 0 0 15px #6366f1;
animation: neon-pulse 2s infinite alternate;
}
@keyframes neon-pulse {
from {
text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1;
}
to {
text-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1, 0 0 30px #6366f1;
}
}
/* Terminal-like Code Blocks */
.code-block {
background: rgba(15, 23, 42, 0.8);
border-left: 4px solid #6366f1;
padding: 1.5rem;
border-radius: 0 8px 8px 0;
font-family: 'Fira Code', monospace;
position: relative;
overflow: hidden;
}
.code-block::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
to bottom,
transparent,
transparent 50%,
rgba(99, 102, 241, 0.05) 50%,
rgba(99, 102, 241, 0.05)
);
background-size: 100% 4px;
pointer-events: none;
}
.code-line {
display: block;
margin-bottom: 0.5rem;
color: #f8fafc;
}
.code-comment {
color: #64748b;
}
.code-keyword {
color: #f472b6;
}
.code-string {
color: #86efac;
}
.code-number {
color: #f59e0b;
}
/* Cyberpunk Button */
.cyber-btn {
position: relative;
padding: 0.75rem 2rem;
background: transparent;
color: #6366f1;
border: 2px solid #6366f1;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
overflow: hidden;
transition: all 0.3s ease;
}
.cyber-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(99, 102, 241, 0.4),
transparent
);
transition: all 0.5s ease;
}
.cyber-btn:hover {
color: #f8fafc;
box-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1;
}
.cyber-btn:hover::before {
left: 100%;
}
/* Glass Morphism */
.glass-card {
background: rgba(15, 23, 42, 0.5);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.glass-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
border-color: rgba(99, 102, 241, 0.3);
}
/* Navbar Styles */
.custom-navbar {
position: fixed;
width: 100%;
z-index: 1000;
transition: all 0.3s ease;
}
.custom-navbar.scrolled {
background-color: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Skill Cards */
.skill-card {
background: rgba(31, 41, 55, 0.6);
border-radius: 12px;
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.skill-card:hover {
transform: translateY(-5px);
background: rgba(31, 41, 55, 0.8);
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}
.skill-card::before {
content: attr(data-skill);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(244, 63, 94, 0.9));
color: white;
font-weight: bold;
opacity: 0;
transition: opacity 0.3s ease;
}
.skill-card:hover::before {
opacity: 1;
}
.skill-icon {
width: 80px;
height: 80px;
margin: 0 auto 1.5rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
transition: all 0.3s ease;
}
.skill-card:hover .skill-icon {
transform: scale(0);
}
/* Project Cards */
.project-card {
background: rgba(31, 41, 55, 0.6);
border-radius: 12px;
overflow: hidden;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}
.project-image {
position: relative;
height: 250px;
overflow: hidden;
}
.project-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
transform: scale(1.1);
}
.project-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
opacity: 1;
}
.view-btn {
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, #6366f1, #f43f5e);
color: white;
border-radius: 50px;
font-weight: 500;
transition: all 0.3s ease;
}
.view-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}
.project-info {
padding: 1.5rem;
}
.project-info h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.project-info p {
color: rgba(156, 163, 175);
font-size: 0.875rem;
}
/* Section Animation */
section {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
section.show {
opacity: 1;
transform: translateY(0);
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #1f2937;
}
::-webkit-scrollbar-thumb {
background: #4b5563;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #6366f1;
}