*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variable Declarations */
:root {
    --name: 3rem;
    --sub-title: 1.5rem;
    --cntw: 6.75rem;
    --cnts: 1rem;
    --abtInfo: 1rem;
    --h2: 1.85rem;
    --h3: 1.7rem;
    --skill: 1.2rem;
    --projInf: 1rem;
    --copy: 1rem;
    --img-w: 20rem;
    --img-h: 15rem;
    --exp-t: 1rem;
    --exp-h: 2rem;
    --exp-h6: 1rem;
}

body {
    height: 100%;
    color: #1a1919 !important;
    background: #1f1c1c!important;
    /* overflow-x: hidden; */
	/* background: linear-gradient(-45deg, #9352ee, #8b74fa, #2376d5, #23b7d5); */
	/* background-size: 400% 400%; */
	/* animation: gradient-animation 6s ease infinite; */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('/images/office-table.jpg') center center no-repeat fixed; */
    background-size: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded::before {
    opacity: 1;
}

/* @keyframes gradient-animation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
} */

img {
    width: var(--img-w);
    height: var(--img-h);
}

div {
    font-family: "Montserrat", Avenir, Helvetica, Arial, sans-serif;
    margin: 0 auto;
}

h2 {
    text-decoration: underline;
}

i {
    padding: 5px;
}

.custom-hr {
    margin-top: 25px; margin-bottom: 25px; margin-left: 25px; margin-right: 25px; background-color: #6c757d;
}

footer p {
    margin-top: 100px;
    padding-bottom: 5px;
    font-size: var(--copy);
}

.header-container {
    height: 100vh;
    width: 100%;
    background: url("../images/coffee-table.jpg") no-repeat center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;

    margin-bottom: 30px;
}

.darken {
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../images/dark-desk.jpg");

    height: 100vh;
    width: 100%;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    
    margin-bottom: 30px;
}

#header-info {
    padding-top: 100px;
    position: relative;
    top: 20%;
    width: 100%;
    text-align: center;
    color: mintcream;
}

.name {
    text-decoration: none;
    position: relative;
    font-size: var(--name);
    text-align: center;
    left: -5px
}

.job_title {
    font-size: var(--sub-title);
}

.animation:nth-child(1) {
    animation-delay: 50ms;
}
.animation:nth-child(2) {
    animation-delay: 100ms;
}
.animation:nth-child(3) {
    animation-delay: 150ms;
}
.animation:nth-child(4) {
    padding: 1vh;
    letter-spacing: -1vw;
}
.animation:nth-child(5) {
    animation-delay: 200ms;
}
.animation:nth-child(6) {
    animation-delay: 250ms;
}
.animation:nth-child(7) {
    animation-delay: 300ms;
}
.animation:nth-child(8) {
    animation-delay: 350ms;
}
.animation:nth-child(9) {
    animation-delay: 400ms;
}
.animation:nth-child(10) {
    animation-delay: 450ms;
}

.animation {
    letter-spacing: -0.9vw;
    position: relative;
    animation: intro-animation 2s ease-out;
}

.contacts, .web-link {
    display: inline-flex;
    list-style: none;
    padding-left: 0rem;
}

.contacts li, .web-link li {
    margin: 10px;
    padding: 0.2em 0.5em;
    font-size: var(--cnts);
}

.contacts li a, .web-link li a {
    display: inline-block;
    text-decoration: none;
    border: 1px solid azure;
    color: azure;
    padding: 5px;
    width: var(--cntw);
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    animation: border-pulsate 5s infinite;
}

.web-link li a {
    /* background: aqua; */
    background: linear-gradient(to bottom right, #6889FF, #C668FF);
    color: #1a1919;
}

.contacts li a:hover, .web-link li a:hover {
    /* background: linear-gradient(to bottom right, #6889FF, #C668FF); */
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: azure;
}

.contacts li a i, .web-link li a i {
    display: inline;
}

/* Light orb effect */
.contacts li a::before, .web-link li a::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: azure;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.contacts li a:hover::before, .web-link li a:hover::before {
    opacity: 1;
    visibility: visible;
    animation: orb-animation 2s linear infinite;
}

#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background-color: #333;
  color: white;
  border: 2px solid white;
  outline: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.2s ease;
  animation: border-pulsate 5s infinite;
}

