.projects-hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 47px 118px;
    gap: 110px;
    width: 100%;
    background: #ffffff;
}

.projects-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 100%;
    max-width: 1237px;
}

.projects-hero-text-wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 24px;
    width: 100%;
    max-width: 757px;
}

.projects-hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 12px;
    width: 100%;
}

.projects-hero-title {
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 36px;
    line-height: 54px;
    text-align: center;
    letter-spacing: 0.01em;
    font-feature-settings: "ss01" on;
    color: #000000;
    margin: 0;
}

.projects-hero-description {
    width: 100%;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    font-feature-settings: "ss01" on;
    color: #777777;
    margin: 0;
}

/* Filter container with title and search */
.projects-filter-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    gap: 36px;
    margin: 0 auto;
    max-width: 1464px;
    height: 116px;
    background: #ffffff;
    border-top: 1px solid #d9d9d9;
}
.projects-filter-container-inner {
    display: flex;
    align-items: flex-start;
    gap: 76px;
}
.projects-title {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 32px;
    display: flex;
    align-items: center;
    color: #000000;
}

.projects-search {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0px;
    gap: 6px;
    width: 500px;
    height: 56px;
}

.projects-search-field {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 12px 16px;
    width: 100%;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    border-top: none;
    border-left: none;
    border-right: none;
}

.projects-search-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    width: 100%;
    height: 32px;
}

.projects-search-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-search-icon svg {
    width: 18px;
    height: 18px;
}

.projects-search-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    width: calc(100% - 24px);
    height: 32px;
    border: none;
    outline: none;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
    font-feature-settings: "ss01" on;
}

.projects-search-input::placeholder {
    color: #777777;
}

/* Project cards grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    padding: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-content {
    padding: 20px;
}

.project-card-category {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 8px;
}

.project-card-title {
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 12px;
}

.project-card-location {
    display: flex;
    align-items: center;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #777777;
}

.project-card-location-icon {
    margin-right: 6px;
}

.project-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Enhanced Responsive Design */
@media (max-width: 1464px) {
    .projects-hero-section {
        padding: 60px 80px;
        gap: 80px;
    }

    .projects-filter-container {
        padding: 30px 15px;
        height: auto;
        min-height: 116px;
    }
}

@media (max-width: 1200px) {
    .projects-hero-section {
        padding: 50px 60px;
        gap: 60px;
    }

    .projects-hero-title {
        font-size: 32px;
        line-height: 48px;
    }

    .projects-hero-description {
        font-size: 16px;
        line-height: 32px;
    }

    .projects-title {
        font-size: 32px;
    }

    .projects-filter-container {
        padding: 20px 15px;
    }
}

@media (max-width: 992px) {
    .projects-hero-section {
        padding: 40px 40px;
        gap: 50px;
    }

    .projects-hero-content {
        gap: 16px;
    }

    .projects-hero-text-wrapper {
        gap: 20px;
    }

    .projects-filter-container-inner {
        flex-direction: column;
        gap: 30px;
        padding-top: 30px;
        width: 100%;
    }

    .projects-hero-title {
        font-size: 30px;
        line-height: 44px;
    }

    .projects-hero-description {
        font-size: 16px;
        line-height: 28px;
    }

    .projects-title {
        font-size: 30px;
        text-align: center;
    }

    .projects-filter-container {
        flex-direction: column;
        height: auto;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
        padding: 20px 15px;
    }

    .projects-search {
        width: 100%;
        height: auto;
    }

    .projects-search-field {
        height: auto;
        min-height: 56px;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        padding: 30px 20px;
        gap: 40px;
        text-align: center;
    }

    .projects-hero-content {
        gap: 12px;
    }

    .projects-hero-text-wrapper {
        gap: 16px;
    }

    .projects-hero-headline {
        gap: 10px;
    }

    .projects-hero-title {
        font-size: 26px;
        line-height: 38px;
        font-weight: 400;
    }

    .projects-hero-description {
        font-size: 15px;
        line-height: 26px;
        max-width: 100%;
    }

    .projects-title {
        font-size: 26px;
        text-align: center;
        margin-bottom: 16px;
    }

    .projects-filter-container {
        padding: 16px;
        gap: 16px;
        background: #f8f9fa;
        border-top: none;
        border-radius: 0;
    }

    .projects-filter-container-inner {
        gap: 20px;
        padding-top: 0;
    }

    .projects-search {
        width: 100%;
    }

    .projects-search-field {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        background: #ffffff;
    }

    .projects-search-input {
        font-size: 15px;
    }

    .location-filter-container {
        margin-bottom: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .projects-hero-section {
        padding: 24px 16px;
        gap: 32px;
    }

    .projects-hero-content {
        gap: 10px;
    }

    .projects-hero-text-wrapper {
        gap: 14px;
    }

    .projects-hero-headline {
        gap: 8px;
    }

    .projects-hero-title {
        font-size: 22px;
        line-height: 32px;
        font-weight: 500;
    }

    .projects-hero-description {
        font-size: 14px;
        line-height: 24px;
        font-weight: 400;
    }

    .projects-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .projects-filter-container {
        padding: 12px;
        gap: 12px;
    }

    .projects-filter-container-inner {
        gap: 16px;
    }

    .projects-search {
        width: 100%;
    }

    .projects-search-field {
        padding: 10px 14px;
        min-height: 48px;
    }

    .projects-search-input {
        font-size: 14px;
    }

    .projects-search-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .projects-hero-section {
        padding: 20px 12px;
        gap: 28px;
    }

    .projects-hero-title {
        font-size: 20px;
        line-height: 28px;
    }

    .projects-hero-description {
        font-size: 13px;
        line-height: 22px;
    }

    .projects-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .projects-filter-container {
        padding: 10px;
        gap: 10px;
    }

    .projects-filter-container-inner {
        gap: 14px;
    }

    .projects-search-field {
        padding: 8px 12px;
        min-height: 44px;
    }

    .projects-search-input {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .projects-hero-section {
        padding: 16px 10px;
        gap: 24px;
    }

    .projects-hero-title {
        font-size: 18px;
        line-height: 26px;
    }

    .projects-hero-description {
        font-size: 12px;
        line-height: 20px;
    }

    .projects-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .projects-filter-container {
        padding: 8px;
        gap: 8px;
    }

    .projects-filter-container-inner {
        gap: 12px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .projects-hero-section {
        padding: 20px 16px;
        gap: 30px;
    }

    .projects-hero-title {
        font-size: 24px;
        line-height: 34px;
    }

    .projects-hero-description {
        font-size: 14px;
        line-height: 24px;
    }

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

    .projects-filter-container {
        padding: 12px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .projects-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .projects-hero-title {
        color: #000000;
        font-weight: 600;
    }

    .projects-hero-description {
        color: #333333;
        font-weight: 600;
    }

    .projects-title {
        color: #000000;
        font-weight: 600;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none;
    }

    .project-card:hover {
        transform: none;
    }
}
