/* =========================================
   PROJECTS SECTION
========================================= */

.projects-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 100px 0 85px;
    background-color: #edf5ff;
    background-image:
        radial-gradient(circle at 10% 20%, transparent 0 35px, rgba(255, 255, 255, 0.55) 36px 37px, transparent 38px),
        radial-gradient(circle at 85% 70%, transparent 0 55px, rgba(255, 255, 255, 0.5) 56px 57px, transparent 58px),
        repeating-radial-gradient(circle at 0 0, transparent 0 19px, rgba(255, 255, 255, 0.3) 20px 21px, transparent 22px 42px);
    font-family: 'Poppins', sans-serif;
}

.projects-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

/* =========================================
   SECTION HEADING
========================================= */

.projects-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.projects-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3479ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.projects-subtitle i {
    font-size: 13px;
}

.projects-heading h2 {
    color: #0b1c43;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -1px;
    margin: 0;
}

.projects-heading h2 span {
    color: #3479ff;
}

.projects-heading p {
    color: #68758c;
    font-size: 13px;
    line-height: 1.8;
    margin: 15px 0 0;
}

/* =========================================
   CATEGORY FILTERS
========================================= */

.project-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}

.project-filter {
    min-height: 40px;
    padding: 0 25px;
    border: 1px solid #dce3ed;
    border-radius: 30px;
    background: #ffffff;
    color: #46536c;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-filter:hover,
.project-filter.active {
    background: #3479ff;
    color: #ffffff;
    border-color: #3479ff;
    box-shadow: 0 5px 15px rgba(52, 121, 255, 0.15);
}

/* =========================================
   PROJECT GRID
========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 23px;
}

/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    min-width: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hide-project {
    display: none;
}

.project-image {
    width: 100%;
    height: 290px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: #dfe8f3;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.07);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 67, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-image-overlay i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3479ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-card:hover .project-image-overlay i {
    transform: translateY(0);
}

/* =========================================
   PROJECT DETAILS
========================================= */

.project-info {
    padding: 13px 2px 0;
}

.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #68758c;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-meta i {
    color: #3479ff;
    font-size: 13px;
}

.project-info h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.project-info h3 a {
    color: #0b1c43;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-info h3 a:hover {
    color: #3479ff;
}

.project-info p {
    margin: 0;
    color: #68758c;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================
   VIEW ALL BUTTON
========================================= */

.projects-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.projects-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: #3479ff;
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-view-button:hover {
    background: #0b1c43;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 28, 67, 0.15);
}

.projects-view-button i {
    transition: transform 0.3s ease;
}

.projects-view-button:hover i {
    transform: translateX(5px);
}

/* =========================================
   LARGE LAPTOP
========================================= */

@media (max-width: 1200px) {

    .projects-container {
        max-width: 1100px;
    }

    .project-image {
        height: 255px;
    }

    .project-filters {
        gap: 8px;
    }

    .project-filter {
        padding: 0 19px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .projects-section {
        padding: 75px 0;
    }

    .projects-heading h2 {
        font-size: 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .project-image {
        height: 260px;
    }

    .project-filter {
        min-height: 38px;
        font-size: 10px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .projects-section {
        padding: 60px 0;
    }

    .projects-container {
        padding: 0 17px;
    }

    .projects-heading {
        margin-bottom: 30px;
    }

    .projects-heading h2 {
        font-size: 26px;
        line-height: 1.4;
    }

    .projects-heading p {
        font-size: 12px;
    }

    .project-filters {
        gap: 8px;
        margin-bottom: 28px;
    }

    .project-filter {
        min-height: 36px;
        padding: 0 15px;
        font-size: 9px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-image {
        height: 260px;
    }

    .project-info h3 {
        font-size: 15px;
    }

    .project-info p {
        font-size: 12px;
    }

    .projects-button-wrapper {
        margin-top: 35px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .projects-heading h2 {
        font-size: 23px;
    }

    .project-filter {
        padding: 0 12px;
        font-size: 8px;
    }

    .project-image {
        height: 220px;
    }

    .project-meta {
        gap: 8px;
        font-size: 8px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .projects-section *,
    .projects-section *::before,
    .projects-section *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================
   PROJECT SECTION - TOP SCALLOPED WAVE
========================================= */

.projects-section {
    position: relative;
    overflow: hidden;
    padding-top: 125px;

    /* Keep your existing light blue background */
    background-color: #edf5ff;
}

/* White space above the wave */
.projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 51px;
    background: #ffffff;
    z-index: 2;
}

/* Curved white scallop with blue outline */
.projects-section::after {
    content: "";
    position: absolute;
    top: 49px;
    left: 0;
    width: 100%;
    height: 23px;
    z-index: 3;
    pointer-events: none;

    background-repeat: repeat-x;
    background-position: top left;
    background-size: 90px 23px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='23' viewBox='0 0 90 23'%3E%3Cpath d='M0 0 H90 V12 C80 12 80 21 68 21 C56 21 56 12 45 12 C34 12 34 21 22 21 C10 21 10 12 0 12 Z' fill='%23ffffff'/%3E%3Cpath d='M0 12 C10 12 10 21 22 21 C34 21 34 12 45 12 C56 12 56 21 68 21 C80 21 80 12 90 12' fill='none' stroke='%233479ff' stroke-width='1'/%3E%3C/svg%3E");
}

/* Keep section content above background decoration */
.projects-container {
    position: relative;
    z-index: 4;
}

/* Mobile adjustment */
@media (max-width: 767px) {
    .projects-section {
        padding-top: 105px;
    }

    .projects-section::before {
        height: 38px;
    }

    .projects-section::after {
        top: 36px;
        height: 20px;
        background-size: 75px 20px;
    }
}