:root{
    --background-color: #FEF9ED;
    --text-color: #000000;
    --primary-color: #FADF0C;
    --background1: #8FA9EB;
    --background2: #FF69B4;
    --background3: #FE6438;
    --background4: #C4F000;
    --accent-color: #3D5A80;
    --white-color: #FFFFFF;
    --font-family: 'Sora', sans-serif;
    --lvl1-font-size: 64px;
    --lvl2-font-size: 48px;
    --lvl3-font-size: 32px;
    --lvl4-font-size: 24px;
    --lvl5-font-size: 20px;
    --lvl6-font-size: 16px;
    --font-weight: bold;
}
::selection {
    background: var(--background2);
    color: #000;
    text-shadow: none;
}
::-moz-selection {
    background: var(--background2);
    color: #000;
    text-shadow: none;
}
.cursor {
    width: 16px;
    height: 16px;
    background-color: var(--background2);
    position: fixed;
    left: -100px;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, width 0.1s ease, height 0.1s ease;
    border-radius: 5px;
    box-shadow: #000 3px 3px 0 0;
    border: 3px solid #000;
}
.cursor.hovering {
    background-color: var(--background4);
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%) rotate(15deg);
}
.cursor.clicking {
    box-shadow: 0px 0px 0px #000000;
    transform: translate(-50%, -50%) scale(0.9);
}
.cursor.hovering-text {
    background-color: rgba(255, 0, 255, 0.6);
    width: 12px;
    height: 45px;
    border-radius: 0px;
    box-shadow: 3px 3px 0px #000000;
    mix-blend-mode: multiply; 
}
.text-center{
  text-align: center;
}
.small-btn{
  font-size: var(--lvl6-font-size) !important;
}
.btn{
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: #000 3px 3px 0 0;
    margin-right: 10px;
    border: 2px solid #000;
    outline: none;
    transition: all 250ms ease-in-out;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: #000
}
.btn:hover{
    box-shadow: none;
    transform: translate(3px, 3px);
}
.primary-btn{
    background-color: var(--primary-color) !important;
    color: var(--text-color);
}
.secondary-btn{
    background-color: var(--background1);
    color: var(--text-color);
}
.spacer{
    margin-top: 100px;
    display: flex;
}
.sub-title{
    color: var(--background2);
    margin-bottom: 0px;
}
@keyframes float{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-10px);
    }
    100%{
        transform: translateY(0px);
    }
}
h1, h2, h3, h4, h5, h6{
    margin: 0;
}
h1{
    font-size: var(--lvl1-font-size);
}
h2{
    font-size: var(--lvl2-font-size);
}
h3{
    font-size: var(--lvl3-font-size);
}
.bg-1{
    background-color: var(--background1);
}
.bg-2{
    background-color: var(--background2);
}
.bg-3{
    background-color: var(--background3);
}
.bg-4{
    background-color: var(--background4);
}
.card{
    padding: 20px;
    border-radius: 10px;
    box-shadow: #000 3px 3px 0 0;
    border: 3px solid #000;
    background-color: #fff;
    text-align: left;
}
.card .card-icon{
    font-size: var(--lvl5-font-size);
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: #000 3px 3px 0 0;
    border: 2px solid #000;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}
html, body{
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    background-image: url('../img/background.png');
    background-size: 200px;
    scroll-behavior: smooth;
}
header{
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    font-size: var(--lvl3-font-size);
    margin: 0;
    border-bottom: 5px solid var(--background4);
}
header nav a{
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1rem;
    font-size: var(--lvl5-font-size);
}
header nav a:hover, header nav a.active{
    color: var(--primary-color);
}
.hero{
    display: flex;
    max-width: 1200px;
    gap: 100px;
    margin: auto;
    align-items: center;
}
.hero .container{
    position: relative;
}
.hero p{
    font-size: var(--lvl5-font-size);
    line-height: 1.5;
    margin: 0;
}
.hero h1{
    font-size: var(--lvl1-font-size);
    margin: 0 0 35px 0;
}
.hero img{
    width: 300px;
    height: 400px;
    object-fit: cover;
    border: 3px solid #000;
    border-radius: 10px;
    background-color: #dddddd;
    box-shadow: #000 3px 3px 0 0;
    z-index: 1;
    position: inherit;
}
.hero .buttons{
    margin-top: 30px;
}
.hero i{
    position: absolute;
    
    font-size: 48px;
    color: var(--text-color);
}
.hero .hero-icons{
    padding: 10px;
    border-radius: 5px;
    box-shadow: #000 3px 3px 0 0;
    border: 3px solid #000;
    animation: float 2.5s ease-in-out infinite;
}
.hero .fa-code{
    bottom: 50px;
    right: -75px;
    animation-delay: 0.2s;
}
.hero .fa-pen-nib{
    top: -10px;
    right: -20px;
    z-index: 1;
    animation-delay: 0.4s;
}
.hero .fa-unity{
    top: 130px;
    left: -75px;
    z-index: 1;
}
.section-container{
    text-align: center;
    position: relative;
}
.items-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1200px;
    margin: auto;
    gap: 25px;
    margin-top: 35px
}
.items-container img{
    width: 100%;
    border-radius: 5px;
}
.floating-objects {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.float-object {
  position: absolute;
  will-change: transform;
}
.star {
  color: var(--primary-color);
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 5px 0 #000
}
.star-one {
  font-size: 90px;
  top: 25%;
  left: 150px;
  animation: float-one 6s ease-in-out infinite;
}
.star-two {
  font-size: 65px;
  right: 7%;
  bottom: 15%;
  color: var(--background4);
  animation: spin-float 10s ease-in-out infinite;
}
.cube {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--background1);
  border: 3px solid #000;
  box-shadow: 7px 7px 0 #000;
  top: 48%;
  left: 3%;
  transform: rotate(-12deg);
  animation: cube-float 8s ease-in-out infinite;
}
.cube span {
  font-size: 35px;
  color: var(--black);
}
.mini-star {
  font-size: 38px;
  color: var(--background2);
  -webkit-text-stroke: 1px #000;
  top: 25%;
  right: 10%;
  animation: twinkle 3s ease-in-out infinite;
}
.mini-star-two{
    font-size: 38px;
    color: var(--background4);
    -webkit-text-stroke: 1px #000;
    bottom: 10%;
    left: 10%;
    animation: twinkle 3s ease-in-out infinite;
}
.label {
  padding: 9px 13px;
  background: var(--primary-color);
  color: #000;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  left: 25%;
  top: 7%;
  transform: rotate(-8deg);
  animation: float-one 8s ease-in-out infinite;
}
/* Animations */
@keyframes float-one {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-22px) rotate(7deg);
  }
}

