:root {
    --eaho-blue: #06038d;
    --eaho-blue-2: #0b1f72;
    --eaho-green: #158b35;
    --eaho-red: #d9002f;
    --eaho-gold: #f6c85f;
    --eaho-dark: #07172f;
    --eaho-white: #ffffff;
}

.eaho-projects-section {
    width: 100%;
    position: relative;
    font-family: inherit;
}

.eaho-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.eaho-project-card {
    position: relative;
    min-height: 390px;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    background: var(--eaho-dark);
    box-shadow: 0 20px 55px rgba(7, 23, 47, 0.18);
    transform: translateY(0) scale(1);
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1), box-shadow 0.55s cubic-bezier(.2,.8,.2,1);
}

.eaho-project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--eaho-bg-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(0.96) contrast(1.03);
    transition: transform 1.05s cubic-bezier(.2,.8,.2,1), filter 1.05s cubic-bezier(.2,.8,.2,1);
    z-index: -4;
}

.eaho-project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 13, 45, 0.08) 0%, rgba(3, 13, 45, 0.48) 43%, rgba(2, 8, 28, 0.94) 100%),
        linear-gradient(135deg, rgba(6, 3, 141, 0.48), rgba(21, 139, 53, 0.18) 52%, rgba(217, 0, 47, 0.22));
    z-index: -3;
}

.eaho-project-card:hover {
    transform: translateY(-14px) scale(1.015);
    box-shadow: 0 34px 85px rgba(7, 23, 47, 0.35);
}

.eaho-project-card:hover::before {
    transform: scale(1.15);
    filter: saturate(1.14) contrast(1.08) brightness(1.03);
}

.eaho-project-link {
    display: flex;
    width: 100%;
    min-height: 390px;
    height: 100%;
    color: var(--eaho-white);
    text-decoration: none !important;
    outline: none;
}

.eaho-project-link:focus-visible {
    box-shadow: inset 0 0 0 4px rgba(246, 200, 95, 0.85);
    border-radius: 32px;
}

.eaho-project-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%),
        radial-gradient(circle at 12% 0%, rgba(246,200,95,0.18), transparent 35%),
        linear-gradient(135deg, rgba(6,3,141,0.55), rgba(21,139,53,0.16), rgba(217,0,47,0.20));
    opacity: 0.86;
    transition: opacity 0.45s ease;
    z-index: -2;
}

.eaho-project-card:hover .eaho-project-overlay {
    opacity: 0.68;
}

.eaho-project-card .eaho-project-link::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.26);
    pointer-events: none;
    z-index: 2;
    opacity: 0.80;
    transition: inset 0.45s ease, opacity 0.45s ease, border-color 0.45s ease;
}

.eaho-project-card:hover .eaho-project-link::before {
    inset: 12px;
    opacity: 1;
    border-color: rgba(246,200,95,0.70);
}

.eaho-project-card .eaho-project-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, #050505 0%, var(--eaho-green) 42%, var(--eaho-red) 100%);
    z-index: 4;
    transform: scaleX(0.46);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
}

.eaho-project-card:hover .eaho-project-link::after {
    transform: scaleX(1);
}

.eaho-project-shine {
    position: absolute;
    top: -48%;
    left: -90%;
    width: 48%;
    height: 205%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: rotate(24deg);
    transition: left 1s ease;
    pointer-events: none;
    z-index: 3;
}

.eaho-project-card:hover .eaho-project-shine {
    left: 135%;
}

.eaho-project-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 390px;
    width: 100%;
    padding: 38px;
    z-index: 5;
}

.eaho-project-content::before {
    content: "";
    width: 58px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eaho-green), var(--eaho-gold), var(--eaho-red));
    box-shadow: 0 0 18px rgba(246, 200, 95, 0.50);
    transition: width 0.45s ease;
}

.eaho-project-card:hover .eaho-project-content::before {
    width: 94px;
}

.eaho-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.eaho-project-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    color: var(--eaho-white);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.eaho-project-content h3 {
    margin: 0 0 12px;
    color: var(--eaho-white);
    font-size: clamp(23px, 2vw, 33px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-shadow: 0 7px 22px rgba(0,0,0,0.35);
}

.eaho-project-content p {
    max-width: 94%;
    margin: 0;
    color: rgba(255,255,255,0.90);
    font-size: 15.5px;
    line-height: 1.72;
    text-shadow: 0 4px 14px rgba(0,0,0,0.34);
}

.eaho-projects-carousel-section {
    overflow: hidden;
}

.eaho-carousel {
    position: relative;
    width: 100%;
    padding: 0 58px 50px;
}

.eaho-carousel-viewport {
    overflow: hidden;
    border-radius: 34px;
    padding: 14px 0 26px;
}

.eaho-carousel-track {
    display: flex;
    gap: 28px;
    will-change: transform;
    transition: transform 0.62s cubic-bezier(.2,.8,.2,1);
}

.eaho-carousel-card {
    min-width: calc((100% - 56px) / 3);
}

.eaho-carousel-arrow {
    position: absolute;
    top: 44%;
    z-index: 10;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--eaho-white);
    background: linear-gradient(135deg, var(--eaho-blue), var(--eaho-green));
    box-shadow: 0 18px 40px rgba(7,23,47,0.30);
    cursor: pointer;
    font-size: 34px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.eaho-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.10);
    box-shadow: 0 23px 48px rgba(7,23,47,0.42);
}

.eaho-carousel-prev {
    left: 0;
}

.eaho-carousel-next {
    right: 0;
}

.eaho-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 9px;
}

.eaho-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(6,3,141,0.22);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.eaho-carousel-dot:hover {
    transform: scale(1.2);
}

.eaho-carousel-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, var(--eaho-blue), var(--eaho-green));
}

.eaho-projects-empty {
    padding: 18px 22px;
    border-radius: 12px;
    background: #f4f7fb;
    color: #30415f;
}

@media (max-width: 1024px) {
    .eaho-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
    .eaho-carousel-card {
        min-width: calc((100% - 28px) / 2);
    }
}

@media (max-width: 680px) {
    .eaho-projects-grid {
        grid-template-columns: 1fr;
    }
    .eaho-carousel {
        padding: 0 0 46px;
    }
    .eaho-carousel-viewport {
        border-radius: 26px;
        padding: 10px 0 22px;
    }
    .eaho-carousel-card {
        min-width: 100%;
    }
    .eaho-carousel-arrow {
        top: auto;
        bottom: 0;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .eaho-carousel-prev {
        left: calc(50% - 82px);
    }
    .eaho-carousel-next {
        right: calc(50% - 82px);
    }
    .eaho-project-card,
    .eaho-project-link,
    .eaho-project-content {
        min-height: 340px;
    }
    .eaho-project-content {
        padding: 28px;
    }
    .eaho-project-content p {
        max-width: 100%;
    }
}
