Testlend2 / styles.css
flpolprojects's picture
Update styles.css
7cc7efc verified
raw
history blame
5.7 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: #000;
color: #fff;
overflow: hidden;
position: relative;
}
.cosmo-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, rgba(0, 255, 204, 0.25), #000 80%);
z-index: -2;
animation: cosmoShift 20s infinite ease-in-out;
}
@keyframes cosmoShift {
0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
50% { transform: scale(1.15) rotate(5deg); opacity: 1; }
}
#cosmo-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
.container {
max-width: 1800px;
margin: 0 auto;
padding: 4rem;
position: relative;
z-index: 1;
}
header {
text-align: center;
padding: 7rem 0;
}
.cosmo-title {
font-size: 8rem;
font-weight: 900;
text-transform: uppercase;
background: linear-gradient(135deg, #00ffcc, #ff007a, #fff, #00ffcc, #ff007a);
background-size: 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: blur(0.8px) drop-shadow(0 0 40px rgba(0, 255, 204, 1));
animation: cosmoGlow 6s infinite, cosmoFlow 10s infinite;
}
@keyframes cosmoGlow {
0%, 100% { transform: translateZ(0) scale(1); filter: blur(0.8px) brightness(1); }
50% { transform: translateZ(150px) scale(1.08); filter: blur(0.4px) brightness(1.2); }
}
@keyframes cosmoFlow {
0% { background-position: 0%; }
100% { background-position: 300%; }
}
.subtitle {
font-size: 2.5rem;
opacity: 0.8;
margin-top: 2rem;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
animation: fadeIn 4s ease-in-out;
}
@keyframes fadeIn {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 0.8; transform: translateY(0); }
}
.hero {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 100vh;
flex-wrap: wrap;
gap: 5rem;
}
.cosmo-product {
width: 50%;
height: 40rem;
position: relative;
transform-style: preserve-3d;
transition: transform 0.7s ease;
}
.holo-layer {
position: absolute;
width: 100%;
height: 100%;
}
.layer-1 {
background: url('cream.png') no-repeat center/contain; /* Замените на реальное изображение */
filter: drop-shadow(0 0 60px rgba(0, 255, 204, 1)) brightness(1.3);
animation: holoFloat 10s infinite ease-in-out;
}
.layer-2 {
background: radial-gradient(circle, rgba(0, 255, 204, 0.5), transparent 70%);
filter: blur(20px);
animation: holoPulse 5s infinite ease-in-out;
}
@keyframes holoFloat {
0%, 100% { transform: translateY(0) rotateZ(4deg) translateZ(0); }
50% { transform: translateY(-40px) rotateZ(-4deg) translateZ(100px); }
}
@keyframes holoPulse {
0%, 100% { opacity: 0.5; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.1); }
}
.hero-text {
width: 45%;
}
.hero-text h2 {
font-size: 4rem;
margin-bottom: 2.5rem;
background: linear-gradient(90deg, #ff007a, #00ffcc, #fff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 25px rgba(0, 255, 204, 0.9);
animation: textGlow 3s infinite;
}
@keyframes textGlow {
0%, 100% { text-shadow: 0 0 25px rgba(0, 255, 204, 0.9); }
50% { text-shadow: 0 0 35px rgba(0, 255, 204, 1); }
}
.cosmo-button {
padding: 1.8rem 5rem;
font-size: 2rem;
border: none;
background: linear-gradient(60deg, #00ffcc, #ff007a, #fff, #00ffcc);
background-size: 400%;
color: #000;
border-radius: 150px;
cursor: pointer;
transition: transform 0.5s, filter 0.5s, background-position 0.5s;
box-shadow: 0 0 40px rgba(0, 255, 204, 1);
animation: cosmoButton 4s infinite;
}
.cosmo-button:hover {
transform: scale(1.25) translateZ(50px);
filter: brightness(1.5);
background-position: 100%;
}
@keyframes cosmoButton {
0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 204, 1); }
50% { box-shadow: 0 0 60px rgba(255, 0, 122, 1); }
}
.features {
display: flex;
justify-content: space-around;
padding: 7rem 0;
flex-wrap: wrap;
gap: 4rem;
}
.cosmo-pod {
width: 30%;
padding: 3rem;
background: rgba(255, 255, 255, 0.01);
border-radius: 30px;
text-align: center;
transition: all 0.7s ease;
backdrop-filter: blur(20px);
border: 2px solid rgba(0, 255, 204, 0.4);
transform-style: preserve-3d;
}
.cosmo-pod:hover, .cosmo-pod.active {
transform: translateY(-30px) scale(1.2) translateZ(30px);
background: linear-gradient(45deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 122, 0.2));
box-shadow: 0 0 50px rgba(0, 255, 204, 1);
}
.cosmo-pod h3 {
font-size: 2rem;
margin-bottom: 1rem;
}
/* Адаптация для мобильных */
@media (max-width: 768px) {
.cosmo-title {
font-size: 5rem;
}
.subtitle {
font-size: 1.8rem;
}
.hero {
flex-direction: column;
text-align: center;
}
.cosmo-product {
width: 90%;
height: 30rem;
}
.hero-text {
width: 100%;
}
.hero-text h2 {
font-size: 3rem;
}
.cosmo-button {
padding: 1.2rem 3rem;
font-size: 1.6rem;
}
.cosmo-pod {
width: 90%;
}
}
@media (max-width: 480px) {
.cosmo-title {
font-size: 3.5rem;
}
.subtitle {
font-size: 1.4rem;
}
.hero-text h2 {
font-size: 2rem;
}
.cosmo-pod h3 {
font-size: 1.6rem;
}
}