/*Font Awesome Free Icon*/
@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
/*Google fonts*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Rubik:500,700,900&display=swap');

/* General Style */
:root {
    --skin-color: #ec1839;
}

body {
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: -0.2px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: #302e4d;
    font-weight: 700;
    letter-spacing: -0.5px;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

::before,
::after {
    box-sizing: border-box;
}

input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
}

.section {
    background-color: #f2f2fc;
    min-height: 100vh;
    display: block;
    padding: 0 30px;
    position: fixed;
    left: 270px;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.section.active {
    opacity: 1;
    z-index: 2;
    animation: slideSection 1s ease;
    -webkit-animation: slideSection 1s ease;
    -moz-animation: slideSection 1s ease;
    -o-animation: slideSection 1s ease;
}

.section.back-section {
    z-index: 1;
}

@keyframes slideSection {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -o-transform: translateX(0%);
    }
}

@-webkit-keyframes slideSection {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -o-transform: translateX(0%);
    }
}

@-moz-keyframes slideSection {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -o-transform: translateX(0%);
    }
}

@-o-keyframes slideSection {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -o-transform: translateX(0%);
    }
}

.section .container {
    padding-top: 60px;
    padding-bottom: 70px;
}

.section-title {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    color: #302e4d;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    margin: 0;
    position: relative;
}

.section-title h2::before {
    content: '';
    height: 4px;
    width: 50px;
    position: absolute;
    top: 100%;
    left: 0;
}

.section-title h2::after {
    content: '';
    height: 4px;
    width: 25px;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    position: relative;
}

.padd-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

