/*
Template Name: Tunis - Personal Portfolio
Author: celtano
Author URI: http://themeforest.net/user/celtano
Description: Tunis - Personal Portfolio
Version: 1.0
*/

/*------------------------------------------------------------------
[Table of contents]
	+ General
	    - Miscellaneous
		- Light Body
		- Buttons
		- Page Title
	+ Header
		- Desktop Navigation
		- Mobile Navigation
	+ Pages
		- Homepage
		+ About
		    - Personal Info List
			- Box Stats
			- Resume
			- Skills
		+ Portfolio
		    - Grid
		    + Slideshow
                - Embedded Videos
                - Carousel
                - Navigation
        + Contact
            - Left Side
            - Contact Form
		+ Blog
            - Latest Posts
            - Pagination
	- Responsive Design Styles
-------------------------------------------------------------------*/

/* [ GENERAL ] */
/*================================================== */

/*** Miscellaneous ***/

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #111;
}

.poppins-font {
  font-family: 'Poppins', sans-serif;
}

.open-sans-font {
  font-family: 'Open Sans', sans-serif;
}

hr.separator {
  border-top: 1px solid #252525;
  margin: 70px auto 55px;
  max-width: 40%;
}

.ft-wt-600 {
  font-weight: 600;
}

.mb-30 {
  margin-bottom: 30px;
}

.no-transform {
  transform: none !important;
}

.preloader.off {
  pointer-events: none !important;
}

.revealator-within {
  transition-delay: 0s !important;
}

.custom-title {
  padding-bottom: 22px;
  font-size: 26px;
}

/*** Light Body ***/

body.light {
  color: #666;
  background-color: #fff;
}

body.home.light .home-details h1 span,
body.light .button .button-text {
  color: #666;
}

body.light .button:hover .button-text {
  color: #fff;
}

body.home.light .home-details h6 {
  color: #777;
}

body.light .preloader .black_wall {
  background-color: #eee;
}

body.light .preloader {
  background-color: #fff;
}

body.light .title-section h1 {
  color: #666;
}

body.light .title-bg {
  color: rgba(30, 37, 48, 0.07);
}

body.light.about .box-stats {
  border: 1px solid #ddd;
}

body.light.about .c100,
body.light.about .resume-box .time {
  background-color: #eee;
}

body.light.about .resume-box .time,
body.light.about .resume-box p {
  color: #666;
}

body.light.about .resume-box .place:before {
  background-color: #666;
}

body.light.about  .resume-box li:after {
  border-left: 1px solid #ddd;
}

body.light.about .c100 > span {
  color: #666;
}

body.light.about .c100:after {
  background-color: #fff;
}

body.light.portfolio .slideshow figure {
  background-color: #fff;
}

body.light.portfolio .slideshow ul > li:after {
  background: rgba(255,255,255,0.77);
}

body.light.portfolio .slideshow {
  background: rgba(0,0,0,0.7);
}

body.light.contact .contactform input[type=text],
body.light.contact .contactform input[type=email],
body.light.contact .contactform textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #666;
}

body.light.contact  ul.social li a {
  color: #666;
  background: #eee;
}

body.light.contact  ul.social li a:hover {
  color: #fff;
}

body.light.blog .post-content {
  background-color: #f2f2f2;
}

body.light.blog .post-content .entry-header h3 a {
  color: #666;
}

body.light.blog .page-link {
  color: #666;
  background-color: #eee;
  border: 1px solid #eee;
}

body.light.blog-post .meta {
  color: #888;
}

body.light.blog .page-item.active .page-link {
  color: #fff;
}

body.light hr.separator {
  border-top: 1px solid #ddd;
}

@media (min-width: 992px) {
  body.light .header ul.icon-menu li.icon-box {
    background-color: #eee;
  }

  body.light .header ul.icon-menu li.icon-box i {
    color: #666;
  }

  body.light .header ul.icon-menu li.icon-box.active,
  body.light .header ul.icon-menu li.icon-box:hover,
  body.light .header ul.icon-menu li.icon-box.active i,
  body.light .header ul.icon-menu li.icon-box:hover i {
    color: #fff;
  }
}

@media (max-width: 991px) {

  body.light .main-img-mobile {
    border: 4px solid #eee;
  }

  body.light #menuToggle {
    border: 1px solid #ddd;
  }

  body.light #menuToggle,
  body.light #menu {
    background: #eee;
  }

  body.light #menuToggle > span,
  body.light #menuToggle input:checked ~ span {
    background: #666;
  }

  body.light #menu li a {
    color: #666;
  }

  body.light #menu li:after {
    background: #ddd;
  }

  body.light.portfolio .slideshow nav {
    background: #eee;
    border-bottom: 1px solid #ddd;
  }

  body.light.portfolio .slideshow nav span img {
    display: none;
  }

  body.light.portfolio .slideshow nav span.nav-next {
    background-image: url("../img/projects/navigation/right-arrow.png");
    background-size: cover;
  }

  body.light.portfolio .slideshow nav span.nav-prev {
    background-image: url("../img/projects/navigation/left-arrow.png");
    background-size: cover;
  }

  body.light.portfolio .slideshow nav span.nav-close {
    background-image: url("../img/projects/navigation/close-button.png");
    background-size: cover;
  }

  body.light.portfolio .slideshow nav span.nav-next,
  body.light.portfolio .slideshow nav span.nav-prev {
    top: 51px;
  }

  body.light.portfolio .slideshow {
    background: #fff;
  }
}

@media (max-width: 576px) {
  body.light .title-section {
    background: transparent;
    border-bottom: none;
  }

  body.light #menuToggle {
    border: 0;
  }

  body.light.portfolio .slideshow nav span.nav-next,
  body.light.portfolio .slideshow nav span.nav-prev {
    top: 31px;
  }
}
/*** Buttons ***/
.button {
  overflow: hidden;
  display: inline-block;
  line-height: 1.4;
  border-radius: 35px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
  transition: 250ms all ease-in-out;
  text-transform: uppercase;
  text-decoration: none !important;
  position: relative;
  z-index: 1;
  padding: 16px 70px 16px 35px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: transparent;
  outline: none !important;
  max-width: 100%;
  touch-action: manipulation;
}

.button .button-text {
  position: relative;
  z-index: 2;
  color: #fff;
  transition: .3s ease-out all;
}

.button:before {
  z-index: -1;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateX(100%);
  transition: .3s ease-out all;
}

.button:hover .button-text {
  color: #ffffff;
}

.button:hover:before {
  transform: translateX(0);
}

.button-icon {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: 0;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  color: #ffffff;
  border-radius: 50%;
}

/*** Page Title ***/

.title-section {
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding: 80px 0;
}

