/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
  --primary: 10, 25, 47; /*#0a192f*/
  --light-primary: 17, 34, 64; /*#112240*/
  --lightest-primary: 35, 53, 84; /*#233554*/
  --secondary: 136, 146, 176; /*#8892b0*/
  --light-secondary: 168, 178, 209; /*#a8b2d1*/
  --lightest-secondary: 204, 214, 246; /*#ccd6f6*/
  --white: 230, 241, 255; /*#e6f1ff*/
  --accent: 100, 255, 218; /*#64ffda*/
  --hover: 50, 213, 183; /*#32d5b7*/

  --boxcolorinset: #c9c9c9;

  --ff-sans: 'Karla', sans-serif;
  --ff-mono: 'Space Mono', monospace;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--ff-sans);
  background-color: rgba(var(--primary), 1);
  color: rgba(var(--white), 1);
  position: relative;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  background: rgba(var(--primary), 1);
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}


@media (min-width: 1024px) {
  body::before {
    background-attachment: fixed;
  }
}

a {
  color: rgba(var(--accent), 1);
  text-decoration: none;
}

a:hover {
  color: rgba(var(--accent), 1);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-sans);
}

.hidden {
  display: none;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: ease-in-out 0.3s;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}

#header * {
  transition: ease-in-out 0.3s;
}

#header h1 {
  font-size: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: var(--ff-mono);
  color: rgba(var(--accent), 1);
}

#header h1 a {
  line-height: 1;
  display: inline-block;
}

#header h2 {
  font-size: 24px;
  margin-top: 20px;
  color: rgba(var(--light-secondary), 1);
  line-height: 1.8;
}

#header h2 span {
  color: rgba(var(--white), 1);
  border-bottom: 2px solid rgba(var(--accent), 1);
  padding-bottom: 6px;
}

#header img {
  padding: 0;
  margin: 0;
}

#header .social-links {
  margin-top: 40px;
  display: flex;
  gap: 18px;
}

#header .social-links a {
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(var(--white), 1);
  line-height: 1;
  margin-right: 10px;
  border-radius: 50%;
  transition: transform 0.3s;
}

#header .social-links a:hover {
  color: rgba(var(--accent), 1);
  transform: translateY(-3px);
}

#header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  #header h1 {
    font-size: 36px;
    display: flex;
    justify-content: center;
  }

  #header h2 {
    font-size: 25px;
    line-height: 36px !important;
  }

  #header .social-links {
    margin-top: 15px;
    justify-content: center;
  }

  #header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #header .data-row {
    order: 1;
    width: fit-content;
  }

  #header .profileImg {
    margin-bottom: 25px;
    width: 50%;
  }
}



@media (max-width: 640px) {
  #header h1 {
    font-size: 24px;
  }

  #header h2 {
    font-size: 18px;
  }
}

.data-row {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}

.profileImg {
  display: flex;
  flex-direction: column;
}

/* Header Top */
#header.header-top {
  height: 80px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  background: rgba(var(--primary), 0.9);
  padding: 15px;
  display: flex;
  
  .profileImg {
    display: none;
  }

  .data-row { 
    flex-direction: row;
    width: 100%;
  }
}


#header.header-top .social-links,
#header.header-top h2 {
  display: none;
}

#header.header-top h1 {
  margin-right: auto;
  font-size: 24px;
  display: flex;
  align-items: center;
}

#header.header-top h1 a {
  color: rgba(var(--accent), 1);
  line-height: 1;
  display: inline-block;
}

#header.header-top h1 a:hover {
  color: rgba(var(--lightest-secondary), 1);
}

#header.header-top img {
  max-height: 60px;
  margin-right: 20px !important;
}

#header.header-top .container {
  display: flex;
  align-items: center;
}

#header.header-top .navbar {
  margin: 0;
}

@media (max-width: 767px) {
  #header .profileImg {
    width: 66.3333%;
  }
}

