/* =====================================================
   MiPortfolio - HypathBel
   Redesigned: CSS variables, gradient theme, dark mode
   ===================================================== */

:root {
  color-scheme: light;
  --blue: #0563bb;
  --purple: #7c3aed;
  --primary: #0563bb;
  --primary-hover: #0a72d0;
  --gradient: linear-gradient(135deg, #0563bb 0%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, rgba(5, 99, 187, .14), rgba(124, 58, 237, .14));

  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #f7f8f9;
  --text: #272829;
  --text-muted: #45505b;
  --text-soft: #728394;
  --border: #e4e8ee;
  --shadow-sm: 0 4px 18px rgba(69, 80, 91, .08);
  --shadow-lg: 0 18px 50px rgba(69, 80, 91, .16);
  --hero-overlay: rgba(255, 255, 255, .9);
  --nav-bg: #f2f3f5;
  --nav-text: #45505b;
  --bar-bg: #f2f3f5;
  --chip-bg: #eef2f8;
  --input-bg: #ffffff;
  --footer-bg: #f7f8f9;
  --timeline-dot: #ffffff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #6ea8fe;
  --primary-hover: #8ab8ff;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(168, 85, 247, .18));

  --bg: #0b1020;
  --bg-alt: #0e1428;
  --surface: #131a2e;
  --surface-alt: #18213a;
  --text: #e9edf6;
  --text-muted: #c3cbe0;
  --text-soft: #96a0bd;
  --border: #242e4a;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  --hero-overlay: rgba(11, 16, 32, .88);
  --nav-bg: #18213a;
  --nav-text: #c3cbe0;
  --bar-bg: #1c2743;
  --chip-bg: #18213a;
  --input-bg: #10162a;
  --footer-bg: #0e1428;
  --timeline-dot: #0b1020;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color .4s ease, color .4s ease;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# Scroll progress bar
--------------------------------------------------------------*/
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1004;
  background: var(--gradient);
  border-radius: 0 3px 3px 0;
  transition: width .1s linear;
}

/*--------------------------------------------------------------
# Skip link
--------------------------------------------------------------*/
.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 1005;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/*--------------------------------------------------------------
# Theme toggle
--------------------------------------------------------------*/
.theme-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .theme-toggle {
    top: 10px;
    right: 60px;
  }
}

.btn-back {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-back i {
  font-size: 16px;
}

.btn-back:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .btn-back {
    top: 12px;
    left: 12px;
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--gradient);
  width: 42px;
  height: 42px;
  border-radius: 50px;
  transition: all .4s;
  box-shadow: var(--shadow-sm);
}

.back-to-top i {
  font-size: 26px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--bg);
  transition: opacity .4s ease;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--border);
  border-top-color: var(--blue);
  border-bottom-color: var(--purple);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all .5s;
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 991px) {
  #header {
    width: 300px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    left: -300px;
  }
}

@media (min-width: 991px) {
  #main {
    margin-left: 100px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu {
  padding: 0;
  display: block;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: var(--nav-text);
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: .3s;
  font-size: 15px;
  border-radius: 50px;
  background: var(--nav-bg);
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: .3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: var(--nav-text);
}

@media (min-width: 992px) {

  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: #fff;
  background: var(--gradient);
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover>a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover>a span {
  display: block;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all .4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: var(--text-muted);
}

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

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background: var(--gradient);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  min-height: 620px;
  background: url("../img/background.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
  overflow: visible;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

#hero::before {
  content: "";
  background: var(--hero-overlay);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 660px;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient);
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  display: block;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-greeting {
  font-family: "Poppins", sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
}

#hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  color: var(--text-muted);
  margin: 18px 0 0 0;
  font-size: 24px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: var(--primary);
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 17px !important;
  font-family: "Open Sans", sans-serif !important;
  color: var(--text-soft) !important;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: all .3s ease;
  border: 0;
  cursor: pointer;
}

.btn-hero i {
  font-size: 18px;
}

.btn-hero.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-hero.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-hero.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-hero.btn-outline:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

#hero .social-links {
  margin-top: 30px;
}

#hero .social-links a {
  width: 46px;
  height: 46px;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-right: 12px;
  transition: all .3s;
  background: var(--surface);
}

#hero .social-links a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down a {
  display: inline-flex;
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-soft);
  border-radius: 20px;
  justify-content: center;
  padding-top: 10px;
  transition: all .3s;
}

.scroll-down a::before {
  content: "";
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--primary);
  animation: scrollWheel 1.6s infinite;
}