.title-section h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.title-bg {
  font-size: clamp(40px, 9vw, 110px);
  left: 0;
  letter-spacing: clamp(4px, 1.2vw, 10px);
  line-height: 0.7;
  position: absolute;
  right: 0;
  top: 50%;
  text-transform: uppercase;
  font-weight: 800;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* [ HEADER ] */
/*================================================== */

/*** Desktop Navigation ***/

@media (min-width: 992px) {

  /*** Navigation ***/

  .header {
    position: fixed;
    right: 30px;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    height: calc(100vh - 200px);
    top: 100px;
    opacity: 1;
    transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
  }

  .header.hide-header {
    z-index: 0 !important;
    opacity: 0;
  }

  .header ul.icon-menu {
    margin: 0;
    padding: 0;
  }

  .header ul.icon-menu li.icon-box {
    width: 50px;
    height: 50px;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
    margin: 20px 0;
    border-radius: 50%;
    background: #2b2a2a;
    cursor: pointer;
    touch-action: manipulation;
  }

  .header ul.icon-menu li.icon-box:active {
    transform: scale(0.92);
  }

  .header ul.icon-menu li.icon-box i {
    color: #ddd;
    font-size: 19px;
    transition: color .15s ease;
  }

  .header ul.icon-menu li.icon-box.active,
  .header ul.icon-menu li.icon-box:hover,
  .header ul.icon-menu li.icon-box.active i,
  .header ul.icon-menu li.icon-box:hover i {
    color: #fff;
  }

  .header .icon-box h2 {
    font-size: 15px;
    font-weight: 500;
  }

  .header .icon-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
  }

  .header .icon-box i.fa {
    position: absolute;
    z-index: 2;
    pointer-events: none;
  }

  .header .icon-menu i {
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 35px;
    top: 15px;
  }

  .header .icon-box h2 {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    color: #fff;
    line-height: 50px;
    font-weight: 500;
    transition: all .2s ease;
    border-radius: 30px;
    text-transform: uppercase;
    padding: 0 25px 0 30px;
    height: 50px;
    pointer-events: auto;
  }

  .header ul.icon-menu li.icon-box:hover h2,
  .header .icon-box a:hover h2 {
    opacity: 1;
    right: 27px;
    margin: 0;
    text-align: center;
    border-radius: 30px 0 0 30px;
  }
}

/* [ Pages ] */
/*================================================== */

/*** Homepage ***/

section#home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.home .color-block {
  position: absolute;
  height: 200%;
  width: 100%;
  transform: rotate(-15deg);
  left: -83%;
  top: -50%;
  z-index: 0;
}

.home .bg {
  background-image: url(../img/hero-desktop.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: calc(100vh - 80px);
  z-index: 1;
  border-radius: 30px;
  left: 40px;
  top: 40px;
  box-shadow: 0 0 7px rgba(0,0,0,.9);
  position: absolute;
  width: calc(33.333333% - 40px);
}

.home .container-home {
  display: flex;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Page Section Separation */
.page-section {
  position: relative;
  padding: 40px 0 80px;
  border-top: 1px solid #222;
}

.page-section .title-section {
  padding: 40px 0 60px;
}

.home .home-details > div {
  max-width: 550px;
  margin: 0 auto;
}

.home .home-details h1 {
  font-size: 51px;
  line-height: 62px;
  font-weight: 700;
  margin: 18px 0 10px;
  position: relative;
  padding-left: 70px;
}

.home .home-details h1:before {
  content: '';
  position: absolute;
  left: 0;
  top: 29px;
  height: 4px;
  width: 40px;
  border-radius: 10px;
}

.home .home-details h1 span {
  color: #fff;
  display: block;
}

.home .home-details h6 {
  color: #eee;
  font-size: 22px;
  font-weight: 400;
  display: block;
}

.home .home-details p {
  margin: 15px 0 28px;
  font-size: 16px;
  line-height: 35px;
}

/*** About ***/

.about .main-content {
  padding-bottom: 20px;
}

/* Personal Info List */

.about .about-list li:not(:last-child) {
  padding-bottom: 20px;
}

.about .about-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}

.about .about-list .title {
  opacity: .8;
  text-transform: capitalize;
  white-space: nowrap;
}

.about .about-list .value {
  font-weight: 600;
}

.about .about-list .value a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Box Stats */

.about .box-stats {
  padding: 20px 30px 25px 40px;
  border-radius: 5px;
  border: 1px solid #252525;
}

.about .box-stats.with-margin {
  margin-bottom: 30px;
}

.about .box-stats h3 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 50px;
  font-weight: 700;
}

.about .box-stats h3:after {
  content: '+';
  position: absolute;
  right: -24px;
  font-size: 33px;
  font-weight: 300;
  top: 2px;
}

.about .box-stats p {
  padding-left: 45px;
}

.about .box-stats p:before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 30px;
  height: 1px;
  background: #777;
}

/* Resume */

.about .resume-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about .resume-box li {
  position: relative;
  padding: 0 20px 0 60px;
  margin: 0 0 50px;
}

.about .resume-box li:after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  bottom: 0;
  border-left: 1px solid #333;
}

.about .resume-box .icon {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0;
  right: 0;
  line-height: 40px;
  text-align: center;
  z-index: 1;
  border-radius: 50%;
  color: #fff;
  background-color: #252525;
}

.about .resume-box .time {
  color: #fff;
  font-size: 12px;
  padding: 1px 10px;
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 20px;
  font-weight: 600;
  background-color: #252525;
  opacity: .8;
}

.about .resume-box h5 {
  font-size: 18px;
  margin: 7px 0 10px;
}

.about .resume-box p {
  margin: 0;
  color: #eee;
  font-size: 14px;
}

.about .resume-box .place {
  opacity: .8;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-left: 26px;
}

.about .resume-box .place:before {
  position: absolute;
  content: '';
  width: 10px;
  height: 2px;
  background-color: #fff;
  left: 7px;
  top: 9px;
  opacity: .8;
}

/* Skills */

.about .c100 {
  float: none !important;
  margin: 0 auto;
  background-color: #252525;
}

.about .c100 > span {
  color: #fff;
}

.about .c100:after {
  background-color: #111;
}

/*** Portfolio ***/
.portfolio .main-content {
  padding-bottom: 60px;
  margin-top: -15px;
}

/* Grid */

.portfolio .grid-gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio .grid-gallery figure {
  margin: 0;
}

.portfolio .grid-gallery figure img {
  display: block;
  width: 100%;
  border-radius: 5px;
  transition: .3s;
}

.portfolio .grid-wrap {
  margin: 0 auto;
}

.portfolio .grid {
  margin: 0 auto;
}

.portfolio .grid li {
  width: 33.333333%;
  float: left;
  cursor: pointer;
  padding: 15px;
}

