dlseitz.dev-frontend/src/styles/index.css

325 lines
6.2 KiB
CSS
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* index.css */
body {
background-image: url("/images/pattern-randomized.svg");
background-attachment: fixed;
background-size: cover;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.intro.module {
width: 70%;
max-width: 900px;
min-width: 300px;
line-height: 1.6em;
}
.module h2 {
font-size: 1.8rem;
}
/*? ↓  Start Intro  ↓ */
.intro {
margin-top: 50px;
}
.intro h1 {
color: #495057;
margin-bottom: 20px;
}
.intro h1 .accent-name {
color: #ea7e0b;
}
.intro p {
font-size: 1.1em;
font-weight: 600;
}
/*? ↓  Start Benefits Section  ↓ */
.benefits-container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 1200px;
padding: 20px;
margin: 50px auto;
}
.benefits-container h2,
.benefits-container p {
color: #495057;
margin-bottom: 20px;
}
.benefits-container p, .transition p {
font-size: 1.2em;
font-weight: 600;
}
.benefits-visual {
position: relative;
display: grid;
gap: 20px;
width: 100%;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
min-height: 150px;
}
.benefits-card {
display: flex;
flex-direction: column;
justify-content: center;
max-height: 150px;
background-color: rgba(234, 126, 11, .4);
border: 1px solid #dee2e6;
border-radius: 10px;
padding: 15px 10px 15px 10px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease-in-out;
overflow: hidden;
}
.benefits-card:hover {
transform: translateY(-5px);
background: linear-gradient(to right, #DDF0FF 0%, #fff 40%, #fff 60%, #DDF0FF 100%);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.benefits-card h3 {
font-size: 1.8em;
color: #495057;
transition: font-size 0.4s ease-in-out;
}
.benefits-card ul {
list-style: inside;
padding-top: 10px;
}
.hover-list {
transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
max-height: 0;
opacity: 0;
overflow: hidden;
}
.benefits-card:hover .hover-list {
max-height: 300px;
opacity: 1;
}
.benefits-card:hover h3 {
font-size: 1.2em;
text-decoration: underline;
}
.transition {
margin-top: 30px;
font-weight: 600;
}
.transition p:first-child {
font-size: 1.3em;
}
.transition p:last-child {
font-size: 1.4rem;
}
/*? ↓  Start Services Container  ↓ */
.carousel-container {
position: relative;
width: 100%;
max-width: 800px;
margin: 10px auto;
overflow: hidden;
min-height: 400px;
}
.carousel {
display: flex;
transition: transform 0.5s ease-in-out;
height: 100%;
}
.service-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
width: 100%;
max-width: 1200px;
margin: 50px auto;
}
.service-card {
width: 300px;
background-color: #ffffff;
border: 1px solid #dee2e6;
border-radius: 10px;
padding: 20px;
text-align: center;
box-sizing: border-box;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.service-card h3 {
font-size: 1.3em;
color: #495057;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 10px;
box-shadow: none;
margin-bottom: 15px;
}
.service-card li {
padding: 10px;
color: #495057;
}
.service-card ul {
list-style: none;
padding: 0;
}
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(46, 151, 190, 0.8);
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
z-index: 1;
transition: background-color 0.3s ease;
}
.carousel-button:hover {
background-color: #ea7e0b;
}
.prev-button {
left: 10px;
}
.next-button {
right: 10px;
}
/*? ↓  Start CTA Section  ↓ */
.inspiration {
padding-top: 20px;
}
.cta-section {
max-width: 1200px;
margin: 80px auto;
padding: 0 20px;
text-align: center;
color: #495057;
}
.cta-section p {
font-size: 1.2rem;
line-height: 1.5;
}
.demos-link,
.cta-button {
display: inline-block;
padding: 8px 25px;
margin: 20px 0px 20px 0px;
background-color: #ea7e0b;
color: #fff;
text-decoration: none;
font-weight: 600;
border-radius: 50px;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.demos-link:hover,
.cta-button:hover {
background-color: #2e97be;
box-shadow: 0 4px 8px rgba(46, 151, 190, 0.2);
}
.demos-link:active, .cta-button:active {
background-color: #ea7e0b;
box-shadow: 0 4px 8px rgba(46, 151, 190, 0.2);
}
.project-steps {
margin-top: 60px;
margin-bottom: 40px;
}
.project-steps h2 {
font-size: 2em;
margin-bottom: 30px;
}
.steps-list {
display: grid;
gap: 30px;
list-style: none;
padding: 0;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.steps-list li {
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 10px;
padding: 30px;
text-align: left;
position: relative;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.steps-list li:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.steps-list li h3 {
margin-top: 0;
margin-bottom: 10px;
color: #2e97be;
font-weight: 600;
}
.steps-list {
counter-reset: step-counter;
}
.steps-list li::before {
counter-increment: step-counter;
content: counter(step-counter);
position: absolute;
top: -15px;
left: 20px;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #2e97be;
color: #fff;
font-size: 1.5rem;
font-weight: bold;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}