@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
:root {
    --a: #00A19C;
    --b: #000000;
    --c: #FFFFFF;
    --d: #0486ad;
    --e: #020101;
    --bgg1: #0486ad;
    --bgg2: #00A19C;
    --bgg3: #093745;
    --bgg4: #000000;
    --bgg5: #0486ad;
  }
* {
    margin:0;
    text-decoration: none;
    padding:0;
    box-sizing: border-box;
    font-family: "Montserrat";
    font-size: 0.9rem;
}
body{
  background-color: var(--b);
  height: 100%;
  min-height: 100%;
  overflow-x: hidden;
}
.container {
  min-height: 100vh;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: -9;
}
.container div {
  position: absolute;
  border-radius: 3rem;
  animation: gradient 8s infinite;
}
@keyframes gradient {
  50% {
    transform: scale(1.3) translate(100px);
  }
}
.container div:nth-child(1) {
  height: 100%;
  width: 100%;
  background-color: var(--bgg1);
}
.container div:nth-child(2) {
  height: 80%;
  width: 70%;
  background-color: var(--bgg2);
  top: -12%;
  right: -12%;
  animation-delay: 2s;
}
.container div:nth-child(3) {
  height: 50%;
  width: 75%;
  background-color: var(--bgg3);
  bottom: -10%;
  left: -5%;
  animation-delay: 1s;
}
.container div:nth-child(4) {
  height: 65%;
  width: 80%;
  background-color: var(--bgg4);
  bottom: -15%;
  right: -20%;
  animation-delay: 3s;
}
.container div:nth-child(5) {
  height: 70%;
  width: 65%;
  background-color: var(--bgg5);
  bottom: 0%;
  right: -50%;
  animation-delay: 1s;
}
.container::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 105%;
  backdrop-filter: blur(250px);
}
.sec1 h1, .sec1 p{
    font-size: larger;
    font-family: "Source Code Pro", monospace;
    margin-left: 8px;
}
.sec1 p{
    max-width: 70%;
}
.iconsec{
    text-decoration: none;
    color: var(--a);
    background-color: var(--b);
    
}
header{
    justify-content: space-between;
    display: flex;
    align-items: start;
    padding: 100px 4%;
    height: 10vh;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    transition: 0.6s;
    z-index: 1000;
    padding: 2vh 2%;
    transition-duration:width 1s ;
}
.sec1 i{
  text-decoration: none;
  color:var(--b);
  font-size: 1.3rem;
}

/* header sticky*/
header.sticky{
    padding: 2% 3%;
    color: #000000;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    transition-duration:width 1s ;
    transition: 0.6s;

}
header.sticky .active{
  color:var(--c);
}
.sticky a:hover{
  color: var(--a);
}

.sec1{
    position: absolute; 
    top:10%;
    width: 100%;
    height: 100vh;
    color: var(--c);
    z-index: 10;
    padding: 5rem 5%;
}
nav{
  z-index: 110;
}
nav li a{
    text-decoration: none;
    position: relative;
    color: var(--e);
    border-bottom: solid 1px var(--a) ;
    border-width: 0;
    transition-duration:width 1s ;
    letter-spacing: 2px;
    margin: 0 15px;
    white-space: nowrap;
}
nav li a:hover{
    color: var(--c);
}
nav ul{
    position: relative;
    list-style: none;
}
nav li{
  padding-right: 0 !important;
    display: inline-block;
    padding: 0 20px;
}
nav .active{
    color:var(--c);
}
.logo{
  
  margin-top:0vh;
    margin-right: auto;
    cursor: pointer;
    color: var(--e);
    font-size: 1.5rem;
    font-weight: 700;
}


.projects {
    position: relative; 
    width: 100%;
    height: auto;
    background-image: url(../imgs/back4.jpg);
    background-size: contain;    
    color: var(--c);
    padding: 5rem 2%;
}
section{
    min-height:60vh;
}
.title{
    font-size:2rem;
    text-align: center;
    margin-bottom: 15px;

}
h1 hr{
    width:30%;
    margin-right: auto;
    margin-left: auto;
    margin-top:10px;
    margin-bottom: 40px;
    border: 0.7px solid var(--a);
}
/* From Uiverse.io by mrhyddenn */ 
.shadow__btn {
    padding: 10px 20px;
    border: none;
    font-size: 17px;
    color: #fff;
    border-radius: 7px;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.5s;
    transition-property: box-shadow;
  }
  
  .shadow__btn {
    background: var(--a);
    box-shadow: 0 0 25px var(--a);
    margin-top: 15px;
  }
  
  .shadow__btn:hover {
    box-shadow: 0 0 5px var(--a),
                0 0 25px var(--a),
                0 0 50px var(--a),
                0 0 100px var(--a);
  }