.portfolio .grid figure {
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border-radius: 5px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.portfolio .grid figure img {
  display: block;
  position: relative;
}

.portfolio .grid li a {
  overflow: hidden;
}

.portfolio .grid li figure div {
  position: absolute;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.portfolio .grid li figure div span {
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  font-size: 18px;
}

/* Slideshow */

.portfolio .slideshow {
  position: fixed;
  background: rgba(0,0,0,0.85);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1111;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
  transition: opacity 0.5s, visibility 0s 0.5s;
  text-align: left;
}

.portfolio .slideshow-open .slideshow {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

.portfolio .slideshow ul {
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform: translate3d(0,0,150px);
  transform: translate3d(0,0,150px);
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.portfolio .slideshow ul.animatable > li {
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.portfolio .slideshow-open .slideshow ul {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

.portfolio .slideshow ul > li {
  width: 660px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -280px 0 0 -330px;
  visibility: hidden;
}

.portfolio .slideshow ul > li.show {
  visibility: visible;
}

.portfolio .slideshow ul > li:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.7);
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  z-index: 111;
  border-radius: 10px;
}

.portfolio .slideshow ul > li.current:after {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.3s, visibility 0s 0.3s;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.portfolio .slideshow figure {
  width: 100%;
  height: 100%;
  background: #252525;
  padding: 30px;
  overflow: auto;
  border-radius: 10px;
}

.portfolio .slideshow a {
  text-decoration: underline;
}

.portfolio .slideshow figcaption {
  margin-bottom: 15px;
}

.portfolio .slideshow figcaption h3 {
  text-transform: uppercase;
  padding: 10px 0 20px;
  font-weight: 700;
  text-align: center;
  font-size: 33px;
}

/* Embedded Videos */

.portfolio .slideshow .videocontainer,
.portfolio .slideshow .responsive-video {
  max-width: 100%;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

.portfolio .slideshow .videocontainer {
  position: relative;
  padding-bottom: 56.20%;
  padding-top: 0;
  height: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 4px;
}

.portfolio .slideshow .videocontainer iframe,
.portfolio .slideshow .videocontainer object,
.portfolio .slideshow .videocontainer embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Carousel */

.portfolio .slideshow .carousel-indicators {
  bottom: 0;
  background: rgba(0,0,0,.4);
  padding: 10px 0;
  margin: 0;
}

.portfolio .slideshow .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 7px;
  background-color: #fff;
  opacity: 1;
}

/* Navigation */

.portfolio .slideshow nav span {
  position: fixed;
  z-index: 1000;
  text-align: center;
  cursor: pointer;
  padding: 200px 30px;
  color: #fff;
}

.portfolio .slideshow nav span.nav-prev,
.portfolio .slideshow nav span.nav-next {
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 41px;
  line-height: 58px;
}

.portfolio .slideshow nav span.nav-prev {
  left: 0;
}

.portfolio .slideshow nav span.nav-next {
  right: 0;
}

.portfolio .slideshow nav span.nav-close {
  top: 30px;
  right: 30px;
  padding: 0;
}

/*** Contact ***/
.contact .main-content {
  padding-bottom: 85px;
}
/* Left Side */

.contact .custom-span-contact {
  font-weight: 600;
  padding-left: 50px;
  line-height: 21px;
  padding-top: 5px;
}

.contact .custom-span-contact i {
  left: 0;
  top: 10px;
  font-size: 33px;
}

.contact .custom-span-contact i.fa-phone-square {
  font-size: 39px;
  top: 7px;
}

.contact .custom-span-contact span {
  text-transform: uppercase;
  opacity: .8;
  font-weight: 400;
}

.contact .custom-span-contact a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact ul.social {
  margin-left: -5px;
}

.contact ul.social li {
  display: inline-block;
}

.contact ul.social li a {
  display: inline-block;
  height: 40px;
  width: 40px;
  line-height: 42px;
  text-align: center;
  color: #fff;
  transition: .3s;
  font-size: 17px;
  margin: 0 6px;
  background: #2b2a2a;
  border-radius: 50%;
}
/* Form */
.contact .contactform input[type=text],
.contact .contactform input[type=email] {
  border: 1px solid #111;
  width: 100%;
  background: #252525;
  color: #fff;
  padding: 11px 26px;
  margin-bottom: 30px;
  border-radius: 30px;
  outline: none !important;
  transition: .3s;
}

.contact .contactform textarea {
  border: 1px solid #111;
  background: #252525;
  color: #fff;
  width: 100%;
  padding: 12px 26px;
  margin-bottom: 20px;
  height: 160px;
  overflow-y: auto;
  resize: vertical;
  border-radius: 30px;
  outline: none !important;
  transition: .3s;
}

.contact .contactform .form-message {
  margin: 24px 0;
}

.contact .contactform .output_message {
  display: block;
  color: #fff;
  height: 46px;
  line-height: 46px;
  border-radius: 30px;
}

.contact .contactform .output_message.success {
  background: #28a745;
}

.contact .contactform .output_message.success:before {
  font-family: FontAwesome;
  content: "\f14a";
  padding-right: 10px;
}

.contact .contactform .output_message.error {
  background: #dc3545;
}

.contact .contactform .output_message.error:before {
  font-family: FontAwesome;
  content: "\f071";
  padding-right: 10px;
}

/*** Blog ***/

.blog .main-content {
  padding-bottom: 85px;
}

/* Latest Posts */

.blog .post-container {
  display: block;
}

.blog .post-content {
  background-color: #252525;
  padding: 20px 25px 25px 25px;
  border-radius: 0 0 5px 5px;
}

.blog .post-content .entry-header h3 {
  line-height: 26px;
  cursor: pointer;
}

.blog .post-content .entry-header h3 a {
  text-decoration: none;
  transition: .5s;
}

.blog .post-thumb {
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}

.blog .post-thumb a {
  border-radius: 5px 5px 0 0;
}

.blog .post-container:hover img {
  transform: scale(1.2);
}

.blog .post-thumb a img {
  border-radius: 5px 5px 0 0;
  transition: .3s;
}

.blog .post-content .entry-content p {
  margin: 15px 0 5px;
}

.blog .post-content .entry-header h3 a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

/* pagination */

.blog .pagination {
  margin-bottom: 30px;
}

.blog .page-link {
  color: #fff;
  background-color: #252525;
  border: 1px solid #252525;
  padding: 0;
  margin: 0 10px;
  border-radius: 50% !important;
  width: 43px;
  height: 43px;
  line-height: 43px;
  text-align: center;
  transition: .3s;

}

.blog .page-link:focus,
.blog .page-link:active{
  box-shadow: none !important;
}

.blog .page-link:hover {
  color: #fff !important;
}

/* Blog Post */

.blog-post article {
  max-width: 920px;
  margin: 0 auto;
}

.blog-post article h1 {
  font-weight: 700;
  margin: 15px 0 20px;
  line-height: 1.35;
  color: #ffffff;
}

.blog-post article img.img-fluid {
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid #292e3a;
  width: 100%;
}

.blog-post .meta {
  color: #a0aec0;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-bottom: 8px;
}

.blog-post .meta span {
  padding-right: 0;
  display: inline-flex;
  align-items: center;
}

.blog-post .meta i {
  color: #ffb400;
  padding-right: 6px;
}

.blog-post .blog-excerpt {
  color: #cbd2dc;
  font-size: 15.5px;
  line-height: 1.85;
}

.blog-post .blog-excerpt h2,
.blog-post .blog-excerpt h3,
.blog-post .blog-excerpt h4 {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.blog-post .blog-excerpt h2 {
  font-size: 1.45rem;
  border-bottom: 1px solid #292e3a;
  padding-bottom: 10px;
}

.blog-post .blog-excerpt h3 {
  font-size: 1.25rem;
  color: #ffb400;
}

.blog-post .blog-excerpt h4 {
  font-size: 1.1rem;
}

.blog-post .blog-excerpt p {
  margin-bottom: 18px;
}

.blog-post .blog-excerpt ul,
.blog-post .blog-excerpt ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.blog-post .blog-excerpt li {
  margin-bottom: 8px;
}

/* Key Takeaways Card */
.key-takeaways-card {
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.08) 0%, rgba(18, 21, 28, 0.95) 100%);
  border: 1px solid rgba(255, 180, 0, 0.3);
  border-left: 4px solid #ffb400;
  border-radius: 8px;
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.key-takeaways-card h4 {
  color: #ffb400 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.key-takeaways-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #e5e7eb;
  font-size: 14.5px;
  line-height: 1.65;
}

.key-takeaways-card ul li:last-child {
  margin-bottom: 0;
}

.key-takeaways-card ul li:before {
  content: "\f058";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 1px;
  color: #ffb400;
  font-size: 14px;
}

/* Article Table of Contents */
.article-toc {
  background: #14171d;
  border: 1px solid #282f3c;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 26px 0;
}

.article-toc h5 {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc h5 i {
  color: #ffb400;
}

.article-toc ol {
  margin-bottom: 0;
  padding-left: 20px;
  color: #9ca3af;
}

.article-toc ol li {
  margin-bottom: 8px;
  font-size: 14px;
}

.article-toc ol li a {
  color: #cbd2dc;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.article-toc ol li a:hover {
  color: #ffb400;
  padding-left: 3px;
}

/* Code Window (macOS style) */
.code-window {
  background: #0d1016;
  border: 1px solid #262c37;
  border-radius: 8px;
  margin: 26px 0;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.code-window-header {
  background: #181c25;
  border-bottom: 1px solid #262c37;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
  color: #cbd2dc;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 500;
}

.code-title i {
  color: #ffb400;
  margin-right: 6px;
}

.code-lang {
  color: #8b949e;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #101319;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid #282f3c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  user-select: none;
  outline: none !important;
}

.code-lang:hover {
  background: rgba(255, 180, 0, 0.12);
  border-color: #ffb400;
  color: #ffb400;
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.2);
}

.code-lang.copied {
  background: rgba(0, 230, 118, 0.12) !important;
  border-color: #00e676 !important;
  color: #00e676 !important;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.25) !important;
}


.code-window pre {
  margin: 0;
  padding: 18px 20px;
  background: transparent !important;
  color: #e6edf3;
  font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  border: none !important;
}

.code-window code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  padding: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
  background: #13161c;
  border: 1px solid #272d38;
  border-radius: 8px;
  margin: 26px 0;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.comparison-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.comparison-table th {
  background: #1a1e27;
  color: #ffb400;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 14px 16px;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  border-bottom: 2px solid #2e3544;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #20242e;
  color: #cbd2dc;
  vertical-align: middle;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover td {
  background: rgba(255, 180, 0, 0.04);
}

/* Step Badges & Architecture Pipeline */
.step-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.step-card {
  background: #14171d;
  border: 1px solid #272d38;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: #ffb400;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffb400;
  color: #0b0c0f;
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.step-title {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Pro Callout Box */
.pro-callout {
  background: #15181f;
  border: 1px solid #282f3c;
  border-left: 4px solid #ffb400;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 22px 0;
}

.pro-callout.info {
  border-left-color: #00e5ff;
}

.pro-callout.warning {
  border-left-color: #ff5f56;
}

.pro-callout.success {
  border-left-color: #00e676;
}

.pro-callout-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-callout-text {
  color: #cbd2dc;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Author Bio Card */
.author-bio-card {
  background: linear-gradient(135deg, #15181e 0%, #0e1014 100%);
  border: 1px solid #29303d;
  border-radius: 10px;
  padding: 24px;
  margin: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .author-bio-card {
    flex-direction: row;
    align-items: center;
  }
}

.author-bio-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #1d212b;
  border: 2.5px solid #ffb400;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 18px rgba(255, 180, 0, 0.35);
}

.author-bio-content {
  flex: 1;
}

.author-bio-name {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.author-bio-title {
  color: #ffb400;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio-text {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.author-bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.25s;
}

.author-btn-primary {
  background: #ffb400;
  color: #0b0c0f !important;
}

.author-btn-primary:hover {
  background: #ffc125;
  box-shadow: 0 4px 14px rgba(255, 180, 0, 0.35);
}

.author-btn-secondary {
  background: #25d366;
  color: #ffffff !important;
}

.author-btn-secondary:hover {
  background: #20ba5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.author-btn-outline {
  background: #1c202a;
  color: #cbd2dc !important;
  border: 1px solid #333a48;
}

.author-btn-outline:hover {
  color: #ffffff !important;
  border-color: #ffb400;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #242933;
}

.related-posts-heading {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-posts-heading i {
  color: #ffb400;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.related-card {
  background: #14171d;
  border: 1px solid #252b36;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none !important;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: #ffb400;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.related-card-img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-bottom: 1px solid #252b36;
  background: #0e1014;
}

.related-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-category {
  color: #ffb400;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.related-card-title {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.related-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b949e;
  font-size: 11px;
}

.related-card-link {
  color: #ffb400;
  font-weight: 600;
}

/* [ RESPONSIVE DESIGN STYLES ] */

@media (min-width: 1351px) {
  .portfolio .container-portfolio .grid {
    text-align: left;
  }
}

@media (max-width: 1350px) and (min-width: 992px) {
  .container {
    max-width: calc(100% - 195px);
  }

  .portfolio .container-portfolio {
    max-width: calc(100% - 195px);
  }
}

@media (max-width: 1200px) {
  .home .home-details h1 {
    padding-left: 0;
  }
  .home .home-details h1:before {
    display: none;
  }
}

@media (max-width: 1200px) and (min-width: 992px) {
  .home .home-details h1 {
    font-size: 42px;
    line-height: 52px;
  }
}

@media (max-width: 1100px) and (min-width: 992px) {
  .home .home-details > div {
    max-width: 450px;
  }
}

@media (min-width: 1600px) {
  .home .home-details > div {
    max-width: 600px;
  }
}

@media (min-width: 992px) {
  .home .home-details-container {
    width: 100%;
    min-height: 100vh;
  }

  body.home {
    overflow-x: hidden;
  }
}

/* Mobile  Navigation */

@media (max-width: 991px) {

  body.home {
    padding: 25px;
  }

  body.home .main-container {
    padding: 30px 0 !important;
  }

  .home .home-details-container {
    margin: 0 auto;
  }

  .home .home-details {
    padding: 0;
  }

  .main-img-mobile {
    border-radius: 50%;
    width: 270px;
    height: 270px;
    border: 4px solid #252525;
    margin: 0 auto 25px;
    display: block;
    object-fit: cover;
  }

  .home .home-details h1 {
    font-size: 38px;
    line-height: 48px;
    margin: 29px 0 13px;
  }

  .home .home-details p {
    margin: 10px 0 23px;
    font-size: 15px;
    line-height: 30px;
  }

  #menuToggle {
    display: inline-block;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1111;
    user-select: none;
    padding: 19px 0 0 16px;
    width: 54px;
    height: 54px;
    border-radius: 5px;
    background: #252525;
  }

  #menuToggle input {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    top: 0;
    left: 0;
  }

  #menuToggle > span {
    display: flex;
    width: 23px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
  }

  #menuToggle > span:first-child {
    transform-origin: 0 0;
  }

  #menuToggle > span:nth-last-child(2) {
    transform-origin: 0 100%;
  }

  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(4px, 0);
    background: #fff;
  }

  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(2px, 4px);
  }

  #menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 60px;
    background-color: #252525;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #menuToggle input:checked ~ ul {
    transform: none;
  }

  #menu li {
    position: relative;
    padding-left: 30px;
  }

  #menu li:after {
    position: absolute;
    content: '';
    height: 1px;
    width: calc(100% - 60px);
    background: #333;
    left: 30px;
  }

  #menu li:last-child:after {
    display: none;
  }

  #menu li.active a span {
    font-weight: 600;
  }

  #menu li a {
    color: #fff;
    text-transform: uppercase;
    font-size: 26px;
    display: block;
    text-decoration: none;
    padding: 14px 0;
    position: relative;
    transition: color .15s ease;
  }

  #menu li a span {
    position: absolute;
    left: 50px;
    font-weight: 400;
  }

  .portfolio .grid li {
    width: 50%;
  }

  .portfolio .grid li figure div {
    display: none !important;
  }

  .portfolio .slideshow {
    background: #252525;
  }

  .portfolio .slideshow nav span {
    padding: 0;
  }

  .portfolio .slideshow ul > li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
  }

  .portfolio .slideshow ul > li:after {
    display: none;
  }

  .portfolio .slideshow figure {
    padding: 125px 30px 30px;
    border-radius: 0;
    max-width: 720px;
    margin: 0 auto;
  }

  .portfolio .slideshow nav span.nav-prev,
  .portfolio .slideshow nav span.nav-next {
    top: 35px;
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav span.nav-next {
    right: 30px;
  }

  .portfolio .slideshow nav span.nav-prev {
    left: 30px;
  }

  .portfolio .slideshow nav span.nav-prev img,
  .portfolio .slideshow nav span.nav-next img {
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav span:before {
    display: none;
  }

  .portfolio .slideshow nav span.nav-close {
    top: 35px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 32px;
    height: 32px;
    display: block;
    line-height: 0;
  }

  .portfolio .slideshow nav span.nav-close img {
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 102px;
    background: #252525;
    z-index: 1;
    border-bottom: 1px solid #333;
  }

  .contact .main-content {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .home .home-details p {
    font-size: 14px;
    line-height: 28px;
  }

  .contact .contactform input[type=text],
  .contact .contactform input[type=email],
  .contact .contactform textarea {
    font-size: 16px;
  }

  .page-section {
    padding: 30px 0 45px;
  }

  .page-section .title-section {
    padding: 25px 0 20px;
  }
}

@media (max-width: 576px) {

  body {
    font-size: 14px;
  }

  body.home {
    padding: 15px;
  }

  .title-section.revealator-delay1 {
    transform: none !important;
    opacity: 1 !important;
  }

  #menuToggle {
    right: 18px;
    top: 18px;
    padding: 15px 0 0 13px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  }

  #menuToggle input {
    width: 100%;
    height: 100%;
  }

  .container, .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .home #menuToggle {
    right: 18px;
    top: 18px;
  }

  #menu li {
    padding-left: 25px;
  }

  #menu li a {
    font-size: 18px;
  }

  #menu li:after {
    width: calc(100% - 50px);
    left: 25px;
  }

  #menu li a span {
    left: 35px;
  }

  .main-content {
    padding-top: 0;
    padding-bottom: 35px;
  }

  .main-content > .container {
    padding: 0 15px;
  }

  .main-img-mobile {
    width: min(220px, 60vw);
    height: min(220px, 60vw);
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
  }

  .home .home-details h1 {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.25;
    margin: 16px 0 12px;
  }

  .home .home-details h6 {
    font-size: 17px;
  }

  .page-section {
    padding: 25px 0 35px;
  }

  .title-section {
    padding: 24px 15px 16px;
    background: transparent;
    border-bottom: none;
    margin-bottom: 15px;
    position: relative;
    right: auto;
    left: auto;
    z-index: auto;
    top: auto;
    text-align: center;
  }

  .title-section h1 {
    font-size: clamp(24px, 6.5vw, 30px);
    line-height: 1.2;
    text-align: center;
  }

  .title-bg {
    display: none;
  }

  .custom-title {
    font-size: 21px;
  }

  .about .main-content {
    padding-bottom: 0;
  }

  .about .resume-box h5 {
    font-size: 17px;
  }

  .about .resume-box li {
    padding: 0 0 0 55px;
    margin-bottom: 35px;
  }

  .about .box-stats {
    padding: 15px 15px 18px 18px;
  }

  .about .c100 {
    transform: scale(.8);
  }

  .about .box-stats.with-margin {
    margin-bottom: 25px;
  }

  .about .box-stats h3 {
    font-size: 34px;
  }

  .about .box-stats p {
    padding-left: 0;
  }

  .about .box-stats p:before {
    display: none;
  }

  .portfolio .main-content {
    padding-bottom: 15px;
  }

  .portfolio .grid li {
    width: 100%;
  }

  .portfolio .main-content > .container {
    padding: 0 15px;
  }

  .portfolio .slideshow figure {
    padding: 85px 25px 25px;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio .slideshow figcaption h3 {
    font-size: 25px;
  }

  .portfolio .slideshow nav span.nav-prev,
  .portfolio .slideshow nav span.nav-next {
    top: 9px;
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-next {
    right: 20px;
  }

  .portfolio .slideshow nav span.nav-prev {
    left: 20px;
  }

  .portfolio .slideshow nav span.nav-prev img,
  .portfolio .slideshow nav span.nav-next img {
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-close {
    top: 21px;
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-close img {
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav {
    height: 62px;
  }

  .blog .main-content {
    padding-bottom: 40px;
  }

  /* Responsive Blog Cards */
  .blog .post-container {
    background: #252525;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  }

  .blog .post-thumb a img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
  }

  .blog .post-content {
    padding: 16px 18px 20px;
    border-radius: 0 0 12px 12px;
  }

  .blog .post-content .entry-header h3 {
    margin: 0 0 8px;
    line-height: 1.35;
  }

  .blog .post-content .entry-header h3 a {
    font-size: clamp(16px, 4.4vw, 18px);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog .post-content .entry-content p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #bbb;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-post article h1 {
    font-size: clamp(20px, 5.5vw, 25px);
  }

  .separator.mt-1 {
    margin-top: 35px !important;
  }
}



pre {
  position: relative;
  background: #181a1f !important;
  color: #d4d4d4 !important;
  padding: 16px 18px !important;
  border-radius: 0 0 10px 10px !important;
  border: none !important;
  margin: 0 !important;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  overflow-x: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #3e4756 #181a1f;
  -webkit-overflow-scrolling: touch;
}

/* Custom sleek 6px dark scrollbar (Replaces 17px Windows OS grey bar) */
pre::-webkit-scrollbar {
  height: 6px;
}

pre::-webkit-scrollbar-track {
  background: #14161a;
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb {
  background: #3e4756;
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: #ffb400;
}

pre code {
  color: inherit !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  padding: 0 !important;
  border: none !important;
  display: block;
}

/* Soft-wrapping on Mobile & Tablet: Code NEVER cuts off or traps swipe gestures */
@media (max-width: 768px) {
  pre {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow-x: hidden !important;
    padding: 14px 16px !important;
    font-size: 12.5px !important;
  }
}

/* ============================================================ */
/* RESPONSIVE BLOG SEARCH BAR                                   */
/* ============================================================ */

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #20242c;
  border: 1px solid #333a48;
  border-radius: 30px;
  padding: 4px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.blog-search-box:focus-within {
  border-color: #ffb400;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.25);
}

.blog-search-icon {
  color: #ffb400;
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
}

.blog-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  padding: 10px 0;
}

.blog-search-input::placeholder {
  color: #8a94a6;
  font-size: 14px;
}

.blog-search-clear {
  background: transparent;
  border: none;
  color: #8a94a6;
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  transition: color .2s ease;
  outline: none;
}

.blog-search-clear:hover {
  color: #ffb400;
}

.blog-search-count {
  font-size: 13.5px;
  color: #a0aec0;
  font-weight: 500;
}

.blog-search-count strong {
  color: #ffb400;
}

.blog-no-results {
  text-align: center;
  padding: 45px 20px;
  width: 100%;
}

.blog-no-results i {
  font-size: 40px;
  color: #555;
  margin-bottom: 14px;
  display: block;
}

.blog-no-results h4 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.blog-no-results p {
  color: #8e96a4;
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

.blog-no-results .btn-reset-search {
  background: #ffb400;
  color: #111;
  font-weight: 600;
  border: none;
  padding: 8px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13.5px;
  transition: opacity .2s ease, transform .15s ease;
}

.blog-no-results .btn-reset-search:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Light mode for Blog Search */
body.light .blog-search-box {
  background: #f4f5f8;
  border-color: #dbe0e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light .blog-search-input {
  color: #2d3748;
}

body.light .blog-search-input::placeholder {
  color: #a0aec0;
}

body.light .blog-no-results h4 {
  color: #2d3748;
}

body.light .blog-no-results p {
  color: #718096;
}

/* Site Brand Logo Header */
.site-brand {
  position: fixed;
  top: 24px;
  left: 30px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-brand:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.site-brand .brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

@media (max-width: 991px) {
  .site-brand {
    top: 24px;
    left: 20px;
    z-index: 1000;
  }
  .site-brand .brand-logo-img {
    height: 36px;
  }
}

@media (max-width: 576px) {
  .site-brand {
    top: 22px;
    left: 16px;
  }
  .site-brand .brand-logo-img {
    height: 32px;
  }
}

/* ==========================================================================
   MAIN PAGE HERO OVERLAP FIX (DESKTOP)
   ========================================================================== */

/* Prevent brand logo from overlapping the hero card on the main page desktop view */
@media (min-width: 992px) {
  body.home .site-brand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  body.home.scrolled-past-hero .site-brand {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .home .container-home {
    padding-top: max(65px, env(safe-area-inset-top));
  }
}

/* ==========================================================================
   BLOG POST TOP NAVIGATION & ATTACH/DETACH STICKY STYLES
   ========================================================================== */

/* Blog Top Navigation Wrapper & Sticky Float System */
.blog-top-nav-wrapper {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-bottom: 22px;
}

.blog-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  will-change: transform, opacity;
  width: 100%;
}

.blog-top-nav-bar:not(.is-sticky):hover {
  border-color: rgba(255, 180, 0, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

/* Attached to Header / Sticky State */
.blog-top-nav-bar.is-sticky {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(840px, calc(100% - 560px));
  z-index: 995;
  background: rgba(18, 20, 24, 0.94);
  border: 1px solid rgba(255, 180, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 180, 0, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 35px;
  padding: 8px 20px;
  animation: attachNavAnim 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes attachNavAnim {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Detaching state with smooth reverse animation */
.blog-top-nav-bar.is-detaching {
  animation: detachNavAnim 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes detachNavAnim {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
  }
}

.blog-top-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #ffb400;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.3);
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  touch-action: manipulation;
}

.blog-top-back-btn i {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.blog-top-back-btn:hover {
  background: #ffb400;
  color: #111 !important;
  border-color: #ffb400;
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(255, 180, 0, 0.35);
}

.blog-top-back-btn:hover i {
  transform: translateX(-3px);
}

.blog-breadcrumbs {
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  color: #8892b0;
  margin: 0;
  display: flex;
  align-items: center;
}

.blog-breadcrumbs a {
  color: #a0aec0;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-breadcrumbs a:hover {
  color: #ffb400;
}

.blog-breadcrumbs .crumb-separator {
  margin: 0 9px;
  color: #4a5568;
  font-size: 10px;
}

.blog-breadcrumbs .crumb-active {
  color: #ffb400;
  font-weight: 600;
}

/* Post Meta Author Link */
.blog-post .meta .post-author-link {
  color: #cbd2dc;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px dashed rgba(255, 180, 0, 0.45);
  padding-bottom: 1px;
}

.blog-post .meta .post-author-link:hover {
  color: #ffb400;
  border-bottom-color: #ffb400;
}

/* Author Bio Card Name Link */
.author-bio-name .bio-author-link {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.author-bio-name .bio-author-link:hover {
  color: #ffb400;
}

/* Light Mode Overrides */
body.light .blog-top-nav-bar {
  background: #f7f9fc;
  border-color: #e2e8f0;
}

body.light .blog-top-nav-bar:not(.is-sticky):hover {
  border-color: rgba(255, 180, 0, 0.4);
  background: #f0f4f8;
}

body.light .blog-top-nav-bar.is-sticky {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 180, 0, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 12px rgba(255, 180, 0, 0.2);
}

body.light .blog-top-back-btn {
  background: rgba(255, 180, 0, 0.12);
  border-color: rgba(255, 180, 0, 0.4);
  color: #d99100;
}

body.light .blog-top-back-btn:hover {
  background: #ffb400;
  color: #fff !important;
}

body.light .blog-breadcrumbs {
  color: #718096;
}

body.light .blog-breadcrumbs a {
  color: #4a5568;
}

body.light .blog-breadcrumbs a:hover {
  color: #d99100;
}

body.light .blog-breadcrumbs .crumb-separator {
  color: #cbd5e0;
}

body.light .blog-breadcrumbs .crumb-active {
  color: #d99100;
}

body.light.blog-post .meta .post-author-link {
  color: #2d3748;
  border-bottom-color: rgba(255, 180, 0, 0.6);
}

body.light.blog-post .meta .post-author-link:hover {
  color: #d99100;
}

/* Tablet view adjustments */
@media (max-width: 1200px) and (min-width: 992px) {
  .blog-top-nav-bar.is-sticky {
    width: min(720px, calc(100% - 460px));
    padding: 7px 16px;
  }
  .blog-top-nav-bar.is-sticky .blog-breadcrumbs {
    font-size: 12px;
  }
}

/* Mobile & Tablet below 992px */
@media (max-width: 991px) {
  .blog-top-nav-wrapper {
    min-height: 44px;
    margin-bottom: 18px;
  }

  .blog-top-nav-bar.is-sticky {
    top: 68px;
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
    transform: translateY(0);
    padding: 7px 14px;
    border-radius: 24px;
    animation: attachNavAnimMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes attachNavAnimMobile {
    0% {
      opacity: 0;
      transform: translateY(-16px) scale(0.97);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .blog-top-nav-bar.is-detaching {
    animation: detachNavAnimMobile 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes detachNavAnimMobile {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(-12px);
    }
  }
}

@media (max-width: 576px) {
  .blog-top-nav-wrapper {
    min-height: 42px;
    margin-bottom: 16px;
  }

  .blog-top-nav-bar {
    padding: 7px 12px;
    border-radius: 10px;
  }

  .blog-top-nav-bar.is-sticky {
    top: 62px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    padding: 6px 12px;
  }

  .blog-top-back-btn {
    font-size: 12.5px;
    padding: 6px 14px;
    width: 100%;
    justify-content: center;
  }

  .blog-top-nav-bar.is-sticky .blog-top-back-btn {
    font-size: 12.5px;
    padding: 6px 14px;
  }
}

/* Lag-Free Mobile Performance Optimizations */
.blog-top-back-btn,
.button,
#menuToggle,
.icon-box,
.site-brand,
.code-copy-btn,
.author-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#menu {
  will-change: transform;
}

/* ==========================================================================
   SITE FOOTER & EASY ACCESS SYSTEM
   ========================================================================== */

.site-footer {
  position: relative;
  background: #111317;
  border-top: 1px solid rgba(255, 180, 0, 0.25);
  padding: 55px 0 25px;
  color: #a0aec0;
  margin-top: 50px;
  z-index: 10;
  clear: both;
}

.site-footer .footer-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.site-footer .text-accent {
  color: #ffb400 !important;
}

.site-footer .footer-tagline {
  font-size: 13px;
  color: #ffb400;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.site-footer .footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #a0aec0;
  margin-bottom: 18px;
  max-width: 360px;
}

.site-footer .footer-social-links {
  display: flex;
  gap: 10px;
}

.site-footer .footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd2dc;
  font-size: 15px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.site-footer .footer-social-icon:hover {
  background: #ffb400;
  border-color: #ffb400;
  color: #111 !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 180, 0, 0.35);
}

.site-footer .footer-col-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.site-footer .footer-links li {
  margin-bottom: 10px;
}

.site-footer .footer-links a {
  color: #cbd2dc;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  touch-action: manipulation;
}

.site-footer .footer-links a i {
  color: #ffb400;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #ffb400;
  transform: translateX(4px);
}

.site-footer .footer-links a:hover i {
  transform: translateX(2px);
}

.site-footer .footer-contact-list li {
  margin-bottom: 12px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd2dc;
}

.site-footer .footer-contact-list i {
  font-size: 15px;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

.site-footer .footer-contact-list a {
  color: #cbd2dc;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.site-footer .footer-contact-list a:hover {
  color: #ffb400;
}

.site-footer .footer-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.site-footer .status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.site-footer .status-text {
  font-size: 12.5px;
  color: #10b981;
  font-weight: 600;
}

.site-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer .footer-copyright {
  font-size: 13px;
  color: #718096;
}

.site-footer .footer-copyright strong {
  color: #cbd2dc;
}

.site-footer .footer-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #ffb400;
  background: rgba(255, 180, 0, 0.12);
  border: 1px solid rgba(255, 180, 0, 0.4);
  text-decoration: none !important;
  transition: all 0.25s ease;
  touch-action: manipulation;
  cursor: pointer;
  position: relative;
  will-change: transform, opacity;
}

.site-footer .footer-back-to-top-btn:hover {
  background: #ffb400;
  color: #111 !important;
  border-color: #ffb400;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 180, 0, 0.4);
}

/* ==========================================================================
   ACTUAL PHYSICAL JUMP ANIMATIONS & MUTUAL EXCLUSIVITY SYSTEM
   ========================================================================== */

/* Actual physical jump animation with squash & stretch anticipation */
@keyframes actualJump {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(5px) scale(1.18, 0.8); /* Deep anticipation crouch */
  }
  38% {
    transform: translateY(-32px) scale(0.85, 1.25); /* High elastic leap */
    box-shadow: 0 14px 28px rgba(255, 180, 0, 0.5);
  }
  52% {
    transform: translateY(-36px) scale(0.95, 1.08); /* Apex hang */
  }
  72% {
    transform: translateY(4px) scale(1.14, 0.86); /* Landing compression */
    box-shadow: 0 2px 8px rgba(255, 180, 0, 0.2);
  }
  86% {
    transform: translateY(-10px) scale(0.96, 1.06); /* Secondary bounce */
  }
  100% {
    transform: translateY(0) scale(1, 1); /* Settle at rest */
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.3);
  }
}

.footer-back-to-top-btn.trigger-jump {
  animation: actualJump 0.88s cubic-bezier(0.2, 0.9, 0.3, 1.2) !important;
}

/* Rocket launch jump animation towards header when user clicks Back to Top */
@keyframes jumpToHeaderRocket {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  18% {
    transform: translateY(8px) scale(1.24, 0.75); /* Deep launch crouch */
  }
  50% {
    transform: translateY(-80px) scale(0.7, 1.4); /* Explosive upward leap */
    opacity: 0.9;
    box-shadow: 0 24px 45px rgba(255, 180, 0, 0.65);
  }
  100% {
    transform: translateY(-220px) scale(0.25, 1.8); /* Rockets all the way up to header */
    opacity: 0;
  }
}

.footer-back-to-top-btn.launching {
  animation: jumpToHeaderRocket 0.55s cubic-bezier(0.1, 0.85, 0.25, 1) forwards !important;
  pointer-events: none;
}

/* When reaching end of blog, sticky header jumps downward into footer and vanishes */
@keyframes jumpToFooterAnim {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  20% {
    transform: translateX(-50%) translateY(-14px) scale(0.95, 1.12); /* Jumps up first */
  }
  65% {
    transform: translateX(-50%) translateY(45px) scale(1.1, 0.88); /* Dives down towards footer */
    opacity: 0.5;
  }
  100% {
    transform: translateX(-50%) translateY(95px) scale(0.85, 0.75); /* Vanishes into footer */
    opacity: 0;
  }
}

.blog-top-nav-bar.jump-to-footer {
  animation: jumpToFooterAnim 0.38s cubic-bezier(0.2, 0.8, 0.25, 1) forwards !important;
  pointer-events: none;
}

@media (max-width: 991px) {
  @keyframes jumpToFooterAnimMobile {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    20% {
      transform: translateY(-12px) scale(0.95, 1.12);
    }
    65% {
      transform: translateY(40px) scale(1.1, 0.88);
      opacity: 0.5;
    }
    100% {
      transform: translateY(85px) scale(0.85, 0.75);
      opacity: 0;
    }
  }

  .blog-top-nav-bar.jump-to-footer {
    animation: jumpToFooterAnimMobile 0.38s cubic-bezier(0.2, 0.8, 0.25, 1) forwards !important;
  }
}

/* Mutual Exclusivity: Header and Footer disappear once at a time only */
body.footer-in-view .blog-top-nav-bar.is-sticky:not(.jump-to-footer) {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-30px) scale(0.92) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

@media (max-width: 991px) {
  body.footer-in-view .blog-top-nav-bar.is-sticky:not(.jump-to-footer) {
    transform: translateY(-25px) scale(0.92) !important;
  }
}

/* Hidden SEO Backlinks (indexed by crawlers, not visible visually) */
.seo-backlink {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Light Mode Overrides for Footer */
body.light .site-footer {
  background: #f7f9fc;
  border-top-color: rgba(255, 180, 0, 0.4);
  color: #4a5568;
}

body.light .site-footer .footer-brand-title {
  color: #1a202c;
}

body.light .site-footer .footer-desc {
  color: #718096;
}

body.light .site-footer .footer-social-icon {
  background: #edf2f7;
  border-color: #e2e8f0;
  color: #4a5568;
}

body.light .site-footer .footer-social-icon:hover {
  background: #ffb400;
  color: #fff !important;
}

body.light .site-footer .footer-col-title {
  color: #1a202c;
}

body.light .site-footer .footer-links a {
  color: #4a5568;
}

body.light .site-footer .footer-links a:hover {
  color: #d99100;
}

body.light .site-footer .footer-contact-list li {
  color: #4a5568;
}

body.light .site-footer .footer-contact-list a {
  color: #4a5568;
}

body.light .site-footer .footer-contact-list a:hover {
  color: #d99100;
}

body.light .site-footer .footer-bottom {
  border-top-color: #e2e8f0;
}

body.light .site-footer .footer-copyright {
  color: #a0aec0;
}

body.light .site-footer .footer-copyright strong {
  color: #4a5568;
}

body.light .site-footer .footer-back-to-top-btn {
  color: #d99100;
  background: rgba(255, 180, 0, 0.12);
  border-color: rgba(255, 180, 0, 0.4);
}

body.light .site-footer .footer-back-to-top-btn:hover {
  background: #ffb400;
  color: #fff !important;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 991px) {
  .site-footer {
    padding: 45px 0 20px;
    margin-top: 35px;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 35px 0 18px;
    margin-top: 30px;
    text-align: left;
  }

  .site-footer .footer-desc {
    max-width: 100%;
  }

  .site-footer .footer-social-links {
    margin-bottom: 25px;
  }

  .site-footer .footer-bottom {
    margin-top: 25px;
    padding-top: 18px;
    text-align: center;
  }

  .site-footer .footer-back-to-top-btn {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

/* ============================================================ */
/*  DESKTOP KEYBOARD NAVIGATION HUD & SHORTCUT HINTS            */
/* ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.header ul.icon-menu li.icon-box.active {
  box-shadow: 0 0 16px rgba(255, 180, 0, 0.55), 0 0 0 2px rgba(255, 180, 0, 0.3) !important;
}

.header .icon-box h2 .nav-key {
  display: inline-block;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  margin-left: 6px;
  line-height: 16px;
  vertical-align: middle;
  color: #ffb400;
  font-family: monospace;
  font-weight: 700;
}

/* Desktop Keyboard Navigation HUD */
.desktop-kbd-hud {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  background: rgba(18, 20, 26, 0.95);
  border: 1.5px solid #ffb400;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 180, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 10px 22px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.22s;
  font-family: 'Poppins', sans-serif;
}

.desktop-kbd-hud.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.desktop-kbd-hud .hud-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-kbd-hud .hud-icon {
  color: #ffb400;
  font-size: 17px;
}

.desktop-kbd-hud .hud-msg {
  color: #e6edf3;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.desktop-kbd-hud .hud-msg strong {
  color: #ffb400;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.desktop-kbd-hud .hud-badge {
  background: rgba(255, 180, 0, 0.15);
  border: 1px solid rgba(255, 180, 0, 0.4);
  color: #ffc233;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Open Sans', monospace;
}

.desktop-kbd-hud kbd {
  background: #252830;
  color: #ffb400;
  border: 1px solid #454c5c;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: monospace;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* Desktop Shortcut Hint Pill */
.desktop-shortcut-hint {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 1000;
  background: rgba(22, 25, 33, 0.88);
  border: 1px solid rgba(255, 180, 0, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  color: #a0aec0;
  font-size: 12px;
  font-family: 'Open Sans', sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  user-select: none;
}

.desktop-shortcut-hint:hover {
  background: rgba(26, 30, 40, 0.96);
  border-color: #ffb400;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 180, 0, 0.2);
  transform: translateY(-2px);
}

.desktop-shortcut-hint .hint-icon {
  color: #ffb400;
  font-size: 14px;
}

.desktop-shortcut-hint kbd {
  background: #181a20;
  color: #ffb400;
  border: 1px solid #3c4352;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-family: monospace;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  margin: 0 1px;
}

/* ───────────────────────────────────────────────────────────────
   PHYSICAL JUMP ANIMATIONS — Footer Back-to-Top button
   ─────────────────────────────────────────────────────────────── */

/* Step 1: Idle bounce when footer is reached */
@keyframes actualJump {
  0%   { transform: translateY(0) scaleX(1) scaleY(1); }
  6%   { transform: translateY(3px) scaleX(1.18) scaleY(0.82); }   /* anticipation squash */
  14%  { transform: translateY(-38px) scaleX(0.82) scaleY(1.22); } /* leap up */
  28%  { transform: translateY(-46px) scaleX(0.88) scaleY(1.14); } /* apex hang */
  50%  { transform: translateY(-18px) scaleX(0.94) scaleY(1.06); } /* mid-fall */
  68%  { transform: translateY(0) scaleX(1.14) scaleY(0.86); }     /* impact squash */
  78%  { transform: translateY(-14px) scaleX(0.96) scaleY(1.04); } /* rebound */
  88%  { transform: translateY(0) scaleX(1.05) scaleY(0.96); }     /* settle */
  94%  { transform: translateY(-4px) scaleX(1) scaleY(1); }
  100% { transform: translateY(0) scaleX(1) scaleY(1); }
}

/* Step 2: Rocket launch toward header on click */
@keyframes jumpToHeaderRocket {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  18%  { transform: translateY(6px) scale(1.1); opacity: 1; }      /* crouch */
  100% { transform: translateY(-110vh) scale(0.6); opacity: 0; }   /* rocket to top */
}

/* Blog sticky nav dives down into footer */
@keyframes jumpToFooterAnim {
  0%   { transform: translateY(0); opacity: 1; }
  15%  { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(120px); opacity: 0; }
}

@media (max-width: 767px) {
  @keyframes jumpToFooterAnim {
    0%   { transform: translateY(0); opacity: 1; }
    15%  { transform: translateY(-6px); opacity: 1; }
    100% { transform: translateY(90px); opacity: 0; }
  }
}

/* ── Footer Back-to-Top Button Base Styles ─────────────────────── */
.footer-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: transparent;
  border: 2px solid #ffb400;
  border-radius: 30px;
  color: #ffb400;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transform-origin: center bottom;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  will-change: transform;
}

.footer-back-to-top-btn:hover {
  background: #ffb400;
  color: #111215;
  box-shadow: 0 6px 22px rgba(255, 180, 0, 0.38);
  text-decoration: none;
  transform: translateY(-3px);
}

.footer-back-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Trigger the physical idle jump when footer enters viewport */
.footer-back-to-top-btn.trigger-jump {
  animation: actualJump 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Rocket launch animation on click */
.footer-back-to-top-btn.launching {
  animation: jumpToHeaderRocket 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  pointer-events: none;
}

/* Blog sticky nav jump-to-footer */
.blog-top-nav-bar.jump-to-footer {
  animation: jumpToFooterAnim 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  pointer-events: none;
}

/* ── Mutual Exclusivity: header hides when footer is visible ──── */
body.footer-in-view .header ul.icon-menu {
  transform: translateX(110px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

body.footer-in-view #desktopShortcutHint {
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Smooth re-entry when scrolling back up */
.header ul.icon-menu {
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

#desktopShortcutHint {
  transition: all 0.25s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Mobile: hide bottom-row buttons when footer visible */
@media (max-width: 991px) {
  body.footer-in-view .header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .header {
    transition: opacity 0.3s ease;
  }
}

/* ── Hidden SEO Backlink (visible only to crawlers) ──────────── */
.seo-backlink {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

