tcc/css/main.css
2023-07-23 04:22:38 +05:30

433 lines
8.2 KiB
CSS

* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
:root {
font-size: clamp(1rem, 1.2vmax, 1.2rem);
}
html,
body {
height: 100%;
}
body {
--accent-color: #4a72ff;
--secondary-color: #ffac2e;
--text-color: 20, 20, 20;
--foreground-color: 252, 253, 255;
--background-color: 241, 243, 248;
--danger-color: rgb(255, 75, 75);
--green: #1cad59;
--yellow: rgb(220, 165, 0);
color: rgba(var(--text-color), 1);
background-color: rgba(var(--foreground-color), 1);
}
body > * {
padding: 0 max(1rem, 6vw);
}
body[data-theme=dark] {
--accent-color: #6d83ff;
--secondary-color: #d60739;
--text-color: 220, 220, 220;
--foreground-color: 27, 28, 29;
--background-color: 21, 22, 22;
--danger-color: rgb(255, 106, 106);
--green: #00e676;
--yellow: rgb(255, 213, 5);
}
h1 {
font-size: max(2rem, 4vw);
}
h2 {
font-size: max(1.8rem, 3vw);
}
h3 {
font-size: max(1.5rem, 2vw);
}
h4 {
font-size: max(1.2rem, 1.3vw);
}
a {
text-decoration: none;
color: var(--accent-color);
}
a:focus-visible {
box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset;
}
p {
color: rgba(var(--text-color), 0.8);
max-width: 70ch;
line-height: 1.5;
}
button,
.button {
display: inline-flex;
cursor: pointer;
border: none;
outline: none;
background: none;
font-size: 0.8rem;
font-weight: 700;
text-decoration: none;
text-transform: uppercase;
color: rgba(var(--text-color), 1);
background-color: rgba(var(--text-color), 0.1);
border-radius: 3rem;
letter-spacing: 0.05em;
padding: 0.5rem 1rem;
}
.icon {
width: 1.2rem;
height: 1.2rem;
fill: rgba(var(--text-color), 0.9);
}
.reveal {
display: flex;
overflow: hidden;
}
.reveal span {
opacity: 0;
transform-origin: left bottom;
}
.move-in {
opacity: 0;
}
header {
display: flex;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 1rem;
align-items: center;
justify-content: space-between;
background-color: var(--accent-color);
}
#company_title {
position: relative;
margin: auto;
color: rgba(var(--foreground-color), 1);
}
section {
min-height: 80vh;
padding-top: 8vh;
padding-bottom: 8vh;
}
.section-title {
text-transform: uppercase;
letter-spacing: 0.02em;
margin-bottom: 3rem;
line-height: 1.1;
}
.section-title h3 {
font-size: 2em;
}
.colored-section {
background-color: var(--accent-color);
color: rgba(var(--foreground-color), 1);
}
.fancy-border {
position: relative;
}
.fancy-border::before, .fancy-border::after {
position: absolute;
content: "";
width: 100%;
height: 2rem;
left: 0;
}
.fancy-border--top::before {
background: url("../assets/triangle-up.svg");
bottom: calc(100% - 0.04rem);
background-repeat: repeat-x;
background-size: 1.8rem;
}
.fancy-border--bottom::after {
top: calc(100% - 0.04rem);
background: url("../assets/triangle-down.svg");
background-repeat: repeat-x;
background-size: 1.8rem;
}
#hero_section {
position: relative;
display: flex;
flex-direction: column;
gap: 2rem;
justify-items: center;
justify-content: center;
height: calc(100vh - 5rem);
background-color: var(--accent-color);
color: rgba(var(--foreground-color), 1);
text-align: center;
margin-top: 3rem;
}
#hero_section p {
max-width: none;
}
#team_members {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
gap: 3rem 1.5rem;
}
.team-member {
display: flex;
flex-direction: column;
text-align: center;
cursor: pointer;
}
.team-member__image-container {
display: grid;
margin-bottom: 1.2rem;
place-items: center;
}
.team-member__image-container > * {
grid-area: 1/1;
}
.team-member__image-container img:first-of-type {
width: calc(100% - 1.5rem);
}
.team-member img {
-o-object-fit: cover;
object-fit: cover;
width: 100%;
-o-object-position: center;
object-position: center;
aspect-ratio: 1/1;
-webkit-mask: url("../assets/stamp.svg") no-repeat center/contain;
mask: url("../assets/stamp.svg") no-repeat center/contain;
}
.team-member__name {
font-weight: 700;
font-size: 1rem;
line-height: 1.2;
}
.team-member__title {
line-height: normal;
font-weight: 500;
font-size: 0.9rem;
margin-bottom: 1rem;
}
.team-member__button {
margin-top: auto;
padding: 0.5rem 1rem;
align-self: center;
background-color: rgba(var(--text-color), 0.1);
border-radius: 5rem;
text-transform: uppercase;
font-weight: 700;
font-size: 0.8rem;
letter-spacing: 0.05em;
}
.fancy-list {
display: grid;
align-items: flex-start;
}
.fancy-list__item {
display: grid;
max-width: 42rem;
width: auto;
gap: 1rem 2rem;
grid-template-areas: "label title" "label description";
padding-right: 0;
--stamp-size: 3.5rem;
}
.fancy-list__item:not(:last-of-type) .fancy-list__item__label-wrapper::after {
content: "";
position: absolute;
width: 0.1rem;
height: calc(100% - var(--stamp-size) - 1rem);
top: calc(var(--stamp-size) + 0.5rem);
background-color: var(--accent-color);
z-index: -1;
}
.fancy-list__item__label-wrapper {
grid-area: label;
position: relative;
display: flex;
align-items: flex-start;
justify-content: center;
height: 100%;
}
.fancy-list__item__label {
display: flex;
align-items: center;
justify-content: center;
height: var(--stamp-size);
width: var(--stamp-size);
font-size: 1.5rem;
font-weight: 700;
color: rgba(var(--foreground-color), 1);
line-height: 1;
z-index: 2;
text-align: center;
background: url("../assets/stamp-full.svg") no-repeat center/contain;
}
.fancy-list__item__title {
grid-area: title;
line-height: 1.4;
}
.fancy-list__item__title:last-child {
padding-bottom: 3rem;
}
.fancy-list__item__description {
grid-area: description;
}
.fancy-list__item__description:last-child {
padding-bottom: 3rem;
}
#person_bio {
margin: auto;
border: none;
border-radius: 0.5rem;
padding: max(1rem, 2vw);
box-shadow: 0 1rem 2rem rgba(var(--text-color), 0.1);
-webkit-animation: popup 0.3s forwards;
animation: popup 0.3s forwards;
width: min(100%, 48rem);
}
#person_bio button {
padding: 0.5rem;
background-color: rgba(var(--text-color), 0.2);
border-radius: 5rem;
margin-bottom: 1.5rem;
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1;
-webkit-backdrop-filter: blur(0.5rem);
backdrop-filter: blur(0.5rem);
}
#person_bio_wrapper {
display: grid;
gap: 0.5rem 1.5rem;
grid-template-columns: min(16rem, 100%) 1fr;
grid-template-areas: "image name" "image title" "image bio";
grid-template-rows: auto auto 1fr;
}
#person__image {
grid-area: image;
width: 100%;
height: auto;
border-radius: 0.5rem;
-o-object-fit: cover;
object-fit: cover;
aspect-ratio: 3/4;
}
#person__name {
grid-area: name;
font-size: 1.5rem;
font-weight: 500;
}
#person__title {
grid-area: title;
font-size: 1rem;
font-weight: 500;
}
#person__bio {
grid-area: bio;
font-size: 1rem;
font-weight: 400;
color: rgba(var(--text-color), 0.8);
line-height: 1.5;
margin-top: 1rem;
}
@-webkit-keyframes popup {
from {
opacity: 0;
transform: scale(1.1);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes popup {
from {
opacity: 0;
transform: scale(1.1);
}
to {
opacity: 1;
transform: scale(1);
}
}
@media screen and (max-width: 40rem) {
#poc_images .poc-wrapper:nth-of-type(5) {
grid-area: 3/2/4/3;
}
#person_bio_wrapper {
grid-template-columns: 1fr;
grid-template-areas: "image" "name" "title" "bio";
}
#person__image {
aspect-ratio: 1/1;
margin-bottom: 1.5rem;
}
.hide-on-small {
display: none !important;
}
}
@media screen and (min-width: 40rem) {
#team_members {
gap: 4vw;
grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
}
@media (hover: hover) {
::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
}
::-webkit-scrollbar-thumb {
background: rgba(var(--text-color), 0.3);
border-radius: 1rem;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(var(--text-color), 0.5);
}
.interactive:hover {
background-color: rgba(var(--text-color), 0.06);
}
}
@supports (overflow: overlay) {
body {
overflow: overlay;
}
}
.hidden {
display: none !important;
}