

/*----------------------- General Styles -----------------------*/

* {
    box-sizing: border-box;
  }
  
  .row::after {
    content: "";
    clear: both;
    display: block;
  }
  
  [class*="col-"] {
    float: left;
    padding: 15px;
  }
  
  
  .menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .menu li {
    padding: 8px;
    margin-bottom: 7px;
    background-color: #33b5e5;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  }
  
  .menu li:hover {
    background-color: #0099cc;
  }
  
  .aside {
    background-color: #33b5e5;
    padding: 15px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  }
  
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
  
  @media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
      width: 100%;
    }
  }
  
:root{
    --hue-1: 257;
    --hue-2: 47;
    --bg-color: hsl(var(--hue-1), 100%, 97%);
    --main-color-1: hsl(var(--hue-1), 100%, 60%);
    --main-color-dark-1: hsl(var(--hue-1), 69%, 50%);
    --main-color-2: hsl(var(--hue-2), 100%, 61%);
    --main-color-dark-2: hsl(var(--hue-2), 82%, 55%);
    --bg-color-1: hsl(var(--hue-1), 100%, 97%);
    --bg-color-2: #fff;
    --bg-color-4: rgb(4, 0, 30);
    --bg-color-3: hsl(var(--hue-1), 100%, 98%);
    --bg-color-transparent: rgba(255, 255, 255, 0.396);
    --heading-color: hsl(var(--hue-1), 61%, 24%);
    --text-color: hsl(var(--hue-1), 17%, 63%);
    --text-color-1: white;
    --section-padding: 7rem;
}

section{
  width: 100%;
}
/*
body{
    --bg-color-1: hsl(var(--hue-1), 100%, 97%);
    --bg-color-2: #fff;
    --bg-color-4: rgb(4, 0, 30);
    --bg-color-3: hsl(var(--hue-1), 100%, 98%);
    --bg-color-transparent: rgba(255, 255, 255, 0.9);
    --heading-color: hsl(var(--hue-1), 61%, 24%);
    --text-color: hsl(var(--hue-1), 17%, 63%);
    --text-color-1: white;
}

body.bdark{
    --bg-color-1: hsl(var(--hue-1), 19%, 15%);
    --bg-color-2: hsl(var(--hue-1), 21%, 11%);
    --bg-color-3: hsl(var(--hue-1), 23%, 19%);
    --bg-color-4: hsl(var(--hue-1), 23%, 24%);
    --bg-color-transparent: rgba(46, 46, 46, 0.077);
    --heading-color: hsl(var(--hue-1), 100%, 95%);
    --text-color: hsl(var(--hue-1), 17%, 51%);
}*/


/*----------------------- General Styles -----------------------*/

*, *::before, *::after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    overflow-x: hidden;
    background: url(https://raw.githubusercontent.com/DasunThathsara/Portfolio/6aba671b0fad281a0e6f138788a15232bb67444c/images/11.svg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transition: 0.5s;
}

.dark{
    overflow-x: hidden;
    background: url(https://raw.githubusercontent.com/DasunThathsara/Portfolio/6aba671b0fad281a0e6f138788a15232bb67444c/images/10.svg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transition: 0.5s;
}

::selection{
    background-color: transparent;
    color: rgb(61, 61, 61);
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}


/*----------------------- Reusable css code -----------------------*/

.container{
    position: relative;
    width: 100%;
    max-width: 75rem;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.logo{
    margin-right: 1.5rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: bold;
    transition: 0.3s;
    color: var(--heading-color);
}

.logo span{
    color: var(--main-color-1);
}

.sub-heading{
    color:var(--heading-color);
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--main-color-2);
    padding: .13rem .75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: 0.5s;
}

.sub-heading-dark{
    color:rgb(175, 176, 223);
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--main-color-2);
    padding: .13rem .75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: 0.5s;
}

.heading{
    color: var(--heading-color);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    transition: 0.5s;
}

.heading-dark{
    color: rgb(128, 144, 185);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    transition: 0.5s;
}

.text{
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 2rem 0;
    line-height: 2.3;
}

.cta{
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
}

.cta .btn{
    margin-right: 1.5rem;
}

.btn{
    display: inline-block;
    padding: .9rem 1.75rem;
    border-radius: 17px;
    background-color: var(--main-color-1);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .4px;
    text-transform: capitalize;
    transition: 0.5s;
}

.btn-dark{
    display: inline-block;
    padding: .9rem 1.75rem;
    border-radius: 17px;
    background-color: var(--main-color-1);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .4px;
    text-transform: capitalize;
    transition: 0.5s;
}

.btn:hover{
    box-shadow: 0 1px 10px 0.1px rgba(0, 0, 0, 0.5);
}

.btn-dark:hover{
    box-shadow: 0 1px 10px 0.1px rgba(255, 255, 255, 0.297);
}

.btn.secondary-btn{
    transform: 0.5s;
    position: relative;
    background-color: transparent;
    color: black;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0px;
    border-bottom: 2.5px solid var(--main-color-2);
    border-radius: 0px;
    padding: 0.15rem 0;
    min-width: revert;
}