@keyframes float-two {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -18px);
  }
}

@keyframes cube-float {
  0%, 100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-20px) rotate(12deg);
  }
}

@keyframes spin-float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-18px) rotate(180deg);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .float-object {
    animation: none !important;
  }
}

.skills .items-container{
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.skills .card img{
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 0;
}
.contact img {
    width: 300px;
    transform: rotate(-15deg)
}
.contact .phone{
    position: relative;
}
.contact .contact-info .icon{
    border-radius: 50%;
    padding: 10px;
}
.contact .contact-info .email{
    background-color: var(--primary-color);
}
.contact .contact-info .phone{
    background-color: var(--background1);
}
.contact .contact-info .github{ 
    background-color: var(--background3);
}
.contact .contact-info .instagram{ 
    background-color: var(--background4);
}
blockquote.electric {
    background: url(https://alsallakh.net/assets/img/chat.png) no-repeat;
    background-position-x: 0%;
    background-size: auto;
    background-position-x: 0%;
    background-size: auto;
    width: 400px;
    font-size: 45px;
    font-style: italic;
    padding: 4% 6% 12% 0%;
    padding-left: 0%;
    padding-left: 0%;
    position: absolute;
    top: -150px;
    left: 160px;
    background-size: contain;
    height: 200px;
    align-content: center;
    background-position-x: -20px;
    padding-left: 25px;
    align-items: center;
    font-weight: bold;
}
.post{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: #000 3px 3px 0 0;
    border: 2px solid #000;
}
.post p{
    flex: 1
}
.post a{
    width: fit-content;
}

footer {
  padding: 80px 7% 25px;
  overflow: hidden;
}
.footer-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0 100px;
  border-bottom: 3px solid #111;
}

.footer-intro {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.footer-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.footer-intro h2 {
  font-size: clamp(55px, 9vw, 105px);
  font-weight: 1000;
  line-height: .9;
  letter-spacing: -6px;
  margin-bottom: 25px;
}

.footer-intro h2 span {
  color: var(--background3);
}

.footer-intro p {
  max-width: 390px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 900;
}

.footer-contact span {
  font-size: 22px;
}

.footer-decoration {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.footer-star {
  position: absolute;
  top: 10px;
  right: 40px;
  font-size: 130px;
  color: #ffcf56;
  -webkit-text-stroke: 3px #111;
  animation: spin-float 10s ease-in-out infinite;
}

.footer-circle {
  position: absolute;
  width: 125px;
  height: 125px;
  background: #8bd8ff;
  border: 3px solid #111;
  border-radius: 50%;
  bottom: 25px;
  left: 10px;
  box-shadow: 7px 7px 0 #111;
  animation: float 2.5s ease-in-out infinite;
}

.footer-sticker {
  position: absolute;
  right: 0;
  bottom: 20px;
  background: #ff8fbd;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  transform: rotate(8deg);
  animation: cube-float 8s ease-in-out infinite;
}

.footer-sticker span {
  display: block;
  font-size: 25px;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
}

.footer-bottom p,
.footer-location,
.back-to-top {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location-dot {
  width: 9px;
  height: 9px;
  background: #b7f36b;
  border: 1.5px solid #111;
  border-radius: 50%;
}

.back-to-top {
  color: #111;
  text-decoration: none;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 4px;
}

@media only screen and (max-width: 600px){
  header{
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    text-align: center;
  }
  .hero{
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
  .hero .container{
    padding: 5px
  }
  .hero .container .hero-icons{
    display: none
  }
  .hero h1{
    font-size: var(--lvl2-font-size);
  }
  .hero .buttons{
    text-align: center;
  }
  .label{
    top: 15%;
  }
  .items-container{
    grid-template-columns: 1fr;
    padding: 10px;
    z-index: 1;
    position: inherit;
  }
  .skills .items-container{
    grid-template-columns: 1fr;
  }
  .contact .phone{
    display: none;
  }
  .footer-top, .footer-bottom{
    flex-wrap: wrap;
  }
}