/*
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;
    height: 100%;
}

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;
    height: 100%;
    width: 100%;
    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;
}

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

/*** Light Body ***/

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

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

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

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

body.light #preloader:before,
body.light #preloader:after {
    background-color: #eee;
}

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

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

body.light .about .box-stats {
    border: 1px solid #ddd;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, opacity;
    cursor: pointer;
}

body.light .about .box-stats:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.light .about .box-stats:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

body.light .portfolio .slideshow figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

body.light .blog .post-container:hover .post-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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;
    }

    body.light .header ul.icon-menu li.icon-box:hover {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: rgba(238, 238, 238, 0.95);
    }

    body.light .header ul.icon-menu li.icon-box:active {
        transform: scale(0.98) translateY(1px);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.light .header ul.icon-menu li.icon-box:focus {
        outline: none;
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 991px) {
    body.light .main-img-mobile {
        border: 4px solid #eee;
    }

    body.light #inputmobile .trigger-mobile,
    body.light #mobile-nav {
        background: #eee;
    }

    body.light #inputmobile .trigger-mobile:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: rgba(238, 238, 238, 0.95);
    }

    body.light #inputmobile .trigger-mobile:active {
        transform: scale(0.98);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.light #inputmobile .trigger-mobile:focus {
        outline: none;
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    }

    body.light #inputmobile .trigger-mobile > span {
        background: #666;
    }

    body.light #mobile-nav li a {
        color: #666;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.light #mobile-nav li:hover a {
        color: #333;
    }

    body.light #mobile-nav li:hover a i {
        transform: scale(1.1);
        color: #ffc107;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-nav li a i:active {
        transform: scale(0.95);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Enhanced mobile navigation interactions */
    #mobile-nav li {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }

    #mobile-nav li:hover {
        transform: translateX(3px);
    }

    #mobile-nav li:active {
        transform: translateX(1px) scale(0.98);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.light #mobile-nav 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/navigation/right-arrow.png");
        background-size: cover;
    }

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

    body.light .portfolio .slideshow nav span.nav-close {
        background-image: url("../img/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: #eee;
        border-bottom: 1px solid #ddd;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }

    body.light .title-section:hover {
        transform: translateY(-2px);
    }

    body.light #inputmobile {
        border: 0;
    }

    body.light .portfolio .slideshow nav span.nav-next,
    body.light .portfolio .slideshow nav span.nav-prev {
        top: 31px;
    }
}
/*** Preloader ***/

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 99999;
    display: flex;
    pointer-events: none;
}

#preloader:before,
#preloader:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    background-color: #222;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

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

#preloader .line {
    margin: auto;
    width: 3px;
    border-radius: 4px;
    height: 250px;
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.8s ease 0s;
    -o-transition: all 0.8s ease 0s;
    transition: all 0.8s ease 0s;
}

.line:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-animation: animateline 1000ms ease-in-out 0s forwards;
    -o-animation: animateline 1000ms ease-in-out 0s forwards;
    animation: animateline 1000ms ease-in-out 0s forwards;
}

.line:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: transparent;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-animation: animatebgline 1200ms linear 0s infinite;
    -o-animation: animatebgline 1200ms linear 0s infinite;
    animation: animatebgline 1200ms linear 0s infinite;
    animation-delay: 2000ms;
}

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

    100% {
        height: 100%;
    }
}

@keyframes animatebgline {
    0% {
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        -webkit-transform: translateY(200%);
        -ms-transform: translateY(200%);
        -o-transform: translateY(200%);
        transform: translateY(200%);
    }
}

.preloaded .line:after {
    opacity: 0;
}

.preloaded .line {
    opacity: 0;
    height: 100% !important;
}

.preloaded:before,
.preloaded:after {
    -webkit-animation: finishanimation 500ms ease-in-out 500ms forwards;
    -o-animation: finishanimation 500ms ease-in-out 500ms forwards;
    animation: finishanimation 500ms ease-in-out 500ms forwards;
}