.shadow-dark {
    -webkit-box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.btn {
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    padding: 12px 35px;
    color: #ffffff;
    border-radius: 40px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none !important;
}

/* Preloader */
.preloader {
    background-color: #222222;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 150;
    display: flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    align-items: center;
    justify-content: center;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
}

.preloader.opacity-0 {
    opacity: 0;
}

.preloader .loader {
    height: 40px;
    width: 40px;
    border: 4px solid #e3e3e3;
    border-radius: 50%;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    animation: spin 2s linear infinite;
    -webkit-animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

/* Aside */

.aside {
    width: 270px;
    background-color: #fdf9ff;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 11;
    border-right: 1px solid #e8dfec;
    /* padding: 30px; */
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    /* overflow-y: auto; */
}

.aside .aside-inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
}

.aside .logo {
    padding: 30px 0;
}

.aside .logo a {
    font-size: 40px;
    color: #302e4d;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0 10px;
    line-height: 50px;
}

.aside .logo a::before {
    content: '';
    height: 20px;
    width: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.aside .logo a::after {
    content: '';
    height: 20px;
    width: 20px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.aside .nav-toggler {
    height: 40px;
    width: 45px;
    border: 1px solid #d4d4e3;
    cursor: pointer;
    position: fixed;
    left: 300px;
    top: 20px;
    z-index: 11;
    border-radius: 5px;
    background-color: #fdf9ff;
    /* display: -ms-flexbox;
    display: flex; */
    display: none;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    -ms-flex-pack: center;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.aside .nav-toggler span {
    height: 2px;
    width: 18px;
    display: inline-block;
    position: relative;
}

.aside .nav-toggler.open span {
    background-color: transparent;
}

.aside .nav-toggler span::before {
    content: '';
    height: 2px;
    width: 18px;
    position: absolute;
    top: -6px;
    left: 0;
}

.aside .nav-toggler.open span::before {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: 0px;
}

.aside .nav-toggler span::after {
    content: '';
    height: 2px;
    width: 18px;
    position: absolute;
    top: 6px;
    left: 0;
}

.aside .nav-toggler.open span::after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    top: 0px;
}

.aside .nav {
    list-style: none;
    margin: 70px 0;
    padding: 0;
}

.aside .nav li {
    display: block;
}

.aside .nav li a {
    font-size: 20px;
    font-weight: 600;
    color: #302e4d;
    text-decoration: none;
    line-height: 60px;
    display: block;
    border-bottom: 1px solid #e8dfec;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.aside .nav li a:not(.active):hover {
    padding-left: 5px;
}

.aside .nav li a .fa {
    margin-right: 5px;
}

.aside .copyright-text {
    position: absolute;
    bottom: 5px;
    font-size: 13px;
    color: #7d7d7d;
}

/* Home Section */

.home {
    min-height: 100vh;
    display: -ms-flexbox;
    display: flex;
}

.home .intro {
    text-align: center;
}

.home .intro img {
    height: 250px;
    width: 250px;
    border-radius: 50%;
    display: inline-block;
    border: 6px solid #ffffff;
}

.home .intro h1 {
    font-size: 38px;
    color: #302e4d;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    margin: 20px 0 5px;
}

.home .intro span {
    font-size: 23px;
    font-weight: 500;
    margin: 0;
    line-height: 22px;
    color: #504e70;

}

.home .intro .social-links {
    margin-top: 25px;
}

.home .intro .social-links a {
    height: 50px;
    width: 50px;
    display: inline-block;
    text-align: center;
    line-height: 50px;
    color: #ffffff;
    margin: 0 4px;
    border-radius: 50%;
    text-decoration: none;
    -webkit-transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    font-size: 25px;
}

.home .intro .social-links a:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.ityped-cursor {
    /* font-size: 2.2rem; */
    opacity: 1;
    -webkit-animation: blink 0.3s infinite;
    -moz-animation: blink 0.3s infinite;
    animation: blink 0.3s infinite;
    animation-direction: alternate;
}

@keyframes blink {
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes blink {
    100% {
        opacity: 0;
    }
}

@-moz-keyframes blink {
    100% {
        opacity: 0;
    }
}

/* About Section */

.about .about-content {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .about-text {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #302e4d;
}

.about .about-content .about-text p {
    font-size: 16px;
    line-height: 25px;
    color: #020203;
    margin: 0;
}

.about .about-content .personal-info {
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    max-width: 60%;
    margin-top: 40px;
}

.about .about-content .personal-info .info-item {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.about .about-content .personal-info .info-item p {
    font-weight: 600;
    padding: 10px 0;
    font-size: 16px;
    margin: 0;
    color: #302e4d;
    border-bottom: 1px solid #e8dfec;
}

.about .about-content .personal-info .info-item p span {
    font-weight: 400;
    color: #504e70;
    margin-left: 4px;
    display: inline-block;
}

.about .about-content .personal-info .buttons {
    margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn {
    margin-right: 15px;
    margin-top: 10px;
}

.about .about-content .skills {
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    max-width: 40%;
    margin-top: 40px;
}

.about .about-content .skills .skill-item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .skills .skill-item h5 {
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    color: #302e4d;
    text-transform: capitalize;
    margin: 0;
}

.about .about-content .skills .skill-item {
    margin-bottom: 30px;
}

.about .about-content .skills .skill-item .progress {
    background-color: #e3e3e3;
    height: 8px;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.about .about-content .skills .skill-item .progress .progress-in {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
}

.about .about-content .skills .skill-item .skill-porcent {
    line-height: 40px;
    position: absolute;
    right: 0;
    top: -40px;
    font-weight: 400;
    color: #302e4d;
}

.about .about-content .education {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 30px;
}

.about .about-content .experience {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 30px;
}

.about .about-content h3.title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #302e4d;
}

.about .about-content .timeline {
    background-color: #fdf9ff;
    padding: 30px 15px;
    border: 1px solid #d4d4e3;
    border-radius: 10px;
    position: relative;
    width: 100%;
}

.about .about-content .timeline .timeline-item {
    position: relative;
    padding-left: 37px;
    padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item::before {
    content: '';
    width: 1px;
    position: absolute;
    height: 100%;
    left: 7px;
    top: 0;
}

.about .about-content .timeline .timeline-item:last-child {
    padding-bottom: 0px;
}

.about .about-content .timeline-box {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .timeline .circle-dot {
    position: absolute;
    left: 0;
    top: 0px;
    height: 15px;
    width: 15px;
    left: 0px;
    border-radius: 50%;
}

.about .about-content .timeline .timeline-date {
    font-size: 14px;
    font-weight: 400;
    color: #504e70;
    margin-bottom: 12px;
}

.about .about-content .timeline .timeline-date .fa {
    margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: #302e4d;
}

.about .about-content .timeline .timeline-text {
    font-size: 16px;
    line-height: 25px;
    color: #504e70;
    margin: 0;
}

/* Services Section */
body {
    font-family: sans-serif;
    background-image: linear-gradient(to right, #8B8ABB, #8AC59D);
  }
  
  /* img {
    width: 60px;
    height: 60px;
  } */
  
  .container {
    display: grid;
  }
  
  .container__box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 15px;
  }
  
  .container .container__box .box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 5px 5px 6px #333;
    text-align: center;
    padding: 20px 30px;
    transition: all 0.3s ease;
  }
  
  .container .container__box .box:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  }
  
  .container__heading {
    text-align: center;
    padding-bottom: 15px;
    color: #e3e3e3;
    text-shadow: 0 0 10px black;
    font-size: 50px;
    font-weight: 600;
  }
  
  .container .container__box .box h3 {
    color: #444;
    font-size: 20px;
    font-weight: 600;
  }
  
  .container .container__box .box p {
    font-size: 14px;
    font-weight: 100;
    color: #555;
  }
  
  .container .container__box .box a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 4px;
    background: #444;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .container .container__box .box a:hover {
    background: #908080;
  }
  
  /* Tools Section Specific Styles */
  .tools {
    padding: -2px 0;
    /* background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%); */
  }
  
  .tools .section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    /* text-transform: uppercase; */
    color: #333;
  }
  
  .tools .section-title::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .tools .container__box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .tools .box {
    flex: 1 1 calc(30% - 20px);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a9a);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  .tools .box img {
    /* background: rgba(255, 255, 255, 0.8); */
    /* border-radius: 50%; */
    padding: 10px;
    width: 100px;
    height: 100px;
  }
  
  .tools .box h3,
  .tools .box p,
  .tools .box a {
    color: #fff;
  }
  
  .tools .box a {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .tools .box a:hover {
    background: rgba(255, 255, 255, 0.4);
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .tools .box {
      flex: 1 1 calc(45% - 20px);
    }
  }
  
  @media (max-width: 768px) {
    .tools .box {
      flex: 1 1 100%;
    }
  }
  
  
/* Portfolio Section */

.gallery .container {
    padding-bottom: 40px;
}

.gallery .gallery-filter {
    flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.gallery .gallery-filter button {
    border: none;
    background-color: transparent;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    margin: 0 10px;
    color: #302e4d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.gallery .gallery-item {
    flex: 0 0 33.33%;
    -ms-flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 30px;
}

.gallery .gallery-item.hide {
    display: none;
}

.gallery .gallery-item.show {
    display: block;
    animation: showItem 0.5s ease;
}

@keyframes showItem {
    0% {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

@-webkit-keyframes showItem {
    0% {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
        opacity: 1;
    }
}

.gallery .gallery-item-inner {
    border: 6px solid #fdf9ff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery .gallery-item-inner .gallery-img img {
    width: 100%;
    display: block;
}

.gallery .gallery-item .gallery-info {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    height: 100%;
    width: 100%;
    z-index: 1;
    padding: 30px;
    opacity: 0;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.gallery .gallery-item-inner:hover .gallery-info {
    opacity: 1;
}

.gallery .gallery-item .gallery-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: capitalize;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transform: translate(-20px);
    -webkit-transform: translate(-20px);
    opacity: 0;
}

.gallery .gallery-item-inner:hover .gallery-info h4 {
    transform: translate(0px);
    -webkit-transform: translate(0px);
    opacity: 1;
}

.gallery .gallery-item .gallery-info .icon {
    height: 40px;
    width: 40px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    right: 30px;
    bottom: 30px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transform: translate(20px);
    -webkit-transform: translate(20px);
    opacity: 0;
}

.gallery .gallery-item-inner:hover .gallery-info .icon {
    transform: translate(0px);
    -webkit-transform: translate(0px);
    opacity: 1;
}

.gallery .gallery-item .gallery-info .icon .fa {
    line-height: 40px;
}

/* Lightbox */

.lightbox {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
    align-items: center;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 30px;
}

.lightbox.open {
    display: flex;
    display: -ms-flexbox;
}

.lightbox .lightbox-content img {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 500px;
    cursor: pointer;
    display: block;
    padding: 40px 0 30px;
}

.lightbox.open .lightbox-content {
    animation: lightboxImage .5s ease;
}

@keyframes lightboxImage {
    0% {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

@-webkit-keyframes lightboxImage {
    0% {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

.lightbox .lightbox-content {
    position: relative;
}

.lightbox .lightbox-content .lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: space-between;
    justify-content: space-between;
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    z-index: -1;
}

.lightbox .lightbox-content .lightbox-close {
    position: absolute;
    height: 40px;
    width: 40px;
    top: 0px;
    right: 0px;
    font-size: 32px;
    text-align: right;
    color: #ffffff;
    line-height: 40px;
    cursor: pointer;
}

.lightbox .lightbox-controls .prev-item,
.lightbox .lightbox-controls .next-item {
    position: absolute;
    height: 40px;
    width: 40px;
    background-color: #ffffff;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    top: 50%;
    margin-top: -20px;
    z-index: 110;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.lightbox .lightbox-controls .prev-item:active,
.lightbox .lightbox-controls .next-item:active {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.lightbox .lightbox-controls .prev-item:hover,
.lightbox .lightbox-controls .next-item:hover {
    transform: scale(1);
    -webkit-transform: scale(1);
}

.lightbox .lightbox-controls .prev-item {
    left: 30px;
}

.lightbox .lightbox-controls .next-item {
    right: 30px;
}

.lightbox .lightbox-controls .prev-item .fa,
.lightbox .lightbox-controls .next-item .fa {
    font-size: 32px;
    line-height: 40px;
}

/* Blog Section */

.blog .container {
    padding-bottom: 40px;
}

.blog .blog-item {
    flex: 0 0 33.33%;
    -ms-flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 30px;
}

.blog .blog-item-inner {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4d4e3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog .blog-item-inner .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-item-inner .blog-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
}

.blog .blog-item-inner:hover .blog-img img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.blog .blog-item-inner .blog-img,
.blog .blog-item-inner .blog-info .blog-title {
    cursor: pointer;
}

.blog .blog-item-inner .blog-img .blog-date {
    position: absolute;
    padding: 4px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    left: 15px;
    bottom: 15px;
}

.blog .blog-item-inner .blog-info {
    padding: 30px 15px;
    background-color: #fdf9ff;
    flex: 1;
}

.blog .blog-item-inner .blog-info .blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #302e4d;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.blog .blog-item-inner .blog-info .blog-description {
    font-size: 16px;
    line-height: 25px;
    color: #504e70;
    font-weight: 400;
    margin-bottom: 15px;
}

.blog .blog-item-inner .blog-info .blog-tags {
    font-size: 16px;
    line-height: 25px;
    color: #504e70;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 14px;
}

.blog .blog-item-inner .blog-info .blog-tags a {
    text-decoration: none;
    font-weight: 600;
}

/* Contact Section */

/* .section {
    padding: 60px 0;
    position: relative;
  } */
  
  .sidebar {
    width: 200px;
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }
  
  .sidebar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .sidebar a:hover {
    background-color: #e1e1e1;
  }
  
  .sidebar a i {
    margin-right: 10px;
  }
  
  .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
  }
  
  .header {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
  }
  
  .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    height: calc(100vh - 60px);
  }
  
  .left-panel {
    display: grid;
    gap: 10px;
    height: 100%;
  }
  
  .right-panel {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
    height: 100%;
  }
  
  .widget {
    background: rgba(223, 151, 69, 0.964);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .date {
    width: 88%;
    height: 74%;
  }
  
  .calendar {
    width: 70%;
    height: 77%;
  }
  
  .calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: 25px;
    background-size: cover; /* Ensure the image covers the entire element */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-image: url("https://c4.wallpaperflare.com/wallpaper/586/603/742/minimalism-4k-for-mac-desktop-wallpaper-preview.jpg");
}

  
  .calendar img {
    width: 80%;
    height: 50%;
    border-radius: 18px;
    
  }
  
  
  .date {
    font-size: 45px;
    color: #fff;
    background-color: #dc3838;
    padding: 18px 21px;
    border-radius: 25px;
    margin-bottom: 19px;
  }
  
  .music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 92%;
    height: 106%;
    border-radius: 20px;
  }
  
  .music-player .cover {
    width: 100%;
    height: auto;
    background-image: url('./42.jpg');
    background-size: cover;
    border-radius: 10px;
  }
  
  .music-player .song-name {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
  }
  
  .music-player audio {
    width: 100%;
    margin: 10px 0;
    background-color: #814d28;
    border: 8px solid #70ffc8;
    border-radius: 36px;
  }
  
  
  
  .horizontal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 96%;
    padding: 15px;
    background-color:#3c424075;
    border-radius: 31px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);

  }
  
  .horizontal-bar i {
    color: white;
    font-size: 25px;
  }
  
  .projects,
  .software,
  .book-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 36px;
    background-color:#46c3b380 ;
    height: 101%;
    width: 109%;
    border-radius: 25px;
  }
  
  .books {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .book a {
    color: #333;
    font-size: 40px;
  }
  
  .book a:hover {
    opacity: 0.7;
  }
  
  .book:nth-child(1) a {
    color: #f39c12;
  }
  
  .book:nth-child(2) a {
    color: #e74c3c;
  }
  
  .book:nth-child(3) a {
    color: #2ecc71;
  }
  
  .book:nth-child(4) a {
    color: #3498db;
  }
  
  .book:nth-child(5) a {
    color: #9b59b6;
  }
  
  .book:nth-child(6) a {
    color: #f1c40f;
  }
  
  .book:nth-child(7) a {
    color: #e67e22;
  }
  
  .book:nth-child(8) a {
    color: #1abc9c;
  }
  
  .book:nth-child(9) a {
    color: #2980b9;
  }
  
  .book:nth-child(10) a {
    color: #8e44ad;
  }
  
  @media (max-width: 768px) {
    .content {
      grid-template-columns: 1fr;
    }
  }
  
/* Responsive */

@media(max-width: 1199px) {
    .section .container {
        padding-top: 70px;
    }

    .aside .nav-toggler {
        display: -ms-flexbox;
        display: flex;
        left: 30px;
    }

    .aside .nav-toggler.open {
        left: 300px;
    }

    .aside {
        left: -270px;
    }

    .aside.open {
        left: 0;
    }

    .section {
        left: 0;
    }

    .section.open {
        left: 270px;
    }

    .about .about-content .personal-info .info-item p span {
        display: block;
        margin-left: 0;
    }
}

@media(max-width: 991px) {

    .service .service-item,
    .blog .blog-item,
    .gallery .gallery-item {
        flex: 0 0 50%;
        -ms-flex: 0 0 50%;
        max-width: 50%;
    }
}

@media(max-width: 767px) {

    .about .about-content .personal-info,
    .contact .contact-form .col-6,
    .service .service-item,
    .blog .blog-item,
    .about .about-content .skills,
    .about .about-content .education,
    .about .about-content .experience {
        flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        max-width: 100%;
    }

    .gallery .gallery-filter button {
        margin-bottom: 10px;
    }
}

@media(max-width: 575px) {

    .gallery .gallery-item,
    .contact .contact-info-item {
        flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        max-width: 100%;
    }
}

/* AI Arts Section */
.ai-arts {
    /* padding: 100px 0; */
    background-color: #f9f9f9;
  }
  
  .ai-arts .section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    /* text-transform: uppercase; */
    color: #333;
  }
  
  .ai-arts .section-title::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .ai-arts .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .ai-arts .ai-arts-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
  }
  
  .ai-arts .ai-arts-img {
    width: 100%;
    overflow: hidden;
    padding-top: 75%; /* Aspect ratio 4:3 */
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 11px;
    border: 4px solid #d2c8c8;
    background-color: #f4f4f4;
  }
  
  .ai-arts .ai-arts-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
  }
  
  .ai-arts .ai-arts-item:hover .ai-arts-img img {
    transform: scale(1.1);
  }
  
  .ai-arts .ai-arts-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .ai-arts .ai-arts-item:hover h4 {
    color: #ff6b6b;
  }
  
  /* Gallery Lightbox */
  .ai-arts-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .ai-arts-lightbox.open {
    display: flex;
  }
  
  .ai-arts-lightbox-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    text-align: center;
  }
  
  .ai-arts-lightbox-img {
    width: 50%;
    max-height: 80vh;
    object-fit: contain;
  }
  
  .ai-arts-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
  }
  
  .ai-arts-caption-text {
    color: #fff;
    margin: 15px 0;
  }
  
  .ai-arts-caption-counter {
    color: #fff;
  }
  
  .ai-arts-download-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .ai-arts-download-button:hover {
    background: #ff4757;
  }

  /* Gallery Filter */
  .ai-arts-filter {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  .ai-arts-filter button {
    border: none;
    background-color: transparent;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 10px;
    color: var(--text-black-900);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
  }
  .ai-arts-filter button.active {
    color: var(--skin-color);
    border-color: var(--skin-color);
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .ai-arts .ai-arts-item {
      flex: 1 1 calc(50% - 20px);
      max-width: 50%;
    }
    .ai-arts .section-title {
      margin-left: 10px;
    }
    .ai-arts-lightbox-img {
      width: 80%;
      border-radius: 9px;
    }
    .ai-arts-lightbox-close {
      top: 0;
      right: 10%;
    }
  }
  
  @media (max-width: 768px) {
    .ai-arts .ai-arts-item {
      flex: 1 1 100%;
      max-width: 100%;
    }
    .ai-arts .section-title {
        margin-left: 10px;
    }
    .ai-arts-lightbox-img {
        width: 95%;
        border-radius: 9px;
    }
    .ai-arts-lightbox-close {
        top: 0px;
        right: 0px;  
    }
  }


/* ========================
   RESOURCES SECTION
   ======================== */

/* Remove old conflicting left/right panel styles within resources */
.resources .left-panel,
.resources .right-panel,
.resources .widget,
.resources .date,
.resources .calendar,
.resources .music-player,
.resources .projects,
.resources .software,
.resources .book-section,
.resources .books,
.resources .book {
  all: unset;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 40px;
}

/* ---- LEFT PANEL ---- */
.res-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: 165px;
}

/* Date Widget — uses site accent red */
.res-date-widget {
  background: #ec1839;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  padding: 16px;
  line-height: 1.1;
  box-shadow: 0 4px 20px rgba(236, 24, 57, 0.3);
}

.res-date-widget > div:first-child {
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.9;
}

.res-date-widget > div:last-child {
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
}

/* Image Widget */
.res-image-widget {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 15px rgba(48, 46, 77, 0.15);
}

.res-image-widget img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Music Player — dark site color */
.res-music-player {
  background: #302e4d;
  border-radius: 18px;
  padding: 20px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(48, 46, 77, 0.25);
}

.res-music-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-song-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 1px;
}

.res-fav-icon {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.res-fav-icon:hover { color: #ec1839; }

/* Progress Bar */
.res-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-time-left,
.res-time-right {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.res-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.res-progress-fill {
  height: 100%;
  background: #ec1839;
  border-radius: 3px;
  position: relative;
}

.res-progress-thumb {
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
  border: 2px solid #ec1839;
}

/* Controls */
.res-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.res-ctrl-icon {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.2s;
}

.res-ctrl-icon:hover {
  color: #ffffff;
}

.res-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ec1839;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(236, 24, 57, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.res-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.res-play-btn .fa {
  font-size: 18px;
  color: #ffffff;
}

/* Volume Bar */
.res-volume-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-vol-icon {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.res-volume-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.res-volume-fill {
  height: 100%;
  background: #ec1839;
  border-radius: 3px;
  position: relative;
}

.res-volume-thumb {
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
  border: 2px solid #ec1839;
}

/* Status Bar */
.res-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 8px 16px;
  gap: 10px;
}

.res-status-bar .fa {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

.res-connected-badge {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #302e4d;
  background: #fdf9ff;
  border-radius: 20px;
  padding: 4px 12px;
}

.res-battery {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* Good Day Banner */
.res-good-day {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  text-align: center;
  padding: 13px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.res-good-day .fa {
  font-size: 18px;
  color: #f5c842;
}

/* ---- RIGHT PANEL ---- */
.res-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

/* Projects Card */
.res-projects-card {
  background: #fdf9ff;
  border: 1px solid #e8dfec;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(48, 46, 77, 0.08);
  min-height: 360px;
}

/* Projects image (the scenic image between title and list) */
.res-projects-img {
  border-radius: 12px;
  overflow: hidden;
  height: 130px;
  flex-shrink: 0;
}

.res-projects-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Software Card */
.res-software-card {
  background: #fdf9ff;
  border: 1px solid #e8dfec;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(48, 46, 77, 0.08);
}

/* Books Card */
.res-books-card {
  background: #fdf9ff;
  border: 1px solid #e8dfec;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(48, 46, 77, 0.08);
}

/* Shared card title — matches site heading style */
.res-card-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: #302e4d;
  text-align: center;
  margin: 0;
  width: 100%;
}

/* Projects list */
.res-projects-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  flex: 1;
}

.res-projects-list li {
  font-size: 14px;
  font-weight: 600;
  color: #504e70;
  padding: 6px 0;
  border-bottom: 1px solid #e8dfec;
  font-family: 'Montserrat', sans-serif;
}

/* View link — matches site link accent */
.res-view-link {
  font-size: 14px;
  font-weight: 600;
  color: #ec1839;
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.res-view-link:hover {
  opacity: 0.7;
}

.res-software-card .res-view-link,
.res-books-card .res-view-link {
  align-self: center;
}

/* Code icon */
.res-code-icon {
  font-family: 'Rubik', monospace;
  font-size: 42px;
  font-weight: 700;
  color: #ec1839;
  letter-spacing: -2px;
}

/* Right sub-column */
.res-right-sub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Books grid */
.res-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  justify-items: center;
}

/* Book icons — tinted site palette */
.res-book {
  font-size: 34px;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-book:hover {
  transform: scale(1.2) rotate(-5deg);
}

.res-book-1  { color: #ec1839; }
.res-book-2  { color: #302e4d; }
.res-book-3  { color: #9b59b6; }
.res-book-4  { color: #2ecc71; }
.res-book-5  { color: #3498db; }
.res-book-6  { color: #e67e22; }
.res-book-7  { color: #1abc9c; }
.res-book-8  { color: #f39c12; }
.res-book-9  { color: #e74c3c; }

/* Keep old folder/book color classes for backward-compat */
.res-folder, .res-book-yellow, .res-book-red, .res-book-purple,
.res-book-green, .res-book-teal, .res-book-blue, .res-book-lime,
.res-book-orange, .res-book-pink { font-size: 34px; display: flex; align-items: center; justify-content: center; }
.res-book-yellow { color: #f0b800; }
.res-book-red    { color: #ec1839; }
.res-book-purple { color: #9b59b6; }
.res-book-green  { color: #2ecc71; }
.res-book-teal   { color: #1abc9c; }
.res-book-blue   { color: #3498db; }
.res-book-lime   { color: #a3d600; }
.res-book-orange { color: #e67e22; }
.res-book-pink   { color: #e91e8c; }

/* Resources Responsive */
@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .res-right {
    grid-template-columns: 1fr 1fr;
  }
  .res-projects-card {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .res-top-row {
    grid-template-columns: 1fr 1fr;
    height: 130px;
  }
  .res-right {
    grid-template-columns: 1fr;
  }
}

/* ========================
   DOWNLOADS SECTION
   ======================== */

/*.downloads-section {
  /* Inherits background from resources section 
}
*/
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 50px;
}

.dl-card {
  background: #fdf9ff;
  border: 1px solid #e8dfec;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(48, 46, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(48, 46, 77, 0.14);
}

.dl-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
}

.dl-icon-red    { background: linear-gradient(135deg, var(--skin-color), #ff5067); }
.dl-icon-purple { background: linear-gradient(135deg, #6a3093, #a044c7); }
.dl-icon-dark   { background: linear-gradient(135deg, #302e4d, #504e70); }
.dl-icon-accent { background: linear-gradient(135deg, #302e4d, var(--skin-color)); }

.dl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #302e4d;
  margin: 0;
}

.dl-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #504e70;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  margin-top: 4px;
}

.dl-btn:not(.dl-btn-outline) {
  background: var(--skin-color);
  box-shadow: 0 4px 12px rgba(236, 24, 57, 0.3); /* Let's leave shadow as is or remove it */
}

.dl-btn:not(.dl-btn-outline):hover {
  transform: scale(1.04);
}

.dl-btn.dl-btn-outline {
  background: transparent;
  border: 2px solid #d4d4e3;
  color: #504e70;
}

.dl-btn.dl-btn-outline:hover {
  border-color: #302e4d;
  color: #302e4d;
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .dl-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dl-btn {
    align-self: center;
  }
}


/* Remove old conflicting left/right panel styles within resources */
.resources .left-panel,
.resources .right-panel,
.resources .widget,
.resources .date,
.resources .calendar,
.resources .music-player,
.resources .projects,
.resources .software,
.resources .book-section,
.resources .books,
.resources .book {
  all: unset;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 40px;
}

/* ---- LEFT PANEL ---- */
.res-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 160px;
}

/* Date Widget */
.res-date-widget {
  background: #e05252;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  padding: 16px;
  line-height: 1.1;
}

.res-date-widget > div:first-child {
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 4px;
}

.res-date-widget > div:last-child {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
}

/* Image Widget */
.res-image-widget {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}

.res-image-widget img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Music Player */
.res-music-player {
  background: #f0b840;
  border-radius: 18px;
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-music-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-song-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1a1a2e;
  letter-spacing: 1px;
}

.res-fav-icon {
  font-size: 18px;
  color: #1a1a2e;
  cursor: pointer;
}

/* Progress Bar */
.res-progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-time-left,
.res-time-right {
  font-size: 14px;
  color: #1a1a2e;
  white-space: nowrap;
  font-weight: 600;
}

.res-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(26, 26, 46, 0.25);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.res-progress-fill {
  height: 100%;
  background: #1a1a2e;
  border-radius: 3px;
  position: relative;
}

.res-progress-thumb {
  width: 14px;
  height: 14px;
  background: #1a1a2e;
  border-radius: 50%;
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Controls */
.res-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.res-ctrl-icon {
  font-size: 22px;
  color: #1a1a2e;
  cursor: pointer;
  transition: opacity 0.2s;
}

.res-ctrl-icon:hover {
  opacity: 0.6;
}

.res-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.res-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.res-play-btn .fa {
  font-size: 18px;
  color: #1a1a2e;
}

/* Volume Bar */
.res-volume-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-vol-icon {
  font-size: 14px;
  color: #1a1a2e;
}

.res-volume-track {
  flex: 1;
  height: 6px;
  background: rgba(26, 26, 46, 0.25);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.res-volume-fill {
  height: 100%;
  background: #1a1a2e;
  border-radius: 3px;
  position: relative;
}

.res-volume-thumb {
  width: 14px;
  height: 14px;
  background: #1a1a2e;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Status Bar */
.res-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.35);
  border-radius: 30px;
  padding: 8px 16px;
  gap: 10px;
}

.res-status-bar .fa {
  font-size: 18px;
  color: #1a1a2e;
}

.res-connected-badge {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
  border-radius: 20px;
  padding: 4px 12px;
}

.res-battery {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}

/* Good Day Banner */
.res-good-day {
  background: #fef2b4;
  border-radius: 12px;
  text-align: center;
  padding: 14px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a2e;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.res-good-day .fa {
  font-size: 18px;
  color: #e8a000;
}

/* ---- RIGHT PANEL ---- */
.res-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Projects Card */
.res-projects-card {
  background: #a8ddd5;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

/* Software Card */
.res-software-card {
  background: #d6f0ec;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Books Card */
.res-books-card {
  background: #e9e4f5;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Shared card title */
.res-card-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: #1a1a2e;
  text-align: center;
  margin: 0;
  width: 100%;
}

/* Projects list */
.res-projects-list {
  list-style: decimal;
  padding-left: 22px;
  margin: 12px 0;
  flex: 1;
}

.res-projects-list li {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 6px 0;
  border-bottom: 1px solid rgba(26,26,46,0.15);
}

/* View link */
.res-view-link {
  font-size: 15px;
  font-weight: 600;
  color: #1a7a6e;
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.res-view-link:hover {
  opacity: 0.7;
}

.res-software-card .res-view-link,
.res-books-card .res-view-link {
  align-self: center;
  color: #7b5ea7;
}

/* Code icon */
.res-code-icon {
  font-family: 'Rubik', monospace;
  font-size: 42px;
  font-weight: 700;
  color: #2c9e90;
  letter-spacing: -2px;
}

/* Right sub-column */
.res-right-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Books grid */
.res-books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  justify-items: center;
}

/* Book icon classes (replaces old .res-folder) */
.res-book {
  font-size: 36px;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-book:hover {
  transform: scale(1.2) rotate(-5deg);
}

.res-book-yellow { color: #f0b800; }
.res-book-red    { color: #e74c3c; }
.res-book-purple { color: #9b59b6; }
.res-book-green  { color: #2ecc71; }
.res-book-teal   { color: #1abc9c; }
.res-book-blue   { color: #3498db; }
.res-book-lime   { color: #a3d600; }
.res-book-orange { color: #e67e22; }
.res-book-pink   { color: #e91e8c; }

/* Keep old folder classes for backward-compat */
.res-folder { font-size: 36px; display: flex; align-items: center; justify-content: center; }
.res-folder-yellow { color: #f0b800; }
.res-folder-red    { color: #e74c3c; }
.res-folder-purple { color: #9b59b6; }
.res-folder-green  { color: #2ecc71; }
.res-folder-teal   { color: #1abc9c; }
.res-folder-blue   { color: #3498db; }
.res-folder-lime   { color: #a3d600; }
.res-folder-orange { color: #e67e22; }
.res-folder-pink   { color: #e91e8c; }

/* Responsive */
@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .res-right {
    grid-template-columns: 1fr 1fr;
  }
  .res-projects-card {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .res-top-row {
    grid-template-columns: 1fr 1fr;
    height: 130px;
  }
  .res-right {
    grid-template-columns: 1fr;
  }
}

/* Downloads library redesign */
.downloads-heading {
  margin: 64px 0 24px;
  padding: 28px 30px;
  border: 1px solid #e8dfec;
  border-radius: 18px;
  background: linear-gradient(115deg, #fdf9ff 0%, #fff5f7 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.downloads-kicker { margin: 0 0 8px; color: var(--skin-color); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.downloads-heading h2 { margin: 0; color: #302e4d; font-size: 28px; }
.downloads-heading > div > p:last-child { margin: 8px 0 0; color: #504e70; font-size: 15px; }
.downloads-count { padding: 8px 13px; border-radius: 999px; background: #ffffff; border: 1px solid #e8dfec; color: #504e70; font-size: 13px; font-weight: 600; white-space: nowrap; }
.downloads-grid { gap: 24px; padding-bottom: 10px; }
.dl-card { position: relative; min-height: 270px; padding: 24px; border-radius: 18px; flex-direction: column; gap: 20px; overflow: hidden; }
.dl-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--skin-color); }
.dl-card:nth-child(2)::before { background: #9b59b6; }
.dl-card:nth-child(3)::before { background: #302e4d; }
.dl-card:nth-child(4)::before { background: #e67e22; }
.dl-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dl-icon-wrap { width: 54px; height: 54px; border-radius: 14px; font-size: 23px; }
.dl-card-type { border-radius: 999px; padding: 6px 10px; background: #f4f2f9; color: #504e70; font-size: 11px; font-weight: 700; letter-spacing: .7px; }
.dl-info { height: 100%; gap: 10px; }
.dl-title { font-size: 20px; }
.dl-desc { font-size: 14px; }
.dl-meta { margin: 0; color: #77738f; font-size: 13px; }
.dl-meta i { color: var(--skin-color); margin-right: 5px; }
.dl-btn { margin-top: auto; border-radius: 10px; padding: 10px 15px; }
.dl-btn:not(.dl-btn-outline):hover { transform: translateY(-2px); }
@media (max-width: 767px) { .downloads-heading { margin-top: 42px; padding: 22px; align-items: flex-start; flex-direction: column; } .dl-card { min-height: 0; } }
/* Compact downloads layout */
.downloads-heading { margin: 34px 0 16px; padding: 18px 20px; border-radius: 14px; }
.downloads-heading h2 { font-size: 23px; }
.downloads-heading > div > p:last-child { font-size: 14px; }
.downloads-kicker { margin-bottom: 5px; font-size: 10px; }
.downloads-count { padding: 6px 10px; font-size: 12px; }
.downloads-grid { gap: 16px; padding-bottom: 26px; }
.dl-card { min-height: 0; padding: 18px 20px; gap: 13px; border-radius: 14px; }
.dl-icon-wrap { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
.dl-card-type { padding: 5px 9px; font-size: 10px; }
.dl-info { height: auto; gap: 7px; }
.dl-title { font-size: 18px; }
.dl-desc { font-size: 13px; line-height: 1.45; }
.dl-meta { font-size: 12px; }
.dl-btn, .dl-btn.dl-btn-outline { margin-top: 3px; padding: 9px 13px; border: 0; border-radius: 8px; color: #ffffff; background: var(--skin-color); box-shadow: 0 4px 10px rgba(236, 24, 57, .24); }
.dl-btn:hover, .dl-btn.dl-btn-outline:hover { color: #ffffff; border: 0; background: #c81331; transform: translateY(-1px); }
.dl-card:nth-child(2) .dl-btn.dl-btn-outline { background: #7c3ca1; box-shadow: 0 4px 10px rgba(124, 60, 161, .24); }
.dl-card:nth-child(2) .dl-btn.dl-btn-outline:hover { background: #632b84; }
.dl-card:nth-child(4) .dl-btn.dl-btn-outline { background: #cf650d; box-shadow: 0 4px 10px rgba(207, 101, 13, .24); }
.dl-card:nth-child(4) .dl-btn.dl-btn-outline:hover { background: #aa5109; }
@media (max-width: 767px) { .downloads-heading { margin-top: 28px; padding: 16px; } .downloads-grid { gap: 14px; } .dl-card { padding: 18px; } }
/* Download action buttons: explicit contrast, no glow */
.dl-card:nth-child(1) .dl-btn,
.dl-card:nth-child(3) .dl-btn { background: #ec1839; color: #ffffff; box-shadow: none; }
.dl-card:nth-child(1) .dl-btn:hover,
.dl-card:nth-child(3) .dl-btn:hover { background: #c81331; color: #ffffff; box-shadow: none; }
.dl-card .dl-btn,
.dl-card .dl-btn.dl-btn-outline { box-shadow: none; }
/* Floating club crests in the home header */
.home { overflow: hidden; }
.home .intro { position: relative; z-index: 0; }
.home .intro > img { position: relative; z-index: 2; }
.club-crests { position: absolute; z-index: 1; top: 14px; left: 50%; width: 440px; height: 220px; transform: translateX(-50%); pointer-events: none; }
.club-crest { position: absolute; width: 90px; height: 90px; object-fit: contain; opacity: .18; filter: saturate(.9); animation: crest-float 5s ease-in-out infinite; }
.club-crest-city { left: 0; top: 12px; }
.club-crest-mbsg { right: 0; bottom: 6px; animation-delay: -2.5s; }
@keyframes crest-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@media (max-width: 575px) { .club-crests { width: 320px; height: 205px; } .club-crest { width: 58px; height: 58px; opacity: .15; } .club-crest-city { left: 4px; top: 22px; } .club-crest-mbsg { right: 4px; bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .club-crest { animation: none; } }.home .intro .club-crest { width: 90px; height: 90px; border: 0; border-radius: 0; display: block; }
@media (max-width: 575px) { .home .intro .club-crest { width: 58px; height: 58px; } }
/* Multilingual welcome preloader */
.welcome-loader { display: flex; align-items: center; justify-content: center; width: min(90vw, 420px); min-height: 76px; overflow: hidden; text-align: center; }
.welcome-loader #welcome-word { color: #ffffff; font-family: 'Rubik', sans-serif; font-size: clamp(30px, 6vw, 52px); font-weight: 600; letter-spacing: .035em; line-height: 1.2; opacity: 1; filter: blur(0); transform: translateY(0); transition: opacity .16s ease, filter .16s ease, transform .16s ease; }
.welcome-loader #welcome-word.is-leaving { opacity: 0; filter: blur(5px); transform: translateY(-7px); }
.welcome-letter { display: inline-block; opacity: 0; transform: translateY(13px); animation: welcome-letter-in .32s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes welcome-letter-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .welcome-loader #welcome-word { transition: none; } .welcome-letter { animation: none; opacity: 1; transform: none; } }

/* =============================================
   GALLERY MASONRY REDESIGN
   ============================================= */

.gallery .container { padding-bottom: 40px; }

/* Pill Filter Buttons */
.gallery-filter-bar {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  align-items: center;
}

.filter-pill {
  border: none;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(48, 46, 77, 0.08);
  color: #302e4d;
  letter-spacing: 0.4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
}

.filter-pill:hover {
  background: rgba(48, 46, 77, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(48,46,77,0.12);
}

.filter-pill.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 18px rgba(0,0,0,0.22);
  transform: translateY(-2px);
}

/* Masonry Grid */
.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
  width: 100%;
  padding: 0 15px 30px;
}

/* Gallery Cards */
.gallery-card {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(48, 46, 77, 0.13);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.3), box-shadow 0.35s ease;
  display: block;
}

.gallery-card.hide { display: none; }

.gallery-card.show {
  display: block;
  animation: galleryCardIn 0.4s ease;
}

@keyframes galleryCardIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.gallery-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 40px rgba(48, 46, 77, 0.24);
}

.gallery-card > img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(.22,.68,0,1.2);
  border-radius: 16px;
}

.gallery-card:hover > img { transform: scale(1.08); }

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 8, 36, 0.92) 0%,
    rgba(12, 8, 36, 0.4) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 16px;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 5px 0;
  transform: translateY(10px);
  transition: transform 0.35s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-family: 'Rubik', sans-serif;
}

.gallery-card:hover .gallery-overlay h4 { transform: translateY(0); }

.gallery-cat-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  transform: translateY(10px);
  transition: transform 0.35s ease 0.04s;
  display: inline-block;
}

.gallery-card:hover .gallery-cat-badge { transform: translateY(0); }

/* Zoom icon – top-right corner */
.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transform: scale(0.6) rotate(-15deg);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.4), opacity 0.3s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Responsive masonry columns */
@media (max-width: 1100px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 600px)  { .gallery-masonry { column-count: 1; } .gallery-filter-bar { gap: 7px; } .filter-pill { padding: 7px 15px; font-size: 12px; } }

/* =============================================
   NEW GALLERY LIGHTBOX
   ============================================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.open { display: flex; }

.glb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 20, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: glbFadeIn 0.3s ease;
}

@keyframes glbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.glb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  animation: glbZoomIn 0.35s cubic-bezier(.22,.68,0,1.2);
}

@keyframes glbZoomIn { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }

.glb-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  max-height: 76vh;
  display: flex;
  align-items: center;
}

.glb-img-wrap img {
  max-width: 80vw;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}

.glb-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.glb-close:hover { background: rgba(255,255,255,0.25); }

.glb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.glb-nav:hover { background: rgba(255,255,255,0.25); }
.glb-prev { left: 24px; }
.glb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.glb-next { right: 24px; }
.glb-next:hover { transform: translateY(-50%) translateX(2px); }

.glb-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px 0;
  gap: 20px;
}

.glb-caption-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: 'Rubik', sans-serif;
}

.glb-caption-counter {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}/* Theme Colors using CSS Variables */
.aside .logo a::before { border-top: 4px solid var(--skin-color); border-left: 4px solid var(--skin-color); }
.aside .logo a::after { border-right: 4px solid var(--skin-color); border-bottom: 4px solid var(--skin-color); }
.aside .nav li a:hover, body.dark .aside .nav li a:hover, .blog .blog-item-inner .blog-info .blog-tags a, .portfolio .portfolio-item .portfolio-info .icon .fa, .lightbox .lightbox-controls .prev-item .fa, .contact .contact-info-item .icon .fa, .lightbox .lightbox-controls .next-item .fa, .about .about-content .about-text h3 span, .portfolio .portfolio-filter button.active, body.dark .portfolio .portfolio-filter button.active, .service .service-item .service-item-inner .icon .fa, body.dark .aside .nav li a.active, .aside .nav li a.active { color: var(--skin-color); }
.btn, .service .service-item .service-item-inner:hover .icon, .about .about-content .timeline .circle-dot, .blog .blog-item-inner .blog-img .blog-date, .about .about-content .skills .skill-item .progress .progress-in, .about .about-content .timeline-item::before, .aside .nav-toggler span, .section-title h2::before, .section-title h2::after, .aside .nav-toggler span::before, .aside .nav-toggler span::after, .home .intro .social-links a, .sk-pill.active, .skills-title-underline, .ai-pill.active, .ai-title-underline, .res-play-btn, .res-progress-fill, .pl-badge { background-color: var(--skin-color); }
.portfolio .portfolio-filter button.active, .sk-pill.active, .ai-pill.active { border-color: var(--skin-color); }
.res-icon-btn.active, .res-pl-item.active .pl-item-title, .res-pl-item.active .pl-play-icon { color: var(--skin-color); }
/* Skeleton Loader */
.img-skeleton {
    background: #e0e0e0;
    background: linear-gradient(90deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s skeleton-shimmer linear infinite;
}
body.dark .img-skeleton {
    background: #333333;
    background: linear-gradient(90deg, #333333 8%, #444444 18%, #333333 33%);
    background-size: 200% 100%;
}
@keyframes skeleton-shimmer {
    to {
        background-position: -200% 0;
    }
}
/* Visually Hidden - accessible to screen readers and search engines, invisible to users */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