#backToTopBtn:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes orb-animation {
    0%, 100%   { top: -3px; left: -3px; visibility: hidden; }
    25%        { top: -3px; left: 100%; visibility: visible; }
    50%        { top: 100%; left: 100%; }
    75%        { top: 100%; left: -3px; }
}


@keyframes border-pulsate {
    0%   { border-color: azure; }
    20%  { border-color: rgb(71, 255, 249); }
    40%  { border-color: rgb(164, 50, 246); }
    60%  { border-color: rgb(236, 15, 162); }
    80%  { border-color: rgb(245, 38, 72); }
    100% { border-color: azure; }
}

#about-info {
    font-size: var(--abtInfo);
    margin-top: 0vh!important;
}

#about-info div h3, .service-box h3 {
    font-size: var(--h3);
}

#about-label, #tech-summary, #xp-label, #oth-proj-label, #certs-label {
    font-size: var(--h2);
    margin: 0 auto;
}

#skills-info {
    margin-top: 0vh!important;
    /* background-color: rgb(35, 209, 209); */
}

#about-info, #skills-info {
    border-width: 2px;
    border-style: solid;
    /* border-color: aqua; */
    border-radius: 10px;

    padding: 36px 42px;
    border-radius: 15px;
    backdrop-filter: blur(45px);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    margin: 30px;
    animation: border-pulsate 5s infinite;
}

#skills-container, #xp-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
}

#skills-container div:nth-child(odd) {
    justify-self: end;
}

#skills-container div:nth-child(even) {
    justify-self: flex-start;
}

#skills-container div {
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--skill);
    padding: 10px;
}

#xp-container {
    text-align: center;
}

#experience-info {
    margin-top: 0vh!important;
    /* background-color: rgb(68, 241, 203); */
}

.experience-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px 10px;
    align-items: center;
    margin: 30px;
    margin-bottom: 20px;
    /* padding: 50px; */
    border-width: 2px;
    border-style: solid;
    /* border-color: aqua; */
    border-radius: 10px;

    padding: 36px 42px;
    border-radius: 15px;
    backdrop-filter: blur(45px);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    animation: border-pulsate 5s infinite;
}

.experience-text h4 {
    margin: 0;
    font-size: var(--exp-h);
}

.experience-text h6 {
    margin: 0;
    font-size: var(--exp-h6);
    margin-bottom: 10px;
}

.experience-text p {
    margin: 0;
    font-size: var(--exp-t);
}

.experience-item img {
    padding: 5px;
    width: var(--img-w);
    height: var(--img-h);
    background-color: mintcream;
}

.projects-container, .certs-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
}

.projects-container div:nth-child(3) .service-box, .certs-container div:nth-child(3) .service-box {
    text-align: center;
}

.projects-container div:nth-child(3) .service-box h3, .certs-container div:nth-child(3) .service-box h3 {
    text-align: center;
}

#projects-info, #certs-info {
    font-size: var(--projInf);

    color: azure;
}

#proj-label, #certs-label, #oth-proj-label {
    font-size: var(--h2);
}

#proj-label, #certs-label, #oth-proj-label, img {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* .service-box {
    padding: 80px 92px;
    border-radius: 15px;
    backdrop-filter: blur(45px);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
} */

.certs-container div.reveal, .projects-container div.reveal, #bj {
    margin-bottom: 10px;
    padding: 80px 92px;
    border-radius: 15px;
    backdrop-filter: blur(45px);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);

    border-width: 2px;
    border-style: solid;
    /* border-color: aqua; */
    border-radius: 10px;
    animation: border-pulsate 5s infinite;
}

#bj {
    text-align: center;
}

/* .service-box h3 a {
    color: #1a1919;
} */

.service-box h3 a, .projects-container div:nth-child(3) .service-box h3,
.certs-container div:nth-child(3) .service-box h3 {
    text-decoration: none;
}