@keyframes finishanimation {
    0% {
        width: 50%;
    }

    100% {
        width: 0;
    }
}
/*** 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;
}

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

.button:before {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(100%);
    transition: 0.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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.title-section:hover {
    transform: translateY(-2px);
}

.title-section h2 {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.title-bg {
    font-size: 110px;
    left: 0;
    letter-spacing: 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);
    z-index: -1;
}

/* [ 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;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 20px 0;
        border-radius: 50%;
        background: #2b2a2a;
        cursor: pointer;
        will-change: transform, box-shadow, background;
    }

    .header ul.icon-menu li.icon-box i {
        color: #ddd;
        font-size: 19px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, color;
    }

    .header ul.icon-menu li.icon-box:hover i {
        transform: scale(1.1);
    }

    .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 ul.icon-menu li.icon-box:hover {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        background: rgba(43, 42, 42, 0.95);
    }

    .header ul.icon-menu li.icon-box:active {
        transform: scale(0.98) translateY(1px);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header ul.icon-menu li.icon-box:focus {
        outline: none;
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

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

    .header .icon-box div {
        display: block;
        padding: 0;
        width: 50px;
        height: 50px;
    }

    .header .icon-box i.fa {
        position: absolute;
        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 0.3s;
        border-radius: 30px;
        text-transform: uppercase;
        padding: 0 25px 0 30px;
        height: 50px;
    }

    .header .icon-box div:hover h2 {
        opacity: 1;
        right: 27px;
        margin: 0;
        text-align: center;
        border-radius: 30px 0 0 30px;
        animation: navTextSlide 0.3s ease-out forwards;
    }

    /* Enhanced Navigation Accessibility */
    .header ul.icon-menu li.icon-box:focus-visible {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    }

    .header ul.icon-menu li.icon-box:focus-visible i {
        transform: scale(1.1);
    }

    /* Smooth transitions for all interactive states */
    .header ul.icon-menu li.icon-box,
    .header ul.icon-menu li.icon-box i,
    .header .icon-box h2 {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .header ul.icon-menu li.icon-box,
        .header ul.icon-menu li.icon-box i,
        .header .icon-box h2 {
            transition: none;
            animation: none;
        }

        .header ul.icon-menu li.icon-box:hover,
        .header ul.icon-menu li.icon-box:active,
        .header ul.icon-menu li.icon-box:focus {
            transform: none;
        }
    }
}

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

/*** Homepage ***/

.home {
    height: 100vh;
}

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

.home-details-container > img {
    height: calc(100vh - 80px);
    z-index: 111;
    border-radius: 30px;
    left: 40px;
    top: auto;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.9);
    object-fit: cover;
    padding: 0;
}