@media (max-width: 768px) {
  #header.header-top {
    height: 60px;
  }

  #header.header-top h1 {
    font-size: 20px;
  }

  #header .container {
    text-align: center;
  }

  #header .container h2 {
    line-height: 2.25rem;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  #header .container {
    flex-direction: row;
  }

  #header h1 {
    justify-content: flex-start;

  }

  #header .social-links {
    justify-content: flex-start;
  }

  #header .data-row {
    order: 0;
    width: 100%;
  }

}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
  margin-top: 35px;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar li + li {
  margin-left: 30px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  font-size: 16px;
  font-family: var(--ff-mono) !important;
  font-weight: 400;
  color: rgba(var(--secondary), 1);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 16px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: rgba(var(--accent), 1);
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.navbar a:hover:before,
.navbar li:hover > a:before,
.navbar .active:before {
  visibility: visible;
  width: 25px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: rgba(var(--accent), 1);
}

.navbar li:last-child {
  border: 1px solid rgba(var(--accent), 1);
  border-radius: 0.25rem;
  padding: 10px 16px;
}

.navbar li:last-child:hover {
  box-shadow: 3px 3px rgba(var(--accent), 1);
  transform: translate(-3px, -3px);
}
.navbar li:last-child a {
  color: rgba(var(--accent), 1);
}

.navbar li:last-child a::before {
  all: unset;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: rgba(var(--white), 1);
  font-size: 24px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  position: fixed;
  right: 20px;
  top: 30px;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(var(--primary), 0.98);
  transition: 0.3s;
  z-index: 999;
  margin-top: 0;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute !important;
  top: 30px;
  right: 20px;
}

.navbar-mobile ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 45px;
  left: 15px;
  padding: 10px 0;
  overflow-y: auto;
  transition: 0.3s;
  border: 2px solid rgba(var(--white), 0.2);
}

.navbar-mobile li {
  padding: 12px 20px;
}

.navbar-mobile li + li {
  margin: 0;
}

.navbar-mobile li:last-child {
  margin-top: 30px;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  font-size: 18px;
  position: relative;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 140px;
  bottom: 100%;
  opacity: 0;
  transition: ease-in-out 0.4s;
  z-index: 2;
}

section.section-show {
  top: 100px;
  bottom: auto;
  opacity: 1;
  padding-bottom: 45px;
}

section .container {
  background: transparent;
  padding: 30px;
}

@media (max-width: 768px) {
  section {
    top: 120px;
  }

  section.section-show {
    top: 80px;
  }
}

.section-title h2 {
  font-size: 16px;
  font-weight: 600;
  padding: 0;
  line-height: 1px;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(var(--secondary), 1);
  font-family: var(--ff-sans);
}

.section-title h2::after {
  content: '';
  width: 120px;
  height: 1px;
  display: inline-block;
  background: rgba(var(--accent), 1);
  margin: 4px 10px;
}

.section-title p {
  margin: 0;
  margin: -15px 0 15px 0;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--ff-mono);
  color: rgba(var(--white), 1);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-me .content h3 {
  font-weight: 700;
  font-size: 24px;
  color: rgba(var(--accent), 1);
  font-family: var(--ff-mono);
}

.avatar {
  border-radius: 50%;
}

.about-me .content ul {
  list-style: none;
  padding: 0;
}

.about-me .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about-me .content ul strong {
  margin-right: 10px;
}

.about-me .content ul i {
  font-size: 18px;
  margin-right: 5px;
  color: rgba(var(--accent), 1);
  line-height: 0;
}

.about-me .content p {
  font-size: 18.5px;
}

.about-me .content p:last-child {
  margin-bottom: 0;
}

.about-me span {
  color: rgba(var(--accent), 1);
  text-decoration: none;
}

.about-me span.underline {
  color: rgba(var(--white), 1);
  border-bottom: 2px solid rgba(var(--accent), 1);
}

.col-lg-8.pt-4.pt-lg-0.content {
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: center;
}

