/* Font Definitions */
@font-face {
    font-family: "Museo Sans 500 Medium", serif;
    src: url("museo-sans/MuseoSans_500.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Museo Sans 700 Bold", serif;
    src: url("museo-sans/MuseoSans_700.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

.we-deliver-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.we-deliver-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.we-deliver-text {
    position: sticky;
    top: 150px;
}

    .we-deliver-text h2 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
        color: #1a1a1a;
        font-weight: 600;
        line-height: 1.2;
    }

    .we-deliver-text p {
        font-size: 0.8rem;
        color: #666;
        line-height: 1.8;
        max-width: 400px;
        font-weight: 600;
    }

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px;
    position: relative;
}

.delivery-item {
    position: relative;
    padding: 40px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    opacity: 0;
}

    .delivery-item:nth-child(1) {
        grid-column: 1;
        margin-top: 0;
    }

    .delivery-item:nth-child(2) {
        grid-column: 2;
        margin-top: 80px;
    }

    .delivery-item:nth-child(3) {
        grid-column: 1;
        margin-top: 40px;
    }

    .delivery-item:nth-child(4) {
        grid-column: 2;
        margin-top: 120px;
    }

/* Numbers */
.delivery-number {
    font-size: 12rem;
    font-weight: 700;
    color: #2b2b2b;
    position: absolute;
    top: -40px;
    left: 10px;
    z-index: 1;
    transition: all 0.4s ease;
    font-family: 'Museo Sans 500 Medium', serif;
    cursor: pointer;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px #1a1a1a29;
}

.delivery-item:hover .delivery-number {
    color: #1a1a1a;
    transform: scale(1.1);
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px #ffffff5c;
}

/* Titles */
.delivery-item h3 {
    font-family: 'Museo Sans 500 Medium', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Lists */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Content */
.delivery-content {
    margin-top: 20px;
    transition: all 0.4s ease;
    z-index: 11;
}

    .delivery-content p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.2;
        text-align: center;
        max-width: 280px;
        font-weight: 500;
    }

    .delivery-list span {
        font-size: 0.95rem;
        color: #666;
        padding: 4px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: color 0.3s ease;
    }

.delivery-item:hover .delivery-list span {
    color: #1a1a1a;
}

/* Hover Circles */
.delivery-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

    .delivery-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: -1;
    }

    .delivery-circle span {
        color: white;
        font-size: 0.9rem;
        line-height: 1.4;
        font-weight: 500;
        position: relative;
        z-index: 2;
    }

.delivery-item:hover .delivery-circle {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    width: 400px;
    height: 400px;
    transition: opacity 0.2s ease, width 2s ease, height 2s ease;
}

    .delivery-item:hover .delivery-circle::before {
        opacity: 0.3;
    }

.delivery-item:not(:hover) .delivery-circle {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 1s ease, transform 1s ease;
}

.delivery-item:hover .delivery-list {
    z-index: 2;
    z-index: 11;
}

.delivery-item:hover .delivery-number {
    z-index: 12;
    color: #fff;
}

.delivery-item:hover .delivery-link {
    z-index: 11;
    color: #fff;
}

.delivery-item:hover .delivery-header {
    z-index: 11;
    color: #fff;
}

.delivery-link {
    color: #000;
    text-decoration: none;
}

/* Connecting Lines */
.delivery-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
    transform: translateX(-50%);
}

/* Responsive */
@media (max-width: 1024px) {
    .we-deliver-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .we-deliver-text {
        position: relative;
        top: auto;
        text-align: center;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .delivery-item:nth-child(n) {
        grid-column: 1;
        margin-top: 0 !important;
    }

    .delivery-grid::before {
        display: none;
    }
    .delivery-header{
        text-align: center;
    }
}

@media (max-width: 768px) {
    .we-deliver-section {
        padding: 80px 0;
    }

    .we-deliver-text h2 {
        font-size: 2.5rem;
    }

    .delivery-number {
        font-size: 3rem;
        left: 30px;
        top: 0px;
    }

    .delivery-item h3 {
        font-size: 1.5rem;
    }

    .delivery-circle {
        width: 160px;
        height: 160px;
        padding: 20px;
    }

        .delivery-circle span {
            font-size: 0.8rem;
        }
}
