You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
3.0 KiB
CSS

/* Reset CSS */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
}
header {
background-color: #333;
padding: 20px;
color: #fff;
text-align: center;
}
nav ul {
list-style: none;
margin-top: 20px;
}
nav ul li {
display: inline-block;
margin-right: 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
padding: 20px;
}
h2 {
margin-bottom: 10px;
}
section {
margin-bottom: 40px;
}
#hero {
background-image: url("img/hero-bg.jpg");
background-size: cover;
background-position: center;
color: #fff;
padding: 80px 0;
text-align: center;
transform-style: preserve-3d;
perspective: 1000px;
}
.hero-content {
max-width: 600px;
margin: 0 auto;
transform: rotateY(10deg) rotateX(-10deg);
transition: transform 0.5s ease;
}
#hero:hover .hero-content {
transform: rotateY(0) rotateX(0);
}
#features {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.feature {
flex-basis: 300px;
margin: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
transform-style: preserve-3d;
perspective: 1000px;
}
.feature:hover {
transform: rotateY(10deg) rotateX(-10deg);
transition: transform 0.5s ease;
}
#portfolio {
text-align: center;
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: 20px;
margin-top: 20px;
}
.portfolio-item {
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
transform-style: preserve-3d;
perspective: 1000px;
}
.portfolio-item:hover {
transform: rotateY(10deg) rotateX(-10deg);
transition: transform 0.5s ease;
}
.portfolio-item img {
width: 100%;
height: auto;
}
#contact {
text-align: center;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
button[type="submit"] {
background-color: #333;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transform-style: preserve-3d;
perspective: 1000px;
}
button[type="submit"]:hover {
transform: rotateY(10deg) rotateX(-10deg);
transition: transform 0.5s ease;
}
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
footer p {
margin: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Media Queries */
@media (max-width: 768px) {
nav ul li {
display: block;
margin-bottom: 10px;
}
}