.btn.secondary-btn:hover{
    box-shadow: 0 1px 10px 0.1px rgba(0, 0, 0, 0);
}

.btn.secondary-btn-dark{
    transform: 0.5s;
    position: relative;
    background-color: transparent;
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0px;
    border-bottom: 2.5px solid var(--main-color-2);
    border-radius: 0px;
    padding: 0.15rem 0;
    min-width: revert;
}

.btn.project-btn{
    position: relative;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.53);
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0px;
    border-bottom: 2.5px solid transparent;
    border-radius: 0px;
    padding: 0.15rem 0;
    min-width: revert;
}

.btn.project-btn:hover{
    color: rgb(28, 0, 120);
}

.btn.project-btn::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 2.5px;
    bottom: -2.5px;
    left: 0;
    background-color: rgba(0, 0, 49, 0.093);
    transition: 0.3s ease-in-out;
}

.btn.secondary-btn::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 2.5px;
    bottom: -2.5px;
    left: 0;
    background-color: var(--main-color-1);
    transition: 0.3s ease-in-out;
}

.btn.project-btn:hover::before{
    width: 100%;
}

.btn.secondary-btn:hover::before{
    width: 100%;
}

.section{
    position: relative;
    padding: var(--section-padding) 0;
}


/*----------------------- Navbar Styles -----------------------*/


header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: 0.3s;
}

header.scrolled{
    box-shadow: 0 5px 20px 0.1px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(20px);
    background-color: var(--bg-color-transparent);
}