.home .container-home {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.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 .title {
    opacity: 0.8;
    text-transform: capitalize;
}

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

/* 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 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, opacity;
    cursor: pointer;
}

.about .box-stats:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about .box-stats:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about .box-stats h3 {
    position: relative;
    display: inline-block;
    margin: 0;
    font-size: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    cursor: pointer;
}

.about .resume-box li:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.about .resume-box li:active {
    transform: translateX(2px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.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: 0.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: 0.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: 0.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: 0.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: 80vw;
    max-width: 900px;
    min-width: 600px;
    height: 80vh;
    max-height: 700px;
    min-height: 500px;
    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-y: auto;
    border-radius: 10px;
    display: block;
    /* Hide scrollbar by default */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Better scroll performance */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.portfolio .slideshow figure::-webkit-scrollbar {
    display: none;
}

/* Show scrollbar only when hovering or scrolling */
.portfolio .slideshow figure:hover::-webkit-scrollbar,
.portfolio .slideshow figure:focus::-webkit-scrollbar,
.portfolio .slideshow figure.hovering::-webkit-scrollbar,
.portfolio .slideshow figure.scrolling::-webkit-scrollbar {
    display: block;
    width: 8px;
}

.portfolio .slideshow figure:hover::-webkit-scrollbar-track,
.portfolio .slideshow figure:focus::-webkit-scrollbar-track,
.portfolio .slideshow figure.hovering::-webkit-scrollbar-track,
.portfolio .slideshow figure.scrolling::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.portfolio .slideshow figure:hover::-webkit-scrollbar-thumb,
.portfolio .slideshow figure:focus::-webkit-scrollbar-thumb,
.portfolio .slideshow figure.hovering::-webkit-scrollbar-thumb,
.portfolio .slideshow figure.scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.portfolio .slideshow figure:hover::-webkit-scrollbar-thumb:hover,
.portfolio .slideshow figure:focus::-webkit-scrollbar-thumb:hover,
.portfolio .slideshow figure.hovering::-webkit-scrollbar-thumb:hover,
.portfolio .slideshow figure.scrolling::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

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

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

.portfolio .slideshow .project-details {
    margin-bottom: 20px;
}

.portfolio .slideshow .project-details > div {
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio .slideshow .project-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.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.2%;
    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, 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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    cursor: pointer;
}

.contact .custom-span-contact:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.contact .custom-span-contact:active {
    transform: translateY(-1px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.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: 0.8;
    font-weight: 400;
}

.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: 0.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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, border-color;
}

.contact .contactform input[type="text"]:focus,
.contact .contactform input[type="email"]:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.contact .contactform input[type="text"]:hover,
.contact .contactform input[type="email"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.contact .contactform textarea {
    border: 1px solid #111;
    background: #252525;
    color: #fff;
    width: 100%;
    padding: 12px 26px;
    margin-bottom: 20px;
    height: 160px;
    overflow: hidden;
    border-radius: 30px;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, border-color;
}

.contact .contactform textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.contact .contactform textarea:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.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;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow, opacity;
    cursor: pointer;
}

.blog .post-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog .post-container:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog .post-content {
    background-color: #252525;
    padding: 20px 25px 25px 25px;
    border-radius: 0 0 5px 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.blog .post-container:hover .post-content {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.blog .post-content .entry-header h3 a {
    text-decoration: none;
    transition: 0.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: 0.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: 0.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: 700px;
    margin: 0 auto;
}

.blog-post article h1 {
    font-weight: 600;
    margin: 13px 0 20px;
}

body.blog-post article img {
    border-radius: 5px;
    margin-bottom: 20px;
}

.blog-post .meta {
    color: #eee;
    font-size: 13px;
}

.blog-post .meta span {
    padding-right: 15px;
}

.blog-post .meta i {
    padding-right: 3px;
}

/* [ 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%;
        height: 100vh;
    }

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

/* Mobile  Navigation */

@media (max-width: 991px) {
    .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;
    }

    .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;
    }

    #inputmobile .trigger-mobile {
        display: inline-block;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 11;
        user-select: none;
        padding: 19px 0 0 16px;
        width: 54px;
        height: 54px;
        border-radius: 5px;
        background: #252525;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, box-shadow, background;
        cursor: pointer;
    }

    #inputmobile .trigger-mobile:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        background: rgba(37, 37, 37, 0.95);
    }

    #inputmobile .trigger-mobile:active {
        transform: scale(0.98);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #inputmobile .trigger-mobile:focus {
        outline: none;
        transform: scale(1.03);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

    #inputmobile .trigger-mobile.hide-trigger {
        z-index: -1;
    }

    #inputmobile .trigger-mobile 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),
            background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    }

    #inputmobile .trigger-mobile span:first-child {
        transform-origin: 0 0;
    }

    #inputmobile .trigger-mobile span:nth-last-child(2) {
        transform-origin: 0 100%;
    }

    #inputmobile .trigger-mobile.show-menu span {
        opacity: 1;
        transform: rotate(45deg) translate(2px, -2px);
        background: #fff;
    }

    #inputmobile .trigger-mobile.show-menu span:nth-last-child(2) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #inputmobile .trigger-mobile.show-menu span:nth-last-child(1) {
        transform: rotate(-45deg) translate(1px, -1px);
    }

    #mobile-nav {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        z-index: 1;
        padding-top: 60px;
        background-color: #252525;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0 0;
        transform: translate(-100%, 0);
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        will-change: transform;
    }

    #mobile-nav.show-menu {
        transform: translate(0, 0);
        animation: mobileNavSlide 0.5s cubic-bezier(0.77, 0.2, 0.05, 1) forwards;
    }

    #inputmobile ul.hide-list {
        transform: none;
    }

    #mobile-nav li {
        position: relative;
        padding-left: 30px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
        animation: mobileNavSlide 0.3s ease-out forwards;
        animation-delay: calc(var(--item-index, 0) * 0.1s);
    }

    #mobile-nav li:nth-child(1) {
        --item-index: 1;
    }
    #mobile-nav li:nth-child(2) {
        --item-index: 2;
    }
    #mobile-nav li:nth-child(3) {
        --item-index: 3;
    }
    #mobile-nav li:nth-child(4) {
        --item-index: 4;
    }
    #mobile-nav li:nth-child(5) {
        --item-index: 5;
    }

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

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

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

    #mobile-nav li a {
        color: #fff;
        text-transform: uppercase;
        transition-delay: 2s;
        font-size: 26px;
        display: block;
        text-decoration: none;
        padding: 14px 0;
        position: relative;
    }

    #mobile-nav li a span {
        position: absolute;
        left: 50px;
        font-weight: 400;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-nav li a i {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    #mobile-nav li:hover a i {
        transform: scale(1.1);
        color: #ffc107;
    }

    .mobile-nav-element {
        font-size: 26px;
        text-transform: uppercase;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        will-change: transform, opacity;
    }

    .mobile-nav-element > div {
        padding: 14px 0;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-element > div span {
        position: absolute;
        left: 50px;
        font-weight: 400;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-element.active > div span {
        font-weight: 500;
    }

    .mobile-nav-element:hover {
        transform: translateX(5px);
        opacity: 0.9;
    }

    .mobile-nav-element:active {
        transform: translateX(2px) scale(0.98);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-nav-element:focus {
        outline: none;
        transform: translateX(3px);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }

    .mobile-nav-element:focus-visible {
        outline: 2px solid #ffc107;
        outline-offset: 2px;
        transform: translateX(3px);
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    }

    /* Reduced motion support for mobile */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav-element,
        .mobile-nav-element > div,
        .mobile-nav-element > div span {
            transition: none;
            animation: none;
        }

        .mobile-nav-element:hover,
        .mobile-nav-element:active,
        .mobile-nav-element:focus {
            transform: none;
        }
    }

    .portfolio .grid li {
        width: 50%;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, box-shadow, opacity;
    }

    .portfolio .grid li:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .portfolio .grid li:active {
        transform: translateY(-4px) scale(0.98);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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: 767px) {
    .home .home-details p {
        font-size: 14px;
        line-height: 28px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .js .page#home {
        padding: 0 25px;
    }
    #inputmobile .trigger-mobile {
        width: 49px;
        height: 49px;
        right: 10px;
        top: 4px;
        padding: 19px 0 0 13px;
    }
    .home-page #inputmobile .trigger-mobile {
        right: 25px;
        top: 25px;
        padding: 17px 0 0 13px;
    }

    #mobile-nav li {
        padding-left: 25px;
    }

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

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

    #mobile-nav li a span {
        left: 35px;
    }
    .mobile-nav-element {
        font-size: 18px;
    }

    .mobile-nav-element > div {
        padding: 14px 0;
        position: relative;
    }

    .mobile-nav-element > div span {
        left: 35px;
    }

    .main-content {
        padding-top: 85px;
    }

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

    .main-img-mobile {
        width: 230px;
        height: 230px;
    }

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

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

    .title-section {
        padding: 16px 25px 14px;
        background: #252525;
        border-bottom: 1px solid #333;
        margin-bottom: 36px;
        position: fixed;
        right: 0;
        left: 0;
        z-index: 11;
        top: 0;
    }

    .title-section h2 {
        font-size: 26px;
    }

    .title-bg {
        display: none;
    }

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

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

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

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

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

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

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

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

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

    .portfolio .main-content {
        padding-bottom: 10px;
        margin-top: -12px;
    }

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

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

    .portfolio .slideshow figure {
        padding: 85px 20px 20px;
    }

    .portfolio .slideshow figure img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 6px;
        margin: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .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: 55px;
    }

    .blog-post article h1 {
        font-size: 25px;
    }

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

