/*------------------------------------*\
    Global Vars
\*------------------------------------*/

:root {
    --primary: #3878CD;
    --primary-highlight: #d7edff;
    --secondary:#FF84FF;
    --secondary-highlight: #ffc7ff;
    --tertiary: #ff003c;
    --tertiary-highlight: #ffd9e2;
    --bg-transparent:rgba(0, 0, 0, 0.85);
    --bg-primary: #020013;
    --bg-secondary: #05012A;
    --bg-tertiary: #201257;
    --bg-quaternary: #320B66;
    --bg-quinary: #3879cd98;
    --gray: #444;
    --gray-dark: #333;
    --primary-rgb: 12, 186, 195;
    --secondary-rgb: 255, 199, 255;
}

/* global box-sizing */
*,
*:after,
*:before {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* html element 62.5% font-size for REM use */
html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font: 400 11px/1.4 "Source Sans Pro", Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
    color: white;
    overflow: hidden;
}

canvas {
    display: none;
    position: absolute;
    z-index: -99;
    filter: brightness(0.5);
    max-width: 100%;
}

object {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-highlight);
}

h1, h2 {
    position: relative;
    /* min-width: 80%; */
    font-size: calc(3.5rem + 1.5vw);
    font-weight: 100;
    padding: 0;
    margin: 0;
}

h3, h4, h5, h6 {
    font-size: calc(1.5rem + 1.5vw);
}

p, blockquote, span {
    font-size: calc(1.5rem + 0.3vw);
    line-height: 1.5;
    letter-spacing: 2px;
}

.navbar, ul, li, a {
    text-decoration: none;
    font-size: 2.5rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hidden {
    opacity: 0;
    transition: transform 1s, filter 1s, opacity 1s, color 0.5s linear 1s,
      border-color 0.5s linear 1s, text-shadow 0.5s linear 1s,
      box-shadow 0.5s linear 1s;
    filter: blur(5px);
    transform: translateY(50%);
}

.btn-neon {
    position: relative;
    border-radius: 8px;
    transition: text-shadow 1s, background-color 0.7s .2s;
    color: var(--primary-highlight);
}

.btn-neon:active {
    transition: box-shadow, background-color, 0.2s;
}

.btn-neon svg polyline {
    fill: transparent;
    stroke: #5594e5;
    stroke-width: 4px;
    stroke-dasharray: 40 600;
    stroke-dashoffset: 40;
    transition: .5s ease-in-out;
}

.btn-neon:hover polyline {
    stroke-dashoffset: -460;
}

.btn-neon svg {
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    /* The right side of the animation cuts off unless we put this here */
    width: 102%;
    height: 100%;
}


/* 
    the problem here is when we try to hide the element off screen,
    we cant scroll them into view since they will never be in view because of
    how they're hidden (left: -100vh).  so we need to keep the parent container in view
    while transforming everything else within parent container.
    This is a hacky way of doing this for now.

    Overall, this will only affect the hero section for now and I will leave other
    hidden elements (that slide in from the left or right) as they are where 
    they are not completely hidden and currently use (left/right: -100%)
*/

.hidden-slide-from-left > * {
    transform: translateX(-150vh);
}

.cyber-heading {
    padding: 35px 35px 15px 35px;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    color: var(--primary-highlight);
    background-color: var(--bg-primary);
    margin-bottom: 100px;
}

.cyber-heading:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 4px solid var(--primary-highlight);
  box-shadow: 0 0 30px var(--primary);
  right: 0;
  bottom: 0;
  animation: fliker 5s infinite alternate;
}

.cyber-heading:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 4px solid var(--secondary-highlight);
  box-shadow: 0 0 30px var(--secondary);
  left: 16px;
  top: 16px;
  animation: fliker 5s infinite alternate;
}

/* 
    IMPORTANT
    
    THE SOCIAL LISTS NEED TO BE MADE INTO A REUSABLE COMPONENT!!!!
    TOO MANY OCCURANCES HAPPENING THROUGH OUT THE HTML.  IT NEED SOT BE *DRY*ED UP.
*/

.social-list li {
    transition: transform 0.4s;
}

.social-list li:hover {
    transform: scale(1.2);
}

