File size: 9,885 Bytes
346b33f 67cffc6 02ee4f9 67cffc6 02ee4f9 b07e631 02ee4f9 67cffc6 02ee4f9 5fe2ab2 02ee4f9 346b33f 02ee4f9 346b33f 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 b07e631 02ee4f9 b07e631 1ae17e8 5fe2ab2 02ee4f9 67cffc6 02ee4f9 5fe2ab2 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 b07e631 67cffc6 02ee4f9 b07e631 67cffc6 346b33f 67cffc6 02ee4f9 3a67716 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 b07e631 346b33f b07e631 67cffc6 b07e631 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 b07e631 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 0a7b925 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 5fe2ab2 67cffc6 02ee4f9 0a7b925 94999f1 0a7b925 94999f1 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 346b33f 02ee4f9 5fe2ab2 67cffc6 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 b07e631 02ee4f9 5fe2ab2 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 02ee4f9 67cffc6 5fe2ab2 67cffc6 5fe2ab2 67cffc6 02ee4f9 67cffc6 02ee4f9 5fe2ab2 02ee4f9 b07e631 2f1c345 100f2ed 2f1c345 100f2ed 2f1c345 100f2ed 2f1c345 100f2ed 424ae61 100f2ed 424ae61 100f2ed 424ae61 100f2ed 424ae61 100f2ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | /* 1. Custom font – make it usable everywhere */
@font-face {
font-family: "Gagalin";
src: url("./media/gagalin.otf") format("opentype");
font-display: swap;
}
:root {
--bg: #0f0f0f;
--surface: rgba(255, 255, 255, 0.05);
--border: rgba(255, 255, 255, 0.08);
--accent: linear-gradient(135deg, #ffb347 0%, #ffcc33 50%, #d2691e 100%);
--accent-solid: #ffb347;
--text: #ffffff;
--text2: #d2b48c;
--radius: 16px;
}
/* 2. Apply Gagalin globally */
* {
margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
font-family: "Gagalin", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
overflow-x: hidden;
}
/* 3. Liquid BG */
.liquid-bg {
position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.orb {
position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.7;
animation: drift 20s infinite ease-in-out;
}
.orb-1 { width: 50vw; height: 50vw; top: -15%; left: -15%; background: #ffb347; }
.orb-2 { width: 40vw; height: 40vw; bottom: -15%; right: -15%; background: #ff8c00; }
.orb-3 { width: 30vw; height: 30vw; top: 30%; left: 30%; background: #d2691e; }
@keyframes drift {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(40px, -40px) scale(1.15); }
100% { transform: translate(0, 0) scale(1); }
}
/* 4. Header */
.header {
position: sticky; top: 0; z-index: 10;
display: flex; align-items: center; justify-content: space-between;
padding: 1rem 2rem; background: var(--surface); backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
}
.logo { font-family: "Gagalin"; font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; color: var(--accent-solid); }
nav { display: flex; gap: 1.2rem; }
nav a { color: var(--text2); font-weight: 500; text-decoration: none; transition: color .2s; }
nav a:hover { color: var(--accent-solid); }
/* 5. Hero */
.hero {
display: flex; flex-direction: column; align-items: center; justify-content: center;
text-align: center; min-height: 50vh; padding: 4rem 1rem;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 800; }
.hero-title .accent {
background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin: .75rem 0 2rem; color: var(--text2); }
.cta {
background: var(--accent); color: #000; border: none;
padding: .9rem 2.2rem; border-radius: 50px; font-family: "Gagalin"; font-size: 1rem;
cursor: pointer; transition: transform .25s, box-shadow .25s;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 179, 71, 0.35); }
.btn-copy {
font-family: "Gagalin", "JetBrains Mono", monospace !important;
}
/* 6. Stats */
.stats {
display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 1rem; flex-wrap: wrap;
}
.stat-card {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: 1.2rem 2rem; text-align: center; min-width: 150px; backdrop-filter: blur(20px);
transition: transform .25s, box-shadow .25s;
}
.stat-card:hover,
.stat-card:active { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(255, 179, 71, 0.35); }
.stat-card i {
display: block; font-size: 1.5rem;
background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
margin-bottom: .4rem;
}
.stat-card span { font-size: 1.4rem; font-weight: 700; }
.stat-card small { color: var(--text2); }
/* 7. API Section */
.api-section { padding: 3rem 1rem; max-width: 1000px; margin: auto; }
.controls { margin-bottom: 2rem; }
#search {
width: 100%; max-width: 400px; margin: 0 auto 1rem; display: block;
padding: .75rem 1rem; border-radius: 50px; border: 1px solid var(--border);
background: var(--surface); color: var(--text);
}
.pills { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.pill {
padding: .4rem 1rem; border: 1px solid var(--border); border-radius: 50px;
background: transparent; color: var(--text2); cursor: pointer;
transition: all .25s ease;
}
.pill:hover, .pill.active {
background: var(--accent); color: #000; border-color: var(--accent-solid);
}
.grid {
display: grid; gap: 1.5rem;
grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
}
.card {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: 1.5rem; transition: transform .25s, box-shadow .25s; cursor: pointer;
position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(255, 179, 71, 0.4); }
.card h4 { margin-bottom: .5rem; font-size: 1.1rem; }
.card .cat {
display: inline-block; font-size: .7rem; background: var(--accent);
color: #000; padding: .2rem .6rem; border-radius: 20px; margin-bottom: .7rem;
}
.card p { font-size: .9rem; color: var(--text2); }
.card .method {
position: absolute; top: 1rem; right: 1rem;
font-family: var(--mono); font-size: .7rem;
background: rgba(255, 179, 71, 0.2); color: #ffb347;
padding: .15rem .4rem; border-radius: 4px;
}
.status {
position: absolute; bottom: 1rem; right: 1rem;
font-size: .7rem; font-weight: 600;
color: #000; padding: .2rem .5rem; border-radius: 12px;
}
.status.active { background: #2ecc71; }
.status.inactive { background: #e74c3c; }
.load-more {
display: block; margin: 2.5rem auto 0;
padding: .75rem 2rem; border: 1px solid var(--accent-solid);
border-radius: 50px; color: var(--accent-solid); background: transparent;
cursor: pointer; transition: all .25s ease;
}
.load-more:hover { background: var(--accent); color: #000; }
/* 8. Docs */
.docs {
background: var(--surface); margin: 2rem 0; padding: 3rem 1rem;
text-align: center;
}
.docs h2 { font-size: 1.8rem; margin-bottom: 2rem; }
.steps {
display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
gap: 2rem; max-width: 800px; margin: auto;
}
.step-icon {
width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
background: var(--accent); display: grid; place-items: center;
font-family: "Gagalin"; font-size: 2.2rem; color: #000;
}
.step-icon::before { content: attr(class); }
.step-icon.icon-1::before { content: "1"; }
.step-icon.icon-2::before { content: "2"; }
.step-icon.icon-3::before { content: "3"; }
article h3 { font-size: 1.1rem; margin-bottom: .5rem; }
article p { color: var(--text2); }
/* 9. Footer */
footer {
text-align: center; padding: 2rem 1rem; color: var(--text2);
}
.social { display: flex; justify-content: center; gap: 1rem; margin-bottom: .8rem; }
.social a { color: var(--text2); font-size: 1.3rem; transition: color .2s; }
.social a:hover { color: var(--accent-solid); }
/* 10. Modal */
.modal {
position: fixed; inset: 0; z-index: 100;
display: grid; place-items: center; padding: 1rem;
background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
opacity: 0; visibility: hidden; transition: opacity .3s;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); width: 100%; max-width: 450px;
max-height: 80vh; overflow-y: auto; padding: 2rem; position: relative;
}
.modal-close {
position: absolute; top: 1rem; right: 1rem; background: none;
border: none; font-size: 1.5rem; color: var(--text2); cursor: pointer;
}
.code-snippet {
background: #111; border: 1px solid var(--border); border-radius: 8px;
padding: 1rem; font-family: var(--mono); font-size: .85rem;
margin-top: 1rem; overflow-x: auto;
}
/* 11. Modal Buttons (tappable) */
.btn-copy {
background: var(--accent); color: #000; border: none;
padding: .5rem 1rem; border-radius: 50px; font-size: .85rem;
cursor: pointer; transition: all .15s ease;
}
.btn-copy:active {
transform: scale(.94);
filter: brightness(1.3);
}
.btn-copy:hover { opacity: .9; }
/* 12. Responsive */
@media (max-width: 600px) {
.header { padding: 1rem; }
nav { display: none; }
}
/* ====== DYNAMIC EYE-CANDY ====== */
/* ---- music widget ---- */
#music-widget {
position: fixed;
bottom: 2rem;
right: 2rem;
z-index: 200;
display: flex;
align-items: center;
gap: .6rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 50px;
padding: .5rem 1rem;
backdrop-filter: blur(12px);
animation: slideIn .6s ease-out;
}
#music-toggle {
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: var(--accent);
color: #000;
font-size: 1rem;
cursor: pointer;
transition: transform .2s;
}
#music-toggle:hover { transform: scale(1.15); }
#music-text { font-size: .75rem; color: var(--text2); }
/* ---- cursor chasing orbs ---- */
.orb {
will-change: transform;
transition: transform .6s ease-out;
}
body:hover .orb { animation: none; } /* pause default drift on hover */
/* ---- 3-D tilt cards ---- */
.card {
transform-style: preserve-3d;
transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
transform: perspective(1000px) rotateX(6deg) rotateY(-6deg) scale(1.05);
box-shadow: 0 20px 40px rgba(255, 179, 71, .45);
}
/* ---- button ripple ---- */
.cta, .pill, .load-more, .btn-copy {
position: relative;
overflow: hidden;
}
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, .6);
transform: scale(0);
animation: ripple .6s ease-out;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
/* ---- header auto-shrink ---- */
.header {
transition: padding .3s, background .3s;
}
.header.compact { padding: .6rem 2rem; background: rgba(0, 0, 0, .45); }
/* ---- number count-up ---- */
.stat-card span {
display: inline-block;
min-width: 3rem; /* avoid jump */
}
/* ---- micro-animations ---- */
@keyframes slideIn { from { transform: translateY(30px); opacity: 0; } }
|