Alibexar's picture
سایت کاملا سه بعدی باشه
8d1c407 verified
/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
perspective: 1000px;
transform-style: preserve-3d;
min-height: 100vh;
overflow-x: hidden;
}
/* Smooth scrolling for anchor links */
html {
scroll-behavior: smooth;
}
/* Custom gradient text */
.text-gradient {
background-clip: text;
-webkit-background-clip: text;
color: transparent;
background-image: linear-gradient(to right, #3B82F6, #10B981);
}
/* 3D Transformations */
main {
transform-style: preserve-3d;
}
section {
transform-style: preserve-3d;
transition: transform 0.5s ease;
}
/* 3D Card Effects */
.skill-card, .project-card {
transform-style: preserve-3d;
transition: all 0.5s ease;
transform: translateZ(0);
}
.skill-card:hover, .project-card:hover {
transform: translateY(-5px) rotateX(5deg) rotateY(5deg) translateZ(20px);
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
/* Parallax Effect */
.parallax-bg {
position: relative;
transform-style: preserve-3d;
}
.parallax-bg::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: cover;
background-position: center;
transform: translateZ(-1px) scale(1.1);
z-index: -1;
}
/* 3D Floating Elements */
.floating-3d {
animation: float3d 6s ease-in-out infinite;
transform-style: preserve-3d;
}
@keyframes float3d {
0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #3B82F6;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #2563eb;
}