.service-box h3 a:hover, .projects-container div:nth-child(3) .service-box h3 a:hover, 
.certs-container div:nth-child(3) .service-box h3 a:hover {
    text-decoration: underline;
}

.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 2s ease;
}

.reveal.active {
    transform: translateY(0px);
    opacity: 1;
}

#about-info, #skills-info, #about-label, #tech-summary, #xp-label, .experience-text, .experience-text h4, .service-box h3 a, footer {
    color: azure;
}

@keyframes intro-animation {
    0% {
        opacity: 0;
        top: -200px;
    }

    70% {
        opacity: 1;
        top: 15px;
    }

    85% {
        opacity: 1;
        top: -10px;
    }

    100% {
        opacity: 1;
        top: 0;
    }
}

@media only screen
and (min-device-width : 501px)
and (max-device-width : 800px) {
    :root {
        --name: 4rem;
        --sub-title: 2.25rem;
        --cntw: 9.5rem;
        --cnts: 1.5rem;
        --abtInfo: 1.85rem;
        --h2: 2.75rem;
        --h3: 2.25rem;
        --skill: 2rem;
        --projInf: 2rem;
        --copy: 1.6rem;
        --img-w: 22rem;
        --img-h: 18.5rem;
        --exp-t: 1.4rem;
        --exp-h: 1.9rem;
        --exp-h6: 1.1rem;
    }
    .experience-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    .experience-item img {
        width: var(--img-w);
        height: var(--img-h);
        margin-bottom: 10px;
    }
    .experience-item2 {
        flex-direction: column-reverse;
    }
    .projects-container div:nth-child(3) .service-box, .certs-container div:nth-child(3) .service-box {
        text-align: center;
    }
    .row {
        --bs-gutter-x: 0rem!important;
    }
}

@media only screen
and (min-device-width : 1px)
and (max-device-width : 500px) {
    :root {
        --name: 4.5rem;
        --sub-title: 3rem;
        --cntw: 16.25rem;
        --cnts: 2.75rem;
        --abtInfo: 2.5rem;
        --h2: 4rem;
        --h3: 3.5rem;
        --skill: 2.85rem;
        --projInf: 2.7rem;
        --copy: 2.4rem;
        --img-w: 40rem;
        --img-h: 30rem;
        --exp-t: 2.5rem;
        --exp-h: 2.75rem;
        --exp-h6: 1.8rem;
    }
    .col-sm-12 {
        flex: 0 0 auto!important;
        width: 100%!important;
    }
    .contacts {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .contacts li:nth-child(odd) {
        justify-self: end;
    }
    .contacts li:nth-child(even) {
        justify-self: start;
    }
    .contacts li:last-child {
        display: block;
        width: 32%;
    }
    #about-info div, #projects-info div, #certs-info div, #skills-info {
        margin-top: 30px;
    }
    #skills-container {
        display: grid;
        grid-template-columns: none;
    }
    #skills-container div:nth-child(odd) {
        justify-self: center;
        text-decoration: underline;
    }
    #skills-container div:nth-child(even) {
        justify-self: center;
    }
    .experience-item {
        display: flex;
        flex-direction: column; /* Change to column for smaller screens */
        align-items: center; /* Center items horizontally */
        margin-bottom: 20px;
    }
    .experience-item img {
        width: var(--img-w);
        height: var(--img-h);
        margin-bottom: 10px;
    }
    .experience-text h4 {
        font-size: var(--exp-h);
        margin-top: 10px;
    }
    .experience-item2 {
        flex-direction: column-reverse;
    }
    .experience-text p {
        font-size: var(--exp-t);
    }
    .service-box a img {
        padding: 15px;
    }
    .projects-container, .certs-container {
        display: grid;
        grid-template-columns: auto;
        gap: 10px;
    }
    .projects-container div:nth-child(3) .service-box, .certs-container div:nth-child(3) .service-box {
        text-align: center;
    }
    .row {
        --bs-gutter-x: 0rem!important;
    }
}