*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --font-family: "Roboto", sans-serif;
    --bg-color: #1a1a2e;
    --text-color:#eaeaea;
    --accent-color:#ff6f61;
    --bg-light:#23233a;
    --s: 1.8em; 
    --d: .8em;  
    --c: .8em; 
    --r: .8em; 
    --f: .5em;
  }

  html {
    scroll-behavior: smooth;
  }
  

  body{
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
  }

  .ribbon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-inline:auto;
    z-index: 10;
  }
  
  .ribbon {
    padding: var(--d) calc(var(--s) + .5em) 0;
    line-height: 1.8;
    background:
      conic-gradient(from  45deg at left  var(--s) top var(--d),
       #0008 12.5%,#0000 0 37.5%,#0004 0) 0   /50% 100% no-repeat,
      conic-gradient(from -45deg at right var(--s) top var(--d),
       #0004 62.5%,#0000 0 87.5%,#0008 0) 100%/50% 100% no-repeat;
    clip-path: polygon(0 0,calc(var(--s) + var(--d)) 0,calc(var(--s) + var(--d)) var(--d),calc(100% - var(--s) - var(--d)) var(--d),calc(100% - var(--s) - var(--d)) 0,100% 0, calc(100% - var(--c)) calc(50% - var(--d)/2),100% calc(100% - var(--d)),calc(100% - var(--s)) calc(100% - var(--d)),calc(100% - var(--s)) 100%,var(--s) 100%,var(--s) calc(100% - var(--d)),0 calc(100% - var(--d)),var(--c) calc(50% - var(--d)/2));
    background-color: var(--accent-color); 
    width:30%;
    min-width: fit-content;
    text-align:center;
  }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px; 
  height: 100vh; 
  display: flex;
  flex-direction: column;
  background-color: var(--accent-color); 
}

nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-self: center;
  justify-content: center;
  height: 70vh;
}

nav .nav {
  text-decoration: none;
  text-align: center;
  color: var(--text-color);
  align-self: center;
  padding: var(--d) calc(var(--s) + var(--d) + .5em) 0;
  line-height: 1.8;
  clip-path: polygon(0 0,var(--s) 0,calc(var(--s) + var(--d)) var(--d),calc(100% - var(--s) - var(--d)) var(--d),calc(100% - var(--s)) 0,100% 0,calc(100% - var(--c)) calc(50% - var(--d)/2),100% calc(100% - var(--d)),calc(100% - var(--s)) calc(100% - var(--d)),calc(100% - var(--s) - var(--d)) 100%,calc(var(--s) + var(--d)) 100%,var(--s) calc(100% - var(--d)),0 calc(100% - var(--d)),var(--c) calc(50% - var(--d)/2));
  background-color: var(--accent-color); 
  width:175px;
}