@keyframes fliker {
    40%,
    43%,
    46% {
        opacity: 1;
    }
    42% {
        opacity: 0.8;
    }
    45% {
        opacity: 0.3;
    }
}

@keyframes search-light {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



/* HEADER FOOTER ASIDE */

header, footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
}

header {
    position: fixed;
    z-index: 99;
    transition: background-color 0.4s;
}

header .btn-neon:hover {
    text-shadow: 0 0 10px var(--primary-highlight), 0 0 20px var(--primary-highlight), 0 0 30px var(--primary-highlight);
}

header .btn-neon svg {
    display: none;
}

.header-link > span {
    /* 
        for the menu to close properly, I only want to know if the user clicked
        on the <a> element and not what is inside (span).
    */
    pointer-events: none;
}

.header-link > span,
#btn-neon-container a {
    font-size: calc(1.5rem + 0.6vw);
}

body > aside .social-list > li:not(:first-child) {
    margin-top: 10px;
}

.social-list svg {
    width: 40px;
    height: 40px;
}

.darken {
    background-color: var(--bg-transparent);
}

#nav {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    padding: 0 20px;
}

#logo-container {
    width: 160px;
}

#logo-image {
    width: 100%;
}

.main-list {
    position: absolute;
    overflow: hidden;
    height: 0;
    width: 100%;
    top: 83px;
    right: 0;
    background-color: var(--bg-transparent);
}

#nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 4px solid var(--secondary-highlight);
}

#nav-links > li {
    padding-top: 30px;
    padding-right: 3rem;
    text-align: right;
}

#nav-links > li a {
    color: var(--primary-highlight);
    text-decoration: none;
}

#nav-links > li:not(#btn-neon-container) a {
    transition: text-shadow 1s;
}

#nav-links > li:not(#btn-neon-container) a:hover {
    text-shadow: 0 0 10px var(--primary-highlight), 0 0 20px var(--primary-highlight), 0 0 30px var(--primary-highlight);
}

#social-list-container {
    padding-bottom: 30px;
}

#social-list-container .social-list {
    justify-content: flex-end;
}

#social-list-container .social-list,
#social-list-container .social-list > li,
footer > .social-list,
footer > .social-list > li {
    display: flex;
    align-items: center;
}

#navTrigger {
    display: block;
    cursor: pointer;
    width: 50px;
}

#navTrigger i {
    background-color: var(--primary-highlight);
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 6px;
}

#navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

#navTrigger i:nth-child(2) {
    margin: 10px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

#navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

#navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}

#navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}

#navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

footer {
    display: flex;
    justify-content: flex-end;
    height: 100px;
    padding: 20px;
    background-color: var(--bg-quaternary);
}

#social-list-container .social-list > li:not(:first-child),
footer .social-list > li:not(:first-child) {
    margin-left: 20px;
}

aside {
    display: none;
    background: rgba(0, 0, 0, 0.364);
    border-radius: 10px 0 0 10px;
    z-index: 99;
    position: fixed;
    top: 38%;
    right: 0;
    padding: 10px;
}

aside .social-list svg {
    width: 50px;
    height: 50px;
}

.show_list {
    height: auto;
}

@media only screen and (min-width: 1281px) {
    header .btn-neon:hover {
        text-shadow: initial;
    }

    header .btn-neon svg {
        display: initial;
    }

    header .btn-neon {
        display: inline-block;
        border: 2px solid var(--primary);
        text-transform: uppercase;
        padding: 0 10px;
        font-weight: 600;
        font-family: "Inter";
        line-height: 50px;
    }
    
    header .btn-neon:hover {
        box-shadow: 0 0 10px var(--primary),
            0 0 40px var(--primary),
            0 0 80px var(--primary);
    
        background-color: var(--primary);
    }
    
    header .btn-neon:active {
        box-shadow: 0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 60px var(--primary);
        background-color: var(--bg-quinary);
    }

    #nav {
        padding: 0 50px;
    }

    #nav-links {
        flex-direction: row;
        width: auto;
        border-top: initial;
    }

    #nav-links li {
        display: flex;
        align-items: center;
        text-align: center;
        padding-top: 0;
    }

    #nav-links #btn-neon-container {
        
        padding: 0;
    }

    #btn-neon-container a {
        font-size: 25px;
    }

    #navTrigger,
    #nav-links #social-list-container {
        display: none;
    }

    /* this completes the outline on the GET IN TOUCH effect */
    #nav-links .btn-neon:hover polyline {
        stroke-dashoffset: -500;
    }

    .main-list {
        position: initial;
        overflow: initial;
        height: auto;
        top: initial;
        right: initial;
        width: auto;
        background-color: transparent;
    }

    aside {
        display: initial;
    }
}

