Intern/style.css
2024-09-13 17:42:15 +08:00

401 lines
8.0 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
border: none;
outline: none;
scroll-behavior: smooth;
font-family: "Poppins", sans-serif;
}
:root {
--bg-color: rgb(15, 15, 15);
--second-bg-color: #161616;
--text-color: white;
--main-color: purple;
}
html {
font-size: 62.5%;
overflow-x: hidden;
}
body {
background: var(--bg-color);
color: var(--text-color);
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 3rem 9%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.logo {
font-size: 3rem;
color: var(--text-color);
font-weight: 800;
cursor: pointer;
transition: 0.3s ease-in-out;
}
.logo:hover {
transform: scale(1.1);
}
.navbar a {
font-size: 1.8rem;
color: white;
margin-left: 4rem;
font-weight: 500;
transition: 0.3s ease-in-out;
border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
color: var(--main-color);
border-bottom: 3px solid var(--main-color);
}
#menu-icon {
font-size: 3rem;
color: var(--main-color);
display: none;
}
section {
min-height: 100vh;
padding: 10rem 9%;
}
.home {
display: flex;
justify-content: center;
align-items: center;
gap: 8rem;
}
span {
color: var(--main-color);
}
.logo span {
color: var(--main-color);
}
.home-content h1 {
font-size: 6rem;
font-weight: 700;
line-height: 1.3;
}
.home-img {
margin-top: 30px;
border-radius: 50%;
}
.home-img img {
position: relative;
border-radius: 50%;
width: 32vw;
box-shadow: 0 0 25px var(--main-color);
cursor: pointer;
transition: 0.4s ease-in-out;
}
.home-img img:hover {
box-shadow: 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}
.home-content p {
font-size: 1.8rem;
font-weight: 500;
}
.social-icons a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 4rem;
height: 4rem;
background: transparent;
border: 0.2rem solid var(--main-color);
font-size: 2rem;
border-radius: 50%;
color: var(--main-color);
margin: 3rem 1.5rem 3rem 0;
transition: 0.3s ease-in-out;
}
.social-icons a:hover {
color: white;
transform: scale(1.3) translateY(-5px);
background-color: var(--main-color);
box-shadow: 0 0 25px var(--main-color);
}
.btn {
display: inline-block;
padding: 1rem 2.8rem;
background: var(--bg-color);
border-radius: 4rem;
font-size: 1.6rem;
color: var(--main-color);
border: 2px solid var(--main-color);
letter-spacing: 0.1rem;
font-weight: 600;
transition: 0.3s ease-in-out;
cursor: pointer;
}
.btn:hover {
transform: scale(1.05);
background: var(--main-color);
color: var(--text-color);
border: 2px solid var(--main-color);
box-shadow: 0 0 25px var(--main-color);
}
.heading {
text-align: center;
font-size: 8rem;
}
.services {
background-color: var(--second-bg-color);
}
.services h2 {
font-size: 40px;
margin-bottom: 3rem;
}
.service-container {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
}
.services-box h3 {
font-size: 2.6rem;
}
.services-box p {
font-size: 1.6rem;
margin: 1rem 0 3rem;
font-weight: 500;
}
.services-box .btn {
background-color: transparent;
}
.services-box .btn:hover {
color: var(--main-color);
background-color: black;
}
.boxes {
width: 100%;
max-width: 900px;
height: 500px;
display: flex;
justify-content: center;
align-items: stretch;
gap: 1.25rem;
transition: all 400ms;
}
.card {
margin-top: 100px;
background-color: transparent;
flex: 1;
height: 70%;
transition: all 400ms;
cursor: pointer;
}
.card img {
height: 100%;
width: 100%;
}
.card h2 {
text-align: center;
}
.card:nth-child(odd) {
translate: 0 -20px;
}
.card:nth-child(even) {
translate: 0;
}
.card:hover {
flex: 3;
filter: grayscale(100%);
}
::-webkit-scrollbar {
width: 15px;
}
::-webkit-scrollbar-thumb {
background-color: var(--main-color);
}
::webkit-scrollbar-track {
background-color: var(--bg-color);
width: 50px;
}
.footer {
position: relative;
bottom: 0;
width: 100%;
padding: 40px 0;
background-color: black;
}
.footer .social {
text-align: center;
padding-bottom: 25px;
color: white;
}
.footer .social a {
font-size: 25px;
color: var(--main-color);
width: 42px;
height: 42px;
border: 2px solid var(--main-color);
line-height: 42px;
display: inline-block;
text-align: center;
border-radius: 50%;
margin: 0 10px;
transition: 0.3s ease-in-out;
}
.footer .social a:hover {
transform: scale(1.2) translateY(-10px);
background-color: var(--main-color);
color: var(--text-color);
box-shadow: 0 0 25px var(--main-color);
}
.footer ul {
margin-top: 0;
padding: 0;
font-size: 18px;
line-height: 1.6;
margin-bottom: 0;
text-align: center;
}
.footer ul li a {
color: white;
border-bottom: 3px solid transparent;
transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
border-bottom: 3px solid var(--main-color);
}
.footer ul li {
display: inline-block;
padding: 0 15px;
}
.footer .copyright {
margin-top: 50px;
text-align: center;
font-size: 15px;
color: white;
}
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
background-color: var(--second-bg-color);
padding: 3rem 1.8rem;
transform: translate(-50%, -50%);
border-radius: 4rem;
font-size: 1.6rem;
color: var(--main-color);
border: 2px solid var(--main-color);
letter-spacing: 0.1rem;
font-weight: 600;
z-index: 9999;
}
.popup h2 {
text-align: center;
}
.popup p {
text-align: center;
}
.popup img {
width: 4rem;
height: 4rem;
margin-top: -50px;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btns {
display: inline-block;
padding: 1rem 2.8rem;
background: var(--bg-color);
border-radius: 4rem;
font-size: 1.6rem;
color: var(--main-color);
border: 2px solid var(--main-color);
letter-spacing: 0.1rem;
font-weight: 600;
transition: 0.3s ease-in-out;
cursor: pointer;
}
.btns:hover {
transform: scale(1.05);
background: var(--main-color);
color: var(--text-color);
border: 2px solid var(--main-color);
box-shadow: 0 0 25px var(--main-color);
}
.container {
width: 100%;
padding: 2rem;
}
.slider-wrapper {
width: 100%;
background: var(--bg-color);
overflow: hidden;
}
.slider {
display: flex;
aspect-ratio: 16 / 8;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
border-radius: 0rem;
-ms-overflow-style: none; /* Hide scrollbar IE and Edge */
scrollbar-width: none; /* Hide scrollbar Firefox */
}
.slider::-webkit-scrollbar {
display: none; /* Hide scrollbar Chrome, Safari and Opera */
}
.slider section {
scroll-snap-align: start;
flex: 1 0 100%;
display: flex;
justify-content: center;
align-items: center;
}
.slider-nav {
display: flex;
column-gap: 1rem;
position: absolute;
bottom: 1.25rem;
left: 50%;
transform: translateX(-50%);
z-index: 1;
}
.slider-nav a {
width: 2rem;
height: 2rem;
border-radius: 50%;
background-color: #fff;
opacity: 0.75;
transition: opacity ease 250ms;
}
.slider-nav a:hover {
opacity: 1;
}
.nav-arrow {
position: absolute;
top: 50%;
width: 4rem;
height: 4rem;
background-color: rgba(0, 0, 0, 0.5);
color: white;
font-size: 2rem;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 10;
border-radius: 50%;
transform: translateY(-50%);
}
.nav-arrow.left {
left: 1rem;
}
.nav-arrow.right {
right: 1rem;
}