nav .nav:hover{
  background-color: var(--bg-light) !important;
  background: 
  linear-gradient(90deg,#0004 var(--d),#0000 0 calc(100% - var(--d)),#0004 0) 
  50%/calc(100% - 2*var(--s)) 100% no-repeat;
}

nav a.active{
  background-color: var(--bg-light) !important; 
  background: 
  linear-gradient(90deg,#0004 var(--d),#0000 0 calc(100% - var(--d)),#0004 0) 
  50%/calc(100% - 2*var(--s)) 100% no-repeat;
}

.socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.fa {
  color: var(--text-color);
  transition: color 0.3s ease-in-out;

}

.fa:hover{
  color: var(--bg-light);
}

/* Secondary nav */

.side_navigation{
  position: fixed;
  top: 25vh;
  right: 2vw;
  width: 45px;
  height: 50vh; 
  display: flex;
  flex-direction: column;
  background-color: var(--accent-color); 
  justify-content: space-around;
  align-items: center;
  border-radius: 100px;
}

.side_navigation a.active .fa {
  color: var(--bg-light); 
}

.hide_me{
  display: none;
}

#close {
  display: none;
}


/* Home Page */

.home_section{
  display: flex;
}

.left{
  background-color: var(--bg-color);
  width: 50vw;
  height:100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left_inner{
  align-content: center;
  align-self: center;
  margin-inline:2rem;
 
}

.left_inner p:nth-child(1){
  font-size: 1.5rem;
}

.left_inner h1{
  font-size:5rem;
}

.left_inner h1 b{
  color:var(--accent-color);
  white-space: nowrap;
}

.ribbon_home {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}
.ribbon_home {
  padding-right: calc(var(--r) + .25em);
  line-height: 1.8;
  clip-path: polygon(-100vw 0,100% 0,calc(100% - var(--r)) 50%,100% 100%,-100vw 100%);
  border-image: conic-gradient(var(--accent-color) 0 0) fill 0//100vw;
  width:fit-content;
}

.ribbon_home h2{
  padding-right:15px;
}

.hidden{
  display: none;
}

.left_inner p:nth-child(5){
  font-size: 1.15rem;
  margin-block:1rem;
}

.left_inner a{
  padding: 10px 25px;
  border: solid 1px var(--accent-color);
  text-decoration: none;
  width:150px;
  text-align: center;
}

.home_btns{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home_btns a:nth-child(1){
  background-color: transparent;
  color: var(--text-color);
  transition: all ease-in-out 0.5s;
}

.home_btns a:nth-child(1):hover{
  border-color: var(--text-color);
}


.home_btns a:nth-child(2){
  background-color: var(--accent-color);
  color:var(--text-color);
  transition: all ease-in-out 0.5s;

}

.home_btns a:nth-child(2):hover{
  color:var(--bg-color)
}

.right{
  width: 50vw;
  height:100vh;
}

.about_me, .portfolio, .contact
{
  margin-left: 250px; 
  padding-inline:7vw;
  padding-block: 2rem; 
  background-color: var(--bg-color) 
}

/* About Page */

.about_flex{
  margin-top: 5rem;
  display: flex;
  gap:3rem;
  max-width: 1050px ;
  margin-inline: auto;
}

.about_info{
  width: 50%;
  align-self: center; 
  font-size: 1.15rem;
}

.about_info p b{
  color: var(--accent-color);
}

.about_info p:nth-child(9){
  color:var(--accent-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.image-container {
  position: relative;
  width:45%;
} 


.fade-img {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  border-radius: 25px ;
}


.fade-img.active {
  opacity: 1;
}

/* Main Portfolio Section */

.two-cards{
  margin-top: 5rem;
  max-width: 1050px ;
  margin-inline:auto;
}

.two-cards-wrapper{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: calc(1vw + 1rem);
  text-align: center;
}

.two-cards-card {
  background-color: var(--bg-light);
}


.two-cards-img{
  max-width: 100%;
  margin-inline: auto;
}

.two-card-title {
  color: var(--text-color);
  font-weight: bold;
}


.card-btn-main{
  padding:12px 45px;
  border-radius: 100px;
  background-color:var(--accent-color);
  color:var(--text-color);
  margin-inline: auto;
  text-decoration: none;
  transition: ease-in-out 0.2s;
}

.card-btn-main:hover{
  background-color:var(--bg-color);
  color: var(--text-color);
}

.two-cards-card{
  transition: all 1s ease-in-out;
  border-radius: 15px;
  padding:2.5rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3; 
  margin-inline:auto;
  width: 100%;
  gap:1.5rem;
}

.two-cards-card:hover{
  transform: scale(1.03);
  box-shadow:  
  -5px -5px 10px rgba(255, 111, 97, 0.08),  
   5px -5px 10px rgba(255, 111, 97, 0.08),  
  -5px  5px 10px rgba(255, 111, 97, 0.08),    
   5px  5px 10px rgba(255, 111, 97, 0.08);  
}

.two-cards p{
  color:var(--text-color);
  text-align: left;
}

/* Website section of portfolio */

.web-design-wrapper{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap:2.3rem;
  max-width: 1050px ;
  margin-inline:auto;
}

.card-img{
  max-width: 100%;
  display: block;
}

.card-title{
  color: var(--accent-color);
  font-weight: bold;
}

.card-description{
  color:var(--text-color);
  line-height: 25px;
}

.tag{
  color:var(--text-color);
}

strong{
  color:var(--text-color);
}

.card-btn{
  padding:12px 45px;
  border-radius: 100px;
  background-color:var(--accent-color);
  color:var(--text-color);
  margin-inline: auto;
  text-decoration: none;
  transition: ease-in-out 0.2s;

}

.card-btn:hover{
  background-color:var(--bg-color);
}

.web-design-card{
  transition: all 1s ease-in-out;
  border-radius: 15px;
  padding:2.5rem;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  margin-top: 2.3rem;
  width: 100%;
  background-color: var(--bg-light);
  gap:1.5rem;

}

.web-design-card:hover{
  transform: scale(1.03);
  box-shadow:  
  -5px -5px 10px rgba(255, 111, 97, 0.08),  
   5px -5px 10px rgba(255, 111, 97, 0.08),  
  -5px  5px 10px rgba(255, 111, 97, 0.08),    
   5px  5px 10px rgba(255, 111, 97, 0.08);  
}

/* Graphics section of portfolio */


.graphic-wrapper{
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%),1fr));
  gap:1rem;
  margin-top:3rem; 
  max-width: 1050px ;
  margin-inline:auto;
}


.graphic-wrapper a{
  text-decoration: none;
  color: var(--text-color);
}

.g-d-c{
  background-color: var(--bg-light);
  transition: all 1s ease-in-out;
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
}



.graphic-img{
  margin-inline: auto;
  height: 175px;
  max-width: 170px;
}



.graphic-design-card p{
    margin-top:1rem;
}



.g-d-c:hover{
  transform: scale(1.03);
  box-shadow:  
  -5px -5px 10px rgba(255, 111, 97, 0.08),  
   5px -5px 10px rgba(255, 111, 97, 0.08),  
  -5px  5px 10px rgba(255, 111, 97, 0.08),    
   5px  5px 10px rgba(255, 111, 97, 0.08);  
}

/* Light box effect */

.lightbox {
  display: none;
  position: fixed;
  z-index: 100; 
  width:100vw;
  height:100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.expanded-img {
  max-width: 95%;
  max-height: 95%;
  background-color: var(--bg-light);
  border:var(--text-color) solid 1px;
  border-radius: 25px;
  transition: transform 0.5s ease;
  padding:2rem;
  transform: scale(0.95);
}


.lightbox.show .expanded-img {
  transform: scale(1);
}


/* Contact section of portfolio */

.contact_flex{
  display: flex;
  gap:2rem;
  justify-content: space-around;


}

input:focus,
textarea:focus {
    outline: solid var(--accent-color) 1px;
}

.contact form{
  display: flex;
  flex-direction: column;
  gap:25px;
  min-width:515px;
  max-width: 800px;
  border-radius: 15px;
  padding-bottom: 5rem;
  margin-top:5rem;
  background-color: var(--bg-light);
  transition: all 1s ease-in-out;
}

.contact form:hover{
  box-shadow:  
  -5px -5px 10px rgba(255, 111, 97, 0.08),  
   5px -5px 10px rgba(255, 111, 97, 0.08),   
  -5px  5px 10px rgba(255, 111, 97, 0.08),  
   5px  5px 10px rgba(255, 111, 97, 0.08);  

}

.contact input{
  margin-left: 6.5rem;
  width:50%;
  height: 35px;
  border-radius: 10px;
  border:none;
  background-color: var(--text-color);
  padding-left: 5px;
  font-size: 1.15rem;
}

.contact textarea{
  margin-left: 6.5rem;
  width:calc(100% - 10rem);
  height: 5rem;
  border-radius: 10px;
  border:none;
  background-color: var(--text-color);
  font-size: 1.15rem;
  padding-left: 5px;
  padding-top: 7px;
}

.contact input::placeholder{
  font-size: 1rem;
}

.contact textarea::placeholder {
  font-size: 1rem;
}

.send_message{
  width:200px;
  background-color: var(--accent-color);
  padding-block:15px;
  margin-left: 6.5rem;
  border:none;
  border-radius:10px ;
  color:var(--text-color);
  transition: ease-in-out 0.2s;
}

.send_message:hover{
  background-color: var(--bg-color);
}

.contact_aside{
  margin-inline:0.25rem;
  margin-top:2rem;
  font-size: 1.3rem;
  min-width:515px;
  max-width: 800px;
}

.contact_aside b{
  color:var(--accent-color);
}

.contact img{
max-width: 500px;
max-height: 500px;
margin-right: 1rem;
margin-top:5rem; 
}

.ribbon_box {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.ribbon_box {
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
  transform-origin: 100% 100%;
  background-color: var(--accent-color); 
  width: fit-content;
}

/* Media qurries start */

@media screen and (max-width:1500px){
  .contact_flex{
    display: block;
  }

  .contact form{
    width:80%;
    margin-inline: auto;
  }

  .contact_aside{
    width:80%;
    margin-inline:auto;
  }

  .contact img{
    margin-inline:auto;
    display: block;
    width:100%;
  }

}


@media screen and (max-width:1375px) {
  .about_flex{
    flex-direction: column;
  }

  .image-container {
    display: flex;
    width: 25%;
    order:2;
    gap:1rem;
    justify-content: center;
    margin-inline: auto;
  }
  
  .fade-img {
    position: static;
    width:100%;
    opacity: 1;
  }

  .about_info{
    width:100%;
  }
  
}




@media screen and (max-width:1115px){

  .right{
      width: clamp(300px, 40%, 450px);
      justify-self: center;
      align-self: center;
      justify-content: center;
      align-content: center;
      align-items: center;
      justify-items: center;
      height:auto;
      align-self: center;
      border-radius: 25px;
      margin-inline:2rem;
  }
  
   @supports (-webkit-touch-callout: none) {
    .right{
      border-radius: 25px;
      margin-inline:auto;
    }
  }

  .left_inner p:nth-child(1){
    font-size: 1.2rem;
  }

  .left_inner h1{
    font-size:4.25rem;
  }

  .ribbon_home {
    font-size: 1.15rem;
  }

  .web-design-wrapper{
    display: block;
}

.web-design-card{
    margin-inline:auto;
  
}

}

@media screen and (max-width:1079px) {
  .two-cards-card{
      padding: 1.3rem;
  }

  .web-design-card{
    padding: 1.3rem;
  }
}




@media screen and (max-width:1000px) {
  header{
    width:200px;
  }

  .about_me, .portfolio, .contact
  {
    margin-left:200px;
  }

  .side_navigation{
    display: none;
  }

  .hide_me{
    display: block;
  }

  .hide_me header img{
    display: none;
  }

  .hide_me header{
    width:0px;
    z-index: 20;
  }

  .hide_me nav {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: fit-content;
      background-color: var(--accent-color);
      justify-content: center;
      align-items: center;
      gap:0;
      transition: all 1s ease-in-out;
  }



  .hide_me #hamburger {
      display: block;
      position: fixed;
      top: 15px;
      right: 20px;
      cursor: pointer;
      font-size: 24px;
      z-index: 2000;
  }

  .hide_me #close {
      display: none;
      position: fixed;
      top: 15px;
      right: 20px;
      cursor: pointer;
      font-size: 24px;
      z-index: 2000;
  }

  .hide_me nav.active {
      display: flex;
  }

  .hide_me nav a.active{
    background: unset;
    background-color: transparent !important; 
    color:var(--bg-color);

  }


  .hide_me nav.active + #close {
      display: block;
  }

  .hide_me .socials{
    padding-block:1rem;
  }

  .hide_me nav .nav {
    color: var(--text-color);
    align-self: center;
    padding-block: 1rem;
    line-height: 0.5;
    clip-path: none;
    width: 100vw;

  }
  
  .hide_me nav .nav:hover{
    background-color: transparent !important; 
    color:var(--bg-color);
    background: unset;
    
  }

  .image-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

}

@media screen and (max-width:943px){

  .left_inner h1{
    font-size:4rem;
  }
}

@media screen and (max-width:894px){
  .home_section{
    flex-direction: column;
    justify-self: center;
  }
  
  @supports (-webkit-touch-callout: none) {
    .home_section{
      margin-inline:auto !important;
      width:fit-content;
    }
  }

  .ribbon_home{
    margin-bottom: 1rem;
  }

  .left_inner h1{
    white-space: nowrap;
  }

  .hidden{
    display: block !important;
    width: 100%;
  }

  .right{
    margin-inline:auto;
    display: none;
  }

  .home_btns a{
    width:47.75%;
  }
}

@media screen and (max-width:875px){
  .two-cards-wrapper{
      display: block;
  }

  .two-cards-img{
    margin-inline:auto;
  }

  .two-cards-wrapper > .two-cards-card:nth-of-type(2) {
    margin-top: 2rem;
  }
  
}

@media screen and (max-width:775px){

  .about_me, .portfolio, .contact {
    margin-inline: auto; 
    padding-inline:7vw;
    padding-block: 2rem;
  }

  
  @supports (-webkit-touch-callout: none) {
    .home_section{
      padding-block: 5rem;
    }
  }

  .side_navigation{
    display: none;
  }

  .left_inner p:nth-child(1){
    font-size: 1.1rem;
  }

  .left_inner h1{
    font-size:3.5rem;

  }

  .ribbon_home{
    font-size: 1rem;
    
  }

  .right{
    min-width:100px;
  }

  .home_btns{
    justify-content: center;
  }

  .home_btns a{
    width: 100%;
  }

  

    header img{
      display: none;
    }
  
    header{
      width:0px;
      z-index: 20;
    }
  
    nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: fit-content;
        background-color: var(--accent-color);
        justify-content: center;
        align-items: center;
        gap:0;
        transition: all 1s ease-in-out;
    }
  
  
  
    #hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        cursor: pointer;
        font-size: 24px;
        z-index: 2000;
        padding:5px;
    }
  
    #close {
        display: none;
        position: fixed;
        top: 15px;
        right: 20px;
        cursor: pointer;
        font-size: 24px;
        z-index: 2000;
        padding:10px;
  
    }
  
    nav.active {
        display: flex;
    }
  
    nav a.active{
      background: unset;
      background-color: transparent !important; 
      color:var(--bg-color);
  
    }
  
  
    nav.active + #close {
        display: block;
    }
  
    .socials{
      padding-block:1rem;
    }
  
    nav .nav {
      color: var(--text-color);
      align-self: center;
      padding-block: 1rem;
      line-height: 0.5;
      clip-path: none;
      width: 100vw;
  
    }
    
    nav .nav:hover{
      background-color: transparent !important; 
      color:var(--bg-color);
      background: unset;
      
    }
  }


