Spaces:
Running
Running
улучши css
Browse files
style.css
CHANGED
|
@@ -1,9 +1,21 @@
|
|
| 1 |
|
| 2 |
/* Base styles for all pages */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
body {
|
| 4 |
-
font-family: 'Space Grotesk', sans-serif;
|
| 5 |
-
background-color:
|
| 6 |
-
color:
|
| 7 |
margin: 0;
|
| 8 |
padding: 0;
|
| 9 |
min-height: 100vh;
|
|
@@ -11,8 +23,12 @@ body {
|
|
| 11 |
transform-style: preserve-3d;
|
| 12 |
overflow-x: hidden;
|
| 13 |
overflow-y: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
-
|
| 16 |
@keyframes typing {
|
| 17 |
from { width: 0 }
|
| 18 |
to { width: 100% }
|
|
@@ -31,14 +47,27 @@ body {
|
|
| 31 |
typing 3.5s steps(40, end),
|
| 32 |
blink-caret .75s step-end infinite;
|
| 33 |
}
|
| 34 |
-
|
| 35 |
.parallax {
|
| 36 |
position: relative;
|
| 37 |
height: 100vh;
|
|
|
|
| 38 |
transform-style: preserve-3d;
|
| 39 |
z-index: -1;
|
|
|
|
| 40 |
}
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
.parallax-layer {
|
| 43 |
position: absolute;
|
| 44 |
top: 0;
|
|
@@ -58,26 +87,91 @@ body {
|
|
| 58 |
.parallax-front {
|
| 59 |
transform: translateZ(1px) scale(0.5);
|
| 60 |
}
|
| 61 |
-
|
| 62 |
.fade-in {
|
| 63 |
-
animation: fadeIn
|
| 64 |
}
|
| 65 |
|
| 66 |
@keyframes fadeIn {
|
| 67 |
-
from {
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
}
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
.float {
|
| 72 |
animation: float 6s ease-in-out infinite;
|
| 73 |
}
|
| 74 |
-
|
| 75 |
@keyframes float {
|
| 76 |
-
0% {
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
.glow-animate {
|
| 82 |
animation: glow-pulse 2s infinite alternate;
|
| 83 |
}
|
|
@@ -87,49 +181,118 @@ body {
|
|
| 87 |
to { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
|
| 88 |
}
|
| 89 |
.gradient-text {
|
| 90 |
-
background: linear-gradient(90deg,
|
|
|
|
|
|
|
|
|
|
| 91 |
-webkit-background-clip: text;
|
| 92 |
background-clip: text;
|
| 93 |
color: transparent;
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
.glow {
|
| 97 |
-
box-shadow: 0 0 15px
|
|
|
|
| 98 |
}
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
|
|
|
| 101 |
.container {
|
| 102 |
width: 100%;
|
| 103 |
-
max-width:
|
| 104 |
margin: 0 auto;
|
| 105 |
-
padding: 0 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
}
|
| 107 |
|
| 108 |
-
/* Buttons */
|
| 109 |
.btn-primary {
|
| 110 |
-
background-color:
|
| 111 |
color: white;
|
| 112 |
-
padding: 0.75rem 1.
|
| 113 |
-
|
| 114 |
-
font-weight: 500;
|
| 115 |
-
transition: all 0.2s;
|
| 116 |
}
|
| 117 |
|
| 118 |
.btn-primary:hover {
|
| 119 |
-
background-color:
|
| 120 |
-
transform: translateY(-
|
|
|
|
| 121 |
}
|
| 122 |
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
.card {
|
| 125 |
-
background-color:
|
| 126 |
-
border: 1px solid
|
| 127 |
-
border-radius:
|
| 128 |
-
padding:
|
| 129 |
-
transition: all 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
|
| 132 |
.card:hover {
|
| 133 |
-
transform: translateY(-
|
| 134 |
-
box-shadow: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
}
|
|
|
|
| 1 |
|
| 2 |
/* Base styles for all pages */
|
| 3 |
+
:root {
|
| 4 |
+
--bg-primary: #0f0a19;
|
| 5 |
+
--bg-secondary: #1a1033;
|
| 6 |
+
--text-primary: #e2e8f0;
|
| 7 |
+
--text-secondary: #c7d2fe;
|
| 8 |
+
--accent-purple: #8b5cf6;
|
| 9 |
+
--accent-pink: #c084fc;
|
| 10 |
+
--accent-deep: #a855f7;
|
| 11 |
+
--border-color: rgba(139, 92, 246, 0.3);
|
| 12 |
+
--glow-color: rgba(168, 85, 247, 0.5);
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
body {
|
| 16 |
+
font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
|
| 17 |
+
background-color: var(--bg-primary);
|
| 18 |
+
color: var(--text-primary);
|
| 19 |
margin: 0;
|
| 20 |
padding: 0;
|
| 21 |
min-height: 100vh;
|
|
|
|
| 23 |
transform-style: preserve-3d;
|
| 24 |
overflow-x: hidden;
|
| 25 |
overflow-y: auto;
|
| 26 |
+
line-height: 1.6;
|
| 27 |
+
scroll-behavior: smooth;
|
| 28 |
+
text-rendering: optimizeLegibility;
|
| 29 |
+
-webkit-font-smoothing: antialiased;
|
| 30 |
+
-moz-osx-font-smoothing: grayscale;
|
| 31 |
}
|
|
|
|
| 32 |
@keyframes typing {
|
| 33 |
from { width: 0 }
|
| 34 |
to { width: 100% }
|
|
|
|
| 47 |
typing 3.5s steps(40, end),
|
| 48 |
blink-caret .75s step-end infinite;
|
| 49 |
}
|
|
|
|
| 50 |
.parallax {
|
| 51 |
position: relative;
|
| 52 |
height: 100vh;
|
| 53 |
+
min-height: 600px;
|
| 54 |
transform-style: preserve-3d;
|
| 55 |
z-index: -1;
|
| 56 |
+
isolation: isolate;
|
| 57 |
}
|
| 58 |
|
| 59 |
+
.parallax::after {
|
| 60 |
+
content: '';
|
| 61 |
+
position: absolute;
|
| 62 |
+
inset: 0;
|
| 63 |
+
background: radial-gradient(
|
| 64 |
+
circle at center,
|
| 65 |
+
transparent 0%,
|
| 66 |
+
var(--bg-primary) 100%
|
| 67 |
+
);
|
| 68 |
+
z-index: 1;
|
| 69 |
+
pointer-events: none;
|
| 70 |
+
}
|
| 71 |
.parallax-layer {
|
| 72 |
position: absolute;
|
| 73 |
top: 0;
|
|
|
|
| 87 |
.parallax-front {
|
| 88 |
transform: translateZ(1px) scale(0.5);
|
| 89 |
}
|
|
|
|
| 90 |
.fade-in {
|
| 91 |
+
animation: fadeIn 1s ease-in-out both;
|
| 92 |
}
|
| 93 |
|
| 94 |
@keyframes fadeIn {
|
| 95 |
+
from {
|
| 96 |
+
opacity: 0;
|
| 97 |
+
transform: translateY(20px);
|
| 98 |
+
}
|
| 99 |
+
to {
|
| 100 |
+
opacity: 1;
|
| 101 |
+
transform: translateY(0);
|
| 102 |
+
}
|
| 103 |
}
|
| 104 |
|
| 105 |
+
/* Staggered animations */
|
| 106 |
+
[data-animate] {
|
| 107 |
+
opacity: 0;
|
| 108 |
+
animation: fadeIn 0.8s ease-out forwards;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
[data-animate-delay="100"] { animation-delay: 0.1s; }
|
| 112 |
+
[data-animate-delay="200"] { animation-delay: 0.2s; }
|
| 113 |
+
[data-animate-delay="300"] { animation-delay: 0.3s; }
|
| 114 |
+
[data-animate-delay="400"] { animation-delay: 0.4s; }
|
| 115 |
.float {
|
| 116 |
animation: float 6s ease-in-out infinite;
|
| 117 |
}
|
|
|
|
| 118 |
@keyframes float {
|
| 119 |
+
0% {
|
| 120 |
+
transform: translateY(0px) rotate(0deg);
|
| 121 |
+
}
|
| 122 |
+
50% {
|
| 123 |
+
transform: translateY(-20px) rotate(2deg);
|
| 124 |
+
}
|
| 125 |
+
100% {
|
| 126 |
+
transform: translateY(0px) rotate(0deg);
|
| 127 |
+
}
|
| 128 |
}
|
| 129 |
|
| 130 |
+
/* Smooth scroll behavior */
|
| 131 |
+
@media (prefers-reduced-motion: no-preference) {
|
| 132 |
+
html {
|
| 133 |
+
scroll-behavior: smooth;
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
/* Focus styles for accessibility */
|
| 138 |
+
:focus-visible {
|
| 139 |
+
outline: 2px solid var(--accent-purple);
|
| 140 |
+
outline-offset: 2px;
|
| 141 |
+
border-radius: 0.25rem;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
/* Improved transitions */
|
| 145 |
+
.transition-all {
|
| 146 |
+
transition-property: all;
|
| 147 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
| 148 |
+
transition-duration: 150ms;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
/* Better typography */
|
| 152 |
+
h1, h2, h3, h4 {
|
| 153 |
+
line-height: 1.2;
|
| 154 |
+
font-weight: 700;
|
| 155 |
+
margin-bottom: 1rem;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
p {
|
| 159 |
+
margin-bottom: 1.25rem;
|
| 160 |
+
max-width: 65ch;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
/* Fluid typography */
|
| 164 |
+
@media (min-width: 640px) {
|
| 165 |
+
html {
|
| 166 |
+
font-size: 16px;
|
| 167 |
+
}
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
@media (min-width: 1024px) {
|
| 171 |
+
html {
|
| 172 |
+
font-size: 18px;
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
.glow-animate {
|
| 176 |
animation: glow-pulse 2s infinite alternate;
|
| 177 |
}
|
|
|
|
| 181 |
to { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
|
| 182 |
}
|
| 183 |
.gradient-text {
|
| 184 |
+
background: linear-gradient(90deg,
|
| 185 |
+
var(--accent-purple) 0%,
|
| 186 |
+
var(--accent-pink) 50%,
|
| 187 |
+
var(--accent-deep) 100%);
|
| 188 |
-webkit-background-clip: text;
|
| 189 |
background-clip: text;
|
| 190 |
color: transparent;
|
| 191 |
+
display: inline-block;
|
| 192 |
}
|
| 193 |
|
| 194 |
.glow {
|
| 195 |
+
box-shadow: 0 0 15px var(--glow-color);
|
| 196 |
+
transition: box-shadow 0.3s ease;
|
| 197 |
}
|
| 198 |
|
| 199 |
+
.glow:hover {
|
| 200 |
+
box-shadow: 0 0 25px var(--glow-color);
|
| 201 |
+
}
|
| 202 |
+
/* Responsive container with fluid scaling */
|
| 203 |
.container {
|
| 204 |
width: 100%;
|
| 205 |
+
max-width: 1440px;
|
| 206 |
margin: 0 auto;
|
| 207 |
+
padding: 0 clamp(1rem, 5vw, 3rem);
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
@media (min-width: 1536px) {
|
| 211 |
+
.container {
|
| 212 |
+
max-width: 1536px;
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
/* Buttons with improved interactions */
|
| 216 |
+
.btn {
|
| 217 |
+
display: inline-flex;
|
| 218 |
+
align-items: center;
|
| 219 |
+
justify-content: center;
|
| 220 |
+
gap: 0.5rem;
|
| 221 |
+
font-weight: 500;
|
| 222 |
+
border-radius: 9999px;
|
| 223 |
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
| 224 |
+
cursor: pointer;
|
| 225 |
+
user-select: none;
|
| 226 |
+
white-space: nowrap;
|
| 227 |
}
|
| 228 |
|
|
|
|
| 229 |
.btn-primary {
|
| 230 |
+
background-color: var(--accent-purple);
|
| 231 |
color: white;
|
| 232 |
+
padding: 0.75rem 1.75rem;
|
| 233 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
| 234 |
}
|
| 235 |
|
| 236 |
.btn-primary:hover {
|
| 237 |
+
background-color: var(--accent-deep);
|
| 238 |
+
transform: translateY(-2px);
|
| 239 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
| 240 |
}
|
| 241 |
|
| 242 |
+
.btn-primary:active {
|
| 243 |
+
transform: translateY(0);
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.btn-outline {
|
| 247 |
+
border: 1px solid var(--border-color);
|
| 248 |
+
color: var(--text-secondary);
|
| 249 |
+
padding: 0.75rem 1.75rem;
|
| 250 |
+
background-color: transparent;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.btn-outline:hover {
|
| 254 |
+
background-color: rgba(139, 92, 246, 0.1);
|
| 255 |
+
border-color: var(--accent-purple);
|
| 256 |
+
}
|
| 257 |
+
/* Enhanced cards with depth */
|
| 258 |
.card {
|
| 259 |
+
background-color: var(--bg-secondary);
|
| 260 |
+
border: 1px solid var(--border-color);
|
| 261 |
+
border-radius: 1rem;
|
| 262 |
+
padding: 2rem;
|
| 263 |
+
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
| 264 |
+
position: relative;
|
| 265 |
+
overflow: hidden;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.card::before {
|
| 269 |
+
content: '';
|
| 270 |
+
position: absolute;
|
| 271 |
+
top: 0;
|
| 272 |
+
left: 0;
|
| 273 |
+
width: 100%;
|
| 274 |
+
height: 100%;
|
| 275 |
+
background: linear-gradient(
|
| 276 |
+
135deg,
|
| 277 |
+
rgba(139, 92, 246, 0.1) 0%,
|
| 278 |
+
rgba(168, 85, 247, 0.05) 100%
|
| 279 |
+
);
|
| 280 |
+
z-index: 0;
|
| 281 |
+
opacity: 0;
|
| 282 |
+
transition: opacity 0.3s ease;
|
| 283 |
}
|
| 284 |
|
| 285 |
.card:hover {
|
| 286 |
+
transform: translateY(-8px) scale(1.02);
|
| 287 |
+
box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.2),
|
| 288 |
+
0 10px 10px -5px rgba(139, 92, 246, 0.1);
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
.card:hover::before {
|
| 292 |
+
opacity: 1;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
.card-content {
|
| 296 |
+
position: relative;
|
| 297 |
+
z-index: 1;
|
| 298 |
}
|