/* ----------------------------------------------------------- */
/*  SIMPLE PORTFOLIO POPUP MODAL
/* ----------------------------------------------------------- */

.portfolio-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.portfolio-popup-modal {
    background: #252525;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    position: relative;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.portfolio-popup-overlay.active .portfolio-popup-modal {
    transform: scale(1);
}

.portfolio-popup-header {
    background: #333;
    padding: 20px 30px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-popup-title {
    color: #ffd700;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.portfolio-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.portfolio-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-popup-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.portfolio-popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.portfolio-popup-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.portfolio-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.portfolio-detail-icon {
    color: #ffd700;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.portfolio-detail-text {
    color: #fff;
    font-size: 14px;
}

.portfolio-detail-value {
    color: #ccc;
    font-weight: 500;
}

.portfolio-popup-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.portfolio-popup-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.portfolio-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* .portfolio-popup-link:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.portfolio-popup-link.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-popup-link.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
} */

/* Hide scrollbar for popup content */
.portfolio-popup-content::-webkit-scrollbar {
    width: 8px;
}

.portfolio-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.portfolio-popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.portfolio-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Portfolio Grid Items */
.portfolio-grid {
    margin-top: 50px;
}

/* Portfolio item base styles */
.portfolio-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    position: relative;
    /* Original animation properties */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    will-change: transform, box-shadow, opacity;
}

/* Animation classes for original theme compatibility */
.portfolio-item.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-item.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.portfolio-item.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation for grid items */
.portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}
.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}
.portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}
.portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}
.portfolio-item:nth-child(5) {
    animation-delay: 0.5s;
}
.portfolio-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Original scaleIn animation from theme */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced scale-in animation for better effect */
@keyframes portfolioItemEntry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9) rotateX(10deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.8);
    /* Ensure overlay is always visible on hover */
    pointer-events: auto;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
    /* Enhanced visibility */
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.92) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Ensure overlay is visible even when not hovering (for better button visibility) */
.portfolio-item:focus-within .portfolio-overlay,
.portfolio-item:active .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
}