.projects ul{
    padding: 50px;
    background-color: var(--b);
    list-style:none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.projects ul li{
    display:inline-block;
    text-align: center;
    color: var(--b);
    margin: auto 20px;
    margin-bottom:20px;

}
.projects ul li a{
    text-decoration: none;
    color: var(--b);
}
.projects div{
    background-color: var(--c);
    width: 200px;
    padding-bottom: 10px;
    margin: auto 20px;
}
.projects img{
    width: 100%;
}
.resume iframe{

    background-color: var(--b);
    margin-left:10%;
    width: 80%;
    height: 700px;
}
.links{
    width: 100%;   
    display: flex;
    justify-content: center; 
    margin-top: 15px;
    
}
.links a{
    color: var(--c);
    font-size: 18px;
}
.links li{
    display: inline;
    text-decoration: none;
    margin: 10px;
}
.links a:hover{
    color: var(--a);
}
.icons{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.icons li{
    display: inline;
    text-decoration: none;
    margin: 10px;
    margin-bottom: 30px;
}
.icon{
    font-size:1.5rem;
    text-decoration: none;
    color: var(--a);
    background-color: var(--c);
    border-radius: 50%;
    padding: 5px;
}
.icon:hover{
    background-color: var(--a);
    transition: 0.5s;
    color: var(--c);
}
#menu{
    display: none;
}
@media  (max-width: 800px) {
    .menu ul{
        display: flex;
        flex-direction: column !important;
        justify-self: end;
        text-align: end;
    }
    .menu li{
      margin-right:0;
      margin-top:5px;
    }
    .active{
      color:var(--c) !important;
    }
    .sec1{
        height: 100vh;
        padding-top: 20vh;
    }
    header{
        padding: 2vh 0% 0 10px;
        min-height: fit-content;
    }
    header.sticky{
      padding-left: 2%;
      padding-right: 2%;
      color: #000000 !important;
  }
  .logo{
    margin-top:4px;
    white-space: nowrap;
    font-size: 1.1rem!important;
  }

}
/* footer */
footer {
    bottom: 0;
    left: 0;
    clear: both;
    background-color: var(--e);
    color:var(--c);
    position: relative;
    margin-top: 5vh;
    padding: 30px;
    padding-top: 50px;
}
/* ui */
/* From Uiverse.io by StealthWorm */ 
.btn {
    display: flex;
    margin-top: 15px;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    width: 13rem;
    overflow: hidden;
    height: 3rem;
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px var(--e);
    background-image: linear-gradient(#212121, #212121),
      linear-gradient(
        137.48deg,
        var(--c) 10%,
        var(--a) 45%,
        var(--d) 67%,
        var(--a) 87%
      );
    background-origin: border-box;
    background-clip: content-box, border-box;
  }
  
  #container-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
  }
  
  strong {
    z-index: 2;
    font-size: 12px;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: 0 0 4px white;
  }
  
  #glow {
    position: absolute;
    display: flex;
    width: 12rem;
  }
  
  .circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
  }
  
  .circle:nth-of-type(1) {
    background: rgba(0, 0, 0, 0.636);
  }
  
  .circle:nth-of-type(2) {
    background: rgba(0, 0, 0, 0.704);
  }
  
  .btn:hover #container-stars {
    z-index: 1;
    background-color: #080808;
  }
  
  .btn:hover {
    transform: scale(1.1);
  }
  
  .btn:active {
    border: double 4px var(--a);
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
  }
  
  .btn:active .circle {
    background: var(--a);
  }
  
  #stars {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
  }
  
  #stars::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
  }
  
  #stars::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
  }
  
  #stars::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
  }
  
  #stars::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
  }
  
  @keyframes animStar {
    from {
      transform: translateY(0);
    }
  
    to {
      transform: translateY(-135rem);
    }
  }
  
  @keyframes animStarRotate {
    from {
      transform: rotate(360deg);
    }
  
    to {
      transform: rotate(0);
    }
  }
  
  @keyframes gradient_301 {
    0% {
      background-position: 0% 50%;
    }
  
    50% {
      background-position: 100% 50%;
    }
  
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes pulse_3011 {
    0% {
      transform: scale(0.75);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
  
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
  
    100% {
      transform: scale(0.75);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }
  .typewriter{
    width: fit-content;
    display: flex;
    margin-left: 0;
}
.typewriter h1 {
    color: #fff;
    font-family: monospace;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid var(--a); /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
      typing 3.5s steps(30, end),
      blink-caret .5s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--a) }
  }
  
  
  