p {
  font-family: "Alef", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6, .breadcrumbs {
  font-family: "Bai Jamjuree", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.breadcrumbs {
    font-size: 1.25rem;
}


.heading-animate {
    padding: 14px 20px 14px max(calc((100vw - 1350px)/2), 20px);
    width: fit-content;
    margin-bottom: 10px;
    background: #c7ef00;
}
.heading-animate h2 {
    margin: 0;
}

body {
    background: #040710;
}

h1 {
    color: #040710;
}
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px;
}
section {
    padding-top: 30px;
}

/* Portfolio */

#portfolio {
    margin-top: 60px;
}

/* Grid and button styling */

/* DESKTOP */

@media only screen and (min-width: 1201px) {
    #cards-filter-container .desktop {
        display: grid;
    }
    #cards-filter-container .mobile {
        display: none;
    }
}

#cards-filter-container .desktop {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
}

#cards-filter-container .desktop .filter-button {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 14px 6px;
    background: #c7ef00;
    color: #040710;
    cursor: pointer;
    border-radius: 3px;
    border: 3px solid #040710;
    transition: .3s ease;
    font-family: "Alef", sans-serif;
    font-weight: 400;
    font-style: normal;
}
#cards-filter-container .desktop .filter-button:hover {
    transform: translateY(-3px);
    transition: .3s ease;
}
#cards-filter-container .desktop .filter-button.active {
    background: #f58f29;
}

/* @media only screen and (max-width: 1350px) {
        #cards-filter-container .desktop {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
} */

/* MOBILE */

#cards-filter-container .mobile select {
    padding: 14px;
    border: 3px solid black;
    border-radius: 3px;
    background: #c7ef00;
    color: #040710;
    cursor: pointer;
    border-radius: 3px;
    border: 3px solid #040710;
    width: calc(50% - 10px);
    font-family: "Alef", sans-serif;
    font-weight: 400;
    font-style: normal;
}

@media only screen and (max-width: 1200px) {
    #cards-filter-container .mobile select {
        display: block;
    }
    #cards-filter-container .desktop {
        display: none;
    }
}
@media only screen and (max-width: 768px) {
    #cards-filter-container .mobile select {
        width: 100%;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.card-item {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.15s ease-in-out;
    border-radius: 3px;
    border: 3px solid #040710;
    transition: .3s ease;
}
.card-item:hover {
    transform: translateY(-3px);
    transition: .3s ease;
}
.card-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.card-info-wpr {
    padding: 15px;
}

.card-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
}
.card-type,
.card-category {
    font-size: 0.9rem;
    margin-top: 8px;
}
.card-desc {
    margin: 10px 0;
}

.card-desc .desc-content {
  display: none;
}

.card-desc.expanded .desc-content {
  display: block;
}

.card-desc.expanded .desc-content h6 {
    margin: 15px 0 15px 0;
}

.card-desc.expanded .desc-content ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.card-desc.expanded .desc-content ul li, .card-desc.expanded .desc-content p {
    font-size: 16px;
    font-family: "Alef", sans-serif;
}

.card-desc.expanded .desc-content .visit-site {
    color: #f58f29;
    font-family: "Alef", sans-serif;
    font-size: 16px;
}

.card-desc .read-more-btn {
    padding: 6px 14px;
    border: 3px solid #040710;
    border-radius: 3px;
    background: #ffffff;
    margin: 15px 0;
    display: block;
    cursor: pointer;
}


.additional-portfolio-items .full-list-btn {
    padding: 14px;
    background: #c7ef00;
    color: #040710;
    cursor: pointer;
    border-radius: 3px;
    border: 3px solid #040710;
    transition: .3s ease;
    margin: 20px auto;
    font-family: "Alef", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    animation: buttonAnimation 0.75s infinite;
}

@keyframes buttonAnimation {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2px, 2px) rotate(2deg); }
  50% { transform: translate(0, 0) rotate(0deg); }
  75% { transform: translate(-2px, 2px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.additional-portfolio-items .full-list-btn:hover {
    transform: translateY(-3px);
    transition: .3s ease;
    background: #f58f29;
}

.additional-portfolio-items .full-list-wrapper {
    display: flex;
    gap: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.additional-portfolio-items .full-list-wrapper.open {
    max-height: 2000px; 
    opacity: 1;
}

.additional-portfolio-items .full-list-wrapper .col {
    flex: 0 0 calc(50% - 20px);
}

/* Background animation */

.bg {
    animation:slide 10s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #ffffff 50%, #f6f5f8 50%);
    bottom:0;
    left:-50%;
    opacity:.5;
    position:fixed;
    right:-50%;
    top:0;
    z-index:-1;
}

.bg2 {
    animation-direction:alternate-reverse;
    animation-duration:12s;
}

.bg3 {
    animation-duration:12s;
}

@keyframes slide {
0% {
    transform:translateX(-25%);
}
100% {
    transform:translateX(25%);
}
}


/* Nav */

#header {
    padding: 15px 0;
    background: #040710;
    position: fixed;
    width: 100%;
    z-index: 999999999;
    top: 0;
}

#header nav {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

#header nav a {
    color: #ffffff;
    font-family: "Alef", sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

#header .desktop-menu {
    display: flex;
    gap: 15px;
}

#header .hamburger {
    font-size: 26px;
    color: white;
    display: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 0px;
    margin-left: auto;
}

#header .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: #040710;
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

/* When active */
#header .mobile-menu.active {
    right: 0;
}

/* Responsive behavior */
@media (max-width: 768px) {
    #header .desktop-menu {
        display: none;
    }

    #header .hamburger {
        display: block;
    }
}

#footer {
    padding: 15px 0;
    background: #040710;
}

#footer p {
    color: #ffffff;
}

#footer p.sm{
    font-size: 80%;
}


#technologies .list .list-item {
    display: inline-block;
    padding: 14px;
    border: 3px solid #040710;
    border-radius: 3px;
    background: #ffffff;
    margin: 0 5px 10px 5px;
}

#technologies .list .list-item span.sm {
    font-size: 12px;
}

/* Blogs and Posts */

.post-codepen-wrapper {
    border: solid 3px black;
    border-radius: 3px;
}

.toy-image-wrapper {
    padding-right: 30px;
}



