Testlend2 / styles.css
flpolprojects's picture
Update styles.css
df34a68 verified
raw
history blame
3.96 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: #0f0c29;
color: #fff;
overflow-x: hidden;
position: relative;
}
.particle-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="#00ffcc"/><circle cx="90" cy="90" r="1" fill="#ff007a"/><circle cx="50" cy="50" r="1" fill="#fff"/></svg>');
animation: particleFlow 20s infinite linear;
z-index: -1;
opacity: 0.3;
}
@keyframes particleFlow {
0% { transform: translateY(0); }
100% { transform: translateY(-100vh); }
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
position: relative;
}
header {
text-align: center;
padding: 4rem 0;
}
.holo-title {
font-size: 5rem;
font-weight: bold;
text-transform: uppercase;
background: linear-gradient(45deg, #00ffcc, #ff007a, #fff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0 10px #00ffcc);
animation: holoGlow 3s infinite;
}
@keyframes holoGlow {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.8; }
}
.subtitle {
font-size: 1.5rem;
opacity: 0.7;
margin-top: 1rem;
}
.hero {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 70vh;
flex-wrap: wrap;
gap: 2rem;
}
.product-image {
width: 50%;
height: 25rem;
background: url('cream.png') no-repeat center/cover; /* Замените на реальное изображение */
filter: drop-shadow(0 0 30px rgba(0, 255, 204, 0.7));
transform: perspective(1000px) rotateY(25deg);
transition: transform 0.5s ease;
border-radius: 20px;
}
.product-image:hover {
transform: perspective(1000px) rotateY(0deg);
}
.hero-text {
width: 45%;
text-align: left;
}
.hero-text h2 {
font-size: 2.8rem;
margin-bottom: 1.5rem;
}
.cta-button {
padding: 1rem 2rem;
font-size: 1.2rem;
border: none;
background: linear-gradient(45deg, #00ffcc, #ff007a);
color: #fff;
border-radius: 50px;
cursor: pointer;
transition: transform 0.3s, filter 0.3s;
}
.cta-button:hover {
transform: scale(1.1) translateZ(10px);
filter: brightness(1.2);
}
.features {
display: flex;
justify-content: space-around;
padding: 4rem 0;
flex-wrap: wrap;
gap: 2rem;
}
.feature-card {
width: 30%;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
text-align: center;
transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
backdrop-filter: blur(5px);
}
.feature-card:hover {
transform: translateY(-15px) scale(1.05);
background: rgba(0, 255, 204, 0.15);
box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.feature-card h3 {
font-size: 1.6rem;
margin-bottom: 0.8rem;
}
/* Адаптация для мобильных */
@media (max-width: 768px) {
.holo-title {
font-size: 3rem;
}
.subtitle {
font-size: 1.2rem;
}
.hero {
flex-direction: column;
text-align: center;
}
.product-image {
width: 100%;
height: 20rem;
transform: perspective(1000px) rotateY(0deg);
}
.hero-text {
width: 100%;
}
.hero-text h2 {
font-size: 2rem;
}
.cta-button {
padding: 0.8rem 1.5rem;
font-size: 1rem;
}
.features {
flex-direction: column;
align-items: center;
}
.feature-card {
width: 90%;
}
}
@media (max-width: 480px) {
.holo-title {
font-size: 2.5rem;
}
.hero-text h2 {
font-size: 1.5rem;
}
.subtitle {
font-size: 1rem;
}
}