@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(17px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(17px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(17px) rotate(0deg);
    }
    100% {
        transform: translateY(17px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(17px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(17px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(17px) rotate(0deg);
    }
    100% {
        transform: translateY(17px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-16px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-16px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(0deg);
    }
    100% {
        transform: translateY(-16px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-16px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-16px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(0deg);
    }
    100% {
        transform: translateY(-16px) rotate(135deg);
    }
}



/* HERO SECTION */

#hero {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("https://heribertotorrescom7683c.zapwp.com/m:0/a:https://heribertotorres.com/wp-content/themes/cybertheme/img/cyber/cyberpunk_outside_night_time_wet_street_pink_and_1.png");
    min-height: 100vh;
}

#summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 1s;
    width: 90%;
    margin: auto;
}

#ghost-div {
    justify-self: flex-start;
    height: 90px;
}

.contact-button {
    color: white;
    font-weight: 600;
    border-radius: 4px;
    padding: 10px;
    margin: 0.7em 0 1.5em 0;
    transition: background-color 0.4s;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    font-family: "Inter";
}

.contact-button:hover {
    background-color: #3879cd9b;
}

.contact-button:active {
    background-color: #3879cd3c;
}

#client-count {
    display: flex;
    position: relative;
    justify-content: center;
    left: 14%;
}

#client-count img {
    object-fit: cover;
    clip-path: circle();
    /*width: 80%;*/
    max-width: 70px;
}

#odometer-container > span {
    vertical-align: middle;
}

#client-count li {
    position: relative;
}

#client-count li:nth-child(2) {
    left: -10%;
}

#client-count li:nth-child(3) {
    left: -20%;
}

#client-count li:nth-child(4) {
    left: -30%;
}

#testimonials-preview {
    padding: 10px;
    background-color: var(--bg-secondary);
}

#testimonials-sneak-peak {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2%;
    width: 80%;
    margin: auto;
    padding: 40px 0;
}

#testimonials-sneak-peak li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 4%;
    width: 100%;
    margin: 20px 0;
}

#testimonials-sneak-peak li * {
    transition: transform 1s;
}

#testimonials-sneak-peak p {
    text-align: left;
    font-size: calc(1rem + 1.2vw);
    margin: 0;
}

#testimonials-sneak-peak img {
    max-width: 80px;
    object-fit: contain;
    clip-path: circle();
}

@media only screen and (min-width: 1281px) {
    canvas {
        display: block;
    }
    
    #hero {
        height: 100vh;
        background-image: none;
    }

    #summary {
        align-items: flex-start;
        text-align: left;
        width: 60%;
        padding-left: 50px;
        margin: initial;
    }

    #client-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #client-count {
        left: initial;
    }

    #odometer-container {
        position: relative;
        right: 14%;
    }

    #testimonials-sneak-peak {
        flex-wrap: initial;
        width: 95%;
        padding: 0;
    }
    
    #testimonials-sneak-peak li {
        padding: 0;
    }

    #testimonials-sneak-peak li:nth-child(1) * {
        transition-delay: 0.8s;
    }

    #testimonials-sneak-peak li:nth-child(2) * {
        transition-delay: 0.4s;
    }
    
    #testimonials-sneak-peak p {
        font-size: calc(1rem + 0.5vw);
    }
}



/* SKILLS SECTION */

#services {
    padding: 90px 0;
    background-color: var(--bg-tertiary);
}

#service-content {
    padding-top: 75px;
    margin-bottom: 90px;
    gap: 100px;
}

#skills-main {
    width: 80%;
}

.card-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    transition: transform 0.5s;
    margin-bottom: 50px;
}

.card {
    width: 100%;
    position: relative;
    min-height: 600px;
    z-index: 2;
    background-color: var(--bg-primary);
}

