/********** Template CSS **********/
:root {
    --primary: #6244C5;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.logo-area {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Hamburger Menu  */
.burger-menu {
    background: rgb(141,119,210) !important;
    border-radius: 8px;
    padding: 8px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgb(141,119,210);
    display: none;
}   

.burger-menu svg path {
    stroke: #fff !important;
}

.burger-menu:hover {
    background: rgb(141,119,210) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}
        
.nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.menu-bar {
    border-radius: 25px;
    border: 1px solid #e4e4e4;
    height: fit-content;
    display: inline-flex;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    align-items: center;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
}

.menu-bar li {
    list-style: none;
    color: #fff;
    font-family: sans-serif;
    padding: 12px 44px;
    margin: 0 8px;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 25px;
}

.menu-bar a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.menu-bar li::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    transition: .2s;
    border-radius: 25px;
}

.menu-bar li:hover::before {
    background: linear-gradient(to bottom, #e8edec, #d2d1d3);
    box-shadow: 0 3px 20px 0 black;
    transform: scale(1.1);
}

.menu-bar li:hover,
.menu-bar li:hover a {
    color: #000;
}

/* Project Description Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.project-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

#projectImage img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

#projectDetails {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}


/*** Header ***/
#home {
    margin-bottom: 6rem;
    background: url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}


/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}


/*** Service ***/
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}

@media only screen and (min-width: 768px) and (max-width: 1088px) {

    .menu-bar li {
    padding: 12px 12px;
}
  .logo img {
    width: 110px;
    height: auto;
  }



}

/* Smartphones */
@media screen and (max-width: 767px) {
    .logo-area{
       left: 50%;
       right: auto;
       transform: translateX(-50%);
    }
    
    .burger-menu {
      display: block;
      position: fixed;
      top: 18px;
      left: 25px;
      z-index: 1300;
    }

    .nav-wrap {
        backdrop-filter:none;
        background: transparent;
    }
  
    nav {
      left: 0;
      right: auto;
      transform: translateX(-100%);
      position: fixed; 
      top: 0;
      width: 80%; 
      height: 100vh; 
      background-color: rgba(17, 24, 39, 0.9); 
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px); 
      z-index: 1000; 
      transition: transform 0.3s ease-in-out;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    nav.active {
      transform: translateX(0); 
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
  
    nav ul {
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
    }
  
    nav ul li a {
      font-size: 1.2rem;
      padding: 10px;
      color: #fff !important;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }
     
    nav ul li a:hover {
        color: #FFC448 !important;
        transform: translateX(5px);
    }
    
    nav ul li {
        list-style: none;
        margin: 10px 0;
    }

    .menu-bar {
      background-color: transparent !important;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      border: 0;
    }
  
    .menu-bar li {
      font-size: 3.2rem; 
      padding: 16px 24px; 
    }
  
    .menu-bar li::before,
    .menu-bar li:hover::before {
      background: none;
      box-shadow: none;
      transform: none;
    }
  
    .menu-bar li:hover,
    .menu-bar li:hover a {
      color: #fff ; 
    }

}