@media screen and (max-width:615px){
  .contact form {
    width:100%;
    min-width: unset;
  }

  .contact input{
    min-width: 150px;
    margin-inline:auto;
    width: 60%;

  }

  .contact textarea{
    min-width: 150px;
    margin-inline:auto;
    width:60%;


  }

  .ribbon_box {
    font-size: 5.25vw ;
  }

  .send_message{
    margin-inline:auto;
  }

  .contact_aside{
    min-width: unset;
    width: 100%;
  }
}

@media screen and (max-width:550px){


    .expanded-img {
      padding:1rem;
    }

}

@media screen and (max-width:400px) {
  .ribbon{
    font-size: 1.15rem;
    line-height: 30px;
  }

  .ribbon h1 {
    padding:0.5rem;
    font-size: 2rem;
    white-space: nowrap;
  }

  .about_flex , .two-cards , .contact form{
    margin-top: 3rem;
  }

  .left_inner h1{
    font-size: clamp(2rem,12vw, 15vw);
  }

  .ribbon_home h2{
    padding: 0;
    line-height: 30px;
    margin-top:0.5rem;
  }

  .image-container {
    display: block;
    width: 100%;
  }
  
  .fade-img {
    margin-block:0.5rem;
  }

  .about_flex{
    gap:1.5rem;
  }

  .web-design-card{
    padding: 1.3rem;
}
.contact form{
  padding-bottom:3rem;

}

.send_message{
  width:150px;
}

.contact_aside{
  font-size: 1.15rem;
}

.contact img{
  margin-top: 3rem;
}

}




