.scroll-down a:hover {
  border-color: var(--primary);
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 992px) {
  #hero {
    height: auto;
    min-height: 100vh;
    padding: 90px 0 90px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  #hero h1 {
    font-size: 38px;
    line-height: 42px;
  }

  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 26px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  #hero .social-links {
    justify-content: center;
  }

  #hero .social-links {
    display: flex;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--text);
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--border);
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient);
  border-radius: 4px;
  bottom: 0;
  left: calc(50% - 25px);
}

.section-title p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .about-img img {
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
}

.about .content p {
  color: var(--text-muted);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--text);
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--primary);
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/* Soft skills pills */
.soft-skills .soft-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.soft-skills .soft-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}

.soft-skills .soft-list li i {
  color: var(--primary);
  font-size: 18px;
  line-height: 0;
}

.soft-skills .soft-list li:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.soft-skills .soft-list li:hover i {
  color: #fff;
}

/*--------------------------------------------------------------
# Skills / progress bars
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  padding: 8px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .5px;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.skills .progress-bar-wrap {
  background: var(--bar-bg);
  border-radius: 50px;
  height: 12px;
}

.skills .progress-bar {
  width: 1px;
  height: 100%;
  border-radius: 50px;
  transition: width .9s ease;
  background: var(--gradient);
}

/* Key technologies chips */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-chips .chip {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all .3s ease;
}

.tech-chips .chip:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--text);
}

.resume .resume-item {
  padding: 0 0 26px 30px;
  margin-top: -2px;
  border-left: 2px solid var(--border);
  position: relative;
}

.resume .resume-item::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 4px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.resume .resume-item h4 {
  line-height: 22px;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: var(--primary);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 14px;
  background: var(--gradient-soft);
  padding: 6px 14px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
  border-radius: 50px;
  border: 1px solid var(--border);
}

.resume .resume-item p {
  color: var(--text-muted);
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
  color: var(--text-muted);
}

.resume .resume-item ul ul li {
  color: var(--text-soft);
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50px;
  left: -9px;
  top: 6px;
  background: var(--timeline-dot);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 5px var(--gradient-soft);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: var(--surface);
  border-radius: 50px;
  padding: 2px 15px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
  border-radius: 50px;
  transition: all .3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--gradient);
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: .3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--gradient);
}

.portfolio .portfolio-wrap img {
  transition: transform .5s ease;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.08);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: linear-gradient(135deg, rgba(5, 99, 187, .86), rgba(124, 58, 237, .86));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all ease-in-out .3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out .3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
  margin-top: 10px;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  margin: 0 4px;
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  transition: all .3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

.portfolio .portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.portfolio .portfolio-wrap.portfolio-card::before {
  display: none;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  height: 190px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 18px;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-shadow: none;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--gradient-soft);
  border-radius: 50px;
  white-space: nowrap;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 50px;
  transition: all .3s;
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-links a:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.portfolio .portfolio-wrap.portfolio-card .portfolio-card-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bar-bg);
  border: 1px dashed var(--border);
  border-radius: 50px;
  cursor: default;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
  background: var(--bg);
}

.portfolio-details .portfolio-details-slider img {
  width: 50%;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--surface);
  opacity: 1;
  border: 1px solid var(--primary);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-info ul a {
  word-break: break-all;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
}

.contact .info i {
  font-size: 20px;
  color: var(--primary);
  float: left;
  width: 44px;
  height: 44px;
  background: var(--gradient-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all .3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--gradient);
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: 10px;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 10px;
}

.contact .php-email-form .loading {
  display: none;
  background: var(--gradient-soft);
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  color: var(--text-muted);
}

.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 var(--purple);
  border-top-color: var(--border);
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--gradient-soft);
  background: var(--input-bg);
  color: var(--text);
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: var(--text-soft);
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: var(--gradient);
  border: 0;
  padding: 12px 36px;
  color: #fff;
  transition: all .4s;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.contact .php-email-form button[type=submit]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--footer-bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

#footer h3 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 12px 0;
  color: var(--text);
}

#footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 24px 0;
  color: var(--text-soft);
}

#footer .nav-links {
  margin-bottom: 24px;
}

#footer .nav-links a {
  color: var(--text-soft);
  margin: 0 12px;
  font-weight: 500;
  transition: color .3s;
}

#footer .nav-links a:hover {
  color: var(--primary);
}

#footer .social-links {
  margin: 0 0 24px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  line-height: 1;
  padding: 0;
  margin-right: 6px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}

#footer .social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#footer .copyright {
  margin: 0 0 5px 0;
  color: var(--text-soft);
}

#footer .copyright a {
  color: var(--primary);
  font-weight: 600;
}

#footer .credits {
  font-size: 13px;
  color: var(--text-soft);
}