landing / style.css
masoudmarandi's picture
enhance design on landing page and persian.html 10x - both must have consistent cohesive design (both are part of the same unit)
dd035d4 verified
/* 10x Cohesive Design System for Persian AI Community */
/* Reset & Base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.6;
color: #1e293b;
background: #fafafa;
overflow-x: hidden;
}
/* Typography System */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
background: linear-gradient(135deg, #fcd34d 0%, #fb923c 50%, #ef4444 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p {
color: #64748b;
font-size: 1.125rem;
line-height: 1.8;
margin-bottom: 1.5rem;
}
/* Persian Typography */
.fa-text, .fa-subtitle {
font-family: 'Vazirmatn', 'Inter', sans-serif;
letter-spacing: -0.025em;
}
/* Animation System */
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
@keyframes glow {
0%, 100% {
box-shadow: 0 0 20px rgba(252, 211, 77, 0.3),
0 0 40px rgba(251, 146, 60, 0.2),
0 0 60px rgba(239, 68, 68, 0.1);
}
50% {
box-shadow: 0 0 30px rgba(252, 211, 77, 0.5),
0 0 60px rgba(251, 146, 60, 0.3),
0 0 90px rgba(239, 68, 68, 0.2);
}
}
@keyframes blob {
0% { transform: translate(0, 0) scale(1); }
33% { transform: translate(30px, -30px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
100% { transform: translate(0, 0) scale(1); }
}
@keyframes shimmer {
0% { background-position: -1000px 0; }
100% { background-position: 1000px 0; }
}
/* Enhanced Components */
.hero-title {
animation: float 6s ease-in-out infinite;
background-size: 200% 200%;
animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.hero-subtitle {
animation: fadeInUp 1s ease-out 0.5s both;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Stat Cards */
.stat-card {
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
transform: rotate(45deg);
animation: shimmer 3s infinite;
}
/* Mission Cards */
.mission-card {
position: relative;
transform-style: preserve-3d;
transition: all 0.5s ease;
}
.mission-card:hover {
transform: translateY(-10px) rotateX(5deg);
}
.mission-card::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(252,211,77,0.1), rgba(251,146,60,0.05));
opacity: 0;
transition: opacity 0.3s ease;
border-radius: inherit;
}
.mission-card:hover::after {
opacity: 1;
}
/* Collection Cards */
.collection-card {
position: relative;
overflow: hidden;
}
.collection-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(252,211,77,0.2), rgba(251,146,60,0.1), rgba(239,68,68,0.05));
opacity: 0;
transition: opacity 0.3s ease;
}
.collection-card:hover::before {
opacity: 1;
}
.collection-card img {
transition: transform 0.5s ease;
}
.collection-card:hover img {
transform: scale(1.05);
}
/* Background Animation */
.animate-blob {
animation: blob 7s infinite;
}
.animation-delay-2000 {
animation-delay: 2s;
}
.animation-delay-4000 {
animation-delay: 4s;
}
/* Enhanced Buttons */
.btn-primary {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.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 0.5s;
}
.btn-primary:hover::before {
left: 100%;
}
.btn-secondary {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.btn-secondary:hover {
animation: glow 2s infinite;
}
/* Language Toggle Enhancement */
.lang-toggle {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 50;
display: flex;
gap: 0.5rem;
padding: 0.25rem;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 9999px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.lang-toggle button {
position: relative;
transition: all 0.3s ease;
}
.lang-toggle button:not(.active):hover {
transform: translateY(-1px);
}
.lang-toggle button.active {
cursor: default;
}
/* Persian Page Specific */
.persian-gradient {
background: linear-gradient(135deg,
rgba(251, 191, 36, 0.1) 0%,
rgba(251, 146, 60, 0.08) 35%,
rgba(239, 68, 68, 0.06) 70%,
rgba(217, 70, 239, 0.04) 100%);
}
.code-block {
position: relative;
border-radius: 12px;
overflow: hidden;
}
.code-block::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, #fcd34d, #fb923c, #ef4444);
}
.code-block pre {
margin: 0;
padding: 1.5rem;
font-size: 0.875rem;
line-height: 1.7;
}
.resource-card {
position: relative;
transition: all 0.3s ease;
overflow: hidden;
}
.resource-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
opacity: 0;
transition: opacity 0.3s ease;
}
.resource-card:hover::before {
opacity: 1;
}
.shimmer-button {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.shimmer-button::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
transform: rotate(45deg);
animation: shimmer 2s infinite;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.section-title {
font-size: 2rem;
}
.stat-card {
padding: 1.5rem;
}
.lang-toggle {
top: 0.5rem;
right: 0.5rem;
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #fcd34d, #fb923c);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #fb923c, #ef4444);
}
/* Loading Animation */
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f4f6;
border-top: 4px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
background: conic-gradient(from 0deg, #fcd34d, #fb923c, #ef4444, #fcd34d);
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}