.card h3 {
    padding: 0 10px;
    margin-top: 120px;
    margin-bottom: 44px;
    text-align: center;
    font-size: calc(1.5em + 1vw);
}

.card-img-bx {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -100px;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translateX(-50%);
    background: var(--gray-dark);
    z-index: 2;
    overflow: hidden;
    transition: box-shadow 0.4s 0.2s, background-color 0.4s 0.2s;
}

.card-img-bx:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 150px;
    background: linear-gradient(transparent, var(--secondary), var(--secondary), var(--secondary), transparent);
    animation: search-light 6s linear infinite;
    animation-direction: reverse;
}

.card-img-bx:after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-primary);
}

.card-img-bx img, 
.card-img-bx div {
    width: 100%;
    height: auto;
    padding: 10px;
    z-index: 1;
}

.card-back {
    height: 101.5%;
    width: 102%;
    z-index: 1;
    position: absolute;
    background-color: var(--gray-dark);
    overflow: hidden;
    transition: box-shadow 0.4s 0.2s, background-color 0.4s 0.2s;
}

.card-details {
    margin-bottom: 44px;
}

.card-back:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 130%;
    background: var(--primary);
    animation: search-light 6s linear infinite;
    box-shadow: 0 0 60px 30px var(--primary);
}

.card-container:hover .card-back {
    background-color: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

.card-container:hover .card-back:before,
.card-container:hover .card-img-bx:before {
    animation: search-light 0.2s infinite;
}

.card-container:hover .card-back {
    background-color: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

.card-container:hover .card-img-bx {
    background-color: var(--secondary);
    box-shadow: 0 0 30px var(--secondary);
}

.card-container:hover .card-back:before {
    animation: search-light 0.2s infinite;
}

.card-container:hover {
    transform: translateY(-10px);
}

.skill-list {
    text-align: left;
    padding: 0 20px 0 50px;
}

.skill-list li {
    color: var(--primary-highlight);
    margin-bottom: 5px;
}

.skill-list li::before {
    content: "\2022";
    color: var(--secondary-highlight);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-left: -1em;
}

#skills-expanded-container {
    display: flex;
    justify-content: center;
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 90px 0;
    width: 100%;
}

#skills-expanded-wrap {
    width: 80%;
}

.skills-expanded {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s; 
}

.skills-expanded:first-child {
    flex-wrap: wrap;
}

.skills-expanded:nth-child(2) {
    flex-wrap: wrap-reverse;
}

.skills-sub:first-child h3 {
    margin-top: 0;
}

#computer, #light {
    width: 100%;
}

#computer {
    max-width: 520px;
}

#light {
    max-width: 420px;
    min-height: 235px;
}

.hidden-skills {
    transform: translateX(-100%);
}

.fliker {
    animation: fliker 5s infinite alternate;
}

@media only screen and (min-width: 1600px) {
    #services {
        padding-top: 150px;
    }
    #service-content {
        margin-bottom: 150px;
    }
    #skills-expanded-container {
        display: flex;
        justify-content: center;
        padding: 190px 0;
    }

    #skills-expanded-wrap {
        max-width: 70%;
        text-align: left;
    }

    .skills-expanded {
        justify-content: space-between;
        margin: auto;
        gap: 40px;
    }

    .skills-expanded > * {
        flex: 1;
    }

    #computer, #light {
        max-width: initial;
    }
}



/* Projects Section */

#projects {
    padding: 150px 0;
    width: 100%;
    background-color: var(--bg-secondary);
}

#projects-wrapper {
    margin: auto;
    max-width: 1900px;
    padding: 0 20px;
}

#projects-wrapper > h2 {
    margin-bottom: 80px;
    text-align: center;
}

.primary span, .project-details span {
    color: var(--secondary-highlight);
}

#featured-projects {
    width: 100%;
    gap: 50px;
    margin-bottom: 90px;

    /* width: 100%;
    margin-bottom: 90px;
    gap: 200px;
    padding: 90px 0; */
}

#featured-projects > :nth-child(odd) {
    margin-right: auto;
}

#featured-projects > :nth-child(even) {
    margin-left: auto;
}

.project {
    position: relative;
    width: 90%;
}

.project-img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 420px;
}