.portfolio-info {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
    /* Ensure text is always readable */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
    position: relative;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Enhanced text visibility */
.portfolio-info h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
    /* Ensure title is always visible */
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.portfolio-info p {
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.95;
    transition: all 0.3s ease;
    /* Ensure subtitle is always visible */
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Remove duplicate - already defined above */

.portfolio-info p {
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info p {
    opacity: 1;
    transform: scale(1.02);
}

/* Portfolio Button - Using Home Page Button Styling */
.portfolio-btn {
    /* Base button styles from home page */
    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;
    border: 1px solid #ffd700;

    /* Enhanced visibility */
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.portfolio-btn:before {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffd700;
    transform: translateX(100%);
    transition: 0.3s ease-out all;
}

.portfolio-btn:hover .button-text {
    color: #000;
}

.portfolio-btn:hover:before {
    transform: translateX(0);
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    border-color: #fff;
}

.portfolio-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Button icon for consistency */
.portfolio-btn::after {
    content: "→";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: inherit;
    transition: all 0.3s ease;
}

.portfolio-btn:hover::after {
    transform: translateY(-50%) translateX(3px);
    color: #000;
}

/* Enhanced button states for better visibility */
.portfolio-item:hover .portfolio-btn {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #fff;
    color: #fff;
}

.portfolio-item:hover .portfolio-btn:before {
    background-color: #fff;
}

/* Focus states for accessibility */
.portfolio-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

/* Mobile responsive button */
@media (max-width: 768px) {
    .portfolio-btn {
        padding: 14px 50px 14px 25px;
        font-size: 14px;
    }

    .portfolio-btn::after {
        right: 20px;
        font-size: 16px;
    }
}

/* Ensure button is always visible and clickable */
.portfolio-btn {
    /* Force button to be visible */
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure proper positioning */
    position: relative;
    z-index: 20;
    /* Enhanced clickability */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Button hover states for better visibility */
.portfolio-btn:hover,
.portfolio-btn:focus,
.portfolio-btn:active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Ensure button text is always readable */
.portfolio-btn .button-text {
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Grid hover effects */
.portfolio-grid:hover .portfolio-item:not(:hover) {
    transform: scale(0.95);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Pulse animation for portfolio items */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Floating animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Shine effect */
@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.portfolio-item {
    animation: fadeInUp 0.6s ease forwards, float 4s ease-in-out infinite;
}

.portfolio-item:hover {
    animation: none;
}

/* Enhanced grid effects */
.portfolio-grid {
    perspective: 1000px;
}

.portfolio-item {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D tilt effect on hover */
.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Image parallax effect */
.portfolio-image {
    transform-style: preserve-3d;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15) rotate(2deg) translateZ(20px);
    filter: brightness(1.1) contrast(1.1);
}

/* Overlay 3D effect */
.portfolio-overlay {
    transform-style: preserve-3d;
    transform: scale(0.8) translateZ(10px);
}

.portfolio-item:hover .portfolio-overlay {
    transform: scale(1) translateZ(20px);
}

/* Text 3D effect */
.portfolio-info {
    transform-style: preserve-3d;
    transform: translateY(20px) translateZ(15px);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0) translateZ(25px);
}

/* Button shine effect */
.portfolio-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shine 2s infinite;
}

.portfolio-item:hover .portfolio-btn::after {
    animation: shine 1s infinite;
}

/* Grid stagger effect enhancement */
.portfolio-item:nth-child(odd) {
    animation-delay: calc(0.1s * var(--item-index, 1));
}

.portfolio-item:nth-child(even) {
    animation-delay: calc(0.15s * var(--item-index, 1));
}

/* Hover state for non-hovered items */
.portfolio-grid:hover .portfolio-item:not(:hover) {
    transform: scale(0.95) rotateX(2deg) rotateY(2deg);
    opacity: 0.7;
    filter: grayscale(0.3);
    transition: all 0.4s ease;
}

/* Ripple effect */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced loading states */
.portfolio-item.loading {
    animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grid entrance animations */
.portfolio-item.entering {
    animation: grid-entrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes grid-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Hover sound effect simulation */
.portfolio-item:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 215, 0, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .portfolio-popup-modal {
        width: 95%;
        max-height: 95%;
    }

    .portfolio-popup-header {
        padding: 15px 20px;
    }

    .portfolio-popup-title {
        font-size: 20px;
    }

    .portfolio-popup-content {
        padding: 20px;
    }

    .portfolio-popup-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-popup-links {
        flex-direction: column;
    }

    .portfolio-popup-link {
        justify-content: center;
    }

    .portfolio-item {
        height: 250px;
    }
}
