/* reset */
* {
    box-sizing: border-box; margin: 0; padding: 0; 
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* variables */
:root {
    --light-color: #e8e9ea;
    --dark-color: #1a1c1f;
    --gray-color: rgb(94, 117, 163);
    --accent-blue: #2fb8e6;
    --accent-red: rgb(241, 37, 37)
}

body {
    min-height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    font-family: 'Oswald', sans-serif;
}

main::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

#hero {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
    padding: 0 40px;
}

main {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: radial-gradient(140% 120% at 80% 10%,
              #39424d 0%, #262c34 55%, #0d0f12 100%);
    perspective: 800px;
    /* align-items: center; */
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
}

#features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding-right: 12%;
    transform-style: preserve-3d;
    transform: 
        rotateY(-25deg)
    ;
}

.item {
    position: relative;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 10px 10px 10px 22px;
    box-shadow: 12px 16px 10px rgba(0,0,0,.6),
                10px 12px 2px rgba(0,0,0,.3),
                0 2px 0 rgba(0,0,0,.3);
    transition: transform .1s ease-out, box-shadow .1s ease;
    text-decoration: none;
}

.item.big {
    grid-column: span 3;
    grid-row: span 2;
}

.item.wide {
    grid-column: span 2;
}

.item h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.5;
}

.item small {
    font-size: 1rem;
    line-height: 1.5;
    /* letter-spacing: 0.6px; */
    color: #36435a;
}

.item p {
    font-size: 1.2rem;
    line-height: 1.5;
     color: #36435a;
}

.profile-img::selection {
    background-color: transparent;
}

.item::selection {
    background-color: transparent;
    color: var(--accent-blue);
}

a.item:hover {
    cursor: pointer;
}

.item:hover {
    transform: 
        translateZ(28px)
        skewY(-1deg)
    ;
    box-shadow: 0 26px 50px rgba(0, 0, 0, .6);
}

/* thin accent bar that appears on hover */
.item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: var(--accent-blue);
  opacity: 0;
}

.item.big::before {
    background: var(--accent-red);
}

.item:hover::before { opacity: 1; }

footer {
    color: var(--gray-color);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}