.project:before {
    position: absolute;
    content:"";
    height:100%;
    width:100%;
    top:0;
    opacity: 0.7;
    background: #000;
    transition: opacity 0.5s;
}

.project-title {
    position: relative;
    text-align: left;
    color: var(--secondary-highlight);
    text-transform: uppercase;
}

.project-content {
    position: absolute;
    top: 0;
    color: var(--primary-highlight);
    z-index: 2;
    padding: 15px;
}

#featured-projects .external-link {
    margin-left: 0.2em;
    width: 15px;
}

#featured-projects .btn-neon {
    border: 2.5px solid var(--primary);
    padding: 10px 28px;
    font-family: "Inter";
}

#featured-projects .btn-neon:hover {
    box-shadow: 0 0 10px var(--primary),
        0 0 40px var(--primary),
        0 0 80px var(--primary);

    background-color: var(--primary);
}

#featured-projects .btn-neon:active {
    transition: box-shadow, background-color, 0.2s;
    box-shadow: 0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 60px var(--primary);
    background-color: var(--bg-quinary);
}

#other-projects .external-link {
    width: 30px;
}

.project-tools, .other-project-tools {
    color: var(--secondary-highlight);
}

.lightbar {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    transition: transform ease-in-out 1.5s;
    background: var(--bg-secondary);
}

.lightbar:before {
    content: "";
    position: absolute;
    border-radius: 10px;
    height: 100%;
    width: 10px;
}

#featured-projects > :nth-child(odd) .lightbar:before {
    left: 0;
    background: var(--primary-highlight);
    box-shadow: 0 0 10px #45f3ff,
        0 0 20px #45f3ff,
        0 0 70px #45f3ff;
}

#featured-projects > :nth-child(even) .lightbar:before {
    right: 0;
    background: var(--secondary-highlight);
    box-shadow: 0 0 10px var(--secondary),
        0 0 20px var(--secondary),
        0 0 70px var(--secondary);
}

.shift-right {
    transform: translateX(105%);
}

.shift-left {
    transform: translateX(-105%);
}

.span-highlight {
    text-decoration: underline;
    transition: text-shadow 0.2s;
}

.span-highlight:hover, .span-highlight:active  {
    text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}

#other-projects {
    gap: 50px;
}

.other-project {
    width: 350px;
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.5s;
}

.other-project:hover {
    transform: translateY(-10px);
    animation: fliker 5s infinite alternate;
    transition: all 0.5s;
}

h3.other-project-title {
    text-align: start;
    font-size: calc(1.5em + 1vw);
    margin: 0;
    color: var(--secondary-highlight);
}

.other-project-top {
    text-align: end;
}

.other-project-top a {
    scale: 1.5;
}

.off {
    border: 4px solid var(--gray-dark);
    color: var(--gray);
}

.outer-off {
    border: 4px solid var(--gray-dark);
}

.primary-on {
    border: 4px solid var(--primary-highlight);
    color: var(--primary-highlight);
    box-shadow: 0 0 30px var(--primary);
}

.secondary-on {
    border: 4px solid var(--secondary-highlight);
    color: var(--secondary-highlight);
    box-shadow: 0 0 30px var(--secondary);
}

.other-project * {
    margin: 0;
    padding: 0;
}

.other-project-details {
    margin: 20px 0;
}

@media only screen and (min-width: 920px) {
    #projects-wrapper {
        padding: 0 80px;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
    }
    
    .project-content * {
        margin: 0;
        padding: 0;
    }

    #featured-projects {
        width: 100%;
        margin-bottom: 90px;
        gap: 200px;
        padding: 90px 0;
    }

    .project:before {
        background: linear-gradient(to bottom, rgba(var(--secondary-rgb)) 0%,rgba(var(--primary-rgb)) 120%);
        width: 60%;
        opacity: 0.6;
    }

    .project:hover:before {
        opacity: 0;
    }

    .lightbar {
        width: 110%;
    }

    #featured-projects > :nth-child(even) .lightbar {
        left: -40px;
    }

    .project-img {
        width: 60%;
    }

    .project-title {
        margin: 0;
        background-color: rgba(21, 21, 21, 0.5);
    }

    .project-content {
        position: absolute;
        width: 60%;
    }

    .project-details {
        background-color: var(--bg-tertiary);
        padding: 10px;
        border-radius: 0 0 15px 15px;
        margin: 0;
    }

    #featured-projects > :nth-child(odd) .project-content * {
        text-align: right;
    }

    #featured-projects > :nth-child(even) .project-content * {
        text-align: left;
    }

    #featured-projects > :nth-child(odd) .project-content {
        right: -40px;
    }
    #featured-projects > :nth-child(even) .project-content {
        left: -40px;
    }

    #featured-projects > :nth-child(even) .project-img {
        margin-right: 0;
        margin-left: auto;
    }

    #featured-projects > :nth-child(even):before {
        right: 0;
    }

    .shift-left {
        transform: translateX(-105%);
    }

    .shift-right {
        transform: translateX(100%);
    }
}