/*--------------------------------------------------------------
# Interests
--------------------------------------------------------------*/
.interests .icon-box {
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(var(--white), 0.08);
  gap: 10px;
}

.interests .icon-box img {
  margin-right: 8px;
}

.interests .icon-box h3 {
  font-weight: 400;
  font-family: var(--ff-mono);
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  color: rgba(var(--white), 1);
}

.interests .icon-box:hover {
  background: rgba(var(--white), 0.12);
}

@media (max-width: 640px) {
  .interests .icon-box {
    background: rgba(0, 0, 0, 0);
  }

  .row .col-md-4 {
    flex-basis: calc(33.33% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 10px;
    box-sizing: border-box;
    background: rgba(var(--white), 0.08);
  }

  .interests .icon-box img {
    margin-right: 0;
  }

  .interests .icon-box h3 {
    display: none;
  }

  .interests .icon-box:hover {
    background: rgba(0, 0, 0, 0);
  }
}
/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-box {
  margin-left: 15px;
  width: 410px;
  height: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: solid 0.2px currentColor;
  background: rgba(var(--white), 0.08);
}

.portfolio .portfolio-box:hover { 
  background: rgba(var(--white), 0.12);
}

@media (max-width: 1401px) {
  .portfolio .portfolio-box { 
    width: 398px;
    height: 400px;
    padding: 15px;
    margin-left: 15px;
  }
}

@media (max-width: 1399px) {
  .portfolio .portfolio-box { 
    width: 31.55555%;
    height: 400px;
    
  }
}

@media (max-width: 1201px) {
  .portfolio .portfolio-box { 
    width: 46.333333%;
    height: 400px;
    
  }
}

@media (max-width: 991px) {
  .portfolio .portfolio-box { 
    width: 47.3333%;
    height: 350px;
  }
}

@media (max-width: 769px) {
  .portfolio .portfolio-box { 
    width: 100%;
    height: 400px;
    margin-left: 0;
    margin-right: 0;
    
  }

  .img-wrapper {
    height: 400px;
  }
}

.portfolio .portfolio-item {
  margin-bottom: 15px;
  border-radius: 15px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 15px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px 10px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(var(--accent), 1);
  background: rgba(var(--white), 0.1);
  margin: 0 3px 10px 3px;
  transition: all 0.3s ease-in-out;
  border-radius: 4px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  background: rgba(var(--secondary), 1);
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}


.img-wrapper {
  display: flex;
  position: relative;
  overflow: hidden; 
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;

}

.img-wrapper img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-position: 50% 25%;
  transition: all 0.3s;
  cursor: pointer;
}

.img-inner:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.portfolio .protect-imgwrapper {
  padding-top: 5px;
  padding-bottom: 20px;
  overflow: hidden;
  text-align: center;
}

.portfolio .protect-imgwrapper h6 {
  color: rgba(var(--accent), 1);
}

.portfolio .imgwrapper-link {
  margin-top: auto;
}

.portfolio .imgwrapper-link a {
  border-radius: 5;
  padding:  5px 15px;
  font-size: 14px;
  color: white;
  background: mediumorchid;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 25px;
}

.portfolio .imgwrapper-link a:hover {
  background: #c065d7;
}

