.services {
    color: white;
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    height: 55vh;
    width: min(1200px, 90vw);
}

/* Prevent About-page fixed layout styles from breaking Services section */
.services .additional-about {
    position: static;
    width: 100%;
    height: 100%;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.servce-box {
    height: 180px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.servce-box:hover {
    cursor: pointer;
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.servce-box:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.box-image {
    width: 125px;
    height: 125px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.box-caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(166, 214, 44);
    margin-top: 10px;
    line-height: 1.25;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.box-description {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .services {
        top: 72px;
        left: 50%;
        transform: translateX(-50%);
        width: 94vw;
        height: calc(100svh - 162px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px 4px 20px;
    }

    .boxes-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .servce-box {
        height: auto;
        min-height: 132px;
        padding: 12px;
    }

    .box-image {
        width: 72px;
        height: 72px;
        margin: 6px auto;
        font-size: 1.5rem;
    }

    .box-caption {
        font-size: 0.8rem;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .boxes-container {
        grid-template-columns: 1fr;
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Modal Content Box */
.modal-content {
    position: relative;
    width: min(560px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 22px 20px 18px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.55);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s;
}

/* The Close Button */
.close-button {
    color: #fff;
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    border: 0;
    background: transparent;
    padding: 2px 6px;
}

.close-button:hover,
.close-button:focus {
    cursor: pointer;
}

.modal-title {
    margin: 0 32px 10px 0;
    color: rgb(166, 214, 44);
    font-size: 1.35rem;
}

.modal-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.modal-list li {
    margin: 6px 0;
    line-height: 1.45;
}

/* Add Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.is-open {
    display: flex;
}

/* .additional-about {
    border-radius: 0.75rem;
    box-shadow: 0 12px 24px -8px var(--box-shadow);
    text-align: center;
    height: 80dvh !important;
    overflow: auto;
    width: 85%;
    position: fixed;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    scrollbar-width: none;
} */