/* testimonials */

#testimonials {
    background-color: var(--bg-tertiary);
}

#testimonials-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 90%;
    gap: 5%;
    padding: 90px 0;
}

#testimonials-wrapper > img {
    width: 100%;
    margin-top: 100px;
    max-width: 600px;
    transition: transform 1s;
}

#testimonials-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5%;
}

#testimonials-list li:not(:first-child) {
    margin-top: 80px;
}

#testimonials-list li h3 {
    margin-top: 35px;
    margin-bottom: 20px;
}

.testimonial-info, .testimonial-img {
    transition: transform 1s;
}

.testimonial-img {
    width: 100%;
    margin: auto;
    max-width: 200px;
    clip-path: circle();
}

.hidden-testimonial-img, .hidden-testimonial-info {
    transform: translateX(-100%);
}

@media only screen and (min-width: 900px) {
    .testimonial-img {
        margin: initial;
    }    

    #testimonials-list li {
        flex-direction: row;
    }

    .hidden-testimonial-info {
        transform: translateY(50%);
    }
} 

@media only screen and (min-width: 1710px) {
    #testimonials-wrapper > * {
        flex: 1;
    }    
    
    #testimonials-wrapper > img {
        max-width: 850px;
        margin-top: 0;
    }
}



/* FAQ SECTION */

#faq {
    padding: 90px 0;
    background-color: var(--bg-quaternary);
}

#faq-wrapper {
    width: 80%;
    max-width: 1200px;
}

#faq-wrapper > h2 {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 80px;
    color: white;
    font-size: calc(1.5rem + 3.5vw);
    font-family: 'Bebas Neue';
}

#drop-down-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Inter";
}

#drop-down-list > li:not(:first-child) {
    margin-top: 30px;
}

.drop-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: white;
    color: black;
    border-radius: 8px;
    transition: transform 1s;
    cursor: pointer;
}

.drop-down span {
    font-weight: 700;
}

.drop-down > div {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.active-drop-down {
    max-height: 300px;
    transition: max-height 0.2s;
}

.collapsed-drop-down {
    margin: 0;
    overflow: hidden;
    max-height: 0;

    /*
        margin transition is to make content collapse smoothly.
        without it, content looks jittery when closing
    */
    transition: max-height 0.2s, margin 0s 0.17s;
}

.content-box {
    height: 100%;
    overflow: auto;
}

.arrow {
    object-fit: contain;
    transition: transform 0.2s;
}

.active-arrow {
    transform: rotate(180deg);
}

.bounce-open {
    animation: bounce-open 0.3s;
}

.bounce-close {
    animation: bounce-close 0.4s;
}

@keyframes bounce-open {
    /* 
        idk if the percentages between 0% and 75% 
        and 90% are necessary
    */
    0% {padding-bottom: 10px;}
    15% {padding-bottom: 15px;}
    30% {padding-bottom: 25px;}
    45% {padding-bottom: 30px;}
    60% {padding-bottom: 35px;} 
    75% {padding-bottom: 45px;} 
    90% {padding-bottom: 35px;}
    100% {padding-bottom: 30px;}
}

@keyframes bounce-close {
    0% {padding-bottom: 55px;}
    15% {padding-bottom: 40px;}
    30% {padding-bottom: 35px;}
    45% {padding-bottom: 30px;}
    60% {padding-bottom: 25px;} 
    75% {padding-bottom: 20px;} 
    90% {padding-bottom: 25px;}
    100% {padding-bottom: 30px;}
}