Cssweb
Cssweb
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
overflow-x: hidden;
background-color: #000;
color: #fff;
}
:root {
--primary-color: #3498db;
--secondary-color: #2c3e50;
--accent-light: #00a8ff;
--accent-dark: #0088cc;
--text-light: #ffffff;
--text-dark: #2c3e50;
}
/* Page Transition Animation */
.page-transition {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.8s ease;
}
.page-transition.fade-out {
opacity: 0;
pointer-events: none;
}
.page-transition svg {
width: 150px;
height: auto;
}
.page-transition svg path {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 2s linear forwards;
fill: var(--primary-color);
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
/* Video Background */
.video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.video-background video {
min-width: 100%;
min-height: 100%;
object-fit: cover;
filter: brightness(0.5);
}
/* Logo */
.logo-container {
display: flex;
justify-content: center;
width: 100%;
position: absolute;
left: 0;
top: 20px;
}
.logo {
height: 50px;
width: auto;
}
/* Menu */
.logo-container {
display: flex;
justify-content: center;
width: 100%;
position: absolute;
left: 0;
top: 20px;
}
.logo {
height: 50px;
width: auto;
filter: drop-shadow(0 0 5px var(--primary-color));
transition: transform 0.3s ease;
}
.logo:hover {
transform: scale(1.05);
}
/* Menu */
.menu-btn {
position: relative;
z-index: 102;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 20px;
}
.menu-btn span {
display: block;
height: 2px;
width: 100%;
background-color: #fff;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 7px);
}
.menu-btn.active span:nth-child(2) {
opacity: 0;
}
.menu-btn.active span:nth-child(3) {
transform: rotate(-45deg) translate(5px, -7px);
}
.side-menu {
position: fixed;
top: 0;
left: -300px;
width: 300px;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
z-index: 101;
padding: 100px 20px 20px;
transition: left 0.5s ease;
overflow-y: auto;
border-right: 1px solid rgba(52, 152, 219, 0.2);
}
.side-menu.active {
left: 0;
}
.side-menu ul {
list-style: none;
}
.side-menu ul li {
margin-bottom: 15px;
}
.side-menu ul li a {
color: #fff;
text-decoration: none;
font-size: 18px;
transition: color 0.3s ease, transform 0.3s ease;
display: block;
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.side-menu ul li a:hover {
color: var(--primary-color);
transform: translateX(10px);
}
/* Search */
.search-container {
position: relative;
margin-left: auto;
display: flex;
align-items: center;
}
.search-btn {
background: none;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
color: #fff;
font-size: 18px;
cursor: pointer;
transition: all 0.4s ease;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.search-btn:hover {
color: var(--primary-color);
border-color: var(--primary-color);
box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}
.search-box {
position: absolute;
right: 0;
width: 40px;
height: 40px;
overflow: hidden;
transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
display: flex;
align-items: center;
border-radius: 20px;
background-color: transparent;
}
.search-box.active {
width: 300px;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(52, 152, 219, 0.3);
}
.search-box input {
width: calc(100% - 50px);
padding: 0 15px;
border: none;
background: transparent;
color: #fff;
font-size: 16px;
outline: none;
letter-spacing: 1px;
opacity: 0;
transition: opacity 0.3s 0.2s ease;
margin-right: 40px;
}
.search-box.active input {
opacity: 1;
}
.search-box input::placeholder {
color: rgba(255, 255, 255, 0.6);
font-style: italic;
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 20px;
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 4rem;
margin-bottom: 20px;
font-weight: 300;
letter-spacing: 5px;
text-transform: uppercase;
opacity: 0;
transform: translateY(30px);
animation: fadeInUp 1s forwards 0.5s;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
.hero p {
font-size: 1.5rem;
max-width: 800px;
margin-bottom: 30px;
letter-spacing: 1px;
opacity: 0;
transform: translateY(30px);
animation: fadeInUp 1s forwards 0.8s;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
.cta-btn {
padding: 15px 40px;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark)
100%);
border: none;
color: #fff;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.3s ease;
border-radius: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
opacity: 0;
transform: translateY(30px);
animation: fadeInUp 1s forwards 1.1s;
}
.cta-btn:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}
/* Overlay */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.1);
z-index: 100;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.active {
visibility: visible;
opacity: 1;
}
.specs-content {
flex-direction: column;
}
.spec-image, .spec-details {
flex: 0 0 100%;
}
.spec-image {
margin-bottom: 30px;
padding-right: 0;
}
}
@media (max-width: 768px) {
header {
padding: 20px;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1rem;
}
.search-box.active {
width: 250px;
}
.features-grid {
grid-template-columns: 1fr;
}
.section-title h2 {
font-size: 2.2rem;
}
.slider-btn {
width: 40px;
height: 40px;
}
}