.portfolio .imgwrapper-link a:last-child {
  margin-right: 0; /* Remove margin from the last link to avoid extra space */
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  border-radius: 0.25rem;
  color: #444444;
  padding: 20px 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact .info-box i.fa-solid,
.contact .info-box i.fa-regular {
  font-size: 24px;
  color: rgba(var(--accent), 1);
  border-radius: 50%;
  padding: 14px;

  background: rgba(var(--white), 0.1);
}

.contact .info {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.contact .info-box h3 {
  color: rgba(var(--white), 0.5);
  font-family: var(--ff-mono);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.contact .info-box p {
  padding: 0;
  font-size: 16px;
  font-family: var(--ff-sans);
  font-weight: 400;
  color: rgba(var(--white), 1);
  margin: 0;
}

.contact .info-box .social-links {
  margin: 5px 0 0 0;
  display: flex;
}

.contact .info-box .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(var(--white), 1);
  line-height: 1;
  margin-right: 15px;
  transition: 0.3s;
}

.contact .info-box .social-links a:hover {
  color: rgba(var(--hover), 1);
}

.contact .php-email-form {
  border-radius: 0.25rem;
  padding: 20px 0;
}

.contact .php-email-form .error-message {
  display: none;
  background: #ed3c0d;
  color: rgba(var(--white), 1);
  text-align: left;
  padding: 15px;
  font-family: var(--ff-mono);
  font-weight: 700;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  background: rgba(var(--white), 0.08);
  color: rgba(var(--accent), 1);
  text-align: center;
  padding: 15px;
  font-family: var(--ff-mono);
  font-weight: 700;
}

.contact .php-email-form .loading {
  display: none;
  background: rgba(var(--white), 0.08);
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: '';
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid rgba(var(--accent), 1);
  border-top-color: rgba(var(--white), 0.8);
  animation: animate-loading 1s linear infinite;
}
.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 18px;
  background: rgba(230, 241, 255, 0.08);
  border: 0;
  transition: 0.3s;
  color: var(--white);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  background-color: rgba(var(--white), 0.11);
}

.contact .php-email-form input::-moz-placeholder,
.contact .php-email-form textarea::-moz-placeholder {
  color: rgba(var(--white), 0.3);
  opacity: 1;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(var(--white), 0.3);
  opacity: 1;
}

.contact .php-email-form input {
  border-radius: 0.25rem;
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  border-radius: 0.25rem;
  padding: 12px 15px;
}

.contact .php-email-form button[type='submit'] {
  font-family: var(--ff-mono);
  background: transparent;
  border: 1px solid rgba(var(--accent), 1);
  padding: 10px 30px;
  color: rgba(var(--accent), 1);
  transition: 0.3s;
  border-radius: 0.25rem;
}

.contact .php-email-form button[type='submit']:not([disabled]):hover {
  box-shadow: 3px 3px rgba(var(--accent), 1);
  transform: translate(-3px, -3px);
}

button[type='submit']:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.go-back {
  font-family: var(--ff-mono);
  background: transparent;
  border: 1px solid rgba(var(--accent), 1);
  padding: 10px 30px;
  color: rgba(var(--accent), 1);
  transition: 0.3s;
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.go-back:hover {
  box-shadow: 3px 3px rgba(var(--accent), 1);
  transform: translate(-3px, -3px);
}


/*--------------------------------------------------------------
# Credits
--------------------------------------------------------------*/
.credits {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 15px;
  text-align: right;
  font-size: 14px;
  color: rgba(var(--white), 1);
  z-index: 999999;
}

@media (max-width: 992px) {
  .credits {
    font-size: 12px;
    text-align: center;
    padding: 10px;
    background: rgba(var(--primary), 0.8);
  }
}

.credits a {
  color: rgba(var(--accent), 1);
  transition: 0.3s;
}

.credits a:hover {
  color: rgba(var(--hover), 1);
}


#particles-background {
  position: fixed;
  left: -51%;
  top: -51%;
  width: 202%;
  height: 202%;
  transform: scale3d(0.5, 0.5, 1);
}

#particles-background {
  background: mix(#3f3251, #002025, 70%);
  background-image: -moz-linear-gradient(45deg, #3f3251 2%, #002025 100%);
  background-image: -webkit-linear-gradient(45deg, #3f3251 2%, #002025 100%);
  background-image: linear-gradient(45deg, #3f3251 2%, #002025 100%);
}

.showcontent {
  display: block;
}

.g-recaptcha{
  margin: 15px auto !important;
  width: auto !important;
  height: auto !important;
  text-align: -webkit-center;
  text-align: -moz-center;
  text-align: -o-center;
  text-align: -ms-center;
}


/* Floating Squares */

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(var(--lightest-primary), 1);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}
