@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F5F2EF;
}

header{
    width: 100%;
    max-width: 100vw;
    height: 55px;
    background-color: #F5F2EF;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-x: hidden;
}

.navbar{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #F5F2EF;
}

header.scrolled-nav{
    background-color: #F5F2EF;
}

.navbar.scrolled-nav{
    background: #F5F2EF;
}

/* Beige navbar for portfolio page */
header.beige-nav{
    background-color: #F5F2EF;
}

.navbar.beige-nav{
    background: #ffffff;
}

.navbar.beige-nav.scrolled-nav{
    background: #ffffff;
}



.navbar ul li a:hover{
    color: #D4AF37;
    transition: color 0.2s ease-in;
}

.navlist .dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▾";
    font-size: 12px;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #F5F2EF;
    padding: 8px 0;
    z-index: 1001;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.dropdown-content li {
    margin-right: 0;
}

.dropdown-content li a {
    display: block;
    padding: 8px 14px;
    font-size: medium;
    white-space: nowrap;
    color: #333333;
}

.dropdown-content li a:hover {
    color: #D4AF37;
}

.dropdown.open .dropdown-content {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.rightnav{
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 20px;
}

.rightnav input{
    width: 140px;
    height: 35px;
    border-radius: 10px;
    border: 3px solid white;
    padding: 0 12px;
}
.rightnav button{
    width: auto;
    min-width: 50px;
    height: 30px;
    margin-left: 0;
    padding: 0 10px;
    border-radius: 10px;
    border: 3px solid white;
    cursor: pointer;
}

main{
    width: 100%;
    padding-top: 55px;
    flex: 1;
}

.mainbox1{
    min-height: 30vh;
    padding-top: 85px;
    padding-bottom: 40px;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mainbox1 .texts{
    display: flex;
    width: 70%;
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mainbox1 .bigtext{
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

}

.mainbox1 .bigtext .hero-title {
    display: block;
    text-transform: uppercase;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #4A7C59;
    background: linear-gradient(90deg, #D4AF37 0%, #4A7C59 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mainbox1 .bigtext .hero-tagline {
    display: block;
    font-family: "Edu VIC WA NT Beginner", cursive;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    color: #333333;
    line-height: 1.2;

}
.mainbox1 .smalltext{
    text-align: center;
    font-size: 17px;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px 80px;
}

.portfolio-link-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #4A7C59;
    color: #F5F2EF;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link-btn:hover {
    background-color: #D4AF37;
}

.portfolio-cards-section {
    padding: 40px 20px 60px;
    background-color: transparent;
    margin-top: 20px;
}

.portfolio-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Centered round miscellaneous card */
.portfolio-misc-section {
    padding: 20px 0 40px;
    background-color: transparent;
}
.portfolio-misc-wrapper{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
}
.misc-card-link{ text-decoration: none; color: inherit; display:flex; flex-direction:column; align-items:center; }
.misc-card{
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
    position: relative;
}
.misc-card img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.misc-card:hover{ transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 40px rgba(0,0,0,0.18); }

/* overlay for circular card to match portfolio hover effect */
.misc-overlay{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 10;
    padding: 20px;
}
.misc-overlay h3{
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(6px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.misc-card:hover .misc-overlay{ background: rgba(0,0,0,0.45); }
.misc-card:hover .misc-overlay h3{ opacity: 1; transform: translateY(0); }
.misc-card:hover img{ transform: scale(1.05); filter: grayscale(100%); }
.misc-caption{ display:none; }

/* Make misc card use same structure as other portfolio cards but circular */
.portfolio-misc-section .portfolio-misc-wrapper { display:flex; justify-content:center; align-items:center; }
.portfolio-misc-section .portfolio-card { max-width: 420px; margin: 0 auto; }
.portfolio-misc-section .portfolio-card .portfolio-card-image { height: 350px; aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; }

.portfolio-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card-image {
    width: 100%;
    height: 350px;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    position: relative;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(0%);
}

.portfolio-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.portfolio-card-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover .portfolio-card-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover .portfolio-card-image img {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.portfolio-card-content {
    background-color: #4A7C59;
    color: #F5F2EF;
    padding: 20px;
    text-align: center;
}

.portfolio-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.portfolio-list-page .project-card {
    display: block;
}

.sitetext{
    text-align: center;
    margin-top: 10vh;
    margin-bottom: 10vh;
    font-size: 50px;
    font-style: oblique;
    background-color: rgba(74, 124, 89, 0.3);
    font-family: "Edu VIC WA NT Beginner", cursive;
    font-weight: 400;
    color: #333333;
}

/* Categories Section */
.categories-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.category-image-wrapper {
    overflow: hidden;
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(100%);
}

.category-card:hover .category-image {
    transform: scale(1.15);
    filter: grayscale(100%);
}

.category-title {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    width: 100%;
    font-size: 32px;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.category-card:hover .category-title {
    opacity: 1;
    transform: translateY(0);
}

/* Category Heading Section */
.category-heading-section {
    text-align: center;
    padding: 20px;
    overflow: hidden;
    background-color: transparent;
    width: 100%;
    margin: 0;
}

.selected-category {
    font-size: 72px;
    font-weight: 700;
    font-family: "Figtree", sans-serif;
    background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin: 0;
    display: block;
    white-space: nowrap;
}

/* Project Grid Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: none;
}

.project-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.08);
    filter: grayscale(100%);
}

.project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(4, 39, 72, 0.95), rgba(4, 39, 72, 0.85), transparent);
    transition: bottom 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.project-card:hover .project-overlay {
    bottom: 0;
}

.project-overlay h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 70%;
    margin: 0 auto 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item {
    display: none;
    width: 100%;
}

.slider-item.active {
    display: block;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.slider-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #4A7C59;
}

.dot:hover {
    background-color: #D4AF37;
}

.siteimages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages .images img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.siteimages2{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages2 .images img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.siteimages2 .images2 img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.siteimages3{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages3 .images3 img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.siteimages3 .images31 img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.siteimages4{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages4 .images4 img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.siteimages5{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages5 .images5 img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.siteimages6{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.siteimages6 .images6 img{
    width: 100%;
    height: 350px;
    object-fit: cover;
}

footer{
    display: flex;
    flex-direction: column;
    background-color: #e0e0e0;
    min-height: 8vh;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: large;
    color: #333333;
    gap: 8px;
    padding: 15px 20px;
}

footer a {
    color: #4A7C59;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #D4AF37;
}

.lastbtn{
    text-align: center;
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.lastbtn .btn{
    padding: 10px 10px;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
}

.btn button{
    cursor: pointer;
}

/* Mobile and Tablet Responsive Styles */
@media (max-width: 1024px) {
    /* Hide grid layouts on mobile and tablet */
    .siteimages,
    .siteimages2,
    .siteimages3,
    .siteimages4,
    .siteimages5,
    .siteimages6 {
        display: none;
    }

    /* Show sliders on mobile and tablet */
    .slider-container {
        display: flex;
    }

    .categories-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .category-image-wrapper {
        height: 300px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-heading-section {
        padding: 16px 12px;
    }

    .selected-category {
        font-size: 48px;
        line-height: 1.2;
        letter-spacing: 2px;
        white-space: normal;
        word-break: break-word;
        background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Navbar styles */
    .navbar {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    .logo-link {
        gap: 8px;
        padding-left: 10px;
        max-width: calc(100% - 52px);
    }

    .logo img {
        height: 40px;
    }

    .brand-name {
        font-size: clamp(10px, 2.2vw, 14px);
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    /* Hide navlist by default and make it slide from right */
    .navlist {
        position: fixed;
        left: 0;
        top: 55px;
        height: calc(100vh - 55px);
        width: 100vw;
        background-color: #8B7355;
        flex-direction: column;
        padding-top: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-x: hidden;
    }

    .navlist.active {
        transform: translateX(0);
    }

    .navlist li {
        margin: 15px 0;
        text-align: center;
    }

    .navlist .dropdown {
        width: 100%;
    }

    .navlist .dropdown-content {
        position: static;
        min-width: 100%;
        padding: 0;
        background-color: transparent;
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        overflow: hidden;
        pointer-events: none;
    }

    .navlist .dropdown.open .dropdown-content {
        max-height: 140px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navlist .dropdown-content li a {
        padding: 6px 14px;
    }

    .navlist ul{
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .navbar ul li{
        margin-right: 0;
        margin-bottom: 10px;
    }

    .navbar ul li a{
        font-size: medium;
    }

    .navbar ul li a.get-in-touch {
        background-color: #4A7C59 !important;
        color: #ffffff !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: medium;
    }

    .rightnav{
        display: none;
    }

    header{
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    main{
        width: 100%;
    }

    .mainbox1{
        width: 100%;
        min-height: auto;
        padding: 20px;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .mainbox1 .texts{
        width: 90%;
        padding: 0 15px;
    }

    .mainbox1 .bigtext{
        font-size: 24px;
    }

    .mainbox1 .smalltext{
        font-size: 14px;
    }

    .portfolio-links {
        flex-direction: column;
        padding: 20px;
    }

    .sitetext{
        font-size: 30px;
        margin-top: 5vh;
        margin-bottom: 5vh;
    }

    .slider-container {
        width: 90%;
    }

    .prev-btn,
    .next-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .prev-btn {
        left: -50px;
    }

    .next-btn {
        right: -50px;
    }

    .slider-dots {
        bottom: -40px;
    }

    footer{
        height: auto;
        padding: 15px;
        font-size: medium;
    }

    .lastbtn{
        margin-top: 5vh;
        margin-bottom: 5vh;
    }
}

/* Desktop - Hide sliders and show grid layouts */
@media (min-width: 1025px) {
    .slider-container {
        display: none;
    }

    .siteimages,
    .siteimages2,
    .siteimages3,
    .siteimages4,
    .siteimages5,
    .siteimages6 {
        display: grid;
    }
}

@media (max-width: 480px) {
    /* Hide grid layouts on mobile */
    .siteimages,
    .siteimages2,
    .siteimages3,
    .siteimages4,
    .siteimages5,
    .siteimages6 {
        display: none;
    }

    /* Show sliders on mobile */
    .slider-container {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .logo-link {
        gap: 8px;
        padding-left: 10px;
        max-width: calc(100% - 52px);
    }

    .logo img {
        height: 40px;
    }

    .brand-name {
        font-size: clamp(10px, 2.2vw, 14px);
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    .navlist {
        position: fixed;
        left: 0;
        top: 55px;
        height: calc(100vh - 55px);
        width: 100vw;
        background-color: #8B7355;
        flex-direction: column;
        padding-top: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-x: hidden;
    }

    .navlist.active {
        transform: translateX(0);
    }

    .navlist li {
        margin: 15px 0;
        text-align: center;
    }

    .navbar ul li{
        margin-right: 0;
        margin-bottom: 8px;
    }

    .navbar ul li a{
        font-size: small;
    }

    .navbar ul li a.get-in-touch {
        background-color: #4A7C59 !important;
        color: #ffffff !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: small;
    }

    .rightnav{
        display: none;
    }

    .mainbox1 .bigtext{
        font-size: 18px;
    }

    .mainbox1 .smalltext{
        font-size: 12px;
    }

    .sitetext{
        font-size: 22px;
        margin-top: 3vh;
        margin-bottom: 3vh;
        padding: 0 10px;
    }

    .slider-container {
        width: 95%;
        margin-bottom: 4vh;
    }

    .prev-btn,
    .next-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .prev-btn {
        left: -40px;
    }

    .next-btn {
        right: -40px;
    }

    .slider-dots {
        bottom: -35px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .portfolio-cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .portfolio-card-image {
        height: 250px;
    }

    /* Mobile portfolio cards - always show project names */
    .portfolio-card-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .portfolio-card-overlay h3 {
        font-size: 22px;
    }

    /* Mobile project cards - grayscale with visible project name */
    .project-card {
        display: block;
    }

    .project-image-container img {
        filter: grayscale(0%);
    }

    .project-card:hover .project-image-container img {
        transform: scale(1.08);
        filter: grayscale(0%);
    }

    .project-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        background: linear-gradient(to top, rgba(4, 39, 72, 0.95), rgba(4, 39, 72, 0.85), transparent);
        transition: bottom 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
    }

    .project-overlay h3 {
        color: white;
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        letter-spacing: 1px;
    }

    .selected-category {
        font-size: 30px;
        line-height: 1.25;
        letter-spacing: 1px;
        white-space: normal;
        word-break: break-word;
        background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

