:root {
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Cardo", sans-serif;
  --font-Montserrat: "Montserrat", sans-serif;
}

/* Colors */
:root {
  --color-default: #fafafa;
  --color-primary: #27a776;
  --color-secondary: #161718;
}

/* Smooth scroll behavior */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font-default);
  color: var(--color-default);
  background-color: #000;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: #32cf93;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}
.title{
  font-family: var(--font-secondary);
  font-weight: 900;
  color: var(--color-primary);
  font-size: 3rem;
}

.border {
  background-color: #111;
  border: 1px solid var(--color-primary)!important;
  box-shadow: 5px 4px 8px var(--color-primary); /* subtle depth */
}

.border:hover {
  cursor: pointer;
  border-color: #32cf93 !important;
  box-shadow: 5px 0px 30px var(--color-primary); /* glow appears on hover */
  transform: scale(1.03);
  transition: all 0.3s;
}
.text-white{
  color: var(--color-default)!important;
}

section{
  padding: 6rem 0;
}

#experiences .border{
  display: flex;
  flex-direction: column;
  flex: 1;
  transform: none;
}

#experiences .d-flex.flex-lg-row {
  align-items: stretch !important;
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: rgba(39, 167, 118, 0.8);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
}

#preloader:before,
#preloader:after {
  content: "";
  background-color: var(--color-secondary);
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  transition: all 0.3s ease 0s;
  z-index: -1;
}

#preloader:after {
  left: auto;
  right: 0;
}

#preloader .line {
  position: relative;
  overflow: hidden;
  margin: auto;
  width: 1px;
  height: 280px;
  transition: all 0.9s ease 0s;
}

#preloader .line:before {
  content: "";
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0%;
  transform: translateY(-50%);
  animation: lineincrease 1000ms ease-in-out 0s forwards;
}

#preloader .line:after {
  content: "";
  position: absolute;
  background-color: #999;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateY(-100%);
  animation: linemove 300ms linear 0s infinite;
  animation-delay: 1000ms;
}

#preloader.loaded .line {
  opacity: 0;
  height: 100% !important;
}

#preloader.loaded .line:after {
  opacity: 0;
}

#preloader.loaded:before,
#preloader.loaded:after {
  animation: preloaderfinish 200ms ease-in-out 100ms forwards;
}

@keyframes lineincrease {
  0% {
    height: 0%;
  }

  100% {
    height: 100%;
  }
}

@keyframes linemove {
  0% {
    transform: translateY(200%);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes preloaderfinish {
  0% {
    width: 5 0%;
  }

  100% {
    width: 0%;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header{
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border: none;
  background-color: transparent;
  z-index: 997;
  padding: 1.5rem 0;
  /* height: 2rem;  */
}

/* header.navbar-shrink {
  height: 2rem; 
} */

.header .logo img {
  margin-left: 15px;
  max-height: 35px;
  
}
/* header.navbar-shrink .logo img{
  max-height: 35px;
  
} */

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a, .social-link {
  color: rgba(255, 255, 255, 0.5);
  padding-left: 15px;
  display: inline-block;
  line-height: 0px;
  transition: 0.3s;
}

.header .header-social-links a:hover, .social-link:hover {
  color: #fff;
}

@media (max-width: 575px) {
  .header .header-social-links a {
    padding-left: 5px;
  }
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navbar li {
    position: relative;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: #fff;
  } 
}
@media (min-width: 1280px) {
  .mobile-nav-toggle {
    display: none !important;
  }
}

  

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
  }


  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 50px 0 10px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    min-height: 100vh;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: #fff;
  }

  .mobile-nav-show {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    z-index: 9999;
    margin: 0 10px 0 10px;
  }

  .mobile-nav-hide {
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 0;
    transition: 0.5s;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navbar {
    right: 0;
  }

  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(22, 23, 24, 0.8);
    z-index: 9996;
  }
  nav .header-social-links a{
    padding: 0;
    z-index: 9999;
  }
  nav .header-social-links a i{
    font-size: 2rem;
  }
  .skills{
    justify-content: space-evenly;
  }
  .contact-links{
    margin-top: 20px;
    justify-content: space-evenly!important;
  }
  header.navbar-shrink {
    height: 2rem; 
  }
  
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 90vh;
  background: #000;
  background-size: cover;
  position: relative;
  padding: 140px 0 60px 0;
}



section li, p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.cv-download {
  /* font-family: var(--font-primary); */
  font-weight: 400;
  font-size: 14px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
  color: #fff!important;
  background: var(--color-primary);
  z-index: 1;
  
}

.cv-download:hover{
  color: #fff;
  background-color: #32c28b;
  transform: scale(1.03)
}

@media (max-width: 768px) {
  .hero h2, .title {
    font-size: 32px;
  }
  .animation-pic{
    width: 350px!important;
    height: 350px!important;
  }
  section{
    padding: 3rem 0;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
#about li{
  padding: 5px 0;
}

#about>div{
  margin-top: 90px;
}

#about #proficiency .score{
  padding: 10px;
}

#about #proficiency .score div{
  width: 100%;
  height: 18px;
  position: relative;
  background-color: var(--color-default);
  border-radius: 20px;
  margin-top: 15px;
}
#about #proficiency .score span{
  position: absolute;
  border-radius: 20px;
  background-color: #27a776; 
  height: 100%;
}
#about #education{
  font-family: var(--font-Montserrat);
}

/*--------------------------------------------------------------
# Experiences
--------------------------------------------------------------*/
#projects p{
  font-size: 1rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  margin-top: 30px;
  padding: 30px 0;
  font-size: 14px;
  /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
  background-color: #111;
}
.footer .contact-links{
  margin-top: 20px;
  justify-content:center!important;
}
.footer .contact-links a{
  padding: 0 5px;
}