nav.container{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

header .logo{
    height: 120px;
    line-height: 120px;
}

header .logo-dark{
    height: 120px;
    line-height: 120px;
    color: rgb(146, 146, 193);
}

header.scrolled .logo{
    height: 80px;
    line-height: 80px;
}

.links{
    flex: 1;
    display: flex;
    justify-content: space-between;
}
.links ul{
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-link{
    position: relative;
    display: inline-block;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0.9;
    transition: 0.3s;
    color: var(--text-color);
}

.nav-link-dark{
    position: relative;
    display: inline-block;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0.9;
    transition: 0.3s;
    color: white;
}

.nav-link:hover{
    color: var(--heading-color);
}

.toggle-btn{
    min-width: 40px;
    height: 40px;
    color: var(--heading-color);
    background-color: var(--bg-color-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.05);
    transition: 0.5s;
}

.toggle-btn:hover{
    filter: brightness(97%);
}

.uil-sun{
    transition: 0.5s;
    color: var(--bg-color-2);
    background-color: var(--bg-color-4);
    box-shadow: 0 0 10px 0px rgba(138, 138, 138, 0.193);
}

.uil-sun:hover{
    background-color: rgb(21, 21, 21);
}

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffffe7;
    min-width: 160px;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: rgb(250, 250, 250);
    border-radius: 15px;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

  .hamburger{
    display: none;
    padding: 1rem 0;
    height: 12px;
    width: 25px;
    box-sizing: content-box;
    cursor: pointer;    
    position: relative;
  }

  .hamburger .bar{
    height: 3px;
    width: 100%;
    background-color: var(--heading-color);
    border-radius: 3px;
    position: absolute;  
  }

  .hamburger .bar:first-child{
    top: 1rem;
    transition: top 0.2s 0.15s, transform 0.3s;
  }

  .hamburger .bar:last-child{
    bottom: 1rem;
    transition: bottom 0.2s 0.15s, transform 0.3s;
  }

  body.open .hamburger .bar:first-child{
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    transition: top 0.2s, transform 0.3s 0.1s;
  }

  body.open .hamburger .bar:last-child{
    bottom: 50%;
    transform: translateY(50%) rotate(45deg);
    transition: bottom 0.2s, transform 0.3s 0.1s;
  }

  @media (max-width: 982px){
    .hamburger{
      display: block;
    }

    .links{
      order: 3;
      flex-basis: 100%;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.5rem 0 2rem;
      opacity: 0;
      transition: 0.3s;
    }

    header nav{
      justify-content: space-between;
    }

    .links ul{
      position: relative;
      flex-direction: column;
    }

    .nav-link{
      margin: 1.5rem 0;
      color: var(--heading-color);
      font-weight: 500;
    }

    .toggle-btn{
      margin-left: 30px;
    }

    .links ul::after{
      content: "";
      position: absolute;
      width: 0%;
      height: 0.5px;
      background-color: var(--heading-color);
      opacity: 0;
      top: -0.5rem;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: 0.3s;

    }

    .overlay{
      width: 100vw;
      height: 100vh;
      top: 0;
      left: 0;
      position: fixed;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 6;
      opacity: 0;
      transition: 0.3s;
      pointer-events: none;
    }

    header{
      height: 720px;
      max-height: 100px;
      overflow: hidden;
    }

    header.scrolled{
      height: 680px;
      max-height: 80px;
    }

    body.open header{
      max-height: 720px;
      box-shadow: 0 5px 20px 0.1px rgba(0, 0, 0, 0.1);
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(20px);
      background-color: var(--bg-color-transparent);
    }

    body.open .overlay{
      pointer-events: auto;
    }

    body.open .links ul::after{
      opacity: 0.7;
      width: 100%;
    }

    body.open header.scrolled{
      max-height: 720px;
    }

    body.open .links{
      opacity: 1;
    }
  }

/*----------------------- Showcase Area Styling -----------------------*/

.showcase-area{
    padding: 120px 0;
    width: 100%;
    overflow: hidden;
}

.showcase-area .container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: calc(100vh - 120px);
    max-height: 600px;
    align-items: center;
}

.showcase-area .sub-heading{
    margin-bottom: 0.4rem;   
}

.showcase-area .heading{
    font-size: 3.5rem;
}

.showcase-area .text{
    margin: 0.8rem 0;
}


.showcase-image{
    padding-top: 50px;
    position: relative;
    width: 100%;
    min-height: calc(100% + 120px);
}

.showcase-image .person{
    position: absolute;
    width: 60%;
    left: 50%;
    transform: translateX(-25%);
    border-radius: 0 80px 0 80px;
}

/*----------------------- About Section Styling -----------------------*/

.about-section{
  width: 100%;
  background-color: #fff;
  transition: 0.5s;
} 

/*----------------------- Skills Section Styling -----------------------*/

.skills{
    background-color: #fff;
    overflow: hidden;
    transition: 0.5s;
}

.skills-dark{
    background-color: rgb(6, 16, 32);
    overflow: hidden;
    transition: 0.5s;
}

.skills-box{
    transition: 0.5s;
    background-color:white;
    padding: 5rem 2rem;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 5px 20px 0.1px rgba(0, 0, 0, 0.1);
}

.skills-box-dark{
    transition: 0.5s;
    background-color:rgb(6, 16, 32);
    padding: 5rem 6rem;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 5px 20px 0.1px rgba(255, 255, 255, 0.1);
}

.box-desc{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 2rem;
}

.skills-wrap{
    display: grid;
    grid-template-columns: repeat(4, 150px);
    margin-top: 2rem;
    justify-content: space-between;
}

.skill{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sk-progress{
    width: 150px;
    height: 150px;
    position: relative;
}

.sk-progress svg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sk-progress svg circle{
    fill: var(--bg-color-1);
    stroke-width: 10px;
    stroke: var(--main-color-1);
    stroke-linecap: round;
    stroke-dasharray: 427;
    stroke-dashoffset: 427;
}

@keyframes progress{
    to{
        stroke-dashoffset: var(--target);
    }
}

.counter{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--heading-color);
    font-weight: 400;
    font-size: .9rem;
}

.counter span{
    font-size: 2.45rem;
}

.sk-title{
    color: var(--heading-color);
    margin-top: 0.75rem;
    font-weight: 400;
    font-size: 1rem;
}

/*----------------------- Services Section Styling -----------------------*/

.services-dark{
    background-color: rgb(6, 16, 32);
    transition: 0.5s;
}

.services .container{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    column-gap: 6rem;
    align-items: center;
}

.milestones{
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
    justify-items: flex-start;
}

.milestones h2{
    color: var(--main-color-1);
    font-size: 1.3rem;
}

.milestones h2 span{
    font-size: 2rem;
    line-height: 1.2;
    margin-left: 0.1rem;
}

.milestones h5{
    color: var(--heading-color);
    line-height: 0.9;
    font-weight: 500;
    font-size: 0.95rem;
}

.services-grid{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 4.4rem;
}

.srv-card{
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px 0.1px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 200px;
    transition: 0.5s;
}

.srv-card-dark{
    background-color: rgb(6, 16, 32);
    border-radius: 15px;
    box-shadow: 0 5px 20px 0.1px rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 200px;
    transition: 0.5s;
}

.srv-card:hover{
    transition: 0.5s;
    box-shadow: 0 5px 20px 0.1px rgba(0, 0, 0, 0.2);
}

.srv-card-dark:hover{
    transition: 0.5s;
    box-shadow: 0 5px 20px 0.1px rgba(255, 255, 255, 0.2);
}


.srv-card h3{
    color: var(--heading-color);
    font-weight: 500;
    font-size: 15px;
}

.srv-card .text{
    margin: 0.7rem 0;
    font-size: 0.7rem;
}

.srv-card:nth-child(2){
    transform: translateY(2.2rem);
}

.srv-card:nth-child(3){
    transform: translateY(-2.2rem);
}

.services-grid::before{
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 15px solid gray;
    z-index: -1;
    opacity: 0.07;
}

/*----------------------- Portfolio Section Styling -----------------------*/

.portfolio-header{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.portfolio-title{
    padding-bottom: 1rem;
}

filter-btn{
    display: inline-block;
    color: var(--heading-color);
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .4px;
    margin-left: 1.3rem;
    font-family: inherit;
    text-transform: uppercase;
}


.footer-section{
  width: 100%;
  background-color: #01002f;
  position: absolute;
}

.footer-section img{
  width: 6%;
  max-width: 20px;
  margin-top: 10px;
  margin-left: 2.5%;
  margin-right: 2.5%;
}

.footer-section p{
  width: 100%;
  color: #c5c5c5;
}
